/* ===== LOADING SCREEN — LOGO ===== */
.loader-logo-wrap {
  position: relative;
  width: 130px; height: 130px;
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
}
.loader-logo-img {
  width: 100px; height: 100px;
  object-fit: contain; border-radius: 50%;
  position: relative; z-index: 1;
  filter: drop-shadow(0 0 20px rgba(139,34,82,.6));
  animation: logoFloat 3s ease-in-out infinite;
}
.loader-logo-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(var(--primary), var(--gold), var(--primary)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: ringRotate 2.5s linear infinite;
}
@keyframes logoFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.04); }
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

/* ===== NAVBAR LOGO FRAME ===== */
.navbar-logo-img {
  border: 2px solid var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(139,34,82,.15), 0 0 16px rgba(139,34,82,.35) !important;
  transition: box-shadow .3s, transform .3s !important;
}
.navbar-brand:hover .navbar-logo-img {
  box-shadow: 0 0 0 4px rgba(139,34,82,.25), 0 0 28px rgba(139,34,82,.5) !important;
  transform: scale(1.08);
}

/* ===== ATTRACTIVE PRODUCT SECTION BACKGROUNDS ===== */
.prod-section { background: var(--bg-dark); }
.prod-section-alt { background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%); }

/* ===== PROMO / SALE STRIP ===== */
.promo-strip {
  /* Safe dark banner — no colored blobs, text always readable */
  background: var(--bg-card);
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  padding: 0 40px;
  position: relative;
  overflow: hidden;
  min-height: 440px;
}
.promo-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(0,0,0,0.04) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.04) 100%);
  pointer-events: none;
}
.promo-strip-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  max-width: 1100px; margin: 0 auto;
  position: relative; z-index: 1;
  min-height: 440px;
}
.promo-strip-left {
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 60px 40px 60px 0;
}
.promo-tag {
  display: inline-block; background: var(--primary);
  color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: 3px; padding: 5px 16px;
  border-radius: 3px; margin-bottom: 18px; width: fit-content;
}
.promo-headline {
  font-size: clamp(32px, 4.5vw, 58px); font-weight: 700;
  color: var(--text-white);
  line-height: 1.05; margin-bottom: 14px;
  font-family: 'Cormorant Garamond', serif;
  background: none;
}
.promo-headline span { color: var(--gold); }
.promo-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; max-width: 380px; line-height: 1.6; }
.promo-badges-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px;
}
.promo-badge-pill {
  padding: 7px 16px; border-radius: 20px;
  border: 1px solid rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.08);
  color: var(--gold); font-size: 12px; font-weight: 600;
}
.promo-btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.promo-link-btn {
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  text-decoration: none; letter-spacing: 0.5px;
  transition: color 0.2s;
}
.promo-link-btn:hover { color: var(--gold); }

/* Portrait image on the right */
.promo-portrait-wrap {
  position: relative;
  display: flex; align-items: flex-end;
  overflow: visible;
}
.promo-portrait-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px 16px 0 0;
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  display: block;
  margin-top: -30px; /* peek above the strip */
}
.promo-portrait-placeholder {
  width: 100%; height: 440px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 16px 16px 0 0;
  margin-top: -30px;
}
.promo-portrait-badge {
  position: absolute; top: 20px; left: 16px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 3px;
  padding: 6px 14px; border-radius: 4px;
  writing-mode: horizontal-tb;
  box-shadow: 0 4px 16px rgba(139,34,82,0.5);
}

@media (max-width: 900px) {
  .promo-strip { padding: 40px 20px; min-height: auto; }
  .promo-strip-inner { grid-template-columns: 1fr 220px; min-height: auto; }
  .promo-strip-left { padding: 40px 24px 40px 0; }
  .promo-portrait-img { height: 360px; margin-top: 0; }
  .promo-portrait-placeholder { height: 320px; margin-top: 0; }
}
@media (max-width: 640px) {
  .promo-strip { padding: 0 16px; min-height: auto; }
  .promo-strip-inner { grid-template-columns: 1fr; }
  .promo-strip-left { padding: 40px 0 24px; }
  .promo-portrait-wrap {
    justify-content: center;
    margin: 0 -16px;
    overflow: hidden;
  }
  .promo-portrait-img {
    width: 100%; height: 320px;
    border-radius: 0; margin-top: 0;
    object-position: center 20%;
  }
  .promo-portrait-placeholder { border-radius: 0; margin-top: 0; height: 200px; }
  .promo-portrait-badge { top: 12px; left: 12px; }
}

