/* JUST MEWA — Storefront Design System
   Warm luxury editorial · responsive · shared across shop/home/category
*/

/* ═══════════════════════════════════════════════
   JUSTMEWA — Premium Shop Page
   Design: warm luxury editorial, earthy & natural
═══════════════════════════════════════════════ */

:root {
  --cream:        #faf7f2;
  --cream-dark:   #f2ede4;
  --parchment:    #e8e0d2;
  --brown-light:  #c9a96e;
  --brown:        #8b6914;
  --brown-dark:   #5c4209;
  --forest:       #2d5a3d;
  --forest-mid:   #3d7a54;
  --forest-light: #e8f2ec;
  --ruby:         #b5361a;
  --ruby-light:   #fdf0ed;
  --amber:        #c97c10;
  --amber-light:  #fff5e6;

  --text-ink:     #1c1712;
  --text-mid:     #5a4f3e;
  --text-soft:    #9a8e7d;

  --card-bg:      #ffffff;
  --border-soft:  rgba(139, 105, 20, 0.12);
  --border-warm:  rgba(139, 105, 20, 0.25);

  --shadow-sm:    0 1px 4px rgba(92,66,9,0.06), 0 2px 12px rgba(92,66,9,0.04);
  --shadow-md:    0 4px 20px rgba(92,66,9,0.10), 0 1px 4px rgba(92,66,9,0.06);
  --shadow-lg:    0 12px 40px rgba(92,66,9,0.14), 0 2px 8px rgba(92,66,9,0.08);

  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

body.site-storefront {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-ink);
  -webkit-font-smoothing: antialiased;
}

/* ── Page wrapper ── */
.shop-section {
  padding: 3rem 0 5rem;
  min-height: 80vh;
}

/* ══════════════════════════════
   SIDEBAR
══════════════════════════════ */
.sidebar-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.sidebar-head {
  padding: 0.9rem 1.25rem;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-head h5 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.sidebar-head.amber-head { background: var(--brown); }

.sidebar-body { padding: 1.25rem; }

/* Filter labels */
.filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.45rem;
  display: block;
}

/* Form controls */
.shop-input,
.shop-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--text-ink);
  background: var(--cream);
  border: 1px solid var(--parchment);
  border-radius: var(--r-sm);
  padding: 0.55rem 0.85rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.shop-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a8e7d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.shop-input:focus, .shop-select:focus {
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 3px rgba(45,90,61,0.1);
}

.search-wrap {
  position: relative;
}
.search-wrap .search-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
  width: 16px; height: 16px;
}
.search-wrap .shop-input { padding-right: 2.5rem; }

/* Price range row */
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

/* Checkboxes */
.check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  cursor: pointer;
}
.check-item input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--forest);
  cursor: pointer;
  flex-shrink: 0;
}
.check-item label {
  font-size: 0.83rem;
  color: var(--text-mid);
  cursor: pointer;
  user-select: none;
}

/* Divider within filter */
.filter-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 1rem 0;
}

/* Filter buttons */
.btn-apply {
  display: block;
  width: 100%;
  padding: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.18s var(--ease), transform 0.15s var(--ease);
  text-align: center;
  text-decoration: none;
}
.btn-apply:hover { background: var(--forest-mid); transform: translateY(-1px); color: #fff; }

.btn-clear {
  display: block;
  width: 100%;
  padding: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--parchment);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  text-align: center;
  text-decoration: none;
  margin-top: 0.5rem;
}
.btn-clear:hover {
  background: var(--cream-dark);
  color: var(--text-mid);
  border-color: var(--border-warm);
}

/* Featured categories list */
.cat-list { list-style: none; }
.cat-list li + li { border-top: 1px solid var(--border-soft); }
.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.25rem;
  font-size: 0.84rem;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
.cat-list a:hover { color: var(--forest); }
.cat-list .cat-count {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--forest-light);
  color: var(--forest);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Promo card (shop / category sidebar) */
.promo-card {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 130px;
  height: 130px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.promo-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

/* Content above decorative circles; override global h5 brown from style.css */
.promo-card > * {
  position: relative;
  z-index: 1;
}

.promo-card h5 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.25;
  color: #fff !important;
}

.promo-card p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.92) !important;
  opacity: 1;
  margin-bottom: 0.75rem;
  line-height: 1.55;
}

.promo-card .promo-code {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.15);
  border: 1px dashed rgba(255, 255, 255, 0.45);
  border-radius: var(--r-xs);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
  display: inline-block;
}
.btn-promo {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(255,255,255,0.95);
  color: var(--forest);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn-promo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  color: var(--forest);
}

/* Mobile filter toggle */
.filter-toggle-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}


/* ══════════════════════════════
   PRODUCT LISTING AREA
══════════════════════════════ */
.listing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}

.listing-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--text-ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.listing-count {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
}

.view-toggle { display: flex; gap: 0.35rem; }

.view-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--parchment);
  border-radius: var(--r-sm);
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.view-btn:hover, .view-btn.active {
  background: var(--text-ink);
  border-color: var(--text-ink);
  color: #fff;
}


