/* ══════════════════════════════════════════════
   RABIYA STAR — MAIN CSS
   Emerald & White Luxury Theme
   ══════════════════════════════════════════════ */

/* NOTE: Google Fonts are loaded in <head> via preconnected link tag.
   Do NOT add @import here — it blocks rendering. */

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  /* Emerald palette */
  --em:          #1a5c38;
  --em-mid:      #2d7a52;
  --em-dark:     #0f3521;
  --em-deep:     #0a2416;
  --em-light:    #e8f4ee;
  --em-pale:     #f2faf6;
  --em-glow:     rgba(26,92,56,0.12);

  /* Accent */
  --gold:        #c8a96e;
  --gold-light:  #f0e0c0;
  --gold-dark:   #9a7540;

  /* Neutrals */
  --white:       #ffffff;
  --off:         #f8faf9;
  --surface:     #f2f7f4;
  --ink:         #0e1a14;
  --ink-mid:     #2d3a32;
  --ink-soft:    #667a6e;
  --ink-ghost:   #9bada4;
  --border:      rgba(26,92,56,0.12);
  --border-mid:  rgba(26,92,56,0.22);

  /* Shadows */
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.14);
  --shadow-em:   0 4px 24px rgba(26,92,56,0.18);

  /* Typography */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;

  /* Radius */
  --r-sm:        6px;
  --r-md:        12px;
  --r-lg:        20px;
  --r-xl:        32px;

  /* Transition */
  --t:           0.22s cubic-bezier(0.4,0,0.2,1);
  --t-slow:      0.45s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--em);
  text-decoration: none;
  transition: color var(--t);
}

a:hover { color: var(--em-mid); }

ul, ol { list-style: none; }

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ─── Typography ────────────────────────────────────────── */
.serif { font-family: var(--font-serif); }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; }
h4, h5, h6 { font-family: var(--font-sans); line-height: 1.3; }

.display-xl {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.display-lg {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
}

.display-md {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
}

.section-label {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--em);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--t);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--em);
  color: var(--white);
  box-shadow: var(--shadow-em);
}
.btn-primary:hover {
  background: var(--em-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(26,92,56,0.28);
}

.btn-outline {
  background: transparent;
  color: var(--em);
  border: 2px solid var(--em);
}
.btn-outline:hover {
  background: var(--em);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: #2a1a00;
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--em-dark);
}
.btn-white:hover {
  background: var(--em-light);
  color: var(--em-dark);
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  color: var(--white);
}

