/* =========================================================
   DELTA PERFUME — V2 comprehensive UI fixes
   Spacing, header, horizontal shelves, images, mobile, discount
   ========================================================= */

:root {
  --delta-gold: #a98642;
  --delta-gold-dark: #8a6d32;
  --delta-ink: #191817;
  --delta-muted: #7a7368;
  --delta-line: #ebe4d8;
  --delta-bg: #faf9f6;
  --delta-radius: 16px;
  --container: min(100% - 32px, 1280px);
}

/* ---- Full-width feel: kill the “invisible walls” ---- */
.section-shell,
.popular-section,
.category-shelves,
.delta-discovery,
.trust-strip,
.editorial-heading,
.site-footer .footer-inner,
.header-inner {
  max-width: 1280px !important;
  margin-inline: auto !important;
  padding-inline: clamp(14px, 2.5vw, 28px) !important;
  width: 100%;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

/* ---- Header: compact, aligned, no overflow ---- */
.site-header {
  z-index: 900 !important;
}
.site-header .header-inner {
  min-height: 64px !important;
  height: auto !important;
  gap: 12px !important;
  align-items: center !important;
  display: flex !important;
  flex-wrap: nowrap !important;
}
.site-header .brand {
  flex-shrink: 0;
  min-width: 0;
}
.site-header .brand img {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain !important;
}
.desktop-nav {
  display: flex !important;
  flex: 1 1 auto;
  justify-content: center;
  gap: 8px !important;
  min-width: 0;
}
.desktop-nav a {
  white-space: nowrap;
  padding: 6px 10px !important;
  font-size: 13px !important;
  border-radius: 10px;
}
.header-search {
  flex: 0 1 280px !important;
  max-width: 280px !important;
  min-width: 160px !important;
  height: 40px !important;
  margin: 0 !important;
}
.header-search input {
  font-size: 12.5px !important;
}
.header-search button {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
}
.header-search button svg {
  width: 15px !important;
  height: 15px !important;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.home-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}
.home-icon-link,
.account-avatar-link {
  width: auto !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border-radius: 12px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
.home-icon-link svg,
.account-avatar-link svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.account-avatar-link [data-account-label] {
  font-size: 11.5px !important;
}
.menu-button {
  display: none;
  width: 38px !important;
  height: 38px !important;
  padding: 9px !important;
  align-items: center;
  justify-content: center;
}
.menu-button span {
  margin: 3px 0 !important;
}

@media (max-width: 980px) {
  .desktop-nav { display: none !important; }
  .header-search { display: none !important; }
  .menu-button { display: grid !important; place-items: center; }
  .account-avatar-link [data-account-label] { display: none !important; }
  .home-icon-link.account-avatar-link {
    width: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
  }
}

/* ---- Horizontal product shelves (Digikala-style) ---- */
.popular-track,
.category-shelf-grid,
.shelf-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px !important;
  margin-inline: 0 !important;
  scrollbar-width: thin;
  scrollbar-color: #d4c4a4 transparent;
}
.popular-track::-webkit-scrollbar,
.category-shelf-grid::-webkit-scrollbar,
.shelf-track::-webkit-scrollbar {
  height: 5px;
}
.popular-track::-webkit-scrollbar-thumb,
.category-shelf-grid::-webkit-scrollbar-thumb {
  background: #d4c4a4;
  border-radius: 10px;
}

.popular-track > .product-card,
.category-shelf-grid > .product-card,
.shelf-track > .product-card {
  flex: 0 0 auto !important;
  width: 210px !important;
  min-width: 210px !important;
  max-width: 210px !important;
  scroll-snap-align: start;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid var(--delta-line) !important;
  border-radius: 18px !important;
  background: #fff !important;
  overflow: hidden !important;
  box-shadow: 0 4px 18px rgba(30, 24, 14, 0.05) !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
.popular-track > .product-card:hover,
.category-shelf-grid > .product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(30, 24, 14, 0.1) !important;
}

.product-card > a {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

/* Images always fully visible */
.product-img,
.popular-track .product-img,
.category-shelf-grid .product-img {
  height: 200px !important;
  min-height: 200px !important;
  max-height: 200px !important;
  padding: 4px !important;
  display: grid !important;
  place-items: center !important;
  background: linear-gradient(160deg, #fbfaf7, #f2eee6) !important;
  position: relative !important;
  overflow: hidden !important;
}
.product-img img,
.popular-track .product-img img,
.category-shelf-grid .product-img img,
.product-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  mix-blend-mode: multiply;
  display: block !important;
}

.product-body {
  padding: 12px 14px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  gap: 4px;
}
.product-body h3 {
  font-size: 13px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  min-height: 2.5em !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
  color: var(--delta-ink);
}
.product-body .category {
  font-size: 10px !important;
  color: var(--delta-gold) !important;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.product-body .price {
  margin-top: auto !important;
  padding-top: 6px;
}
.product-body .price strong {
  font-size: 14px !important;
  color: var(--delta-ink);
}
.view-product {
  display: none !important; /* remove green "مشاهده محصول" */
}

/* Discount badge — eye-catching red */
.discount-badge,
.product-img .badge-sale,
.sale-badge {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  background: linear-gradient(135deg, #e11d48, #be123c) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(190, 18, 60, 0.35);
  letter-spacing: 0.3px;
}
.price .old-price,
.price del {
  color: #a1a1aa !important;
  font-size: 12px !important;
  margin-inline-start: 6px;
}
.price .sale-price,
.price .has-sale {
  color: #be123c !important;
}

/* Category shelf headings */
.category-shelf-heading p,
.editorial-heading p:not(.eyebrow) {
  color: var(--delta-muted) !important;
  font-size: 13px !important;
}
.category-shelf {
  padding: 28px 0 !important;
  border-bottom: 1px solid var(--delta-line);
}

/* Trust strip — softer, remove "انتخاب با اطمینان" emphasis if needed */
.trust-strip {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
  padding: 28px 0 40px !important;
}
.trust-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px 18px !important;
  border: 1px solid var(--delta-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
}
.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f8f4eb;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.trust-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--delta-gold);
  fill: none;
  stroke-width: 1.6;
}

/* Discovery section — keep structure, refine images */
.discovery-visual img {
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
}

/* ---- Mobile shelves: 2-column-ish cards in horizontal scroll ---- */
@media (max-width: 700px) {
  .popular-track > .product-card,
  .category-shelf-grid > .product-card {
    width: 156px !important;
    min-width: 156px !important;
    max-width: 156px !important;
  }
  .product-img,
  .popular-track .product-img,
  .category-shelf-grid .product-img {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    padding: 4px !important;
  }
  .product-body {
    padding: 4px !important;
  }
  .product-body h3 {
    font-size: 11.5px !important;
    min-height: 2.8em !important;
  }
  .product-body .price strong {
    font-size: 12.5px !important;
  }
  .trust-strip {
    grid-template-columns: 1fr !important;
  }
  .section-shell,
  .popular-section,
  .category-shelves {
    padding-inline: 12px !important;
  }
}

/* Catalog / shop page */
.products-toolbar,
.catalog-toolbar {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.filter-btn,
.sort-btn,
.toolbar-btn {
  min-height: 44px !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border: 1px solid var(--delta-line) !important;
  background: #fff !important;
  color: var(--delta-ink) !important;
}
.product-count,
.results-count,
.products-count {
  display: none !important;
}

/* Product detail consistency */
.detail-header,
.product-detail-header {
  /* use shared header */
}
.product-gallery img,
.detail-gallery img,
.main-product-image img {
  object-fit: contain !important;
  width: 100% !important;
  height: auto !important;
  max-height: 480px !important;
}

/* Login bottom drawer */
.auth-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s, visibility 0.28s;
}
.auth-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.auth-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2001;
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 20px 20px 32px;
}
.auth-drawer.open {
  transform: translateY(0);
}
.auth-drawer-handle {
  width: 44px;
  height: 5px;
  background: #e5e0d6;
  border-radius: 99px;
  margin: 0 auto 16px;
}
.auth-drawer h3 {
  margin: 0 0 8px;
  font-size: 18px;
  text-align: center;
}
.auth-drawer p.sub {
  text-align: center;
  color: var(--delta-muted);
  font-size: 13px;
  margin: 0 0 18px;
}

/* Footer trust badges — not blocking CTA */
.site-footer .trust-badges,
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 16px 0;
  opacity: 0.95;
}
.site-footer .trust-badges img,
.enamad-badge img {
  max-height: 64px !important;
  width: auto !important;
}