/* ══════════════════════════════
   PRODUCT CARD
══════════════════════════════ */
#product-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 991px) {
  #product-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  #product-container { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}

.product-item {
  animation: fadeUp 0.4s var(--ease) both;
}
.product-item:nth-child(1) { animation-delay: 0.04s; }
.product-item:nth-child(2) { animation-delay: 0.08s; }
.product-item:nth-child(3) { animation-delay: 0.12s; }
.product-item:nth-child(4) { animation-delay: 0.16s; }
.product-item:nth-child(5) { animation-delay: 0.20s; }
.product-item:nth-child(6) { animation-delay: 0.24s; }
.product-item:nth-child(7) { animation-delay: 0.28s; }
.product-item:nth-child(8) { animation-delay: 0.32s; }
.product-item:nth-child(9) { animation-delay: 0.36s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), border-color 0.26s var(--ease);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-warm);
}

/* Image area */
.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--cream-dark);
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
  filter: saturate(0.92);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

/* Gradient overlay on hover */
.product-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(28,23,18,0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.product-card:hover .product-img-wrap::after { opacity: 1; }

/* Badges */
.badge-discount {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ruby);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(181,54,26,0.35);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.badge-featured {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--amber);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(201,124,16,0.35);
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Quick view */
.quick-view-wrap {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 5;
  white-space: nowrap;
}
.product-card:hover .quick-view-wrap {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.btn-quick-view {
  background: rgba(255,255,255,0.95);
  color: var(--text-ink);
  border: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
  transition: all 0.15s var(--ease);
}
.btn-quick-view:hover {
  background: var(--text-ink);
  color: #fff;
  transform: scale(1.04);
}

/* Card body */
.product-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.product-cat-badge {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--cream-dark);
  color: var(--text-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}

.product-name {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.product-desc {
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.7rem;
}

/* Star rating */
.rating-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}
.stars { color: #e8a020; font-size: 0.75rem; line-height: 1; }
.star-count { font-size: 0.73rem; color: var(--text-soft); }

/* Variant select */
.variant-row { margin-bottom: 0.65rem; }
.variant-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-ink);
  background: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239a8e7d' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  border: 1px solid var(--parchment);
  border-radius: var(--r-xs);
  padding: 0.42rem 2rem 0.42rem 0.65rem;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  cursor: pointer;
}
.variant-select:focus {
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 3px rgba(45,90,61,0.1);
}

/* Price + stock row */
.price-stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.price-block {}

.price-original {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-soft);
  text-decoration: line-through;
  margin-right: 0.3rem;
}

.price-current {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-ink);
  letter-spacing: -0.02em;
}
.price-current.is-discounted { color: var(--forest); }

.price-variant-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-left: 0.2rem;
}

.price-tax {
  font-size: 0.67rem;
  color: var(--text-soft);
  margin-top: 1px;
}

.stock-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.stock-in {
  background: var(--forest-light);
  color: var(--forest);
}
.stock-out {
  background: var(--ruby-light);
  color: var(--ruby);
}

/* Quantity selector */
.qty-row { margin-bottom: 0.9rem; }
.qty-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
  display: block;
}
.qty-group {
  display: flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--parchment);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--cream);
}
.qty-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-mid);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  line-height: 1;
  font-family: var(--font-body);
}
.qty-btn:hover { background: var(--cream-dark); color: var(--text-ink); }
.qty-input {
  width: 44px; height: 34px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-ink);
  outline: none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Action buttons */
.actions { display: grid; gap: 0.5rem; margin-top: auto; }

.btn-view-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-mid);
  background: transparent;
  border: 1px solid var(--parchment);
  border-radius: var(--r-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.btn-view-details:hover {
  background: var(--cream-dark);
  border-color: var(--border-warm);
  color: var(--text-ink);
}

.btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--forest);
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.18s var(--ease), transform 0.15s var(--ease), box-shadow 0.18s var(--ease);
  width: 100%;
  position: relative;
  overflow: hidden;
}
.btn-add-cart:hover {
  background: var(--brown-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45,90,61,0.3);
}
.btn-add-cart:active { transform: translateY(0); box-shadow: none; }


/* ══════════════════════════════
   LIST VIEW
══════════════════════════════ */
#product-container.list-mode {
  grid-template-columns: 1fr;
}

#product-container.list-mode .product-card {
  flex-direction: row;
  border-radius: var(--r-lg);
}

#product-container.list-mode .product-img-wrap {
  width: 220px;
  flex-shrink: 0;
  aspect-ratio: unset;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}

#product-container.list-mode .product-img-wrap img {
  height: 100%;
}
#product-container.list-mode .product-img-wrap::after {
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}

@media (max-width: 576px) {
  #product-container.list-mode .product-card { flex-direction: column; }
  #product-container.list-mode .product-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
}