/* ===== BIG CATEGORY GRID ===== */
.cat-section { background: var(--bg-dark); }
.cat-big-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 12px;
}
/* First card spans 2 rows — hero-style */
.cat-big-card.cat-big-featured { grid-row: span 2; }

.cat-big-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  cursor: pointer;
  background: var(--bg-card2);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s;
}
.cat-big-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.cat-big-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cat-big-card:hover img { transform: scale(1.07); }
.cat-big-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.cat-big-emoji { font-size: 56px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.cat-big-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  display: flex; align-items: flex-end; padding: 20px;
  transition: background 0.3s;
}
.cat-big-card:hover .cat-big-overlay { background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); }
.cat-big-info { display: flex; flex-direction: column; gap: 6px; }
.cat-big-name {
  font-size: 18px; font-weight: 700; color: #fff;
  font-family: 'Cormorant Garamond', serif; letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.cat-big-featured .cat-big-name { font-size: 24px; }
.cat-big-cta {
  font-size: 12px; font-weight: 600; color: var(--gold);
  letter-spacing: 1px; text-transform: uppercase;
  opacity: 0; transform: translateY(8px);
  transition: all 0.3s;
}
.cat-big-card:hover .cat-big-cta { opacity: 1; transform: translateY(0); }

/* Light theme */
body.light-theme .cat-big-card { box-shadow: 0 4px 16px rgba(139,34,82,0.1); }

@media (max-width: 900px) {
  .cat-big-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .cat-big-card.cat-big-featured { grid-row: span 1; }
}
@media (max-width: 600px) {
  .cat-big-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 8px; }
  .cat-big-name { font-size: 14px; }
  .cat-big-featured .cat-big-name { font-size: 16px; }
  .cat-big-emoji { font-size: 40px; }
  .cat-big-overlay { padding: 12px; }
}

/* Promo strip light theme */
body.light-theme .promo-strip { background: var(--bg-card); }
body.light-theme .promo-headline { color: var(--text-white); }
body.light-theme .promo-sub { color: var(--text-muted); }
body.light-theme .promo-badge-pill { color: var(--primary-dark); border-color: var(--primary); background: rgba(139,34,82,0.06); }

/* Section text light theme overrides */
body.light-theme .section-eyebrow { color: var(--primary); }
body.light-theme .promo-tag { background: var(--primary); color: #fff; }

/* ===== TRUST BAR ===== */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 28px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.trust-item:last-child { border-right: none; }
.trust-item:hover { background: rgba(139,34,82,0.05); }
.trust-icon { font-size: 30px; flex-shrink: 0; }
.trust-text { display: flex; flex-direction: column; gap: 3px; }
.trust-text strong { font-size: 14px; font-weight: 700; color: var(--text-white); }
.trust-text span { font-size: 12px; color: var(--text-muted); }
@media (max-width: 768px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 16px 14px; }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(3) { border-top: 1px solid var(--border); }
  .trust-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}

/* ===== REEL NAV BUTTON (in navbar) ===== */
.reel-nav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 38px; height: 38px;
  cursor: pointer;
  color: var(--text-white);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.reel-nav-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