/* Hide residual green CTAs */
.view-product span,
a.view-product {
  color: var(--delta-gold) !important;
  background: transparent !important;
}

/* Loading skeletons keep shape */
.product-loading-grid {
  display: flex !important;
  gap: 14px !important;
  overflow: hidden;
}
.product-loading-grid span {
  flex: 0 0 210px;
  height: 300px;
  border-radius: 18px;
  background: linear-gradient(90deg, #f3efe7, #faf8f3, #f3efe7);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Auth bottom sheet — glass overlay + drawer from bottom */
.delta-sheet{position:fixed;inset:0;z-index:3000;display:flex;align-items:flex-end;justify-content:center}
.delta-sheet-backdrop{position:absolute;inset:0;background:rgba(18,14,10,.48);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.delta-sheet-panel{position:relative;width:min(100%,440px);max-height:90vh;overflow:auto;background:#fff;border-radius:24px 24px 0 0;padding:18px 20px 28px;box-shadow:0 -16px 48px rgba(0,0,0,.2);animation:sheetUp .32s cubic-bezier(.22,1,.36,1)}
@keyframes sheetUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
.delta-sheet-close{position:absolute;top:12px;left:12px;width:36px;height:36px;border:0;border-radius:12px;background:#f4f0e8;font-size:20px;cursor:pointer;color:#5c5346}
.sheet-brand{text-align:center;font-weight:800;letter-spacing:2px;font-size:13px;color:#a98642;margin:4px 0 8px}
.sheet-brand span{color:#191817;font-weight:600;letter-spacing:1px}
.delta-sheet-panel h2{margin:0 0 6px;text-align:center;font-size:17px}
.sheet-sub{text-align:center;color:#7a7368;font-size:12.5px;margin:0 0 16px;line-height:1.8}
.delta-sheet-panel label{display:block;font-size:12px;font-weight:600;margin:10px 0 5px;color:#3f3a32}
.delta-sheet-panel input,.delta-sheet-panel textarea{width:100%;border:1px solid #e8e0d2;border-radius:12px;padding:12px 14px;font:inherit;font-size:14px;background:#faf9f6;box-sizing:border-box}
.delta-sheet-panel button[type=submit]{width:100%;margin-top:14px;border:0;border-radius:14px;background:#a98642;color:#fff;padding:13px;font:inherit;font-weight:700;cursor:pointer}
.sheet-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#sheetMessage{min-height:20px;text-align:center;font-size:12.5px;color:#7a7368;margin-top:10px}

/* =========================================================
   HEADER V3 — cleaner desktop + polished mobile menu
   ========================================================= */

/* Hide any residual phone buttons in header */
.phone-icon-link,
.phone-header-link,
.detail-phone,
a.home-icon-link[href^="tel:"],
.header-actions a[href^="tel:"],
.store-header-actions a[href^="tel:"] {
  display: none !important;
}

.site-header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid #efe9df !important;
  box-shadow: 0 4px 20px rgba(30, 24, 14, 0.04) !important;
}

.site-header .header-inner {
  min-height: 68px !important;
  max-width: 1280px !important;
  padding-inline: clamp(14px, 2.2vw, 28px) !important;
  gap: 14px !important;
  align-items: center !important;
}

.site-header .brand {
  gap: 8px !important;
  flex-shrink: 0;
}
.site-header .brand img {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
}
.site-header .brand-text strong {
  font-size: 16px !important;
  letter-spacing: 1.5px !important;
  color: #1a1814 !important;
}
.site-header .brand-text small {
  font-size: 7.5px !important;
  letter-spacing: 2.5px !important;
  color: #a98642 !important;
}

.desktop-nav {
  display: flex !important;
  align-items: center;
  gap: 4px !important;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.desktop-nav a {
  position: relative;
  padding: 8px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #4a443c !important;
  border-radius: 10px !important;
  transition: color 0.18s, background 0.18s !important;
  white-space: nowrap;
}
.desktop-nav a:hover {
  color: #a98642 !important;
  background: #faf7f0 !important;
}
.desktop-nav a.active {
  color: #a98642 !important;
  background: transparent !important;
}
.desktop-nav a.active::after {
  content: "";
  position: absolute;
  right: 14px;
  left: 14px;
  bottom: 4px;
  height: 2px;
  background: #a98642;
  border-radius: 2px;
}

/* Search pill */
.header-search,
.catalog-desktop-search,
.detail-desktop-search {
  flex: 0 1 300px !important;
  max-width: 300px !important;
  min-width: 180px !important;
  height: 42px !important;
  border: 1px solid #ebe4d8 !important;
  background: #faf9f6 !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  padding: 3px 4px 3px 12px !important;
  gap: 4px !important;
  margin: 0 !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
.header-search:focus-within,
.catalog-desktop-search:focus-within,
.detail-desktop-search:focus-within {
  border-color: #c4a15c !important;
  box-shadow: 0 0 0 3px rgba(169, 134, 66, 0.12) !important;
  background: #fff !important;
}
.header-search input,
.catalog-desktop-search input,
.detail-desktop-search input {
  flex: 1 !important;
  min-width: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  font-size: 13px !important;
  color: #2a2620 !important;
  padding: 0 6px !important;
}
.header-search button,
.catalog-desktop-search button,
.detail-desktop-search button {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #a98642 !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
}
.header-search button svg,
.catalog-desktop-search button svg {
  width: 15px !important;
  height: 15px !important;
  stroke: #fff !important;
  fill: none !important;
  stroke-width: 2.2 !important;
}

/* Action icons: account + cart only */
.home-header-actions,
.header-actions,
.store-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.home-icon-link,
.header-icon-link,
.account-avatar-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  height: 40px !important;
  min-width: 40px !important;
  padding: 0 12px !important;
  border: 1px solid #ebe4d8 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #3f3a32 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: border-color 0.18s, background 0.18s, color 0.18s !important;
  box-sizing: border-box !important;
}
.home-icon-link:hover,
.header-icon-link:hover,
.account-avatar-link:hover {
  border-color: #c4a15c !important;
  background: #fbf8f0 !important;
  color: #8a6d32 !important;
}
.home-icon-link svg,
.header-icon-link svg,
.account-avatar-link svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 1.7 !important;
  flex-shrink: 0 !important;
}
.cart-count {
  position: absolute !important;
  top: -5px !important;
  left: -5px !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  background: #a98642 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
}
.home-cart-link,
.cart-icon-link {
  position: relative !important;
  width: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
}

/* Account: icon + text on desktop */
.account-avatar-link [data-account-label],
.header-icon-link .store-account-label,
.header-icon-link [data-account-label] {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile header */
@media (max-width: 980px) {
  .desktop-nav { display: none !important; }
  .header-search,
  .catalog-desktop-search,
  .detail-desktop-search { display: none !important; }

  .account-avatar-link [data-account-label],
  .header-icon-link .store-account-label,
  .header-icon-link [data-account-label],
  .store-header-actions a[data-account-link] span {
    display: none !important;
  }
  .account-avatar-link,
  .header-icon-link[data-account-link],
  .store-header-actions a[data-account-link] {
    width: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .menu-button,
  .detail-menu-button {
    display: grid !important;
    place-items: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 4px !important;
    border: 1px solid #ebe4d8 !important;
    border-radius: 12px !important;
    background: #fff !important;
    cursor: pointer !important;
    flex-shrink: 0;
  }
  .menu-button span,
  .detail-menu-button span {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background: #3f3a32 !important;
    border-radius: 2px !important;
    margin: 3px 0 !important;
    transition: transform 0.22s, opacity 0.22s !important;
  }
  .menu-button.is-active span:first-child,
  .detail-menu-button.is-active span:first-child {
    transform: translateY(5px) rotate(45deg) !important;
  }
  .menu-button.is-active span:nth-child(2),
  .detail-menu-button.is-active span:nth-child(2) {
    opacity: 0 !important;
  }
  .menu-button.is-active span:last-child,
  .detail-menu-button.is-active span:last-child {
    transform: translateY(-5px) rotate(-45deg) !important;
  }
}

/* ---- Mobile navigation drawer (beautiful) ---- */
.mobile-nav,
.detail-mobile-nav {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 10px !important;
  left: 10px !important;
  z-index: 950 !important;
  background: #fff !important;
  border: 1px solid #efe9df !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 50px rgba(24, 18, 10, 0.14) !important;
  padding: 4px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s !important;
  pointer-events: none;
}
.mobile-nav.open,
.detail-mobile-nav.open,
.mobile-nav.is-open,
.detail-mobile-nav.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}
.mobile-nav a,
.detail-mobile-nav a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 48px !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #2e2a24 !important;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s !important;
}
.mobile-nav a:hover,
.mobile-nav a:active,
.detail-mobile-nav a:hover,
.detail-mobile-nav a:active,
.mobile-nav a.active {
  background: #f8f4eb !important;
  color: #a98642 !important;
}
.mobile-nav a + a,
.detail-mobile-nav a + a {
  border-top: 0 !important;
}

/* Mobile search panel polish */
.mobile-search-panel,
.store-mobile-search {
  border-radius: 16px !important;
  border: 1px solid #efe9df !important;
  box-shadow: 0 16px 40px rgba(20, 14, 8, 0.12) !important;
  padding: 4px !important;
  gap: 8px !important;
}
.mobile-search-panel input,
.store-mobile-search input {
  height: 44px !important;
  border-radius: 12px !important;
  background: #faf9f6 !important;
  border: 1px solid #ebe4d8 !important;
  padding-inline: 14px !important;
  font-size: 13px !important;
}
.mobile-search-panel button,
.store-mobile-search button {
  height: 44px !important;
  border-radius: 12px !important;
  background: #a98642 !important;
  color: #fff !important;
  border: 0 !important;
  padding: 0 18px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}

/* Product detail header alignment */
.store-header-actions a {
  display: inline-flex !important;
  align-items: center !important;
  height: 40px !important;
  padding: 0 12px !important;
  border: 1px solid #ebe4d8 !important;
  border-radius: 12px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #3f3a32 !important;
  text-decoration: none !important;
  background: #fff !important;
}
.store-header-actions a:hover {
  border-color: #c4a15c !important;
  background: #fbf8f0 !important;
  color: #8a6d32 !important;
}
.detail-search-toggle,
.detail-menu-button {
  width: 40px !important;
  height: 40px !important;
  border: 1px solid #ebe4d8 !important;
  border-radius: 12px !important;
  background: #fff !important;
}

/* ---- Kill remaining side walls ---- */
html, body { max-width: 100%; overflow-x: hidden; }
.section-shell,
.popular-section,
.category-shelves,
.delta-discovery,
.trust-strip,
.catalog-shell,
.page-container,
.page,
main > section {
  max-width: 1360px !important;
  width: 100% !important;
  margin-inline: auto !important;
  padding-inline: clamp(12px, 2vw, 24px) !important;
  box-sizing: border-box !important;
}
.header-inner {
  max-width: 1360px !important;
  padding-inline: clamp(12px, 2vw, 24px) !important;
}

/* Catalog product cards — taller, full image */
.products-grid .product-card,
.catalog-grid .product-card,
#productGrid .product-card {
  min-height: 340px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.products-grid .product-img,
.catalog-grid .product-img,
#productGrid .product-img,

  background: linear-gradient(160deg, #fbfaf7, #f2eee6) !important;
  display: grid !important;
  place-items: center !important;
}
.products-grid .product-img img,
.catalog-grid .product-img img,
#productGrid .product-img img,
.product-card .product-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  mix-blend-mode: multiply;
}
@media (max-width: 600px) {
  .products-grid .product-img,
  #productGrid .product-img,
  
  }
  .products-grid .product-card,
  #productGrid .product-card {
    min-height: 280px !important;
  }
}

/* Detail main image */
.product-image,
#mainProductImage,
.image-frame img {
  object-fit: contain !important;
  max-height: 460px !important;
  width: 100% !important;
  height: auto !important;
}

/* =========================================================
   V4 — Digikala / premium storefront cards & layout
   ========================================================= */

/* Compact product cards — no giant empty white body */
.product-card,
.popular-track > .product-card,
.category-shelf-grid > .product-card,
.shelf-track > .product-card,
.products-grid .product-card,
#productGrid .product-card {
  width: 210px !important;
  min-width: 210px !important;
  max-width: 240px !important;
  min-height: 0 !important;
  height: auto !important;
  border: 1px solid #eee9e0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: none !important;
  position: relative !important;
  transition: box-shadow .2s, transform .2s !important;
}
.product-card:hover {
  box-shadow: 0 12px 28px rgba(30,24,14,.1) !important;
  transform: translateY(-3px) !important;
}
.product-card > a {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  text-decoration: none !important;
  color: inherit !important;
}

.product-img,
.popular-track .product-img,
.category-shelf-grid .product-img,
.products-grid .product-img,
#productGrid .product-img {
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  padding: 14px !important;
  margin: 0 !important;
  background: linear-gradient(180deg, #f7f4ee 0%, #faf9f6 100%) !important;
  display: grid !important;
  place-items: center !important;
  position: relative !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
}
.product-img img,
.product-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  mix-blend-mode: normal !important;
}

.product-body {
  padding: 10px 12px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
}
.product-body .category {
  font-size: 10px !important;
  color: #a98642 !important;
  font-weight: 600 !important;
  order: 0 !important;
  margin: 0 !important;
}
.product-body h3 {
  font-size: 13px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-weight: 600 !important;
  color: #1a1814 !important;
  order: 1 !important;
}
.product-body .notes { display: none !important; }
.product-body .price {
  margin-top: 6px !important;
  padding-top: 0 !important;
  order: 2 !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.product-body .price strong {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #1a1814 !important;
}
.product-body .price strong.has-sale { color: #be123c !important; }
.product-body .price del,
.product-body .old-price {
  font-size: 12px !important;
  color: #a1a1aa !important;
  text-decoration: line-through !important;
}
.view-product { display: none !important; }

/* Catalog grid: responsive columns */
#productGrid,
.products-grid,
.catalog-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 16px !important;
}
#productGrid .product-card,
.products-grid .product-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* Hover add-to-cart like DazKids */
.product-card .quick-add {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  border: 0;
  border-radius: 999px;
  background: #1a1814;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 18px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  transition: opacity .2s, transform .2s;
}
.product-card:hover .quick-add {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Hide product count */
.product-count, .results-count, .products-count,
.catalog-count, [data-product-count] {
  display: none !important;
}

/* Hide mobile filter trigger if empty/ugly - user asked to remove that button style */
#mobileFilterButton {
  min-height: 48px !important;
  width: 100% !important;
  border-radius: 14px !important;
  border: 1px solid #ebe4d8 !important;
  background: #fff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #1a1814 !important;
  margin: 0 0 14px !important;
}

/* Unified slim header like modern shops */
.site-header .header-inner {
  min-height: 64px !important;
  max-width: 1400px !important;
}
.header-search,
.catalog-desktop-search {
  max-width: 340px !important;
  flex: 1 1 280px !important;
}

/* Tighter page shell */
.catalog-shell,
.page-container {
  max-width: 1400px !important;
  padding-inline: clamp(12px, 2vw, 28px) !important;
}

@media (max-width: 700px) {
  .product-img,
  .popular-track .product-img,
  .category-shelf-grid .product-img,
  #productGrid .product-img {
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
  }
  .popular-track > .product-card,
  .category-shelf-grid > .product-card {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
  }
  .product-card .quick-add { display: none !important; }
}

/* =========================================================
   Product detail — DazKids-inspired clean layout
   ========================================================= */
.page.product-detail,
main.page,
.page-container {
  background: #f7f6f3 !important;
}
.breadcrumb {
  font-size: 12px !important;
  color: #8a8580 !important;
  margin-bottom: 18px !important;
}
.breadcrumb a { color: #6b6560 !important; }

#detailContent .product-card,
#detailContent > article {
  display: grid !important;
  grid-template-columns: 1.05fr 0.95fr !important;
  gap: 28px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
}
#detailContent .product-visual,
#detailContent .image-frame {
  background: #fff !important;
  border-radius: 20px !important;
  border: 1px solid #eee9e0 !important;
  padding: 4px !important;
  display: grid !important;
  place-items: center !important;
  min-height: 420px !important;
  position: relative !important;
}
#detailContent .product-image,
#detailContent #mainProductImage {
  max-height: 420px !important;
  width: 100% !important;
  object-fit: contain !important;
}
#detailContent .image-badge.discount,
#detailContent .discount-badge {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  right: auto !important;
  background: #e11d48 !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
#detailContent .product-info,
#detailContent .product-summary,
#detailContent .detail-side {
  background: transparent !important;
  padding: 8px 4px !important;
}
#detailContent h1,
#detailContent .product-title {
  font-size: clamp(22px, 2.4vw, 28px) !important;
  font-weight: 800 !important;
  margin: 8px 0 10px !important;
  line-height: 1.5 !important;
  color: #1a1814 !important;
}
#detailContent .price-current,
#detailContent .price-panel .price-current {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #1a1814 !important;
}
#detailContent .price-old {
  color: #a1a1aa !important;
  text-decoration: line-through !important;
  font-size: 14px !important;
}
#detailContent .order-button.whatsapp,
#detailContent #addToCart {
  background: #1a1814 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 14px !important;
  height: 52px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  width: 100% !important;
  cursor: pointer !important;
}
#detailContent .order-button.phone {
  display: none !important;
}
#detailContent .detail-assurances {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  margin-top: 14px !important;
}
#detailContent .detail-assurances span {
  background: #fff !important;
  border: 1px solid #eee9e0 !important;
  border-radius: 12px !important;
  padding: 12px 8px !important;
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #5c564c !important;
}
#detailContent .mobile-buybar {
  background: #fff !important;
  border-top: 1px solid #eee9e0 !important;
  box-shadow: 0 -8px 24px rgba(0,0,0,.06) !important;
}
#detailContent .mobile-buybar button,
#mobileAddToCart {
  background: #1a1814 !important;
  color: #fff !important;
  border-radius: 12px !important;
  border: 0 !important;
  font-weight: 700 !important;
}