/* ══════════════════════════════
   QUICK VIEW MODAL
══════════════════════════════ */
.modal-content {
  border: none;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-body);
}
.modal-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border-soft);
  padding: 1.25rem 1.5rem;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-ink);
}
.modal-body {
  background: var(--card-bg);
  padding: 1.5rem;
}
.modal-body img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.modal-body .btn-primary {
  background: var(--forest) !important;
  border: none !important;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 1.5rem;
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.modal-body .btn-primary:hover {
  background: var(--brown-dark) !important;
  box-shadow: 0 4px 16px rgba(45,90,61,0.3);
}


/* ══════════════════════════════
   PAGINATION
══════════════════════════════ */
.pagination-wrap { margin-top: 3rem; }
.pagination {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 0.8rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid) !important;
  background: var(--card-bg) !important;
  border: 1px solid var(--parchment) !important;
  border-radius: var(--r-sm) !important;
  text-decoration: none;
  transition: all 0.18s var(--ease);
}
.page-link:hover {
  background: var(--cream-dark) !important;
  border-color: var(--border-warm) !important;
  color: var(--text-ink) !important;
}
.page-item.active .page-link {
  background: var(--text-ink) !important;
  border-color: var(--text-ink) !important;
  color: #fff !important;
}
.page-item.disabled .page-link { opacity: 0.4; pointer-events: none; }


/* ══════════════════════════════
   EMPTY STATE
══════════════════════════════ */
.empty-state {
  padding: 5rem 2rem;
  text-align: center;
}
.empty-icon {
  width: 56px; height: 56px;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
}
.empty-state h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-ink);
  margin-bottom: 0.5rem;
}
.empty-state p {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
}
.btn-empty {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--text-ink);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), transform 0.15s var(--ease);
}
.btn-empty:hover { background: var(--forest); color: #fff; transform: translateY(-1px); }

/* ══════════════════════════════
   FILTER TOGGLE BUTTON (mobile)
══════════════════════════════ */
.filter-toggle-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  padding: 0;
  display: none;
  align-items: center;
  transition: color 0.15s;
}
.filter-toggle-btn:hover { color: #fff; }

@media (max-width: 991px) {
  .filter-toggle-btn { display: flex; }
}


/* ══════════════════════════════
   RESPONSIVE — TABLET (≤991px)
══════════════════════════════ */
@media (max-width: 991px) {
  .shop-section { padding: 1.5rem 0 3.5rem; }

  .col-lg-3 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
  .col-lg-9 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }

  /* Category list as pill chips */
  .cat-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .cat-list li + li { border-top: none; }
  .cat-list a {
    background: var(--cream-dark);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.78rem;
    border: 1px solid var(--border-soft);
  }

  .sidebar-body { padding: 1rem; }
  #product-container { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .listing-title { font-size: 1.75rem; }
}


/* ══════════════════════════════
   RESPONSIVE — MOBILE (≤767px)
══════════════════════════════ */
@media (max-width: 767px) {
  .shop-section { padding: 1rem 0 3rem; }

  #product-container { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  .product-body { padding: 0.75rem 0.85rem 0.9rem; }
  .product-name { font-size: 0.85rem; }
  .product-desc { font-size: 0.74rem; }
  .product-cat-badge { font-size: 0.63rem; margin-bottom: 0.35rem; }
  .price-current { font-size: 0.98rem; }
  .price-original { font-size: 0.74rem; }

  .qty-btn { width: 30px; height: 30px; font-size: 0.9rem; }
  .qty-input { width: 38px; height: 30px; font-size: 0.8rem; }
  .qty-row { margin-bottom: 0.6rem; }

  .btn-view-details { padding: 0.45rem 0.6rem; font-size: 0.73rem; }
  .btn-add-cart { padding: 0.5rem 0.6rem; font-size: 0.75rem; }
  .variant-select { font-size: 0.73rem; padding: 0.35rem 1.6rem 0.35rem 0.55rem; }

  .listing-title { font-size: 1.5rem; }
  .listing-header { margin-bottom: 1rem; padding-bottom: 0.85rem; }

  .pagination-wrap { margin-top: 1.75rem; }
  .page-link { min-width: 34px; height: 34px; font-size: 0.78rem; padding: 0 0.55rem; }

  .modal-dialog { margin: 0.75rem; }
  .modal-body { padding: 1rem; }
}


/* ══════════════════════════════
   RESPONSIVE — SMALL (≤480px)
══════════════════════════════ */
@media (max-width: 480px) {
  /* Keep 2 products per row on very small screens */
  #product-container { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

  #product-container.list-mode .product-card { flex-direction: column; }
  #product-container.list-mode .product-img-wrap {
    width: 100%; aspect-ratio: 4/3;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }

  /* Compact card body for 2-col mobile layout */
  .product-body { padding: 0.6rem 0.7rem 0.75rem; gap: 0; }
  .product-name { font-size: 0.78rem; -webkit-line-clamp: 2; margin-bottom: 0.2rem; }
  .product-desc { display: none; } /* Hide description to save space */
  .product-cat-badge { font-size: 0.6rem; margin-bottom: 0.3rem; padding: 2px 7px; }
  .rating-row { margin-bottom: 0.4rem; }
  .price-current { font-size: 0.88rem; }
  .price-original { font-size: 0.68rem; }
  .price-tax { font-size: 0.6rem; }
  .stock-badge { font-size: 0.6rem; padding: 3px 7px; }
  .price-stock-row { margin-bottom: 0.4rem; gap: 0.2rem; }
  .variant-row { margin-bottom: 0.4rem; }
  .variant-select { font-size: 0.68rem; padding: 0.3rem 1.4rem 0.3rem 0.45rem; }
  .qty-row { margin-bottom: 0.5rem; }
  .qty-btn { width: 28px; height: 28px; font-size: 0.85rem; }
  .qty-input { width: 34px; height: 28px; font-size: 0.75rem; }
  .btn-view-details { padding: 0.38rem 0.5rem; font-size: 0.68rem; }
  .btn-add-cart { padding: 0.42rem 0.5rem; font-size: 0.7rem; gap: 0.3rem; }
  .btn-add-cart i { width: 12px !important; height: 12px !important; }
  .listing-title { font-size: 1.2rem; }
}

