* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #b0b0b0; font-family: Arial, sans-serif; }

.page-header {
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
}
.header-left { display: flex; align-items: center; gap: 1rem; }
.header-left img { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; }
.header-title { color: white; }
.header-title h1 { font-size: 1.8rem; font-weight: bold; letter-spacing: 2px; color: white; }
.header-title p { font-style: italic; color: #c9a84c; font-size: 0.85rem; }
.header-title small { color: #aaa; font-size: 0.75rem; }

.section {
  max-width: 750px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.section-box {
  background: white;
  border-radius: 4px;
  overflow: hidden;
}
.section-title {
  background: #111111;
  color: #c9a84c;
  font-weight: bold;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 0.7rem 1rem;
}
.section-body { padding: 1rem; }

.back-btn {
  display: block;
  width: 100%;
  padding: 0.9rem;
  background: #333;
  color: white;
  border: 1.5px solid white;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  margin-top: 1rem;
}
.back-btn:hover { background: #555; }

/* Bundle Cards */
.bundle-card {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 16px;
  background: #f9f9f9;
}
.bundle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}
.bundle-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bundle-id-badge {
  background: transparent;
  color: #111;
  font-size: 12px;
  padding: 3px 8px;
  border: 2px solid #111;
  border-radius: 0;
  font-family: monospace;
  font-weight: bold;
}
.bundle-name {
  color: #111;
  font-size: 15px;
  font-weight: 700;
}
.bundle-price {
  color: #111;
  font-size: 15px;
  font-weight: 700;
  background: transparent;
  border: 2px solid #111;
  padding: 3px 10px;
  border-radius: 0;
}

/* Bundle Item Rows */
.bundle-item-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.product-label {
  color: #111;
  font-size: 15px;
  font-weight: bold;
  min-width: 120px;
}

/* Single gender toggle button */
.gender-btn {
  padding: 5px 10px;
  border: 2px solid #bbb;
  background: transparent;
  color: #999;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  border-radius: 0;
  min-width: 40px;
  text-align: center;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.gender-btn.active-male {
  background: #d0e8f8;
  border-color: #1a4a7a;
  color: #1a4a7a;
}
.gender-btn.active-female {
  background: #f8d7e8;
  border-color: #9b3a6b;
  color: #9b3a6b;
}

.bundle-fragrance-select {
  flex: 1;
  background: white;
  border: 1px solid #bbb;
  color: #aaa;
  padding: 5px 8px;
  border-radius: 0;
  font-size: 13px;
  min-width: 0;
  max-width: 100%;
}
.bundle-fragrance-select.selected { color: #111; }
.bundle-fragrance-select:disabled {
  background: #eee;
  cursor: not-allowed;
}

/* Add to Cart Row */
.add-to-cart-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}
.success-flash {
  color: #27ae60;
  font-size: 12px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s;
  margin-right: auto;
}
.success-flash.show { opacity: 1; }

.clear-btn {
  background: transparent;
  color: #666;
  border: 1px solid #999;
  padding: 7px 16px;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  border-radius: 0;
  letter-spacing: 1px;
}
.clear-btn:hover { background: #eee; }

.add-to-cart-btn {
  background: #c9a84c;
  color: #111;
  border: none;
  padding: 7px 18px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 1px;
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.2s;
  border-radius: 0;
}
.add-to-cart-btn.ready {
  opacity: 1;
  pointer-events: all;
}
.add-to-cart-btn.ready:hover {
  background: #111;
  color: #c9a84c;
}

.loading-msg {
  color: #aaa;
  text-align: center;
  padding: 30px;
  font-style: italic;
}
/* Cart Section */
.cart-bundle-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.cart-bundle-marker {
  background: #111;
  color: #c9a84c;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 7px;
  font-family: monospace;
  flex-shrink: 0;
  align-self: center;
}
.cart-bundle-details {
  flex: 1;
}
.cart-bundle-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.cart-bundle-name {
  font-weight: bold;
  font-size: 13px;
  color: #111;
}
.cart-bundle-price {
  font-weight: bold;
  font-size: 13px;
  color: #c9a84c;
}
.cart-item-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 12px;
}
.cart-gender-badge {
  font-size: 10px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}
.badge-male { background: #d0e8f8; color: #1a4a7a; }
.badge-female { background: #f8d7e8; color: #9b3a6b; }
.cart-product {
  color: #555;
  min-width: 100px;
}
.cart-fragrance {
  color: #111;
  font-style: italic;
}
.cart-delete-btn {
  background: #c0392b;
  color: white;
  border: none;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
  align-self: center;
}
.cart-delete-btn:hover { background: #e74c3c; }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 2px solid #111;
  margin-top: 8px;
}
.cart-total-label {
  font-weight: bold;
  font-size: 15px;
  color: #111;
}
.cart-total-amount {
  font-weight: bold;
  font-size: 15px;
  color: #111;
}

/* Contact Form */
.contact-form {
  margin-top: 16px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}
.contact-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.contact-row input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  font-size: 13px;
  background: white;
  color: #111;
}

/* Place Order */
.place-order-btn {
  width: 100%;
  padding: 1rem;
  background: #c9a84c;
  color: #111;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 2px;
  margin-top: 12px;
}
.place-order-btn:hover { background: #111; color: #c9a84c; }

/* Success */
.order-success {
  text-align: center;
  padding: 20px 0;
}
.order-success-msg {
  color: #27ae60;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
}
.see-orders-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #111;
  color: #c9a84c;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 1px;
}
.see-orders-btn:hover { background: #c9a84c; color: #111; }

.place-order-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: #c9a84c;
  color: #111;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 2px;
  margin-top: 16px;
  margin-bottom: 0;
  text-align: center;
  text-decoration: none;
  border-radius: 0;
  box-sizing: border-box;
}

.place-order-btn:hover { background: #111; color: #c9a84c; }

.proceed-hint {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: block;
  clear: both;
}