@media (max-width: 860px) {
  #detailContent .product-card,
  #detailContent > article {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  #detailContent .product-visual,
  #detailContent .image-frame {
    min-height: 300px !important;
    padding: 4px !important;
  }
  #detailContent .product-image,
  #detailContent #mainProductImage {
    max-height: 320px !important;
  }
  #detailContent .detail-assurances {
    grid-template-columns: 1fr !important;
  }
}

/* Contact page header consistency */
body.contact-page .site-header,
.contact-header {
  background: rgba(255,255,255,.97) !important;
}

/* ===== V5 focused fixes ===== */

/* Hero full-bleed — no white side gutters */
.hero {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border-radius: 0 !important;
  left: 0 !important;
  right: 0 !important;
}
body { overflow-x: hidden !important; }

/* Cart badge — modern corner badge */
.cart-icon-link,
.home-cart-link,
a[href*="cart"] {
  position: relative !important;
}
.cart-count,
#cartCount {
  position: absolute !important;
  top: -6px !important;
  left: -6px !important;
  right: auto !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  background: #a98642 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 18px !important;
  text-align: center !important;
  display: inline-block !important;
  box-shadow: 0 2px 6px rgba(169,134,66,.4) !important;
  z-index: 2 !important;
}

/* Mobile menu — force working open state */
.mobile-nav,
.detail-mobile-nav {
  display: flex !important;
  flex-direction: column !important;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 12px !important;
  left: 12px !important;
  z-index: 1200 !important;
  background: #fff !important;
  border: 1px solid #efe9df !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 50px rgba(20,14,8,.16) !important;
  padding: 4px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-8px) !important;
  transition: .22s ease !important;
}
.mobile-nav.open,
.mobile-nav.is-open,
.detail-mobile-nav.open,
.detail-mobile-nav.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
.menu-button { display: none !important; }
@media (max-width: 980px) {
  .menu-button,
  .detail-menu-button {
    display: grid !important;
    place-items: center !important;
  }
}

