* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background: #f8f8f8;
  overflow-x: hidden;
}

/* HEADER */
.page-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 120px;
  padding: 0 20px;
}

.page-header .header-content img {
  height: 60px;
}

.page-header a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  color: #ff5722;
}

/* HIGHLIGHT BOX */
.highlight-box {
  margin: 20px;
  padding: 16px 20px;
  background: #fffbe6;
  border-left: 6px solid #ffc107;
  border-radius: 6px;
  font-size: 0.95rem;
  background: linear-gradient(to right, #ff6a00, #ff3c00);
  color: white;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.highlight-box p {
  font-size: 1.1rem;
}

.highlight-box .info {
  font-size: 0.9rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

.highlight-box small {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.highlight-box i {
  gap: 1rem;
  font-size: 0.8rem;
}

/* GRID LAYOUT */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  /* padding: 20px; */
}

/* COMBO CARD */
.combo-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.combo-card:hover {
  transform: translateY(-3px);
}
.deal-img {
  position: relative;
}
.deal-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e60023;
  color: white;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
}
.combo-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.combo-details h2 {
  font-size: 1.05rem;
}
.items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.items span {
  background: #f2f2f2;
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
}
.price {
  font-weight: 600;
  font-size: 1rem;
}
.price .premium {
  background: #ffd700;
  padding: 2px 6px;
  font-size: 0.75rem;
  border-radius: 4px;
  margin-left: 8px;
}
.select-btn {
  margin-top: auto;
  background: #ff5722;
  color: white;
  border: none;
  padding: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0 0 12px 12px;
  transition: background 0.3s;
}
.select-btn:hover {
  background: #e64a19;
}

/* OVERLAY SETUP */
.modal-wrapper {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* translucent backdrop */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
}

/* HIDDEN STATE */
.modal-wrapper.hidden {
  display: none;
}

/* MODAL CONTENT */
.modal {
  background-color: white;
  border-radius: 10px;
  width: 100%;
  max-width: 500px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
}

/* MODAL HEADER */
.modal h2 {
  font-size: 20px;
  margin: 0 0 20px;
}

/* SIZE SELECTION */
.size-selection label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 10px;
  cursor: pointer;
}
.size-selection input[type="radio"] {
  display: none;
}
.size-selection input[type="radio"] + span {
  width: 20px;
  height: 20px;
  border: 2px solid #ffa500;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
}
.size-selection input[type="radio"]:checked + span {
  background-color: #ffa500;
}
.size-selection .price {
  font-weight: bold;
}

/* QUANTITY SECTION */
.quantity {
  margin: 20px 0;
}
.quantity label {
  display: block;
  margin-bottom: 10px;
}
.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: fit-content;
}
.quantity-controls button {
  background: none;
  border: none;
  padding: 10px 14px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}
.quantity-controls span {
  padding: 10px 16px;
  font-weight: bold;
  font-size: 16px;
}

/* PRE-ORDER INFO */
.pre-order-info {
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  font-size: 14px;
}
.pre-order-info .icon {
  margin-right: 10px;
  font-size: 20px;
}

/* TOTAL SECTION */
.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.total span:first-child {
  font-weight: bold;
}
.total span:last-child {
  font-size: 22px;
  font-weight: bold;
  color: #333;
}

/* ACTION BUTTONS */
.actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.actions button {
  flex: 1;
  padding: 12px 16px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.actions .add-to-cart {
  background-color: #ffa500;
  color: white;
}
.actions .cancel {
  background: none;
  color: #666;
  border: 1px solid #ccc;
}

/* RESPONSIVE FIXES */
@media (max-width: 480px) {
  .modal {
    padding: 16px;
    max-width: 100%;
  }
  .actions {
    flex-direction: column;
  }

  .page-header h1 {
    font-size: 1.4rem;
  }

  .page-header a {
    font-size: 0.9rem;
  }

  .page-header .page-content img {
    width: 10px;
    height: 10px;
  }
}