body.light-theme .reel-nav-btn { color: var(--primary-dark); border-color: #e0d4da; }

/* ===== MEGA MENU (Gul Ahmed Style) ===== */
.nav-item.has-mega { position: static; }
.mega-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 2px solid var(--primary);
  border-bottom: 1px solid var(--border);
  padding: 28px 60px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  z-index: 9998;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.nav-item.has-mega:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
body.light-theme .mega-menu { background: #fff; border-top-color: var(--primary); box-shadow: 0 12px 40px rgba(139,34,82,0.12); }
.mega-menu-inner {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}
.mega-col {
  flex: 1;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child { border-right: none; padding-right: 0; }
.mega-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.mega-col-title a { color: inherit !important; }
.mega-col-title a:hover { color: var(--primary) !important; }
.mega-col a {
  display: block;
  padding: 7px 0 !important;
  font-size: 13px !important;
  color: var(--text-muted) !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  border-bottom: none !important;
  transition: all 0.2s !important;
}
.mega-col a::after { display: none !important; }
.mega-col a:hover { color: var(--text-white) !important; padding-left: 6px !important; }
.mega-col a:hover::after { display: none !important; }
.mega-all-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 18px !important;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}
.mega-all-link:hover { background: var(--primary-dark) !important; padding-left: 18px !important; }

/* Gallery column inside mega menu */
.mega-gallery-col {
  flex: 0 0 200px;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--border);
}
.mega-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mega-gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1;
  display: block;
  background: var(--bg-card2);
}
.mega-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.mega-gallery-item:hover img { transform: scale(1.07); }
.mega-gallery-item span {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff; font-size: 9px; font-weight: 600; padding: 4px 5px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* Old dropdown kept for simple items */
.nav-item:not(.has-mega) { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s;
  box-shadow: var(--shadow);
  z-index: 1000;
}
.nav-item:not(.has-mega):hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: none;
}
.dropdown-menu a:hover { color: var(--text-white); background: rgba(139,34,82,0.2); padding-left: 28px; }
.dropdown-menu a::after { display: none; }

/* ===== CATEGORY ROW (Gul Ahmed Circle Style) ===== */
.cat-circle-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-circle-row::-webkit-scrollbar { display: none; }
.cat-circle-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 0.2s;
}
.cat-circle-item:hover { transform: translateY(-4px); }
.cat-circle-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-card2);
  transition: border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.cat-circle-item:hover .cat-circle-img { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,34,82,0.15); }