/* Product cards — compact, image-first, no empty void */
.product-card {
  background: #fff !important;
  border: 1px solid #eee9e0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  min-height: 0 !important;
  height: auto !important;
}
.product-img,
.product-image {
  height: 200px !important;
  min-height: 200px !important;
  max-height: 200px !important;
  background: #f6f3ed !important;
  position: relative !important;
}
.product-body {
  padding: 10px 12px 12px !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
}
.product-body h3 { min-height: 0 !important; -webkit-line-clamp: 2 !important; }

/* Quick add on image corner */
.product-card .quick-add,
.product-img .btn-add {
  position: absolute !important;
  bottom: 10px !important;
  left: 10px !important;
  right: auto !important;
  z-index: 4 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #1a1814 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 8px 12px !important;
  opacity: 0 !important;
  transform: translateY(6px) !important;
  transition: .18s !important;
  cursor: pointer !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.18) !important;
}
.product-card:hover .quick-add,
.product-card:hover .product-img .btn-add {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* مشاهده همه — stronger CTA */
.editorial-heading > a,
.category-shelf-heading > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  border: 1px solid #e8e0d2 !important;
  background: #fff !important;
  color: #8a6d32 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: .15s !important;
}
.editorial-heading > a:hover,
.category-shelf-heading > a:hover {
  background: #a98642 !important;
  color: #fff !important;
  border-color: #a98642 !important;
}