.btn-sm { padding: 9px 20px; font-size: 11px; }
.btn-lg { padding: 18px 44px; font-size: 14px; }

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-success  { background: #d1fae5; color: #065f46; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-info     { background: #dbeafe; color: #1e40af; }
.badge-primary  { background: var(--em-light); color: var(--em-dark); }
.badge-shipped  { background: #ede9fe; color: #5b21b6; }
.badge-orange   { background: #ffedd5; color: #c2410c; }
.badge-secondary{ background: #f3f4f6; color: #374151; }

/* ─── Product Card ───────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--t);
  position: relative;
}

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

.product-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--surface);
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.product-card:hover .product-card__img img {
  transform: scale(1.07);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.product-card__actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--t);
  z-index: 2;
}

.product-card:hover .product-card__actions {
  opacity: 1;
  transform: translateX(0);
}

.product-card__action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--ink);
  transition: all var(--t);
  text-decoration: none;
  font-size: 16px;
}

.product-card__action-btn:hover {
  background: var(--em);
  color: var(--white);
}

.product-card__body {
  padding: 16px;
}

.product-card__category {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--em);
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card__name a { color: inherit; }
.product-card__name a:hover { color: var(--em); }

.product-card__price {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-current {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--em);
}

.price-original {
  font-size: 0.85rem;
  color: var(--ink-ghost);
  text-decoration: line-through;
}

.price-sale {
  font-size: 1.05rem;
  font-weight: 700;
  color: #c0392b;
}

.badge-sale {
  background: #fee2e2;
  color: #991b1b;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 700;
}

.product-card__footer {
  padding: 0 16px 16px;
}

.product-card__add-btn {
  width: 100%;
  padding: 11px;
  background: var(--em-light);
  color: var(--em-dark);
  border: none;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t);
}

.product-card__add-btn:hover {
  background: var(--em);
  color: var(--white);
}

/* ─── Product Grid (responsive columns defined in FIXES section) ── */

/* ─── Forms ──────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink-mid);
}

.form-control {
  padding: 13px 16px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  transition: all var(--t);
  outline: none;
  width: 100%;
}

.form-control:focus {
  border-color: var(--em);
  box-shadow: 0 0 0 4px var(--em-glow);
}

.form-control::placeholder { color: var(--ink-ghost); }

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23667a6e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─── Section Titles ─────────────────────────────────────── */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 600px;
  line-height: 1.75;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-subtitle { margin: 0 auto; }

/* ─── Divider ────────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 2px;
  background: var(--em);
  margin: 16px 0 24px;
}

.divider-center { margin: 16px auto 24px; }

/* ─── Loading / Spinner ──────────────────────────────────── */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--em-light);
  border-top-color: var(--em);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 20px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Toast / Flash Messages ─────────────────────────────── */
.flash {
  padding: 14px 20px;
  border-radius: var(--r-sm);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.flash-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.flash-info    { background: #dbeafe; color: #1e40af; border-left: 4px solid #3b82f6; }

/* ─── Toast Notification ─────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 22px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-md);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease;
  max-width: 320px;
}

.toast.success { background: var(--em-dark); }
.toast.error   { background: #991b1b; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-ghost);
  padding: 20px 0;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--em); }
.breadcrumb span { color: var(--ink-ghost); }
.breadcrumb .sep { font-size: 10px; }

/* ─── Category Pills ─────────────────────────────────────── */
.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-pill {
  padding: 9px 20px;
  border: 1.5px solid var(--border-mid);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  background: var(--white);
  transition: all var(--t);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--em);
  color: var(--white);
  border-color: var(--em);
}

/* ─── Page Hero Band ─────────────────────────────────────── */
.page-hero {
  background: var(--em-dark);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(74,222,128,0.06) 0%, transparent 60%);
}

.page-hero__label {
  display: block;
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
  font-weight: 500;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--white);
  font-weight: 600;
  margin-bottom: 12px;
}

.page-hero__sub {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── Empty State ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-soft);
}

.empty-state__icon { font-size: 56px; margin-bottom: 20px; opacity: 0.4; }
.empty-state__title { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 10px; }
.empty-state__text { font-size: 15px; margin-bottom: 24px; }

/* ─── WhatsApp Float ─────────────────────────────────────── */
#whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 998;
  transition: all var(--t);
  text-decoration: none;
  animation: wa-bounce 2.5s ease-in-out infinite;
}

#whatsapp-float:hover {
  background: #1da851;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  animation: none;
}

#whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

@keyframes wa-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ─── Utility ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-em { color: var(--em); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--ink-soft); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.fw-600 { font-weight: 600; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-pad { padding: 60px 0; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  #whatsapp-float { bottom: 20px; left: 20px; width: 50px; height: 50px; }
  #toast-container { bottom: 80px; right: 16px; left: 16px; }
  .toast { max-width: 100%; }
  .page-hero { padding: 60px 0 40px; }
  .page-hero__title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .section-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .container { padding: 0 16px; }
  .btn { padding: 12px 24px; font-size: 12px; }
  .btn-lg { padding: 14px 28px; font-size: 13px; }
  .product-card__body { padding: 10px; }
  .product-card__name { font-size: 0.95rem; }
  .product-card__footer { padding: 0 10px 10px; }
  .product-card__add-btn { padding: 9px; font-size: 11px; }
}

/* ─── FIXES & ADDITIONS ──────────────────────────────────── */

/* Sale price: GREEN not red */
.price-sale {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--em) !important;
}
.badge-sale {
  background: var(--em-light);
  color: var(--em-dark);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 700;
}

