/* E-COMMERCE ADDITIONS FOR LUMAONA */
.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #17355E;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(23, 53, 94, 0.22);
  transition: transform 0.18s ease, background 0.18s ease;
}
.cart-trigger:hover { transform: translateY(-2px); background: #2E8B57; }
.cart-badge {
  background: #FFD166;
  color: #17355E;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 800;
}

/* Catalog Section */
.shop-section {
  padding: 72px 20px;
  background: linear-gradient(180deg, #F4FBF7 0%, #FFFFFF 100%);
}
.shop-container { max-width: 1180px; margin: 0 auto; }
.shop-header { text-align: center; margin-bottom: 32px; }
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.filter-pill {
  border: 2px solid #D9EDE2;
  background: #fff;
  color: #17355E;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-pill.is-active, .filter-pill:hover {
  background: #2E8B57;
  border-color: #2E8B57;
  color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 2px solid #E6F2EC;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(23, 53, 94, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(23, 53, 94, 0.11);
}
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #F7FBF9;
  overflow: hidden;
  cursor: pointer;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #17355E;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}
.product-discount-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #FF6B9E;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
}
.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.product-cat {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2E8B57;
}
.product-title {
  margin: 0;
  font-family: 'Baloo 2', cursive, sans-serif;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #17355E;
  cursor: pointer;
}
.product-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: #4E6278;
}
.variant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.variant-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1.5px solid #D5E2EC;
  background: #F9FCFA;
  font-size: 0.82rem;
  font-weight: 700;
  color: #17355E;
  cursor: pointer;
}
.variant-chip.is-selected {
  border-color: #17355E;
  background: #EAF6F0;
}
.variant-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.price-now {
  font-size: 1.45rem;
  font-weight: 800;
  color: #17355E;
}
.price-old {
  font-size: 0.98rem;
  color: #8CA0B3;
  text-decoration: line-through;
}
.stock-text {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2E8B57;
}
.stock-text.out { color: #D64545; }
.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 6px;
}
.btn-add-cart {
  background: #2E8B57;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-add-cart:hover { background: #236E44; }
.btn-add-cart:disabled { background: #B8C8C0; cursor: not-allowed; }
.btn-detail {
  background: #EEF5F1;
  color: #17355E;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Cart Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 35, 62, 0.52);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  justify-content: flex-end;
}
.drawer-backdrop.is-open { display: flex; }
.cart-drawer {
  width: min(440px, 100vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0,0,0,0.18);
}
.drawer-header {
  padding: 20px 22px;
  border-bottom: 1px solid #E8EFF5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-header h3 { margin: 0; color: #17355E; font-size: 1.25rem; }
.icon-close {
  background: #F1F5F9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: #17355E;
}
.shipping-meter {
  background: #F0FAF4;
  padding: 12px 22px;
  font-size: 0.88rem;
  color: #17355E;
  font-weight: 700;
  border-bottom: 1px solid #DCF0E4;
}
.shipping-bar {
  height: 7px;
  background: #D6EBDF;
  border-radius: 999px;
  margin-top: 7px;
  overflow: hidden;
}
.shipping-bar-fill {
  height: 100%;
  background: #2E8B57;
  border-radius: 999px;
  transition: width 0.25s ease;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1.5px solid #E8F0EB;
  border-radius: 16px;
}
.cart-item img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
}
.cart-item-title { font-weight: 800; color: #17355E; font-size: 0.95rem; }
.cart-item-var { font-size: 0.82rem; color: #5C7085; }
.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  background: #F4F8F6;
  border-radius: 999px;
  padding: 3px 8px;
}
.qty-btn {
  border: none;
  background: transparent;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  color: #17355E;
  width: 22px;
}
.cart-remove {
  background: transparent;
  border: none;
  color: #B44;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}
.drawer-footer {
  padding: 18px 22px 24px;
  border-top: 1px solid #E8EFF5;
  background: #FAFCFB;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #4E6278;
  font-size: 0.95rem;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
  color: #17355E;
  margin: 12px 0 16px;
}
.btn-checkout {
  width: 100%;
  background: #17355E;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 15px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
}
.btn-checkout:hover { background: #2E8B57; }

/* Modals (Product Detail & Checkout) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 35, 62, 0.58);
  backdrop-filter: blur(4px);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.is-open { display: flex; }
.modal-card {
  background: #fff;
  border-radius: 26px;
  width: min(720px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 26px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: #F1F5F9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.checkout-grid .full { grid-column: 1 / -1; }
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-group label { font-size: 0.85rem; font-weight: 700; color: #17355E; }
.field-group input, .field-group textarea, .field-group select {
  border: 1.5px solid #D5E2EC;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
}
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 18px;
}
.pay-option {
  border: 2px solid #DCE7F0;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.88rem;
  color: #17355E;
  background: #fff;
}
.pay-option.is-selected {
  border-color: #2E8B57;
  background: #EFFAF4;
}
.pay-option small { display: block; font-weight: 600; color: #5C7085; font-size: 0.75rem; margin-top: 3px; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: start;
}
.detail-grid img { width: 100%; border-radius: 18px; object-fit: cover; }

@media (max-width: 700px) {
  .checkout-grid, .detail-grid, .payment-methods { grid-template-columns: 1fr; }
}