/* Detail mobile friendly */
@media (max-width: 860px) {
  #detailContent .product-card,
  #detailContent > article {
    grid-template-columns: 1fr !important;
  }
  #detailContent .product-visual {
    min-height: 280px !important;
  }
  #detailContent h1 { font-size: 20px !important; }
  #detailContent .price-current { font-size: 22px !important; }
  #detailContent #addToCart {
    position: sticky !important;
    bottom: 12px !important;
    z-index: 20 !important;
  }
}

/* Category chip — tiny */
.product-body .category {
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: .2px !important;
  color: #a98642 !important;
  background: #f8f4eb !important;
  display: inline-block !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-bottom: 2px !important;
}

/* Home cards tighter */
.popular-track .product-img,
.category-shelf-grid .product-img {
  height: 180px !important;
  min-height: 180px !important;
  max-height: 180px !important;
}
.popular-track > .product-card,
.category-shelf-grid > .product-card {
  width: 190px !important;
  min-width: 190px !important;
  max-width: 190px !important;
}

/* ===== V7 final polish ===== */

/* Sticky header everywhere */
.site-header,
header.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
.site-header .header-inner {
  min-height: 60px !important;
  height: 60px !important;
  padding-inline: 14px !important;
}

/* Cart badge INSIDE the icon box */
.home-cart-link,
.cart-icon-link,
a.home-icon-link.cart-icon-link {
  position: relative !important;
  overflow: visible !important;
}
.cart-count,
#cartCount,
.home-cart-link .cart-count,
.cart-icon-link .cart-count {
  position: absolute !important;
  top: -4px !important;
  left: -4px !important;
  right: auto !important;
  min-width: 17px !important;
  height: 17px !important;
  line-height: 17px !important;
  padding: 0 4px !important;
  border-radius: 999px !important;
  background: #a98642 !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  text-align: center !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
  z-index: 3 !important;
  display: grid !important;
  place-items: center !important;
}

/* Compact premium product card */
.product-card.delta-card,
.popular-track .product-card,
.category-shelf-grid .product-card {
  position: relative !important;
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  border: 1px solid #eee9e0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: auto !important;
  box-shadow: none !important;
}
.product-card .card-main {
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none !important;
  color: inherit !important;
  flex: 1 !important;
}

  background: #f7f4ee !important;
  display: grid !important;
  place-items: center !important;
  position: relative !important;
}
.product-card .product-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  mix-blend-mode: normal !important;
}
.product-card .product-body {
  padding: 8px 10px 10px !important;
  gap: 2px !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
}
.product-card .product-body .category {
  font-size: 9px !important;
  line-height: 1.2 !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  background: #f8f4eb !important;
  color: #a98642 !important;
  font-weight: 700 !important;
  display: inline-block !important;
  width: auto !important;
  max-width: 90% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 0 2px !important;
}
.product-card .product-body h3 {
  font-size: 12px !important;
  line-height: 1.45 !important;
  min-height: 0 !important;
  margin: 0 !important;
  -webkit-line-clamp: 2 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.product-card .product-body .price {
  margin-top: 4px !important;
}
.product-card .product-body .price strong {
  font-size: 12.5px !important;
}

/* Quick add — real button, bottom of image */
.product-card button.quick-add {
  position: absolute !important;
  left: 8px !important;
  bottom: 72px !important;
  z-index: 6 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #1a1814 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 7px 12px !important;
  cursor: pointer !important;
  opacity: 0 !important;
  transform: translateY(6px) !important;
  transition: .18s ease !important;
  pointer-events: none !important;
  font-family: inherit !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.18) !important;
}
.product-card:hover button.quick-add {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}
@media (max-width: 700px) {
  .product-card button.quick-add {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    bottom: auto !important;
    top: 8px !important;
    left: 8px !important;
    padding: 6px 10px !important;
    font-size: 10px !important;
  }
  .product-card.delta-card,
  .popular-track .product-card,
  .category-shelf-grid .product-card {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
  }
  .product-card .product-img {
    height: 140px !important;
    min-height: 140px !important;
    max-height: 140px !important;
  }
}

/* Special offers track images */
.product-image {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: #f7f4ee !important;
}
.product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* V8 — mobile cards + full image */

  background: #f7f4ee !important;
  overflow: hidden !important;
}
.product-card .product-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

/* Category — never tall */
.product-body .category {
  font-size: 9px !important;
  line-height: 1.2 !important;
  padding: 2px 6px !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: inline-block !important;
  vertical-align: top !important;
  writing-mode: horizontal-tb !important;
  height: auto !important;
  min-height: 0 !important;
}

.product-card button.quick-add {
  font-size: 11px !important;
  padding: 8px 12px !important;
  white-space: nowrap !important;
  bottom: 8px !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(8px) !important;
  width: auto !important;
  max-width: calc(100% - 16px) !important;
}
.product-card:hover button.quick-add {
  transform: translateX(-50%) translateY(0) !important;
}

@media (max-width: 700px) {
  .product-card.delta-card,
  .popular-track .product-card,
  .category-shelf-grid .product-card {
    width: 148px !important;
    min-width: 148px !important;
    max-width: 148px !important;
  }
  .product-card .product-img {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
  }
  .product-card .product-body {
    padding: 3px !important;
  }
  .product-card .product-body h3 {
    font-size: 11px !important;
  }
  .product-card .product-body .price strong {
    font-size: 11.5px !important;
  }
  .product-card button.quick-add {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    width: calc(100% - 16px) !important;
    margin: 0 8px 8px !important;
    display: block !important;
    text-align: center !important;
    font-size: 10px !important;
    padding: 8px 6px !important;
  }
}

/* Kill weird empty beige circles from old product-image styles */
.product-image::before,
.product-image::after,
.product-img::before,
.product-img::after {
  display: none !important;
  content: none !important;
}

/* =========================================================
   V9 — targeted final fixes
   ========================================================= */

/* 1) Sticky compact header */
.site-header,
header.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: rgba(255,255,255,.98) !important;
  border-bottom: 1px solid #efe9df !important;
  box-shadow: 0 2px 12px rgba(30,24,14,.04) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
.site-header .header-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  min-height: 56px !important;
  height: 56px !important;
  padding: 0 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.site-header .brand img {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
}
.site-header .brand-text strong { font-size: 13px !important; }
.site-header .brand-text small { font-size: 8px !important; }

/* Desktop nav cleaner */
.desktop-nav {
  display: flex !important;
  align-items: center !important;
  gap: 22px !important;
}
.desktop-nav a {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #3f3a32 !important;
  padding: 6px 0 !important;
  position: relative !important;
  text-decoration: none !important;
}
.desktop-nav a:after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 0 !important;
  height: 2px !important;
  background: #a98642 !important;
  transition: .25s !important;
}
.desktop-nav a:hover:after,
.desktop-nav a.active:after {
  width: 100% !important;
}