/* Product grid: 4 on PC, 3 on tablet, 2 on phone */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-card__actions { opacity: 1; transform: translateX(0); }
  .product-card:hover { transform: none; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Enquire Now button - replace gold with em-mid teal shade */
.btn-gold {
  background: #2d8c5a;
  color: #fff;
}
.btn-gold:hover {
  background: var(--em-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* Pagination padding */
.pagination {
  padding: 48px 0 80px;
}

/* ─── CART DRAWER ─────────────────────────────────────────── */
#cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,36,22,0.5);
  backdrop-filter: blur(4px);
  z-index: 8000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}
#cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100vw);
  background: var(--white);
  z-index: 8001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 48px rgba(0,0,0,0.18);
}
#cart-drawer.open {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--em-deep);
  flex-shrink: 0;
}
.drawer-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
}
.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
}
.drawer-close:hover { background: rgba(255,255,255,0.2); }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  scrollbar-width: thin;
}
.drawer-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}
.drawer-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.drawer-item-img {
  width: 70px;
  height: 88px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface);
}
.drawer-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drawer-item-info { flex: 1; min-width: 0; }
.drawer-item-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}
.drawer-item-var {
  font-size: 11px;
  color: var(--ink-ghost);
  margin-bottom: 8px;
  background: var(--surface);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  max-width: 100%;
  line-height: 1.4;
  word-break: break-word;
}
.drawer-item-price {
  font-weight: 700;
  color: var(--em-dark);
  font-size: 14px;
}
.drawer-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.dqty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1.5px solid var(--border-mid);
  background: var(--white);
  color: var(--ink-mid);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.dqty-btn:hover {
  border-color: var(--em);
  color: var(--em);
  background: var(--em-pale);
}
.drawer-item-qty span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  min-width: 20px;
  text-align: center;
}
.drawer-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-ghost);
  font-size: 16px;
  flex-shrink: 0;
  transition: all var(--t);
}
.drawer-item-remove:hover { background: #fee2e2; color: #991b1b; }
.drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--off);
}
.drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.drawer-total-label { font-weight: 600; font-size: 15px; }
.drawer-total-value { font-weight: 700; font-size: 1.3rem; color: var(--em-dark); }

@media (max-width: 480px) {
  #cart-drawer { width: 100vw; }
  .drawer-body { padding: 16px; }
  .drawer-header { padding: 16px; }
  .drawer-footer { padding: 16px; }
}

/* ─── CATEGORY SLIDER ─────────────────────────────────────── */
.cats-slider-wrap {
  position: relative;
  overflow: hidden;
}
.cats-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding-bottom: 8px;
}
.cats-slider::-webkit-scrollbar { display: none; }
.cat-slide {
  flex: 0 0 calc(33.333% - 14px);
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  background: var(--em-deep);
}
@media (max-width: 900px) {
  .cat-slide { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 480px) {
  .cat-slide { flex: 0 0 calc(80% - 10px); }
}
.cat-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.cat-slide:hover .cat-slide__img { transform: scale(1.06); }
.cat-slide__overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(10,36,22,0.85) 0%,rgba(10,36,22,0.2) 60%,transparent 100%); }
.cat-slide__body { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; }
.cat-slide__label { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 5px; font-weight: 600; }
.cat-slide__name { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--white); margin-bottom: 10px; line-height: 1.1; }
.cat-slide__link { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #4ade80; transition: gap var(--t); }
.cat-slide:hover .cat-slide__link { gap: 14px; }
.cats-slider-nav { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.cats-nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-mid); border: none; cursor: pointer; transition: all var(--t); padding: 0; }
.cats-nav-dot.active { background: var(--em); width: 24px; border-radius: 4px; }

/* ─── PRODUCT PAGE ACCORDION ──────────────────────────────── */
.accordion { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; margin-top: 24px; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background var(--t);
  text-align: left;
}
.accordion-btn:hover { background: var(--em-pale); }
.accordion-btn.active { background: var(--em-pale); color: var(--em-dark); }
.accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--t);
}
.accordion-btn.active .accordion-icon { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  background: var(--off);
}
.accordion-body.open { display: block; }

/* ─── TAILORING CHECKBOX ──────────────────────────────────── */
.tailoring-box {
  background: var(--em-pale);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.tailoring-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.tailoring-checkbox-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--em);
  cursor: pointer;
}
.tailoring-label { font-weight: 600; font-size: 14px; color: var(--ink); }
.tailoring-price-tag { font-size: 12px; color: var(--em); font-weight: 700; margin-left: auto; }
.tailoring-fields { margin-top: 16px; display: none; }
.tailoring-fields.open { display: block; }
.tailoring-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tailoring-field label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-mid); display: block; margin-bottom: 5px; }
.tailoring-field input { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border-mid); border-radius: var(--r-sm); font-size: 13px; outline: none; transition: border-color var(--t); }
.tailoring-field input:focus { border-color: var(--em); }
.tailoring-note { font-size: 12px; color: var(--ink-ghost); margin-top: 10px; }