/* ═══ HOME PAGE ═══ */
{% block extra_css %}
<style>
    /* ═══════════════════════════════════════════════
   JUSTMEWA — Home Page Mobile Responsive CSS
   Add this at the bottom of your existing styles
═══════════════════════════════════════════════ */


/* ══════════════════════════════
   HERO SECTION
══════════════════════════════ */
@media (max-width: 991px) {
  .hero-section .display-4 {
    font-size: 2.2rem;
  }
  .hero-section .lead {
    font-size: 1rem;
  }
  .hero-image {
    max-height: 380px;
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
  }
  .hero-section .display-4 {
    font-size: 1.75rem;
  }
  .hero-section .lead {
    font-size: 0.95rem;
  }
  .hero-section .d-flex.gap-3 {
    justify-content: center;
  }
  .hero-section .btn-lg {
    font-size: 0.88rem;
    padding: 0.6rem 1.25rem;
  }
  .hero-image {
    max-height: 260px;
    margin-top: 1.5rem;
  }
  .hero-promotional-banner {
    justify-content: center;
  }
  .floating-element {
    display: none;
  }
}


/* ══════════════════════════════
   SECTION HEADINGS
══════════════════════════════ */
@media (max-width: 767px) {
  .display-5.fw-bold {
    font-size: 1.6rem;
  }
  section.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .mb-5 {
    margin-bottom: 2rem !important;
  }
}

@media (max-width: 480px) {
  .display-5.fw-bold {
    font-size: 1.35rem;
  }
}


/* ══════════════════════════════
   PRODUCT CARDS (home page grid)
══════════════════════════════ */
@media (max-width: 991px) {
  /* 4-col → 3-col on tablet */
  .col-lg-3.col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 767px) {
  /* 2 columns on mobile */
  .col-lg-3.col-md-6 { flex: 0 0 50%; max-width: 50%; }

  .product-body { padding: 0.75rem 0.85rem 0.9rem; }
  .product-name { font-size: 0.85rem; }
  .product-desc { font-size: 0.74rem; }
  .product-cat-badge { font-size: 0.63rem; }
  .price-current { font-size: 0.98rem; }

  .qty-btn { width: 30px; height: 30px; font-size: 0.9rem; }
  .qty-input { width: 38px; height: 30px; font-size: 0.8rem; }
  .qty-row { margin-bottom: 0.6rem; }

  .btn-view-details { padding: 0.45rem 0.6rem; font-size: 0.73rem; }
  .btn-add-cart { padding: 0.5rem 0.6rem; font-size: 0.75rem; }
  .variant-select { font-size: 0.73rem; padding: 0.35rem 1.6rem 0.35rem 0.55rem; }
}

@media (max-width: 480px) {
  /* Single column on small phones */
  .col-lg-3.col-md-6 { flex: 0 0 100%; max-width: 100%; }

  .product-body { padding: 1rem 1.1rem 1.1rem; }
  .product-name { font-size: 0.9rem; }
  .product-desc { display: block; font-size: 0.76rem; }
  .price-current { font-size: 1rem; }
  .qty-btn { width: 34px; height: 34px; }
  .qty-input { width: 42px; height: 34px; }
  .btn-view-details { font-size: 0.78rem; padding: 0.5rem 0.75rem; }
  .btn-add-cart { font-size: 0.8rem; padding: 0.55rem 0.75rem; }
}


/* ══════════════════════════════
   FEATURE CARDS
══════════════════════════════ */
@media (max-width: 767px) {
  .feature-card .card-body { padding: 1.5rem !important; }
  .feature-card .feature-icon {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 1rem !important;
  }
  .feature-card .feature-icon i {
    width: 28px !important;
    height: 28px !important;
  }
  .feature-card .card-title { font-size: 1rem; }
  .feature-card .card-text { font-size: 0.85rem; }
}


/* ══════════════════════════════
   CERTIFICATION CARDS
══════════════════════════════ */
@media (max-width: 767px) {
  .certification-card { padding: 1rem 0.5rem; }
  .certification-card .bg-light.rounded-circle {
    width: 72px !important;
    height: 72px !important;
  }
  .certification-card .bg-light.rounded-circle i {
    width: 32px !important;
    height: 32px !important;
  }
  .certification-card h5 { font-size: 0.95rem; }
  .certification-card p { font-size: 0.8rem; }
}