/* Menu button — icon MUST fit inside box */
.menu-button,
button.menu-button {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #ebe4d8 !important;
  border-radius: 12px !important;
  background: #fff !important;
  display: none !important;
  place-items: center !important;
  gap: 4px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  cursor: pointer !important;
}
.menu-button span {
  display: block !important;
  width: 16px !important;
  height: 2px !important;
  max-width: 16px !important;
  background: #3f3a32 !important;
  border-radius: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}
@media (max-width: 980px) {
  .menu-button { display: grid !important; }
  .desktop-nav { display: none !important; }
  .header-search { display: none !important; }
}

/* Home icon buttons consistent size */
.home-icon-link,
.home-header-actions a,
.mobile-search-toggle {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border: 1px solid #ebe4d8 !important;
  border-radius: 12px !important;
  background: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.home-icon-link svg,
.mobile-search-toggle svg,
.home-header-actions svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0 !important;
}
.account-avatar-link span[data-account-label] {
  display: none !important;
}
@media (min-width: 981px) {
  .account-avatar-link {
    width: auto !important;
    min-width: 40px !important;
    padding: 0 12px !important;
    gap: 8px !important;
  }
  .account-avatar-link span[data-account-label] {
    display: inline !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }
}

/* Mobile search closed by default */
.mobile-search-panel {
  display: none !important;
}
.mobile-search-panel.open {
  display: flex !important;
}

/* 2) Remove quick-add everywhere */
.quick-add,
button.quick-add,
.product-card .quick-add {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* 3) Category — plain text, no box */
.product-body .category,
.product-card .category,
span.category {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #a98642 !important;
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.3 !important;
  margin: 0 0 3px !important;
  height: auto !important;
  min-height: 0 !important;
}

/* 4) Beautiful product cards */
.product-card,
.product-card.delta-card {
  background: #fff !important;
  border: 1px solid #eee9e0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease !important;
  box-shadow: 0 2px 10px rgba(30,24,14,.03) !important;
}
.product-card:hover {
  border-color: #e2d8c6 !important;
  box-shadow: 0 12px 28px rgba(30,24,14,.08) !important;
  transform: translateY(-2px) !important;
}

  background: linear-gradient(180deg, #faf8f3, #f3efe6) !important;
  display: grid !important;
  place-items: center !important;
}
.product-card .product-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}
.product-card .product-body {
  padding: 10px 12px 14px !important;
}
.product-card .product-body h3 {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  color: #1a1814 !important;
  margin: 0 0 6px !important;
  min-height: 0 !important;
}
.product-card .product-body .price strong {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #1a1814 !important;
}

/* 5) Special offers — FULL image always */
.product-image,
.product-track .product-image,
.product-card .product-image {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-color: #f7f4ee !important;
  overflow: hidden !important;
}
.product-image img,
.product-track .product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}

/* Discount badge small */
.discount-badge {
  font-size: 10px !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  top: 8px !important;
  left: 8px !important;
}


/* V10 — full product image + formal cards */

  box-sizing: border-box !important;
}
.product-image img,
.product-image > img,
.product-image > *:not(.shine):not(.discount):not(.image-badge) {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  margin: 0 auto !important;
  display: block !important;
}
.product-image .shine { display: none !important; }

/* Formal simple cards (like sample) */
.product-card.delta-card,
.popular-track .product-card,
.category-shelf-grid .product-card,
#productGrid .product-card {
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  border: 1px solid #eeeae3 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transition: border-color .2s, box-shadow .2s !important;
}
.product-card.delta-card:hover,
.popular-track .product-card:hover {
  border-color: #ddd4c4 !important;
  box-shadow: 0 8px 24px rgba(30,24,14,.06) !important;
  transform: none !important;
}
.product-card .product-img {
  height: 210px !important;
  min-height: 210px !important;
  max-height: 210px !important;
  padding: 18px 14px !important;
  background: #faf8f3 !important;
}
.product-card .product-img img {
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
}
.product-body .category {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: 11px !important;
  color: #a98642 !important;
  font-weight: 600 !important;
}
.product-body h3 {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1a1814 !important;
  margin: 2px 0 6px !important;
}
.product-body .price strong {
  font-size: 13px !important;
  font-weight: 700 !important;
}
.view-product {
  display: block !important;
  margin-top: 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #8a6d32 !important;
  border-top: 1px solid #f0ebe3 !important;
  padding-top: 8px !important;
}

@media (max-width: 700px) {
  .product-card.delta-card,
  .popular-track .product-card,
  .category-shelf-grid .product-card {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
  }
  .product-card .product-img,
  .product-image {
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
  }
}

/* Detail formal frames */
body.detail-page #detailContent .image-frame {
  border: 1px solid #eee9e0 !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 12px 40px rgba(30,24,14,.06) !important;
  padding: 32px !important;
}
body.detail-page #detailContent .price-panel {
  border: 1px solid #eee9e0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(30,24,14,.04) !important;
}
body.detail-page #detailContent .product-title {
  font-size: clamp(22px, 2.4vw, 28px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
}
body.detail-page #detailContent .volume-button {
  border: 1.5px solid #e8e0d2 !important;
  border-radius: 12px !important;
  background: #fff !important;
}
body.detail-page #detailContent .volume-button.active {
  border-color: #a98642 !important;
  background: #fbf8f0 !important;
}

/* Cart badge fix */
.cart-count, #cartCount {
  position: absolute !important;
  top: -5px !important;
  left: -5px !important;
  min-width: 18px !important;
  height: 18px !important;
  line-height: 14px !important;
  font-size: 10px !important;
  padding: 0 4px !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: #a98642 !important;
  color: #fff !important;
  overflow: hidden !important;
  max-width: 28px !important;
}

/* =========================================================
   V11 — unified special-offers card style everywhere
   ========================================================= */

/* Login/account: icon only, no text */
.account-avatar-link span,
.account-avatar-link [data-account-label],
span[data-account-label],
.store-account-label {
  display: none !important;
  font-size: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  opacity: 0 !important;
}
.account-avatar-link,
a.home-icon-link.account-avatar-link {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  padding: 0 !important;
  font-size: 0 !important;
}

/* Cart badge clean */
.cart-count, #cartCount {
  position: absolute !important;
  top: -4px !important;
  left: -4px !important;
  min-width: 16px !important;
  height: 16px !important;
  line-height: 12px !important;
  padding: 0 3px !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: #a98642 !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  max-width: 24px !important;
  box-sizing: border-box !important;
}

/* Unified product card = special offers style */
.product-card,
.product-card.reveal,
.product-card.delta-card {
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  border: 1px solid #ece7df !important;
  border-radius: 18px !important;
  background: #fff !important;
  overflow: hidden !important;
  box-shadow: 0 8px 30px rgba(36,25,12,.05) !important;
  transition: transform .35s cubic-bezier(.16,.84,.32,1), box-shadow .35s ease !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
}
.product-card:hover {
  transform: translateY(-7px) !important;
  box-shadow: 0 20px 40px rgba(36,25,12,.1) !important;
}
.product-card-link,
.product-card > a {
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none !important;
  color: inherit !important;
  height: 100% !important;
}

/* Image area — full product centered */

  box-sizing: border-box !important;
  background: linear-gradient(145deg, #f5efe3, #ebe3d4) !important;
}
.product-image img,
.product-card .product-img img,
.product-image > img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 auto !important;
  transform: none !important;
}
/* kill old bottle/shine interference */
.product-image .shine { opacity: 0 !important; pointer-events: none !important; }
.product-image > *:not(.shine):not(.discount):not(.discount-badge):not(img) {
  /* don't force transform on unknown children */
}