/* ─── FOOTER ACCORDION (mobile) ───────────────────────────── */
@media (max-width: 768px) {
  .footer-col-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
  }
  .footer-col-title::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.2s ease;
  }
  .footer-col.open .footer-col-title::after {
    transform: rotate(180deg);
  }
  .footer-links, .footer-contact {
    display: none;
    padding-top: 8px;
  }
  .footer-col.open .footer-links,
  .footer-col.open .footer-contact {
    display: flex;
  }
}

/* Breadcrumbs visible where used */

/* ─── SVG ICON UTILITIES ──────────────────────────────────── */
.icon-svg { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hf-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; }
.hf-icon svg { width: 26px; height: 26px; stroke: rgba(255,255,255,0.85); fill: none; }
.trust-icon svg { width: 36px; height: 36px; }
.perk-icon svg { width: 18px; height: 18px; }
.footer-contact-icon svg { width: 16px; height: 16px; }

/* ─── COLLECTIONS LIGHTBOX FIX ────────────────────────────── */
#lightbox-info { padding: 20px 24px; background: var(--em-dark); }
#lb-link {
  display: inline-flex !important;
  background: var(--em) !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════
   ENHANCEMENT PASS — Buttons, Cards, Mobile UX
   ══════════════════════════════════════════════ */

/* ─── Buy Now Button (warm amber) ────────────────────────── */
.btn-buynow {
  background: linear-gradient(135deg, #c8a96e 0%, #9a7540 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(154,117,64,0.30);
  border: none;
}
.btn-buynow:hover {
  background: linear-gradient(135deg, #d4b87a 0%, #a88040 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(154,117,64,0.42);
}

/* ─── WhatsApp CTA Button ────────────────────────────────── */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.28);
  border: none;
}
.btn-whatsapp:hover {
  background: #1db954;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.42);
}
.btn-whatsapp svg { fill: #fff; flex-shrink: 0; }

/* ─── Product Card — Stronger Add to Cart ────────────────── */
.product-card__add-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 12px 16px !important;
  background: var(--em) !important;
  color: var(--white) !important;
  border: none;
  border-radius: var(--r-sm) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1) !important;
}
.product-card__add-btn:hover {
  background: var(--em-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(26,92,56,0.32) !important;
}
.product-card__add-btn:active {
  transform: translateY(0) !important;
}

/* ─── Product Card — Better Body/Footer Spacing ──────────── */
.product-card__body {
  padding: 14px 16px 10px;
}
.product-card__footer {
  padding: 0 14px 14px;
}
.product-card__name {
  font-size: 1rem;
  margin-bottom: 6px;
}
.product-card__category {
  margin-bottom: 5px;
}

/* ─── Mobile Touch Targets ───────────────────────────────── */
@media (max-width: 768px) {
  .btn:not(.btn-icon):not(.btn-sm) {
    min-height: 50px;
    padding: 14px 24px;
  }
  .btn-lg:not(.btn-icon) {
    min-height: 54px;
    padding: 16px 32px;
  }
  .product-card__add-btn {
    min-height: 46px !important;
    padding: 13px 16px !important;
  }
}

/* ─── Focus Accessibility ────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--em);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Qty Selector on mobile ─────────────────────────────── */
@media (max-width: 480px) {
  .qty-btn { width: 46px; height: 50px; font-size: 22px; }
  .qty-input { width: 58px; height: 50px; font-size: 16px; }
}

/* ─── Shop card — 2col on mobile tighter ─────────────────── */
@media (max-width: 480px) {
  .product-card__body { padding: 10px 12px 8px; }
  .product-card__footer { padding: 0 12px 12px; }
  .product-card__name { font-size: 1.05rem; }
  .product-card__category { font-size: 10px; }
  .price-original { font-size: 0.72rem; }
  .price-current, .price-sale { font-size: 0.95rem; }
}

/* ─── Smooth Fade-In Animation ───────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Short animation, minimal stagger — fast enough not to hurt Speed Index */
.product-card {
  animation: fadeUp 0.28s ease both;
}
.product-card:nth-child(2) { animation-delay: 0.03s; }
.product-card:nth-child(3) { animation-delay: 0.06s; }
.product-card:nth-child(4) { animation-delay: 0.09s; }
.product-card:nth-child(5) { animation-delay: 0.03s; }
.product-card:nth-child(6) { animation-delay: 0.06s; }
.product-card:nth-child(7) { animation-delay: 0.09s; }
.product-card:nth-child(8) { animation-delay: 0.12s; }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .product-card { animation: none; }
  .btn:hover { transform: none; }
}