/* ══════════════════════════════
   TESTIMONIALS
══════════════════════════════ */
@media (max-width: 767px) {
  .testimonial-card { padding: 1.25rem; }
  .testimonial-text { font-size: 0.88rem; }
  .testimonial-author { font-size: 0.9rem; }
}


/* ══════════════════════════════
   BLOG CARDS
══════════════════════════════ */
@media (max-width: 767px) {
  .blog-card .card-img-top,
  .blog-card > div[style*="height: 200px"] {
    height: 160px !important;
  }
  .blog-card .card-title { font-size: 0.95rem; }
  .blog-card .card-text { font-size: 0.8rem; }
}


/* ══════════════════════════════
   CTA SECTION
══════════════════════════════ */
@media (max-width: 767px) {
  section[style*="linear-gradient"] .display-5 {
    font-size: 1.5rem;
  }
  section[style*="linear-gradient"] .lead {
    font-size: 0.9rem;
  }
  section[style*="linear-gradient"] .btn-lg {
    font-size: 0.88rem;
    padding: 0.6rem 1.25rem;
  }
}


/* ══════════════════════════════
   VIEW ALL BUTTONS
══════════════════════════════ */
@media (max-width: 767px) {
  .btn.btn-outline-primary.btn-lg,
  .btn.btn-light.btn-lg {
    font-size: 0.88rem;
    padding: 0.6rem 1.5rem;
  }
}


/* ══════════════════════════════
   SHOP PAGE RESPONSIVE
   (already in shop.html but kept
    here for shared stylesheet)
══════════════════════════════ */
@media (max-width: 991px) {
  .filter-toggle-btn { display: flex; }

  .col-lg-3 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
  .col-lg-9 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }

  .cat-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .cat-list li + li { border-top: none; }
  .cat-list a {
    background: var(--cream-dark);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.78rem;
    border: 1px solid var(--border-soft);
  }

  .sidebar-body { padding: 1rem; }
  #product-container { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .listing-title { font-size: 1.75rem; }
  .shop-section { padding: 1.5rem 0 3.5rem; }
}

@media (max-width: 767px) {
  .shop-section { padding: 1rem 0 3rem; }
  #product-container { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .listing-title { font-size: 1.5rem; }
  .listing-header { margin-bottom: 1rem; padding-bottom: 0.85rem; }
  .pagination-wrap { margin-top: 1.75rem; }
  .page-link { min-width: 34px; height: 34px; font-size: 0.78rem; padding: 0 0.55rem; }
  .modal-dialog { margin: 0.75rem; }
  .modal-body { padding: 1rem; }
}

@media (max-width: 480px) {
  /* Keep 2 products per row on very small screens */
  #product-container { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  #product-container.list-mode .product-card { flex-direction: column; }
  #product-container.list-mode .product-img-wrap {
    width: 100%; aspect-ratio: 4/3;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }
  .listing-title { font-size: 1.35rem; }
}

/* ═══════════════════════════════════════════════
   HOME PAGE — Product Grid sections
   Makes featured/recently-viewed/category grids
   look identical to the shop page product grid
═══════════════════════════════════════════════ */

/* Target every product row on the home page.
   These sections use Bootstrap's row g-4 with
   col-lg-3 col-md-6 children. We convert them
   into the same CSS grid the shop page uses. */

.py-5 .row.g-4:has(> .col-lg-3 > .product-item),
.py-5 .row.g-4:has(> [class*="col-"] > .product-item) {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  /* Reset Bootstrap row gutters */
  margin-left: 0;
  margin-right: 0;
}

/* Each Bootstrap column wrapper becomes a plain grid cell */
.py-5 .row.g-4:has(> .col-lg-3 > .product-item) > [class*="col-"],
.py-5 .row.g-4:has(> [class*="col-"] > .product-item) > [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding-left: 0;
  padding-right: 0;
}

/* product-item fills the cell */
.py-5 .row.g-4:has(> [class*="col-"] > .product-item) > [class*="col-"] > .product-item {
  height: 100%;
}

/* Fade-in animation (same as shop page) */
.py-5 .product-item {
  animation: fadeUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.py-5 .product-item:nth-child(1) { animation-delay: 0.04s; }
.py-5 .product-item:nth-child(2) { animation-delay: 0.08s; }
.py-5 .product-item:nth-child(3) { animation-delay: 0.12s; }
.py-5 .product-item:nth-child(4) { animation-delay: 0.16s; }
.py-5 .product-item:nth-child(5) { animation-delay: 0.20s; }
.py-5 .product-item:nth-child(6) { animation-delay: 0.24s; }
.py-5 .product-item:nth-child(7) { animation-delay: 0.28s; }
.py-5 .product-item:nth-child(8) { animation-delay: 0.32s; }

/* ── Responsive breakpoints ── */
@media (max-width: 1199px) {
  .py-5 .row.g-4:has(> [class*="col-"] > .product-item) {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .py-5 .row.g-4:has(> [class*="col-"] > .product-item) {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .py-5 .row.g-4:has(> [class*="col-"] > .product-item) {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}









    .hero-animations {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1;
    }

    .floating-element {
        position: absolute;
        animation: float 6s ease-in-out infinite;
    }

    .floating-element i {
        width: 24px;
        height: 24px;
    }

    @keyframes float {
        0% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-20px);
        }

        100% {
            transform: translateY(0px);
        }
    }

    .floating-element:nth-child(2) {
        animation-delay: 2s;
    }

    /* Product card quantity selector */
    .product-card .input-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }

    .product-card .input-group-sm .form-control {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
        text-align: center;
    }

    .product-card .form-label {
        margin-bottom: 0.25rem;
        font-weight: 500;
    }

/* ══════════════════════════════
   GLOBAL THEME (navbar, hero, shared)
══════════════════════════════ */
.site-navbar .navbar-brand-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.site-navbar .navbar-brand-divider {
  border-left: 2px solid var(--brown-light);
  padding-left: 1rem;
}

.site-navbar .navbar-brand-text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--brown-light);
}