/* Info block */
.product-info,
.product-card .product-body {
  padding: 16px 18px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
  background: #fff !important;
}
.product-info > p,
.product-info .category-label,
.product-body .category {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #a98642 !important;
  line-height: 1.4 !important;
}
.product-info h3,
.product-body h3 {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  color: #1a1814 !important;
  min-height: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.product-info .notes,
.product-body .notes {
  font-size: 11px !important;
  color: #8a8580 !important;
  line-height: 1.6 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.price-row,
.product-info .price,
.product-body .price {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin-top: 6px !important;
  flex-wrap: wrap !important;
}
.price-row strong,
.product-info .price strong,
.product-body .price strong {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #1a1814 !important;
}
.old-price, del.old-price {
  font-size: 12px !important;
  color: #a1a1aa !important;
  text-decoration: line-through !important;
}
.view-link,
.view-product {
  display: inline-block !important;
  margin-top: 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #8a6d32 !important;
  border-top: 1px solid #f0ebe3 !important;
  padding-top: 10px !important;
}
.discount,
.discount-badge {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  background: #5e3b67 !important;
  color: #fff !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  z-index: 2 !important;
}

/* Tracks horizontal */
.popular-track,
.category-shelf-grid,
.product-track,
.shelf-track {
  display: flex !important;
  gap: 16px !important;
  overflow-x: auto !important;
  padding: 8px 4px 16px !important;
  scroll-snap-type: x mandatory !important;
}
.popular-track .product-card,
.category-shelf-grid .product-card,
.product-track .product-card {
  scroll-snap-align: start !important;
  flex: 0 0 260px !important;
}

/* Products grid page */
#productGrid,
.products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 18px !important;
}
#productGrid .product-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: none !important;
}

@media (max-width: 700px) {
  .product-card,
  .popular-track .product-card,
  .category-shelf-grid .product-card,
  .product-track .product-card {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    flex: 0 0 200px !important;
  }
  
  }
  .product-info h3 { font-size: 13px !important; }
}

/* Detail + customer panels — more formal frames */
body.detail-page #detailContent .image-frame {
  border: 1px solid #ece7df !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 36px rgba(36,25,12,.06) !important;
  background: linear-gradient(145deg, #faf8f3, #f3efe6) !important;
}
body.detail-page #detailContent .price-panel,
body.detail-page #detailContent .volume-section,
body.detail-page #detailContent .quantity-section {
  border: 1px solid #ece7df !important;
  border-radius: 16px !important;
  background: #fff !important;
  padding: 4px !important;
  margin-bottom: 12px !important;
}
body.detail-page #detailContent #addToCart {
  background: #1a1814 !important;
  border-radius: 14px !important;
  height: 52px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

/* Customer panel pages (orders, cart, profile, checkout) */
.orders-page .panel,
.cart-page .panel,
.profile-page .card,
.checkout-box,
.order-card,
.address-card {
  border: 1px solid #ece7df !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(36,25,12,.04) !important;
  padding: 4px !important;
}

/* V12 — force FULL centered product images */

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: linear-gradient(145deg, #f5efe3, #ebe3d4) !important;
  box-sizing: border-box !important;
}
.product-image img,
.product-card .product-image img,
.product-card .product-img img,
.product-track .product-image img,
#productGrid .product-image img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 auto !important;
  transform: none !important;
  position: relative !important;
  inset: auto !important;
}
@media (max-width: 700px) {
  
  }
}

/* V13 — fix invisible home shelves + unify cards */
.product-card.reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
.product-card.reveal.visible {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Category shelves: horizontal scroll like special offers, not broken grid */
.category-shelf-grid,
.category-shelf-grid.shelf-track,
.popular-track,
.product-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  padding: 8px 2px 20px !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  grid-template-columns: none !important;
}
.category-shelf-grid .product-card,
.popular-track .product-card,
.product-track .product-card {
  flex: 0 0 260px !important;
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  scroll-snap-align: start !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Products page grid still uses same card look */
#productGrid .product-card {
  opacity: 1 !important;
  visibility: visible !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: none !important;
}
#productGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 18px !important;
}

/* Match special offers card body typography */
.product-info > p {
  color: #a98642 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  margin: 0 0 4px !important;
}
.product-info h3 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1a1814 !important;
  margin: 0 0 6px !important;
}
.product-info .notes {
  font-size: 12px !important;
  color: #8a8580 !important;
  line-height: 1.7 !important;
}
.view-link {
  color: #8a6d32 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

@media (max-width: 700px) {
  .category-shelf-grid .product-card,
  .popular-track .product-card,
  .product-track .product-card {
    flex: 0 0 200px !important;
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
  }
}


/* tighter image padding */

}
@media (max-width: 700px) {
  
  }
}


/* minimal image edge gap */
.product-image,
.product-card .product-image,
.product-card .product-img,
.popular-track .product-image,
.category-shelf-grid .product-image,
.product-track .product-image,
#productGrid .product-image,
.popular-track .product-img,
.category-shelf-grid .product-img {
  padding: 4px !important;
}
@media (max-width: 700px) {
  .product-image,
  .product-card .product-image,
  .product-card .product-img {
    padding: 3px !important;
  }
}


/* sticky header + mobile 3-dots + hide extra search icon */
.site-header, header.site-header, .top-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}
button.header-search-toggle,
.header-search-icon-btn,
[data-open-search],
.mobile-search-trigger {
  display: none !important;
}
@media (max-width: 900px) {
  .menu-button svg,
  #menuButton svg,
  button.menu-button svg {
    display: none !important;
  }
  .menu-button::before,
  #menuButton::before,
  button.menu-button::before {
    content: "⋮";
    font-size: 22px;
    line-height: 1;
    color: inherit;
  }
}
#productGrid .product-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

/* ===== V20 critical catalog + header ===== */
html body .site-header,
html body header.site-header,
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: blur(12px);
}

/* Desktop: hide secondary search toggle next to login */
@media (min-width: 901px) {
  .mobile-search-toggle,
  #mobileSearchToggle,
  button.mobile-search-toggle {
    display: none !important;
  }
}

/* Mobile menu: three dots */
@media (max-width: 900px) {
  .menu-button,
  #menuButton,
  button.menu-button {
    width: 40px !important;
    height: 40px !important;
    border: 1px solid #ebe4d8 !important;
    border-radius: 12px !important;
    background: #fff !important;
    display: inline-grid !important;
    place-items: center !important;
    font-size: 22px !important;
    line-height: 1 !important;
    color: #1a1814 !important;
  }
  .menu-button svg,
  #menuButton svg { display: none !important; }
  .menu-button::before,
  #menuButton::before { content: "⋮"; }
}

/* Products grid — never tall empty cards */
#productGrid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: start !important;
}
@media (min-width: 900px) {
  #productGrid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 16px !important;
  }
}
#productGrid .product-card,
#productGrid .product-card.reveal {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  display: flex !important;
  flex-direction: column !important;
}
#productGrid .product-image,
#productGrid .product-img {
  height: 160px !important;
  min-height: 160px !important;
  max-height: 160px !important;
  padding: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
@media (min-width: 900px) {
  #productGrid .product-image,
  #productGrid .product-img {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
  }
}
#productGrid .product-image img,
#productGrid .product-img img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}
#productGrid .product-info,
#productGrid .product-body {
  padding: 10px 12px 12px !important;
}
#productGrid .product-info h3,
#productGrid .product-body h3 {
  font-size: 13px !important;
  line-height: 1.5 !important;
  min-height: 0 !important;
  -webkit-line-clamp: 2 !important;
}
/* kill reveal animation on catalog forever */
.product-card.reveal { opacity: 1 !important; transform: none !important; filter: none !important; }