.cat-circle-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle-emoji { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; background: linear-gradient(135deg, var(--bg-card2), #2a1520); }
.cat-circle-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-circle-item:hover .cat-circle-name { color: var(--primary-light); }
body.light-theme .cat-circle-name { color: #5a3f50; }
body.light-theme .cat-circle-item:hover .cat-circle-name { color: var(--primary); }

/* ===== SHOP PAGE HEADER ===== */
.shop-page-header {
  padding: 28px 40px 0;
  border-bottom: 1px solid var(--border);
}
.shop-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted); margin-bottom: 10px;
}
.shop-breadcrumb a { color: var(--text-muted); }
.shop-breadcrumb a:hover { color: var(--primary-light); }
.shop-title-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 6px;
}
.shop-page-title { font-size: 28px; font-weight: 700; line-height: 1.2; }
.shop-page-count { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Grid toggle buttons */
.shop-grid-toggle { display: none; gap: 6px; }
.sgt-btn {
  width: 36px; height: 36px; border: 1.5px solid var(--border);
  background: transparent; color: var(--text-muted);
  border-radius: 6px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all 0.2s;
}
.sgt-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Category filter chips */
.shop-chips-bar {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 14px 0 16px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.shop-chips-bar::-webkit-scrollbar { display: none; }
.shop-chip {
  flex-shrink: 0; padding: 7px 16px;
  border: 1.5px solid var(--border); border-radius: 20px;
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  white-space: nowrap; text-decoration: none; transition: all 0.2s;
}
.shop-chip:hover { border-color: var(--primary-light); color: var(--text-white); }
.shop-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.shop-chip.sale-chip.active { background: var(--gold); border-color: var(--gold); color: #000; }

/* Mobile filter button */
.shop-filter-btn {
  display: none;
  align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  color: var(--text-white); border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.shop-filter-btn:hover { border-color: var(--primary); color: var(--primary-light); }

/* Mobile filter overlay */
.shop-filter-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 8998;
  backdrop-filter: blur(2px);
}
.shop-filter-overlay.open { display: block; }

/* Mobile filter close header */
.filter-mob-header { display: none; }

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 70px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--primary) 0%, transparent 60%);
  opacity: 0.08; pointer-events: none;
}
.newsletter-inner {
  max-width: 560px; margin: 0 auto; position: relative; z-index: 1;
}
.newsletter-icon { font-size: 40px; margin-bottom: 14px; }
.newsletter-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--primary-light); margin-bottom: 10px;
}
.newsletter-title {
  font-size: clamp(26px, 4vw, 40px); font-weight: 700;
  color: var(--text-white); margin-bottom: 12px;
  font-family: 'Cormorant Garamond', serif;
}
.newsletter-sub {
  font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px;
}
.newsletter-form {
  display: flex; gap: 0; max-width: 440px; margin: 0 auto;
  border: 1.5px solid var(--primary); border-radius: 8px; overflow: hidden;
}
.newsletter-input {
  flex: 1; background: var(--bg-dark);
  border: none; outline: none;
  padding: 14px 18px; color: var(--text-white);
  font-size: 14px; min-width: 0;
}
.newsletter-input::placeholder { color: var(--text-muted); }
.newsletter-input:focus { background: var(--bg-card2); }
.newsletter-btn {
  background: var(--primary); color: #fff;
  border: none; padding: 14px 24px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s; text-transform: uppercase;
}
.newsletter-btn:hover { background: var(--primary-dark); }
body.light-theme .newsletter-input { background: #fff; color: #1a0812; }
body.light-theme .newsletter-input:focus { background: #f8f4f0; }
@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; border-radius: 8px; }
  .newsletter-input { border-radius: 8px 8px 0 0; }
  .newsletter-btn { border-radius: 0 0 8px 8px; padding: 14px; }
}

/* ===== VIEW AS GRID TOGGLE ===== */
.shop-view-controls {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.view-as-wrap {
  display: flex; align-items: center; gap: 8px;
}
.view-as-label {
  font-size: 12px; color: var(--text-muted);
  font-weight: 500; white-space: nowrap;
}
.view-as-btns {
  display: flex; gap: 3px; align-items: center;
}
.vab {
  width: 34px; height: 34px; border: 1.5px solid var(--border);
  background: transparent; color: var(--text-muted);
  border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.vab:hover { border-color: var(--primary-light); color: var(--primary-light); }
.vab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.vab[data-cols="3"], .vab[data-cols="4"] { display: none; }
@media (min-width: 769px) {
  .vab[data-cols="3"], .vab[data-cols="4"] { display: flex; }
}

/* Grid col override from toggle */
#shopGrid[data-cols="1"] { grid-template-columns: 1fr !important; }
#shopGrid[data-cols="2"] { grid-template-columns: repeat(2, 1fr) !important; }
#shopGrid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
#shopGrid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

@media (min-width: 769px) {
  .view-as-wrap { display: flex !important; }
  .vab[data-cols="1"], .vab[data-cols="2"] { display: flex; }
}

@media (max-width: 768px) {
  .shop-page-header { padding: 16px 14px 0; }
  .shop-grid-toggle { display: flex; }
  .shop-filter-btn { display: flex; }
  .shop-page-title { font-size: 20px; }
  .view-as-wrap { display: flex !important; }
  .vab[data-cols="3"], .vab[data-cols="4"] { display: none !important; }

  /* Filter sidebar: HIDDEN by default, slides in from left as drawer */
  .filter-sidebar {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    width: min(300px, 85vw);
    background: var(--bg-card) !important;
    z-index: 8999;
    overflow-y: auto;
    transform: translateX(-110%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    padding: 0 !important;
    box-shadow: 4px 0 32px rgba(0,0,0,0.5);
    display: block !important; /* override grid stacking */
  }
  .filter-sidebar.mob-open { transform: translateX(0); }
  .filter-mob-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: var(--bg-card); z-index: 1;
  }
  .filter-sidebar form { padding: 16px 20px; }

  /* Shop — products take full width, sidebar is overlay */
  .shop-layout {
    display: block !important;
    padding: 12px 12px !important;
  }

  .cat-circle-img { width: 72px; height: 72px; }
  .cat-circle-name { font-size: 10px; max-width: 72px; }
  .cat-circle-row { gap: 12px; }
  .mega-menu { display: none !important; }
}

/* ===== QUICK VIEW / ADD TO CART MODAL ===== */
.qv-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  z-index: 9000; opacity: 0; pointer-events: none;
  backdrop-filter: blur(4px); transition: opacity 0.3s;
}
.qv-backdrop.open { opacity: 1; pointer-events: all; }
.qv-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-45%);
  z-index: 9001; width: min(92vw, 960px); max-height: 92vh;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.qv-modal.open { opacity: 1; pointer-events: all; transform: translate(-50%,-50%); }