.site-navbar .navbar-brand-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.5rem, 1.2vw, 0.65rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--brown-light);
  text-transform: uppercase;
}

.site-navbar .brand-accent-line {
  display: inline-block;
  width: 15px;
  height: 1px;
  background-color: var(--brown-light);
}

.hero-section {
  background: linear-gradient(135deg, var(--forest) 0%, var(--brown-dark) 55%, #1c1712 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

.hero-section h1,
.hero-section .display-4 {
  font-family: var(--font-display);
  color: #fff;
  font-weight: 600;
}

.hero-section p,
.hero-section .lead {
  color: rgba(255, 255, 255, 0.9);
}

/* Hero CTAs — must beat .site-storefront .btn-primary (forest + wrong text color) */
.site-storefront .hero-section .btn-primary,
.site-storefront .hero-section .btn-primary.btn-lg {
  background: linear-gradient(180deg, #e2c989 0%, var(--brown-light) 100%) !important;
  border: none !important;
  border-color: transparent !important;
  color: var(--text-ink) !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  padding: 0.75rem 1.75rem !important;
}

.site-storefront .hero-section .btn-primary:hover,
.site-storefront .hero-section .btn-primary.btn-lg:hover {
  background: #fff !important;
  color: var(--forest) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2) !important;
}

.site-storefront .hero-section .btn-primary i,
.site-storefront .hero-section .btn-primary svg {
  color: currentColor !important;
}

.site-storefront .hero-section .btn-outline-light,
.site-storefront .hero-section .btn-outline-light.btn-lg {
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 999px !important;
  font-weight: 600;
  padding: 0.75rem 1.75rem !important;
  background: transparent !important;
}

.site-storefront .hero-section .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-color: #fff !important;
}

.hero-promotional-banner {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-md);
  animation: none;
}

.hero-promotional-banner .text-content {
  color: #fff;
}

.section-heading,
.display-5.fw-bold {
  font-family: var(--font-display);
  color: var(--text-ink);
  font-weight: 500;
}

.section-lead,
.lead.text-muted {
  color: var(--text-soft) !important;
}

main {
  background: var(--cream);
}

.site-storefront .btn-primary {
  background: var(--forest) !important;
  border-color: var(--forest) !important;
  border-radius: var(--r-sm) !important;
  font-family: var(--font-body);
  font-weight: 600;
}

.site-storefront .btn-primary:hover {
  background: var(--forest-mid) !important;
  border-color: var(--forest-mid) !important;
}

.site-storefront .btn-primary.btn-sm {
  padding: 0.35rem 0.65rem !important;
  border-radius: var(--r-sm) !important;
  box-shadow: none;
}

.site-storefront .btn-outline-primary {
  color: var(--forest) !important;
  border-color: var(--forest) !important;
  border-radius: var(--r-sm) !important;
}

.site-storefront .btn-outline-primary:hover {
  background: var(--forest) !important;
  color: #fff !important;
}

.site-storefront .testimonial-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
}

.site-storefront .feature-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-storefront .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.site-storefront .nav-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85) !important;
  border-radius: 6px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.site-storefront .nav-link:hover,
.site-storefront .nav-link:focus {
  color: var(--brown-light) !important;
  background: rgba(201, 169, 110, 0.1);
}

.site-storefront .dropdown-menu {
  background: #1a2e1f;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
}

.site-storefront .dropdown-item {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  border-radius: 6px;
}

.site-storefront .dropdown-item:hover {
  background: rgba(201, 169, 110, 0.12);
  color: var(--brown-light);
}

