/* =============================
   CONTAINER
============================= */
.pkg-container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* =============================
   GRID
============================= */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* =============================
   ITEM CARD
============================= */
.pkg-item {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* =============================
   IMAGE
============================= */
.pkg-item img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 12px;
}
.pkg-item:hover {
  transform: translateY(-2px);
  transition: .15s ease;
}

/* =============================
   INVENTORY BADGE
============================= */
.pkg-item .inv {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 20px;
  font-weight: 600;
  z-index: 5;
}

.inv.in-stock {
  background: #e6f7ec;
  color: #1f8a46;
}

.inv.low-stock {
  background: #fff5e6;
  color: #c77700;
}

.inv.out-stock {
  background: #ffe6e6;
  color: #c40000;
}

/* =============================
   COLOR + SIZE ROW
============================= */
.color-row,
.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* =============================
   COLOR OPTION
============================= */
.color-option {
  position: relative;
  display: inline-block;
}

.color-option input[type="radio"],
.size-option input[type="radio"] {
  position: absolute;
  left: -9999px;
  top: 0;
}




.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: all .2s;
}

.color-option input:checked + .color-dot {
  border: 3px solid #000;
  transform: scale(1.15);
}
.color-option input:checked + .color-dot {
  box-shadow: 0 0 0 3px rgba(0,0,0,0.15);
}

/* =============================
   SIZE OPTION
============================= */
.size-option {
  position: relative;
  display: inline-block;
}

.color-option,
.size-option {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.size-box {
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  transition: .2s;
}

.size-option input:checked + .size-box {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* =============================
   FOOTER
============================= */
.pkg-footer {
  margin-top: 30px;
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 768px) {
  .pkg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pkg-grid {
    grid-template-columns: 1fr;
  }
}