.qv-close {
  position: absolute; top: 14px; right: 16px; z-index: 10;
  background: rgba(0,0,0,0.5); border: none; color: #fff;
  width: 34px; height: 34px; border-radius: 50%; font-size: 20px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.qv-close:hover { background: var(--primary); }
.qv-layout { display: grid; grid-template-columns: 1fr 1fr; overflow-y: auto; max-height: 92vh; }
.qv-gallery { background: var(--bg-dark); position: relative; display: flex; flex-direction: column; }
.qv-main-img-wrap { position: relative; flex: 1; overflow: hidden; min-height: 300px; max-height: 520px; }
.qv-main-img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s; }
.qv-img-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 50%; font-size: 22px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 2;
}
.qv-img-nav:hover { background: var(--primary); }
.qv-img-prev { left: 10px; }
.qv-img-next { right: 10px; }
.qv-img-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.qv-img-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.2s; }
.qv-img-dot.active { background: var(--primary); transform: scale(1.4); }
.qv-thumbs { display: flex; gap: 6px; padding: 10px; overflow-x: auto; background: rgba(0,0,0,0.3); flex-shrink: 0; }
.qv-thumb { width: 54px; height: 54px; border-radius: 4px; object-fit: cover; cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: all 0.2s; flex-shrink: 0; }
.qv-thumb.active, .qv-thumb:hover { border-color: var(--primary); opacity: 1; }
.qv-info { padding: 28px 28px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.qv-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-light); font-weight: 600; }
.qv-name { font-size: 22px; font-weight: 600; color: var(--text-white); line-height: 1.3; font-family: 'Cormorant Garamond', serif; }
.qv-price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qv-price { font-size: 24px; font-weight: 700; color: var(--gold); }
.qv-old-price { font-size: 15px; color: var(--text-muted); text-decoration: line-through; }
.qv-discount { background: rgba(139,34,82,0.15); color: var(--primary-light); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; border: 1px solid var(--primary); }
.qv-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* Extra detail rows in modal */
.qv-detail-row { display: flex; gap: 8px; flex-wrap: wrap; }
.qv-detail-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px;
  background: var(--bg-card2); border: 1px solid var(--border);
  font-size: 11px; color: var(--text-muted);
}
.qv-detail-chip span { color: var(--text-white); font-weight: 600; }
.qv-delivery-bar {
  background: rgba(76,175,80,0.08); border: 1px solid rgba(76,175,80,0.25);
  border-radius: 8px; padding: 10px 14px;
  font-size: 12px; color: #81c784; line-height: 1.5;
}
.qv-delivery-bar strong { color: #a5d6a7; }
.qv-return-bar {
  font-size: 11px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}

.qv-option-group { display: flex; flex-direction: column; gap: 8px; }
.qv-option-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); display: flex; align-items: center; justify-content: space-between; }
.qv-option-label strong { color: var(--text-white); }
.qv-size-guide-link { font-size: 11px; color: var(--primary-light); text-decoration: none; }
.qv-size-guide-link:hover { text-decoration: underline; }
.qv-color-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.qv-color-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.qv-color-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; transition: all 0.2s; }
.qv-color-opt.active .qv-color-swatch, .qv-color-opt:hover .qv-color-swatch { border-color: var(--primary); transform: scale(1.15); }
.qv-color-label { font-size: 9px; color: var(--text-muted); }
.qv-size-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.qv-size-btn { min-width: 48px; padding: 8px 14px; border: 1.5px solid var(--border); background: transparent; color: var(--text-white); border-radius: 4px; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.qv-size-btn:hover { border-color: var(--primary); color: var(--primary-light); }
.qv-size-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.qv-size-btn.out-of-stock { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }
.qv-qty { display: flex; align-items: center; width: fit-content; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.qv-qty-btn { width: 38px; height: 38px; background: var(--bg-card2); border: none; color: var(--text-white); font-size: 20px; cursor: pointer; transition: all 0.2s; }
.qv-qty-btn:hover { background: var(--primary); color: #fff; }
.qv-qty-input { width: 52px; height: 38px; background: transparent; border: none; color: var(--text-white); text-align: center; font-size: 15px; -moz-appearance: textfield; }
.qv-qty-input::-webkit-outer-spin-button, .qv-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qv-actions { display: flex; gap: 10px; margin-top: 4px; }
.qv-btn-cart { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 700; letter-spacing: 0.5px; cursor: pointer; text-transform: uppercase; transition: all 0.2s; }
.qv-btn-cart:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.qv-btn-wa { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 14px 16px; background: #25D366; color: #fff; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.qv-btn-wa:hover { background: #1da851; transform: translateY(-1px); }
.qv-view-full { text-align: center; font-size: 12px; color: var(--text-muted); padding-top: 4px; display: block; transition: all 0.2s; border-top: 1px solid var(--border); padding-top: 12px; }
.qv-view-full:hover { color: var(--primary-light); }
@media (max-width: 640px) {
  .qv-backdrop { padding: 0 8px; }
  .qv-modal {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100svh - 16px);
    left: 8px;
    top: 8px;
    transform: none;
    border-radius: 12px;
  }
  .qv-modal.open { transform: none; }
  .qv-layout {
    grid-template-columns: 1fr;
    max-height: calc(100svh - 16px);
    overflow: hidden;
  }
  .qv-gallery { overflow: hidden; min-height: 0; }
  .qv-main-img-wrap {
    height: 36svh;
    min-height: 0;
    max-height: 38svh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px;
    background: var(--bg-dark);
  }
  .qv-main-img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: initial;
    background: transparent;
    display: block;
    margin: 0 auto;
  }
  .qv-info { padding: 18px 16px; }
  .qv-actions { flex-direction: column; }
}

/* ===== REEL GALLERY ===== */
/* Floating reel trigger hidden — now in navbar */
.reel-trigger { display: none !important; }
.reel-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: #000;
  display: none; flex-direction: column; overflow: hidden;
}
.reel-overlay.open { display: flex; }
.reel-top-bar {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 14px 16px; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}
.reel-brand { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.reel-img-indicators { display: flex; gap: 4px; flex: 1; justify-content: center; padding: 0 10px; }
.reel-img-dot { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.4); transition: all 0.3s; flex: 1; max-width: 30px; }
.reel-img-dot.active { background: #fff; }
.reel-close-btn { background: rgba(255,255,255,0.15); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.reel-slides-container { flex: 1; overflow: hidden; position: relative; touch-action: none; }
.reel-slide { position: absolute; inset: 0; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.reel-slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.reel-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: #fff; gap: 16px; }
.reel-loader-ring { width: 50px; height: 50px; border: 3px solid rgba(255,255,255,0.2); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reel-bottom-bar { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 16px 28px; background: linear-gradient(to top, rgba(0,0,0,0.85) 60%, transparent); }
.reel-prod-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 4px; }
.reel-prod-name { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 4px; font-family: 'Cormorant Garamond', serif; }
.reel-prod-price { font-size: 17px; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.reel-color-strip { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.reel-color-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); cursor: pointer; transition: all 0.2s; }
.reel-color-dot.active { border-color: #fff; transform: scale(1.2); }
.reel-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.reel-btn-cart { display: flex; align-items: center; gap: 7px; padding: 11px 18px; background: var(--primary); color: #fff; border: none; border-radius: 25px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.5px; }
.reel-btn-cart:hover { background: var(--primary-dark); }
.reel-btn-wa { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #25D366; color: #fff; border: none; border-radius: 25px; font-size: 13px; font-weight: 600; cursor: pointer; }
.reel-btn-view { display: flex; align-items: center; padding: 11px 14px; background: rgba(255,255,255,0.15); color: #fff; border-radius: 25px; font-size: 13px; font-weight: 600; text-decoration: none; backdrop-filter: blur(4px); }
.reel-nav-up, .reel-nav-down { position: absolute; right: 20px; background: rgba(255,255,255,0.15); border: none; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; z-index: 10; display: none; align-items: center; justify-content: center; transition: all 0.2s; backdrop-filter: blur(4px); }
.reel-nav-up { top: 50%; transform: translateY(-60px); }
.reel-nav-down { top: 50%; transform: translateY(20px); }
.reel-nav-up:hover, .reel-nav-down:hover { background: var(--primary); }
@media (min-width: 769px) {
  .reel-nav-up, .reel-nav-down { display: flex; }
  .reel-overlay {
    width: 420px;
    left: 50%;
    right: auto;
    top: 20px;
    bottom: 20px;
    transform: translateX(-50%);
    border-radius: 20px;
    height: auto;
  }
}

/* ===== MOBILE THEME TOGGLE (in nav header) ===== */
.mob-theme-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px;
  transition: all 0.2s;
}
.mob-theme-toggle:hover { background: var(--primary); border-color: var(--primary); }
body.light-theme .mob-theme-toggle { background: rgba(139,34,82,0.1); border-color: var(--primary-light); }

/* ===== RESPONSIVE PAGE UTILITIES ===== */
/* Replaces hard-coded padding: X 40px on inner pages */
.page-wrap { padding: 60px 40px; margin: 0 auto; }
.checkout-head { padding: 40px 40px 0; }
.success-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 60px 40px; }

/* Responsive grid helpers */
.g-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.g-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.g-2s { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* Product page inner paddings */
.prod-breadcrumb { padding: 24px 40px; font-size: 13px; color: var(--text-muted); }
.prod-description { padding: 0 40px 60px; max-width: 800px; }

/* WhatsApp buy-now button on product page */
.buy-now-btn { width: 100%; padding: 14px; background: #25D366; color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.buy-now-btn:hover { background: #1da851; }

@media (max-width: 768px) {
  .page-wrap { padding: 36px 16px; }
  .checkout-head { padding: 20px 14px 0; }
  .success-wrap { padding: 32px 16px; align-items: flex-start; }
  .g-3 { grid-template-columns: 1fr; gap: 16px; }
  .g-2 { grid-template-columns: 1fr; gap: 20px; }
  .g-2s { grid-template-columns: 1fr; gap: 12px; }
  .prod-breadcrumb { padding: 16px 14px; }
  .prod-description { padding: 0 14px 40px; }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .checkout-layout { padding: 16px 14px !important; gap: 24px; }
}

/* ===== PRODUCT GRID — CONSISTENT CARD SIZES & NO BLANK GAPS ===== */
/* Equal-height cards per row — eliminates blank white boxes between cards */
.products-grid {
  align-items: stretch !important;
}
.products-grid .product-card {
  height: 100%;         /* stretch to row height */
  width: 100%;
  min-width: 0;
  flex: none !important; /* prevent card-width rules from leaking into grid */
  overflow: hidden;      /* keep hover + overlay inside each grid cell */
}
.products-grid .product-card-info {
  flex: 1;              /* grow info section to fill extra space */
}

/* Touch devices: disable hover scale (prevents right-card clipping on mobile) */
@media (pointer: coarse) {
  .product-card:hover { transform: none !important; box-shadow: var(--shadow) !important; }
  .product-card:active { transform: scale(0.98) !important; }
}
/* Shop grid: always 2 cols on mobile, consistent sizes */
@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .products-grid .product-card {
    min-width: 0 !important;
    width: 100% !important;
  }
  .products-grid .product-card-img {
    aspect-ratio: 1 / 1.22;
  }
  .products-grid .product-card-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* ===== ADMIN PANEL RESPONSIVE ===== */
@media (max-width: 900px) {
  .admin-content { padding: 20px 16px; }
  .admin-header { padding: 14px 16px; }
  .admin-header h1 { font-size: 18px; }
}
/* Admin color-block header: collapse 5-col into wrapping layout on small screens */
.cb-header { min-width: 0; }
@media (max-width: 600px) {
  .cb-header {
    grid-template-columns: 38px 1fr 44px 30px !important;
    gap: 6px !important;
    flex-wrap: wrap;
  }
  .cb-header > div:nth-child(4) { display: none !important; } /* hide image upload col */
}

@media (max-width: 768px) {
  /* Admin form grids collapse on mobile */
  .admin-grid-2 { grid-template-columns: 1fr !important; }
  /* Add-product form — sidebar goes below main */
  form[style*="grid-template-columns:2fr 1fr"],
  form[style*="grid-template-columns: 2fr 1fr"] {
    display: flex !important; flex-direction: column !important;
  }
  /* Settings 2-col cards collapse */
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important; flex-wrap: wrap !important;
  }
  div[style*="grid-template-columns:1fr 1fr"] > *,
  div[style*="grid-template-columns: 1fr 1fr"] > * { flex: 1 1 280px; min-width: 0; }
  /* Color row in add-product — stack vertically */
  .color-row { grid-template-columns: 1fr 60px 60px !important; grid-template-rows: auto auto !important; }
  /* Settings page grid collapses on mobile */
  .admin-settings-grid { grid-template-columns: 1fr !important; }
  /* Navigation manager grid collapses */
  div[style*="grid-template-columns:1fr 340px"] { display: flex !important; flex-direction: column !important; }
  /* Admin table — allow horizontal scroll */
  .admin-content { overflow-x: hidden; }
  .admin-content > div[style*="overflow-x:auto"],
  .admin-content > div > div[style*="overflow-x:auto"] { overflow-x: auto; }
  /* Stat cards 2-up on mobile */
  .stat-cards { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .stat-card { padding: 16px 12px !important; }
}

/* Stat cards base style */
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 28px; }
.stat-card { background: var(--adm-card, var(--bg-card)); border: 1px solid var(--adm-border, var(--border)); border-radius: var(--radius); padding: 24px; text-align: center; }
.stat-card-icon { font-size: 32px; margin-bottom: 10px; }
.stat-card-value { font-size: 26px; font-weight: 700; color: var(--gold); font-family: 'Cormorant Garamond', serif; margin-bottom: 4px; }
.stat-card-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
/* btn-view */
.btn-view { background: rgba(33,150,243,0.2); color: #64b5f6; }
.btn-view:hover { background: rgba(33,150,243,0.35); }

/* ===== MOBILE NAV ACCORDION ===== */
.mob-cat-toggle {
  background: none; border: none; color: var(--gold);
  font-size: 18px; cursor: pointer; padding: 0 4px;
  display: flex; align-items: center; line-height: 1;
  transition: transform 0.2s;
}
.mob-cat-toggle.open { transform: rotate(90deg); }
.mob-subcat-list {
  display: none; padding: 0 0 8px 16px; list-style: none;
}
.mob-subcat-list.open { display: block; }
.mob-subcat-list li a {
  font-size: 14px !important; color: var(--text-muted) !important;
  padding: 8px 0 !important; display: block;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 400 !important;
}
.mob-subcat-list li a:hover { color: var(--gold) !important; }