/* Header: one menu control only */
.menu-button svg,
#menuButton svg,
button.menu-button svg {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.menu-button,
#menuButton {
  position: relative !important;
}
.menu-button::before,
#menuButton::before {
  content: "⋮" !important;
  font-size: 22px !important;
  line-height: 1 !important;
}
@media (min-width: 901px) {
  .mobile-search-toggle,
  #mobileSearchToggle { display: none !important; }
  /* desktop: hide hamburger if nav is visible */
  .menu-button,
  #menuButton { display: none !important; }
}

/* productGrid real id lock */
#productGrid,.product-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
@media(min-width:900px){#productGrid,.product-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;gap:16px!important}}
#productGrid .product-card,.product-grid .product-card{height:auto!important;min-height:0!important;width:100%!important;max-width:100%!important;opacity:1!important;transform:none!important;filter:none!important}
#productGrid .product-img,#productGrid .product-image,.product-grid .product-img,.product-grid .product-image{height:150px!important;min-height:150px!important;max-height:150px!important;padding:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
@media(min-width:900px){#productGrid .product-img,#productGrid .product-image,.product-grid .product-img,.product-grid .product-image{height:210px!important;min-height:210px!important;max-height:210px!important}}
#productGrid .product-img img,#productGrid .product-image img,.product-grid .product-img img,.product-grid .product-image img{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;transform:none!important}
#productGrid .notes,.product-grid .notes{display:none!important}
#productGrid .loading-card{height:220px!important;min-height:220px!important}


/* ===== polish menu: only ⋮ ===== */
button.menu-button,
#menuButton,
.menu-button {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border: 1px solid #ebe4d8 !important;
  border-radius: 12px !important;
  background: #fff !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: #1a1814 !important;
  position: relative !important;
}
button.menu-button > *,
#menuButton > *,
.menu-button svg,
.menu-button span,
.menu-button img {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}
button.menu-button::before,
#menuButton::before,
.menu-button::before {
  content: "⋮" !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  color: #1a1814 !important;
}
@media (min-width: 901px) {
  button.menu-button,
  #menuButton { display: none !important; }
}

/* mobile nav must open on products page */
.mobile-nav {
  position: absolute !important;
  top: 100% !important;
  right: 12px !important;
  left: 12px !important;
  z-index: 1200 !important;
  background: rgba(255,255,255,.98) !important;
  border: 1px solid #eee8df !important;
  border-radius: 18px !important;
  padding: 10px !important;
  box-shadow: 0 18px 45px rgba(20,18,12,.13) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-8px) !important;
  transition: .22s !important;
  display: grid !important;
  gap: 2px !important;
}
.mobile-nav.open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}
.mobile-nav a {
  display: block !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  color: #1a1814 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.mobile-nav a:hover { background: #f7f3e9 !important; }
.site-header, header.site-header { position: sticky !important; top: 0 !important; z-index: 999 !important; }

/* larger product images, less edge gap */
#productGrid .product-img,
#productGrid .product-image,
.product-grid .product-img,
.product-grid .product-image {
  height: 175px !important;
  min-height: 175px !important;
  max-height: 175px !important;
  padding: 4px !important;
}
@media (min-width: 900px) {
  #productGrid .product-img,
  #productGrid .product-image,
  .product-grid .product-img,
  .product-grid .product-image {
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    padding: 6px !important;
  }
}
#productGrid .product-img img,
#productGrid .product-image img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
/* view product at bottom with separator */
#productGrid .product-info,
#productGrid .product-body,
.product-grid .product-info,
.product-grid .product-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 10px 12px 12px !important;
}
#productGrid .view-link,
#productGrid .view-product,
.product-grid .view-link,
.product-grid .view-product {
  order: 99 !important;
  margin-top: auto !important;
  padding-top: 10px !important;
  border-top: 1px solid #f0ebe3 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #8a6d32 !important;
  display: block !important;
}
#productGrid .notes { display: none !important; }

/* add-to-cart transformed button */
.order-button.go-cart,
#addToCart.go-cart,
#mobileAddToCart.go-cart {
  background: #a98642 !important;
  color: #fff !important;
}


/* mobile menu hard-fix for catalog */
@media (max-width: 900px) {
  .site-header { position: sticky !important; top: 0 !important; z-index: 2000 !important; overflow: visible !important; }
  .site-header .header-inner { overflow: visible !important; position: relative !important; }
  button.menu-button, #menuButton {
    display: inline-grid !important;
    place-items: center !important;
    width: 40px !important; height: 40px !important;
    border: 1px solid #ebe4d8 !important; border-radius: 12px !important;
    background: #fff !important; padding: 0 !important; font-size: 0 !important;
  }
  button.menu-button > *, #menuButton > * { display: none !important; }
  button.menu-button::before, #menuButton::before { content: "⋮" !important; font-size: 22px !important; line-height: 1 !important; color: #1a1814 !important; }
  .mobile-nav, #mobileNav {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 10px !important;
    left: 10px !important;
    z-index: 3000 !important;
    background: #fff !important;
    border: 1px solid #eee8df !important;
    border-radius: 16px !important;
    padding: 8px !important;
    box-shadow: 0 18px 40px rgba(20,18,12,.14) !important;
    display: none !important;
  }
  .mobile-nav.open, #mobileNav.open {
    display: grid !important;
    gap: 2px !important;
  }
  .mobile-nav a, #mobileNav a {
    display: block !important;
    padding: 13px 14px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    color: #1a1814 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }
  .mobile-nav a:hover { background: #f7f3e9 !important; }
}

/* tighter header to toolbar gap */
.catalog-shell { padding-top: 8px !important; }
.catalog-top { margin: 8px 0 12px !important; }
.catalog-toolbar, .toolbar { margin-top: 0 !important; }

/* store-like product cards */
#productGrid .product-card,
.product-grid .product-card {
  border: 1px solid #eee7db !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(33,25,13,.05) !important;
  transition: transform .2s, box-shadow .2s !important;
}
#productGrid .product-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 28px rgba(33,25,13,.1) !important;
}
#productGrid .product-img,
#productGrid .product-image {
  height: 185px !important;
  min-height: 185px !important;
  max-height: 185px !important;
  padding: 6px !important;
  background: linear-gradient(160deg,#fbfaf7,#f3efe6) !important;
}
@media(min-width:900px){
  #productGrid .product-img, #productGrid .product-image {
    height: 250px !important; min-height: 250px !important; max-height: 250px !important; padding: 8px !important;
  }
}
#productGrid .category-label {
  font-size: 10px !important;
  letter-spacing: .4px !important;
  color: #a08a5c !important;
  font-weight: 700 !important;
  text-transform: none !important;
  margin: 0 0 2px !important;
}
#productGrid .product-info h3,
#productGrid .product-body h3 {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #1a1814 !important;
  margin: 0 0 4px !important;
}
#productGrid .price strong {
  font-size: 14px !important;
  font-weight: 800 !important;
}
#productGrid .view-link,
#productGrid .view-product {
  order: 99 !important;
  margin-top: 8px !important;
  padding-top: 10px !important;
  border-top: 1px solid #f0ebe3 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #8a6d32 !important;
  text-align: center !important;
}