.site-storefront .footer {
  background: linear-gradient(160deg, #111c13 0%, #0c1a10 100%) !important;
  border-top: 1px solid rgba(201, 169, 110, 0.18);
}

.site-storefront .footer h5,
.site-storefront .footer h6 {
  font-family: var(--font-display);
}

.site-storefront .navbar.scrolled {
  background: rgba(15, 30, 20, 0.97);
  backdrop-filter: blur(12px);
}

.site-storefront section.bg-light {
  background-color: var(--cream-dark) !important;
}

.site-storefront .section-accent {
  height: 3px;
  width: 60px;
  background: var(--forest);
  border-radius: 999px;
  margin: 0 auto 1rem;
}

.site-storefront .feature-icon {
  background: var(--forest-light) !important;
  color: var(--forest) !important;
}

/* ═══════════════════════════════════════════════
   CONTRAST: dark / tinted panels
   style.css sets h1–h6 to --primary-brown; fix on
   green headers, promos, and hero blocks.
═══════════════════════════════════════════════ */
.site-storefront .sidebar-head,
.site-storefront .sidebar-head h5,
.site-storefront .sf-panel-head,
.site-storefront .sf-panel-head h5,
.site-storefront .sf-panel-head--accent,
.site-storefront .sf-panel-head--accent h5,
.site-storefront .card-header.bg-primary,
.site-storefront .card-header.bg-primary h5,
.site-storefront .card-header.bg-primary .mb-0,
.site-storefront .card-header.bg-success,
.site-storefront .card-header.bg-success h5,
.site-storefront .card-header.bg-success .mb-0,
.site-storefront .modal-header.bg-primary,
.site-storefront .modal-header.bg-primary .modal-title,
.site-storefront .modal-header.bg-primary h5,
.site-storefront #upiModal .modal-header,
.site-storefront #upiModal .modal-header .modal-title {
  color: #fff !important;
}

.site-storefront .card-header.bg-primary i,
.site-storefront .card-header.bg-success i,
.site-storefront .sf-panel-head i {
  color: rgba(255, 255, 255, 0.9);
}

.site-storefront .hero-section h1,
.site-storefront .hero-section .display-4 {
  color: #fff !important;
}

.site-storefront .hero-promotional-banner {
  color: #fff;
}

.site-storefront .hero-promotional-banner .text-content,
.site-storefront .hero-promotional-banner h5,
.site-storefront .hero-promotional-banner p {
  color: #fff !important;
}

/* Amber / brown sidebar header (Featured Categories) */
.site-storefront .sidebar-head.amber-head,
.site-storefront .sidebar-head.amber-head h5 {
  color: #fff !important;
}

@media (max-width: 991px) {
  .site-storefront .navbar-collapse {
    background: #0f1e14;
    border-top: 1px solid rgba(201, 169, 110, 0.15);
    margin-top: 0.5rem;
    padding: 0.75rem 0.5rem 1rem;
    border-radius: 0 0 12px 12px;
  }
}

@media (max-width: 991.98px) {
  .site-navbar .navbar-brand-logo {
    height: 35px;
  }
  .site-navbar .navbar-brand-divider {
    padding-left: 0.65rem;
  }
}


/* ═══════════════════════════════════════════════
   PRODUCT DETAIL · CART · CHECKOUT
═══════════════════════════════════════════════ */

.product-detail-page,
.cart-page,
.checkout-page {
  background: var(--cream);
}

.page-hero-title {
  font-family: var(--font-display);
  color: var(--text-ink);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.page-hero-lead {
  color: var(--text-soft);
  font-size: 1rem;
}

/* —— Product detail —— */
.product-detail-page .main-product-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease);
}

.product-detail-page .main-product-image:hover {
  transform: scale(1.02);
}

.product-detail-page .thumbnail-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.product-detail-page .thumbnail-image:hover,
.product-detail-page .thumbnail-image.active {
  border-color: var(--forest);
  transform: translateY(-2px);
}

.product-detail-page .product-detail-title {
  font-family: var(--font-display);
  color: var(--text-ink);
  line-height: 1.2;
}

.product-detail-page #display-price {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--forest);
}

.product-detail-page #original-price {
  font-size: 1.05rem;
}

.product-detail-page .variant-btn {
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.product-detail-page .variant-btn.active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.product-detail-page #increaseQty,
.product-detail-page #decreaseQty {
  width: 44px;
  font-weight: 700;
  border-color: var(--parchment);
}

.product-detail-page #quantityInput.qty-input {
  font-weight: 700;
  border-color: var(--parchment);
}

.product-detail-page .add-to-cart.btn-lg {
  min-width: 200px;
  border-radius: var(--r-sm);
}

.product-detail-page .wishlist-btn {
  min-width: 160px;
  border-radius: var(--r-sm);
}

.product-detail-page .breadcrumb a {
  color: var(--forest);
  text-decoration: none;
}

.product-detail-page .breadcrumb a:hover {
  color: var(--brown-dark);
}

.product-detail-page .sf-info-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1rem 1.15rem;
}

.product-detail-page .card {
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--r-lg) !important;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.product-detail-page .card-header.bg-primary {
  background: var(--forest) !important;
  border: none;
}

.product-detail-page .card.border-success {
  border-color: var(--forest-mid) !important;
  background: var(--forest-light);
}

.product-detail-page .share-buttons .btn {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-page #customers-also-viewed .card {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.product-detail-page #customers-also-viewed .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-detail-page .product-card a {
  color: inherit;
}

.product-detail-page .product-card .btn,
.product-detail-page .product-card .form-control,
.product-detail-page .product-card .form-select {
  pointer-events: auto;
}

/* —— Cart —— */
.cart-page .sf-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.cart-page .sf-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cart-page .sf-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  background: var(--forest-light);
  color: var(--forest);
}

.cart-page .sf-stat-icon.icon-savings {
  background: var(--amber-light);
  color: var(--amber);
}

.cart-page .sf-stat-icon.icon-total {
  background: var(--cream-dark);
  color: var(--brown);
}

.cart-page .sf-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cart-page .sf-panel-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-ink);
}

.cart-page .sf-panel-head--accent {
  background: var(--forest);
  color: #fff;
  border-bottom: none;
}

.cart-page .sf-panel-body {
  padding: 1.25rem;
}

.cart-page .cart-item-qty-col {
  min-width: 0;
}

.cart-page .cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  max-width: 100%;
}

.cart-page .quantity-wrapper {
  border: 1px solid var(--parchment);
  border-radius: var(--r-sm);
  padding: 4px 6px;
  background: var(--cream);
  flex-shrink: 0;
}

.cart-page .quantity-input {
  width: 52px;
  min-width: 40px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-family: var(--font-body);
}

.cart-page .quantity-input:focus {
  box-shadow: none;
  outline: none;
}

.cart-page .quantity-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--text-mid);
  flex-shrink: 0;
}

/* Compact refresh — overrides global pill .btn-primary on cart */
.cart-page .update-btn.btn-primary,
.cart-page .update-btn.btn-sm {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0 !important;
  margin: 0;
  border-radius: var(--r-sm) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transform: none;
}

.cart-page .update-btn.btn-primary:hover,
.cart-page .update-btn.btn-sm:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.cart-page .cart-item-price-col {
  text-align: right;
  padding-right: 0.5rem;
}

.cart-page .cart-item-remove-col {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.cart-page .cart-item-remove-col .btn-outline-danger {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}

.cart-page .cart-item-row {
  transition: background 0.15s var(--ease);
}

@media (max-width: 767.98px) {
  .cart-page .cart-qty-controls {
    margin-bottom: 0.5rem;
  }

  .cart-page .cart-item-price-col {
    text-align: left;
    padding-right: 0;
  }

  .cart-page .cart-item-remove-col {
    justify-content: flex-end;
    align-items: center;
  }
}

.cart-page .cart-product-image {
  height: 90px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.cart-page .sf-coupon-note {
  background: var(--forest-light);
  border: 1px solid rgba(45, 90, 61, 0.2);
  border-radius: var(--r-md);
}

.cart-page .sf-empty-state {
  padding: 3rem 2rem;
  text-align: center;
}

.cart-page .sf-summary-sticky {
  position: sticky;
  top: 90px;
}

@media (max-width: 767px) {
  .cart-page .sf-summary-sticky {
    position: static;
  }
}

/* —— Checkout —— */
.checkout-page .sf-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.checkout-page .sf-panel-head {
  background: var(--forest);
  color: #fff;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
}

.checkout-page .sf-panel-head h5 {
  color: #fff;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
}

.checkout-page .sf-panel-head.bg-success,
.checkout-page .sf-panel-head.bg-primary {
  background: var(--forest) !important;
  border: none;
}

.checkout-page .sf-panel-body {
  padding: 1.25rem;
}

.checkout-page .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.checkout-page .form-control,
.checkout-page .form-select {
  border: 1px solid var(--parchment);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  background: var(--cream);
}

.checkout-page .form-control:focus,
.checkout-page .form-select:focus {
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.12);
}

.checkout-page .payment-option {
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  border-color: var(--parchment) !important;
  border-radius: var(--r-md) !important;
}

.checkout-page .payment-option:hover {
  background: var(--cream-dark);
  border-color: var(--forest-mid) !important;
}

.checkout-page .payment-option:has(.form-check-input:checked) {
  border-color: var(--forest) !important;
  background: var(--forest-light);
  box-shadow: var(--shadow-sm);
}

.checkout-page .payment-option .form-check-input {
  margin-top: 0.85rem;
  margin-left: 0;
  accent-color: var(--forest);
}

.checkout-page .payment-option label {
  width: 100%;
  cursor: pointer;
  padding-left: 0.5rem;
}

.checkout-page .sf-summary-sticky {
  position: sticky;
  top: 90px;
}

.checkout-page .alert-info {
  background: var(--forest-light);
  border-color: rgba(45, 90, 61, 0.2);
  color: var(--text-mid);
}

.checkout-page #map-preview {
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
}

.checkout-page #upiModal .modal-content {
  border-radius: var(--r-xl);
  border: none;
  overflow: hidden;
}

.checkout-page #upiModal .modal-header {
  background: var(--forest);
  color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
  .product-detail-page .main-product-image {
    height: 400px;
  }
}

@media (max-width: 767px) {
  .product-detail-page .main-product-image {
    height: 300px;
  }
  .product-detail-page .display-5 {
    font-size: 1.65rem;
  }
  .product-detail-page .variant-btn {
    width: 100%;
  }
  .product-detail-page .thumbnail-image {
    width: 58px;
    height: 58px;
  }
  .product-detail-page .add-to-cart.btn-lg,
  .product-detail-page .wishlist-btn {
    width: 100%;
    min-width: unset;
  }
  .checkout-page .sf-summary-sticky {
    position: static;
  }
}

@media (max-width: 400px) {
  .product-detail-page .main-product-image {
    height: 240px;
  }
}