@font-face {
  font-family: "Almoni DL AAA";
  src: url("fonts/almoni-dl-aaa-400.eot");
  src: url("fonts/almoni-dl-aaa-400.eot?#iefix") format("embedded-opentype"),
       url("fonts/almoni-dl-aaa-400.woff") format("woff"),
       url("fonts/almoni-dl-aaa-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #b6924f;
  --brand-dark: #8f6f34;
  --ink: #1b1b1b;
  --bg: #ffffff;
  --panel: #ffffff;
  --border: #e9e3d6;
  --text: #1b1b1b;
  --muted: #8a8478;
  --radius: 4px;
  --font-serif: "Almoni DL AAA", "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --font-sans: "Almoni DL AAA", "Assistant", "Heebo", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
::selection { background: #000; color: #fff; }
::-moz-selection { background: #000; color: #fff; }
/* overflow-x: clip is not supported on all mobile browsers/WebViews
   (notably older Chrome/WebKit on Android and many in-app browsers). When
   unsupported, the browser silently ignores it and falls back to
   `visible`, so any element that overflows horizontally by even a few
   pixels shifts the whole RTL layout sideways. `hidden` is universally
   supported and achieves the same goal. */
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans);
  background: var(--bg); color: var(--text); line-height: 1.6;
  width: 100%;
}
/* Horizontal-overflow guard lives here instead of on <body> itself.
   Setting overflow-x:hidden directly on <body> forces the browser to
   treat body as its own scroll container (it implicitly computes
   overflow-y:auto too), which breaks `position: sticky` for any
   descendant - including .site-header. Scoping the guard to this
   wrapper (which sits below .topbar/.site-header, not around them)
   keeps the RTL horizontal-scroll protection without breaking the
   sticky header. See .topbar/.site-header sticky rules below. */
.page-shell { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.topbar {
  background: var(--ink); color: #efe9dc; text-align: center; font-size: 17px; letter-spacing: .5px;
  overflow: hidden; position: sticky; top: 0; z-index: 55;
}
.topbar-track { display: grid; }
.topbar-slide {
  grid-area: 1 / 1; padding: 10px 10px; line-height: 1.2; opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.topbar-slide.leaving { opacity: 0; transform: translateY(-10px); }

.site-main h2 { font-family: var(--font-serif); font-weight: 500; }
.category-tiles-section h2, .product-section h2, .blog-section h2, .collections-section h2 {
  text-align: center; text-transform: uppercase; letter-spacing: 2px; font-size: 24px; margin-bottom: 8px;
}
.category-tiles-section h2::after, .product-section h2::after, .blog-section h2::after, .collections-section h2::after {
  content: ""; display: block; width: 46px; height: 2px; background: var(--brand); margin: 14px auto 8px;
}
.collections-subtitle { text-align: center; color: var(--muted); font-size: 14px; max-width: 700px; margin: 0 auto 30px; line-height: 1.7; }

.site-header { background: var(--panel); border-bottom: 1px solid var(--border); position: sticky; top: var(--topbar-h, 0px); z-index: 90; }
.header-inner {
  max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 18px 24px; gap: 16px;
}
.site-logo {
  grid-column: 2; justify-self: center; font-family: var(--font-serif); font-weight: 700;
  font-size: 30px; letter-spacing: .5px; color: var(--ink); white-space: nowrap;
  display: flex; align-items: center;
}
.site-logo-img { height: 64px; width: auto; object-fit: contain; display: block; }

.header-icons-start { grid-column: 1; justify-self: start; min-width: 0; position: relative; display: flex; align-items: center; gap: 14px; }
.header-icons-end { grid-column: 3; justify-self: end; }

.icon-btn {
  background: none; border: none; cursor: pointer; color: var(--ink); padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn .icon-glyph { font-size: 21px; }
.nav-toggle-btn { display: none; }
.nav-toggle-label { display: none; }

.icon-svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
.icon-link .icon-svg { width: 20px; height: 20px; }

.header-search-inline {
  display: flex; width: 300px; max-width: 100%; height: 44px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--panel);
}
.header-search-inline input { flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: none; outline: none; background: transparent; font-family: inherit; font-size: 14px; color: var(--ink); }
.header-search-inline input::placeholder { color: var(--muted); }
.header-search-inline button { border: none; background: none; cursor: pointer; color: var(--ink); display: flex; align-items: center; height: 100%; padding: 0 14px; }
.header-search-inline .icon-svg { width: 18px; height: 18px; }

/* Permanent search bar shown under the header on mobile/tablet (see media query below) */
.header-search-bar { display: none; }
.header-search {
  display: flex; height: 42px; border: 1px solid var(--border); border-radius: 24px; width: 100%;
}
.header-search input { flex: 1; height: 100%; padding: 0 16px; border: none; outline: none; background: transparent; font-family: inherit; font-size: 13px; color: var(--ink); min-width: 0; }
.header-search button { border: none; background: none; cursor: pointer; color: var(--muted); display: flex; align-items: center; height: 100%; padding: 0 16px; }
.header-search .icon-glyph { font-size: 16px; }

/* Live product suggestions dropdown for the header search boxes
   (search-autocomplete.js). Attached inside the <form> so it's
   positioned relative to the search box itself. */
.search-autocomplete {
  position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 60;
  background: var(--bg, #fff); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12); overflow: hidden; max-height: 420px; overflow-y: auto;
}
.search-autocomplete-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.search-autocomplete-item:last-of-type { border-bottom: none; }
.search-autocomplete-item:hover { background: var(--panel); }
.search-autocomplete-item img { width: 42px; height: 42px; object-fit: cover; border-radius: 4px; flex: none; background: var(--panel); }
.search-autocomplete-noimg { width: 42px; height: 42px; border-radius: 4px; flex: none; background: var(--panel); }
.search-autocomplete-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.search-autocomplete-name { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-autocomplete-price { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.search-autocomplete-price s { color: var(--muted); opacity: .7; }
.search-autocomplete-see-all {
  display: block; text-align: center; padding: 10px 14px; font-size: 13px; font-weight: 600;
  color: var(--brand-dark, var(--ink)); text-decoration: none; background: var(--panel);
}
.search-autocomplete-see-all:hover { text-decoration: underline; }

.mobile-nav-overlay { display: none; }
.mobile-nav-head { display: none; }
body.mobile-nav-locked { overflow: hidden; }


.main-nav {
  display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap;
  padding: 12px 24px; border-top: 1px solid var(--border);
  background: #000; /* desktop nav strip — overridden back to var(--panel) in the ≤1024px mobile drawer below */
}
.main-nav > a {
  font-size: 16px; font-weight: 400; text-transform: uppercase; letter-spacing: .8px;
  color: #fff; padding: 4px 2px; position: relative;
}
.main-nav > a::after {
  content: ""; position: absolute; right: 0; left: 0; bottom: -3px; height: 2px; background: var(--brand);
  transform: scaleX(0); transition: transform .2s ease;
}
.main-nav > a:hover { color: var(--brand); }
.main-nav > a:hover::after { transform: scaleX(1); }
.main-nav > a.nav-sale { color: #c0392b; }
.main-nav > a.nav-sale:hover { color: #96271a; }
.main-nav > a.nav-sale::after { background: #c0392b; }

.nav-dropdown { position: relative; }
.nav-dropdown > a {
  display: inline-block; font-size: 16px; font-weight: 400; text-transform: uppercase;
  letter-spacing: .8px; color: #fff; padding: 4px 2px;
}
.nav-dropdown > a:hover { color: var(--brand); }
.mega-menu {
  display: none; position: absolute; top: 100%; right: 0; z-index: 60;
  background: var(--panel); border: 1px solid var(--border); border-top: 2px solid var(--brand); border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(0,0,0,0.1); padding: 22px; gap: 24px;
  grid-template-columns: repeat(4, minmax(140px, 1fr)); min-width: 560px; max-width: 90vw;
}
.nav-dropdown:hover .mega-menu { display: grid; }
.nav-dropdown.open .mega-menu { display: grid; position: static; box-shadow: none; border: none; grid-template-columns: 1fr; min-width: 0; padding: 8px 0 8px 16px; }
.mega-col { display: flex; flex-direction: column; gap: 7px; }
.mega-col-title { font-family: var(--font-serif); font-weight: 700; color: var(--ink); margin-bottom: 4px; font-size: 18px; }
.mega-col a { font-size: 18px; color: var(--muted); }
.mega-col a:hover { color: var(--brand-dark); }
.mega-empty { color: var(--muted); font-size: 18px; }

.header-icons { display: flex; align-items: center; gap: 16px; }
.icon-link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.icon-link .icon-glyph { font-size: 19px; }
.icon-link .icon-label { font-size: 10px; letter-spacing: .3px; color: var(--muted); text-transform: uppercase; }
.icon-link.auth-link { flex-direction: row; gap: 6px; }
.icon-link.auth-link .icon-label { font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.icon-divider { width: 1px; height: 22px; background: var(--border); }
.header-phone {
  font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: .3px;
  white-space: nowrap; direction: ltr;
}
.header-phone:hover { color: var(--brand-dark); }
.header-about-btn {
  font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap;
  transition: color .15s;
}
.header-about-btn:hover { color: var(--brand-dark); }
/* Desktop-only "About" button in the header, next to the phone number. */
.header-about-btn, .header-about-divider { display: none; }
@media (min-width: 1025px) {
  .header-about-btn { display: flex; align-items: center; }
  .header-about-divider { display: block; }
}

/* Desktop only — enlarge the phone number, the personal-area (account) label,
   and the wishlist/cart icons in the header. Scoped to min-width:1025px so it
   never touches the ≤1024px mobile/tablet header. */
@media (min-width: 1025px) {
  .header-phone { font-size: 18px; }
  .header-icons-end .icon-link.auth-link .icon-label { font-size: 15px; }
  .header-icons-end .icon-link:not(.auth-link) .icon-svg { width: 24px; height: 24px; }

  /* Slow fade-in for the category mega-menu on hover (desktop only). */
  .mega-menu {
    display: grid; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .45s ease, visibility .45s ease;
  }
  .nav-dropdown:hover .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; }
}
.icon-badge {
  position: absolute; top: -6px; left: -10px; background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}


.auth-wrap { display: flex; flex-wrap: wrap; gap: 24px; max-width: 900px; margin: 0 auto; align-items: flex-start; justify-content: center; }
.auth-box { max-width: 420px; flex: 1 1 380px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.auth-box h1 { margin-top: 0; font-size: 22px; text-align: center; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }

/* Social login box — rendered to the left of .auth-box (RTL: first in the
   markup sits on the right, so this second box lands on the left). */
.auth-social-box {
  flex: 1 1 320px; max-width: 360px; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 14px;
}
.auth-social-box h2 { margin: 0 0 4px; font-size: 16px; text-align: center; color: var(--muted); font-weight: 600; }
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; color: var(--ink); font-weight: 600; font-size: 14px;
  text-decoration: none; transition: background .15s, border-color .15s;
}
.btn-social:hover { background: #f6f6f6; border-color: #ccc; }
.btn-social svg { width: 20px; height: 20px; flex-shrink: 0; }
.auth-social-note { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }
@media (max-width: 640px) {
  .auth-wrap { flex-direction: column-reverse; align-items: stretch; }
  .auth-social-box, .auth-box { max-width: 100%; }
}
.account-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.account-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.account-card label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.account-card input { width: 100%; margin-top: 5px; padding: 9px; border: 1px solid var(--border); border-radius: 8px; }
.account-card .btn-primary { display: block; width: 100%; text-align: center; border-radius: 8px; margin-top: 6px; }

.site-main { max-width: 1200px; margin: 0 auto; padding: 30px 20px; min-height: 60vh; }

.site-footer { background: var(--panel); border-top: 1px solid var(--border); margin-top: 60px; color: var(--text); }
.footer-top {
  max-width: 1300px; margin: 0 auto; padding: 46px 24px 30px;
  display: grid; grid-template-columns: 1fr 1fr 1.3fr 1.1fr; gap: 30px; align-items: start;
}
.footer-links-col h4, .footer-trust-col h4 {
  font-family: var(--font-serif); color: var(--ink); font-size: 16px; font-weight: 700;
  margin: 0 0 14px;
}
.footer-pill {
  display: block; border: 1px solid var(--ink); border-radius: 8px; padding: 10px 14px;
  font-size: 15px; color: var(--ink); margin-bottom: 10px; text-align: center; transition: background .15s ease, color .15s ease;
}
.footer-pill:hover { background: var(--ink); color: #fff; }

.footer-brand-col { text-align: center; }
.footer-logo { font-family: var(--font-serif); font-weight: 700; font-size: 24px; color: var(--ink); margin-bottom: 14px; }
.footer-legal { font-size: 17px; color: var(--muted); line-height: 1.8; margin: 0 0 16px; }
.footer-wholesale-pill {
  display: inline-block; border: 1px solid var(--ink); border-radius: 8px; padding: 8px 18px; font-size: 17px; color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.footer-wholesale-pill:hover { background: var(--ink); color: #fff; }

.footer-trust-col { text-align: center; }
.footer-social { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.social-circle {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); display: flex;
  align-items: center; justify-content: center; color: var(--ink); transition: background .15s ease, color .15s ease;
}
.social-circle svg { width: 18px; height: 18px; fill: currentColor; }
.social-circle:hover { background: var(--ink); color: #fff; }
.footer-trust-badge {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 12px; font-size: 14px; color: var(--text); margin-bottom: 14px;
}
.footer-payments { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pay-badge {
  border: 1px solid var(--ink); border-radius: 6px; padding: 6px 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .3px; color: var(--ink);
}

.footer-bottom { text-align: center; padding: 18px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; }

/* Hero slider */
.hero-slider {
  position: relative; overflow: hidden; background: #efe9dc;
  aspect-ratio: 21 / 7; max-height: 560px; min-height: 300px;
  /* Breaks out of .site-main's max-width so it spans the full viewport
     width, regardless of how wide the browser window is. */
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  margin-top: -30px; margin-bottom: 50px;
}
.hero-slider::after {
  content: ""; position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,.75); border-radius: 14px;
  pointer-events: none; z-index: 5;
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .7s ease; display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide-content {
  position: relative; z-index: 2; max-width: 480px; margin-inline-start: 70px; text-align: right;
}
.hero-slide-content h2 {
  margin: 0 0 10px; font-family: var(--font-serif); font-weight: 700; font-size: 38px; line-height: 1.25;
  color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.hero-slide-content p { margin: 0 0 22px; color: #f1ede4; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero-slide-content .btn-primary { background: #fff; color: var(--ink); }
.hero-slide-content .btn-primary:hover { background: var(--brand); color: #fff; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.88); z-index: 4;
  border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 22px; cursor: pointer; color: var(--ink);
}
.hero-prev { right: 20px; }
.hero-next { left: 20px; }
.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); background: transparent; cursor: pointer; }
.hero-dot.active { background: #fff; }

/* Promo tiles (new arrivals / sale) */
.promo-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 50px; }
.promo-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: var(--panel); }
.promo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.promo-tile:hover img { transform: scale(1.04); }
.promo-tile-label {
  position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(to top, rgba(0,0,0,0.62), transparent);
  color: #fff; font-family: var(--font-serif); font-size: 19px; text-transform: uppercase; letter-spacing: 1px; text-align: center;
}

/* Collections section — wide framed banners with top text + SHOP NOW */
.collections-section { margin-bottom: 10px; }
.collection-tile-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 50px;
}
.collection-tile-image {
  position: relative; aspect-ratio: 4 / 5; border-radius: 16px; background-size: cover; background-position: center;
  background-color: #f2ede4; border: 1px solid var(--border); overflow: hidden;
  transition: background-size .5s ease;
}
.collection-tile:hover .collection-tile-image { background-size: 125%; }
.collection-tile-image::before {
  content: ""; position: absolute; inset: 16px; border: 1px solid rgba(255,255,255,.85); border-radius: 9px;
  pointer-events: none; z-index: 2;
}
.collection-tile-image::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,.58) 0%, rgba(0,0,0,.1) 40%, rgba(0,0,0,0) 62%);
}
.collection-tile-content {
  position: relative; z-index: 3; padding: 30px 24px 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.collection-tile-content h3 {
  font-family: var(--font-serif); font-weight: 700; font-size: 20px; color: #fff; margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.collection-tile-content p {
  font-size: 13px; color: #f1ede4; margin: 0; max-width: 90%; line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.collection-tile-content .btn-primary {
  background: #fff; color: var(--ink); padding: 10px 22px; font-size: 11px; margin-top: 4px;
}
.collection-tile:hover .collection-tile-content .btn-primary { background: var(--brand); color: #fff; }

/* Category tile grid — portrait framed cards with always-visible SHOP NOW button */
.category-tile-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; margin-bottom: 50px;
}
.category-tile { text-align: center; }
.category-tile-image {
  position: relative; aspect-ratio: 3 / 4; border-radius: 16px; background-size: cover; background-position: center;
  background-color: #f2ede4; border: 1px solid var(--border); overflow: hidden;
  display: flex; align-items: center; justify-content: center; transition: box-shadow .2s ease;
}
.category-tile-image::before {
  content: ""; position: absolute; inset: 16px; border: 1px solid rgba(255,255,255,.85); border-radius: 9px;
  pointer-events: none; z-index: 2;
}
.category-tile-image::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 34%, rgba(0,0,0,0) 58%);
}
.category-tile-fallback { position: relative; z-index: 2; font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--brand); }
.category-tile-overlay {
  position: absolute; inset: 0; z-index: 3; padding: 32px 20px 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.category-tile-name { font-family: var(--font-sans); font-weight: 700; font-size: 19px; color: #fff; line-height: 1.3; }
.category-tile-cta {
  background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  padding: 10px 22px; border-radius: 6px; transition: background .2s ease, color .2s ease;
}
.category-tile:hover .category-tile-image { box-shadow: 0 10px 26px rgba(0,0,0,0.18); }
.category-tile:hover .category-tile-cta { background: var(--brand); color: #fff; }

.btn-primary {
  display: inline-block; background: var(--ink); color: #fff; padding: 14px 34px; border-radius: 0;
  border: none; cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px;
  font-family: var(--font-sans);
}
.btn-primary:hover { background: var(--brand); }
.auth-box .btn-primary { display: block; width: 100%; text-align: center; border-radius: 10px; }
.checkout-submit-btn { display: block; width: 100%; text-align: center; border-radius: 10px; }
.product-buy-btn { width: 291px; height: 48px; padding: 0; border-radius: 30px; display: flex; align-items: center; justify-content: center; font-size: 18px; text-transform: none; letter-spacing: normal; }
.out-of-stock-label-buybox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 291px;
  height: 48px;
  border-radius: 30px;
  background: #f4ede3;
  font-family: var(--font-sans, inherit);
  font-size: 24px;
  font-weight: 700;
  color: #9c4448;
  text-align: center;
  line-height: 1;
}

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 20px; }
.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--panel); border: 1.5px solid var(--border); border-radius: 18px; overflow: visible;
  padding: 16px 16px 0; transition: border-color .15s ease, box-shadow .15s ease;
}
.free-shipping-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: flex; align-items: center; gap: 4px;
  background: #1a7f4b; color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 9px 4px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.free-shipping-badge svg { width: 13px; height: 13px; flex-shrink: 0; }
.free-shipping-inline {
  display: inline-flex; align-items: center; gap: 6px; color: #1a7f4b; font-weight: 700; font-size: 15px; margin: 2px 0 12px;
}
.free-shipping-inline svg { width: 19px; height: 19px; flex-shrink: 0; }
.product-card:hover { border-color: var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.product-card-link { display: block; color: inherit; text-decoration: none; padding-bottom: 12px; flex: 1 1 auto; }

/* Full-width image on top, with the sale/bonus badges pinned to its
   top-right corner (see .product-badges below). No frame/box around the
   photo itself - it sits directly on the card's own white background. */
.product-card .card-media-row { position: relative; }
.product-card .card-media-row img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: contain; display: block;
}
.product-badges {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.card-badge {
  font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap;
  padding: 5px 14px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.card-badge-sale { background: #9c4448; }
.card-badge-new { background: #000; }

/* Wishlist heart sits on its own row just under the image, right-aligned
   (flex-start = right in this RTL layout). */
.product-card .card-heart-row { display: flex; justify-content: flex-start; margin-top: 8px; }
.product-card .wishlist-heart { flex-shrink: 0; font-size: 18px; line-height: 1; color: var(--muted); background: none; border: none; cursor: pointer; padding: 2px; }
.product-card .wishlist-heart:hover { color: #c0392b; }
.product-card .wishlist-heart-active { color: #c0392b; }

.product-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 14.5px; line-height: 1.5; margin: 6px 0 0; }
.out-of-stock-label { display: inline-block; font-family: var(--font-body, inherit); font-weight: 700; font-size: 12px; color: #9c4448; }
.product-card .price { margin: 6px 0 4px; color: var(--brand-dark); font-weight: 700; font-size: 17px; }
.product-card .price s { color: var(--muted); font-weight: 400; font-size: 13px; margin-right: 6px; }
.product-card .card-sku { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0; }

/* Quick-add bar: sits at the bottom of the card itself. Its space is
   always reserved (so hovering never changes the card's height) - only
   its visibility toggles on hover/keyboard focus. */
.product-card .quick-add-form {
  margin: 0 -16px; opacity: 0; visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
  pointer-events: none;
}
.product-card:hover .quick-add-form,
.product-card:focus-within .quick-add-form {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.quick-add-btn {
  display: block; width: 100%; background: var(--ink); color: #fff; border: none;
  border-radius: 0 0 18px 18px; padding: 12px 0; font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s ease;
}
.quick-add-btn:hover, .quick-add-btn:focus { background: var(--brand); }


.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 20px; }
.post-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post-card img { height: 160px; object-fit: cover; }
.post-card h3, .post-card p { margin: 10px 14px; }
.post-cat { display: inline-block; margin: 10px 14px 0; font-size: 12px; color: var(--brand); }

.content-page { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.post-hero-img { border-radius: var(--radius); margin-bottom: 20px; max-height: 400px; object-fit: cover; width: 100%; }

.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.crumb-sep { margin: 0 6px; }
.crumb-current { color: var(--text); font-weight: 600; }

.main-image-wrap { border-radius: var(--radius); overflow: hidden; }
.main-image { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.main-image-placeholder { width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: #f2ede8; color: var(--muted); border-radius: var(--radius); }
.thumb-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb-row .thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; opacity: .7; }
.thumb-row .thumb:hover { opacity: 1; }
.thumb-row .thumb.active { border-color: var(--brand); opacity: 1; }
.thumb-row .thumb.thumb-video { background-size: cover; background-position: center; position: relative; opacity: 1; }
.thumb-video .play-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; background: rgba(0,0,0,.28); border-radius: 6px;
}
.video-embed-wrap { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #000; }
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.product-sku { font-size: 12px; color: var(--muted); direction: ltr; text-align: right; margin: 0 0 4px; }
.qty-and-cart { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 30px; overflow: hidden; }
.add-to-cart-form .qty-stepper .qty-btn { width: 38px; height: 38px; border: none; background: var(--panel); font-size: 18px; cursor: pointer; color: var(--brand-dark); padding: 0; margin: 0; }
.qty-stepper .qty-btn:hover { background: #f2ede4; }
.add-to-cart-form .qty-stepper input { width: 46px; height: 38px; border: none; border-inline: 1px solid var(--border); border-radius: 0; text-align: center; padding: 0; margin: 0; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-full-description { margin-top: 40px; scroll-margin-top: var(--header-total-h, 100px); }
.full-desc-title { font-size: 22px; color: var(--brand-dark); font-weight: 700; margin: 0 0 20px; }
.full-desc-columns { max-width: 760px; }
.full-desc-text .rich-content { font-size: 18px; line-height: 1.9; }
.full-desc-text .rich-content h1, .full-desc-text .rich-content h2, .full-desc-text .rich-content h3, .full-desc-text .rich-content h4 {
  color: var(--brand-dark); font-size: 15px; margin: 22px 0 8px;
}
.full-desc-text .rich-content p { margin: 0 0 14px; }
.full-desc-text .spec-list { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.spec-list li span:first-child { color: var(--muted); }

/* ---- Category circles (round tiles above shop/category listing) ---- */
.category-circles-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 36px;
  margin: 4px 0 34px; padding-bottom: 6px;
}
.category-circle {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; width: 96px; flex-shrink: 0;
}
.category-circle-image {
  display: block; width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.category-circle-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-circle-label {
  font-size: 13px; color: var(--ink); text-align: center; line-height: 1.3;
  transition: color .2s ease;
}
.category-circle:hover .category-circle-image,
.category-circle:focus-visible .category-circle-image {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
  border-color: var(--brand);
}
.category-circle:hover .category-circle-label,
.category-circle:focus-visible .category-circle-label { color: var(--brand-dark); }
.category-circle.active .category-circle-image {
  border-color: var(--brand); border-width: 2px; box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.category-circle.active .category-circle-label { color: var(--brand-dark); font-weight: 600; }
.category-circle-clear .category-circle-image {
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--muted, #888);
}

@media (max-width: 760px) {
  .category-circles-row {
    flex-wrap: nowrap; justify-content: flex-start; gap: 22px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px 26px; padding: 4px 16px 10px;
    scrollbar-width: none;
  }
  .category-circles-row::-webkit-scrollbar { display: none; }
  .category-circle { width: 78px; }
  .category-circle-image { width: 78px; height: 78px; }
  .category-circle-label { font-size: 12px; }
}

.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start; }
.shop-sidebar { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.shop-search { display: flex; margin-bottom: 20px; }
.shop-search input { flex: 1; padding: 8px; border: 1px solid var(--border); border-radius: 6px 0 0 6px; }
.shop-search button { padding: 8px 12px; border: none; background: var(--brand); color: #fff; border-radius: 0 6px 6px 0; cursor: pointer; }
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; color: var(--text); }
.category-list li a.active, .category-list li a:hover { color: var(--brand); font-weight: 600; }
.category-count { color: var(--muted); font-size: 13px; font-weight: 400 !important; }

.shop-price-filter { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.shop-price-filter .shop-sidebar-section-head { margin-bottom: 12px; }
.price-filter-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-filter-field {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 12px 7px;
}
.price-filter-label {
  position: absolute;
  top: -8px;
  right: 10px;
  background: var(--panel);
  padding: 0 4px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
}
.price-filter-field input {
  width: 100%;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 18px;
  line-height: 1.2;
  color: var(--text);
  background: transparent;
  text-align: center;
}
.price-filter-field input:focus { outline: none; }
.price-filter-field input::-webkit-outer-spin-button, .price-filter-field input::-webkit-inner-spin-button { margin: 0; }
.price-filter-sep { color: var(--muted); }
.price-filter-submit { width: 100%; height: 42px; padding: 0 12px; border: none; border-radius: 6px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.price-filter-submit:hover { opacity: .92; }

.shop-loading-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92);
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease;
}
.shop-loading-overlay.active { opacity: 1; pointer-events: auto; }
.shop-loading-logo { max-width: 220px; max-height: 100px; width: auto; height: auto; animation: shopLoadingPulse 1.1s ease-in-out infinite; }
.shop-loading-logo-text { font-size: 22px; font-weight: 700; color: var(--text); }
@keyframes shopLoadingPulse { 0%, 100% { opacity: .55; transform: scale(.97); } 50% { opacity: 1; transform: scale(1); } }

.shop-sidebar-section-head { display: flex; align-items: center; justify-content: space-between; }
.shop-sidebar-section-head.clickable { cursor: pointer; user-select: none; }
.shop-sidebar-section-head h3 { margin: 0; }
.shop-sidebar-section-chevron { transition: transform .2s ease; }
.shop-sidebar-section-head.collapsed .shop-sidebar-section-chevron { transform: rotate(-90deg); }

.shop-filter-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 16px;
}
.shop-filter-toggle-label { display: flex; align-items: center; gap: 8px; }
.shop-filter-toggle-chevron { transition: transform .2s ease; }
.shop-filter-toggle.open .shop-filter-toggle-chevron { transform: rotate(180deg); }

/* Single row, 3 columns on desktop - title and info are just two stacked
   blocks inside .product-right, exactly like a normal column (no CSS Grid
   row-spanning here, which is what previously created an uneven gap
   between the title and the info block). On mobile/tablet below,
   .product-right switches to display:contents so title-row/product-info
   become direct grid items again and can be reordered around the
   gallery without duplicating the <h1> markup. */
.product-detail { display: grid; grid-template-columns: auto 1fr 1fr; gap: 30px; align-items: start; }
.product-share-col { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.product-right { display: flex; flex-direction: column; }
.share-circle {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; transition: opacity .15s ease;
}
.share-circle svg { width: 17px; height: 17px; fill: currentColor; }
.share-circle:hover { opacity: .85; }
.share-fb { background: #3b5998; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }

.main-image-wrap { position: relative; }
.main-image { border-radius: var(--radius); }
.bestseller-ribbon {
  position: absolute; top: 18px; left: -34px; z-index: 3; background: #c0392b; color: #fff;
  font-size: 12px; font-weight: 700; padding: 6px 40px; transform: rotate(-40deg); box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
/* On the product detail page's main image, the "רב מכר" ribbon already
   owns the top-left corner - move the free-shipping pill to the top-right
   corner here so the two never overlap/hide each other. (Doesn't affect
   the free-shipping pill on product cards elsewhere, which has no ribbon
   to avoid.) */
.main-image-wrap .free-shipping-badge { top: 10px; left: auto; right: 10px; }
.thumb-row { display: flex; gap: 8px; margin-top: 10px; }
.thumb-row img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer; }

.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.title-row h1 { margin: 0; font-size: 27px; }
.product-brand { font-size: 17px; color: var(--brand-dark); margin: 8px 0; }
.product-brand strong { color: var(--brand-dark); }
.short-desc { color: var(--text); font-size: 17px; line-height: 1.7; }
.read-more-link { color: var(--brand-dark); font-weight: 600; white-space: nowrap; margin-inline-start: 4px; }

.tag-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tag-pill { border: 1px solid var(--border); border-radius: 16px; padding: 5px 14px; font-size: 13px; color: var(--text); }

.price-block { margin-top: 14px; }
.price-block .list-price { font-size: 14px; color: var(--muted); margin: 0 0 2px; }
.price-block .list-price s { color: var(--muted); }
.price-block .site-price { font-size: 28px; color: #c0392b; margin: 0; }
.price-block .site-price strong { font-weight: 700; }
.installments { font-size: 14px; color: var(--muted); margin: 4px 0 12px; }

.product-badges { display: flex; gap: 6px; margin-bottom: 8px; }
.badge-tag { font-size: 13px; padding: 4px 12px; border-radius: 14px; font-weight: 700; border: 1px solid currentColor; background: none; }
.badge-new { color: #1a8a5f; }
.badge-sale { color: #c0392b; }
.badge-featured { color: #b8860b; }

.related-products { margin-top: 40px; }
.related-products h2 { font-size: 19px; margin-bottom: 10px; }
.add-to-cart-form { margin: 22px 0; }
.add-to-cart-form label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.add-to-cart-form select, .add-to-cart-form input { display: block; margin-top: 4px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; }
.cart-actions-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wishlist-inline { display: flex; align-items: center; gap: 6px; background: none; border: none; color: var(--muted); font-size: 14px; cursor: pointer; font-family: var(--font-sans); }
.wishlist-inline:hover { color: #c0392b; }
.wishlist-inline .icon-glyph { font-size: 17px; }

.delivery-info-row { display: flex; gap: 30px; margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.delivery-info-row p { margin: 0; font-size: 18px; color: var(--text); line-height: 1.6; }
.delivery-icon { margin-inline-end: 4px; }
.delivery-value { color: var(--muted); font-size: 17px; }
a.delivery-value { color: var(--brand-dark); }
.payment-icons-row { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; }
.payment-icon-badge { display: flex; line-height: 0; border-radius: 5px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,0.04); }
.payment-icon-badge svg { display: block; }
.delivery-phone { font-size: 19px; font-weight: 700; }
button.delivery-toggle { background: none; border: none; padding: 0; font: inherit; cursor: pointer; color: var(--brand-dark); }
.shipping-policy-text { margin: -6px 0 20px; padding: 12px 14px; background: #faf7f0; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; line-height: 1.7; color: var(--text); }

.barcode-line { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); text-align: left; direction: ltr; }

.cart-page-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 24px; }
.cart-page-head h1 { margin: 0; font-size: 26px; }
.cart-item-count { margin: 0; color: var(--muted); font-size: 13px; }

.cart-list { display: flex; flex-direction: column; }
.cart-row {
  display: grid;
  grid-template-columns: 1fr 140px 110px 100px 46px;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity .45s ease;
}
.cart-row-head { padding: 0 0 12px; font-size: 19px; color: var(--text); font-weight: 400; border-bottom: 1px solid var(--border); }
.cart-row-removing { opacity: 0; pointer-events: none; }

.cart-col-product { display: flex; align-items: center; gap: 14px; }
.cart-product-text { flex: 1; text-align: right; font-size: 17px; }
.cart-product-text a { font-weight: 700; color: var(--text); font-size: 18px; }
.cart-product-text small { color: var(--muted); font-size: 14px; display: inline-block; margin-top: 4px; }
.cart-product-sku { color: var(--muted); font-size: 12px; margin-top: 2px; }
.cart-thumb-wrap { position: relative; flex-shrink: 0; display: inline-flex; }
.cart-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-mobile-price { display: none; }

.cart-col-qty { text-align: center; font-size: 14px; }
.cart-row:not(.cart-row-head) .cart-col-price,
.cart-row:not(.cart-row-head) .cart-col-total { text-align: center; font-size: 18px; font-weight: 700; }
.cart-col-price, .cart-col-total { text-align: center; }
.cart-qty-stepper.qty-stepper { justify-content: center; }
.cart-qty-stepper .qty-btn { width: 34px; height: 34px; border: none; background: var(--panel); font-size: 16px; cursor: pointer; color: var(--brand-dark); padding: 0; margin: 0; }
.cart-qty-stepper .qty-btn:hover { background: #f2ede4; }
.cart-qty-stepper input { width: 42px; height: 34px; border: none; border-inline: 1px solid var(--border); border-radius: 0; text-align: center; padding: 0; margin: 0; -moz-appearance: textfield; }
.cart-qty-stepper input::-webkit-outer-spin-button, .cart-qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-col-remove { display: flex; justify-content: center; }
.cart-remove-btn { background: none; border: none; cursor: pointer; color: #000; padding: 4px; display: flex; }
.cart-remove-btn:hover { color: #444; }
.cart-remove-btn-mobile {
  display: none;
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: var(--panel);
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 1px 5px rgba(0,0,0,.18);
}

.cart-summary { margin-top: 24px; text-align: left; }
.link-danger { background: none; border: none; color: #c0392b; cursor: pointer; }

/* Generic simple table style, reused by my-orders.php / account.php (not the cart grid above) */
.cart-table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.cart-table th, .cart-table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: right; }

@media (max-width: 900px) {
  .cart-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
  }
  .cart-row-head { display: none; }
  .cart-col-qty { order: 1; }
  .cart-col-product { order: 2; flex: 1; min-width: 0; display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 12px; }
  .cart-col-price, .cart-col-total, .cart-col-remove { display: none; }
  .cart-thumb { width: 76px; height: 76px; }
  .cart-remove-btn-mobile { display: flex; }
  .cart-mobile-price { display: block; font-weight: 700; font-size: 15px; margin-top: 6px; }
  .cart-qty-stepper.qty-stepper { flex-direction: column-reverse; width: 34px; border-radius: 12px; }
  .cart-qty-stepper .qty-btn { width: 34px; height: 30px; }
  .cart-qty-stepper input { width: 34px; height: 30px; border-inline: none; border-block: 1px solid var(--border); }
}


.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.checkout-form, .order-summary { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.checkout-form label { display: block; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.checkout-form input, .checkout-form select, .checkout-form textarea {
  width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit;
}
.two-col-front { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.note { font-size: 12px; color: var(--muted); }
.delivery-method-fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.delivery-method-fieldset legend { font-size: 14px; color: var(--muted); padding: 0 6px; }
.delivery-method-fieldset .radio-option {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; color: var(--ink); cursor: pointer;
}
.delivery-method-fieldset .radio-option:last-child { margin-bottom: 0; }
.delivery-method-fieldset .radio-option input { width: auto; margin: 0; }
.checkout-terms-check {
  display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer;
}
.checkout-terms-check input { width: auto; margin: 0; flex-shrink: 0; }
.checkout-terms-check a { color: var(--ink); text-decoration: underline; font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.summary-row.total { font-weight: 700; font-size: 17px; border-bottom: none; }

.alert { padding: 10px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert.success { background: #e2f5ea; color: #1a7f4b; }
.alert.error { background: #fbe4e1; color: #c0392b; }

.pagination { display: flex; gap: 6px; margin-top: 20px; }
.pagination a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); }
.pagination a.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.scroll-top-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.scroll-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--brand-dark); }
.scroll-top-btn .icon-svg { width: 20px; height: 20px; }
/* Desktop/tablet: the transparent cookie-consent bar sits fixed at the
   bottom of the viewport there (hidden on mobile), so lift the button
   a bit so it floats above it instead of overlapping. */
@media (min-width: 761px) {
  .scroll-top-btn { bottom: 110px; }
}

.promo-badge-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 85;
  width: 130px; height: 124px; display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
  transition: transform .2s ease;
  animation: promoBadgePulse 3.2s ease-in-out infinite;
  transform-origin: center bottom; /* pulses "in place" without drifting off its corner */
}
/* Pause the automatic pulse while hovered, so the deliberate hover
   enlargement below reads clearly instead of fighting the animation. */
.promo-badge-float:hover {
  animation-play-state: paused;
  transform: scale(1.04);
}
.promo-badge-float img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Desktop/tablet: the transparent cookie-consent bar sits fixed at the
   bottom of the viewport there (hidden on mobile), so lift the badge
   a bit so it floats above it instead of sitting behind it. */
@media (min-width: 761px) {
  .promo-badge-float { bottom: 106px; }
}

.mobile-call-icon { display: none; }
/* Mobile + tablet only floating call button, links to tel: */
@media (max-width: 1024px) {
  .mobile-call-icon {
    display: block; position: fixed; bottom: 34px; left: 16px; z-index: 90;
    width: 46px; height: 46px;
  }
  .mobile-call-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
}
/* Tablet range only: the cookie-consent bar is visible here (it hides at
   ≤760px), so lift the call icon above it — same treatment as the promo badge. */
@media (min-width: 761px) and (max-width: 1024px) {
  .mobile-call-icon { bottom: 110px; }
}

/* Floating WhatsApp button. Desktop: bottom-left on its own, lifted clear
   of the cookie-consent bar like the promo badge. Mobile/tablet: stacked
   directly above the call icon at the same left offset, so the two form
   a vertical bottom-left column rather than overlapping. */
.whatsapp-float-icon {
  display: flex; align-items: center; justify-content: center;
  position: fixed; left: 16px; z-index: 90;
  border-radius: 50%; background: #000; box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform .15s ease;
}
.whatsapp-float-icon:hover { transform: scale(1.06); }
.whatsapp-float-icon svg { width: 100%; height: 100%; display: block; fill: #fff; }
@media (min-width: 1025px) {
  .whatsapp-float-icon { bottom: 106px; width: 52px; height: 52px; padding: 12px; }
}
@media (max-width: 1024px) {
  .whatsapp-float-icon { bottom: 90px; width: 46px; height: 46px; padding: 10px; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .whatsapp-float-icon { bottom: 166px; }
}

.cookie-consent-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(239, 232, 218, 0.82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 14px 28px; box-shadow: 0 -4px 14px rgba(0,0,0,.08);
  transform: translateY(100%); transition: transform .3s ease;
}
.cookie-consent-bar.show { transform: translateY(0); }
.cookie-consent-text { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink); flex: 1; }
.cookie-consent-text a { color: var(--ink); text-decoration: underline; font-weight: 600; }
.cookie-consent-accept {
  flex-shrink: 0; background: var(--ink); color: #fff; padding: 10px 22px; border-radius: 6px;
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
}
/* Desktop + tablet only, per spec — hidden on mobile phones. */
@media (max-width: 760px) {
  .cookie-consent-bar { display: none; }
}

/* Slow, gentle, repeating "breathing" pulse: a subtle grow then back to
   normal size, looping forever. Kept understated (1 -> 1.045 -> 1) so it
   reads as alive without being distracting. */
@keyframes promoBadgePulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.045); }
  100% { transform: scale(1); }
}

/* Respect people who've asked their OS/browser to reduce motion. */
@media (prefers-reduced-motion: reduce) {
  .promo-badge-float { animation: none; }
}

/* Mobile + tablet (up to 1024px, matching the tablet breakpoint used for
   the header/nav below): stack the product page as title -> gallery ->
   info -> share row, so the product name sits right under the
   breadcrumbs and above the main image. .product-right is "unwrapped"
   via display:contents so title-row/product-info become direct grid
   items again and can be reordered independently around the gallery. */
@media (max-width: 1024px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-right { display: contents; }
  .title-row { order: 1; }
  .product-gallery { order: 2; }
  .product-info { order: 3; }
  .product-share-col { order: 4; flex-direction: row; }
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
/* Mobile + tablet header: hamburger + search on the right, logo centered,
   wishlist + cart on the left. Login/account icon is hidden to match the
   simplified mobile header design. Applies up to tablet width (1024px). */
@media (max-width: 1024px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; padding: 14px 16px; }
  .site-logo { font-size: 22px; }
  .site-logo-img { height: 44px; }
  .header-icons .icon-label { display: none; }
  .icon-divider { display: none; }
  .header-icons-start { gap: 10px; }
  .header-icons-end .icon-link:not(.auth-link) .icon-svg { width: 25px; height: 25px; }
  .nav-toggle-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .nav-toggle-btn .icon-glyph {
    font-size: 26px;
    display: inline-block;
    transform: scaleX(1.35); /* מאריך את הקווים לרוחב מבלי להגדיל את הגובה */
  }
  .nav-toggle-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .3px; color: var(--ink); font-family: var(--font-sans); }
  .header-search-inline { display: none; }
  .header-icons-end .auth-link { display: none; }
  .header-phone, .header-phone-divider { display: none; }
  .scroll-top-btn { width: 42px; height: 42px; bottom: 18px; right: 18px; }
  .promo-badge-float { display: none; }

  /* Search bar is permanently visible under the header — no tap needed. */
  .header-search-bar {
    display: block; padding: 10px 16px 14px; border-top: 1px solid var(--border); background: var(--panel);
  }
  /* Off-canvas drill-down mobile/tablet menu */
  .mobile-nav-overlay {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 95;
    opacity: 0; pointer-events: none; transition: opacity .25s ease;
  }
  .mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }

  .main-nav {
    display: block; position: fixed; top: 0; bottom: 0; right: 0; width: 86%; max-width: 380px;
    background: var(--panel); z-index: 96; border-top: none; padding: 0; margin: 0;
    transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > a::after { display: none; }

  .mobile-nav-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: var(--panel); z-index: 2;
  }
  .mobile-nav-close {
    width: 34px; height: 34px; border-radius: 50%; border: none; background: #f1efe7; color: var(--ink);
    display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; padding: 0;
  }
  .mobile-nav-close .icon-svg { width: 16px; height: 16px; }
  .mobile-nav-account { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
  .mobile-nav-account .icon-svg { width: 22px; height: 22px; }

  .main-nav > a, .nav-dropdown > a {
    display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box;
    padding: 16px; border-bottom: 1px solid var(--border); margin: 0;
    font-size: 18px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink);
  }
  .main-nav > a:hover, .main-nav > a:focus,
  .nav-dropdown > a:hover, .nav-dropdown > a:focus { background: var(--ink); color: #fff; }
  .nav-dropdown > a::before { display: none; }

  .nav-dropdown { position: static; }
  .mega-menu {
    display: block; position: absolute; inset: 0; z-index: 3; background: var(--panel);
    border: none; border-radius: 0; box-shadow: none; padding: 0; margin: 0; gap: 0;
    grid-template-columns: none; min-width: 0; max-width: none;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  }
  .nav-dropdown.mega-open .mega-menu { transform: translateX(0); }
  .mega-col { display: block; gap: 0; }
  .mega-col-title {
    display: flex; align-items: center; gap: 10px; margin: 0; padding: 16px;
    border-bottom: 1px solid var(--border); font-family: inherit; font-weight: 700; font-size: 18px;
    position: sticky; top: 0; background: var(--panel); cursor: pointer;
  }
  .mega-col-title::before { content: "\203A"; font-size: 19px; line-height: 1; }
  .mega-col a {
    display: block; padding: 15px 16px; border-bottom: 1px solid var(--border); font-size: 18px; color: var(--ink);
  }
  .mega-col a:hover, .mega-col a:focus { background: var(--ink); color: #fff; }
  .mega-col-all { font-weight: 600; }
}
@media (max-width: 760px) {
  .shop-layout, .checkout-layout, .account-layout { grid-template-columns: 1fr; }
  .promo-tiles { grid-template-columns: 1fr; }
  .collection-tile-grid { grid-template-columns: 1fr; gap: 14px; }
  .category-tile-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  /* 2 product cards per row on mobile, sized up a bit */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card { padding: 14px 14px 0; border-radius: 14px; }
  .product-card-link { padding-bottom: 10px; }
  .product-card .quick-add-form { margin: 0 -14px; }
  .quick-add-btn { border-radius: 0 0 14px 14px; }
  .product-card .card-media-row img { aspect-ratio: 1 / 1; }
  .product-card h3 { font-size: 15px; }
  .product-card .price { font-size: 17px; }
  .product-card .card-sku { font-size: 13px; }
  .category-tile-image::before { inset: 10px; }
  .category-tile-overlay { padding-top: 20px; gap: 10px; }
  .category-tile-name { font-size: 15px; }
  .category-tile-cta { font-size: 10px; padding: 8px 16px; }
  .hero-slider { aspect-ratio: auto; height: 340px; margin-top: -20px; margin-bottom: 34px; }
  .hero-slider::after { inset: 12px; border-radius: 10px; }
  .hero-slide-content { margin-inline-start: 20px; max-width: 82%; }
  .hero-slide-content h2 { font-size: 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .shop-filter-toggle { display: flex; }
  .shop-sidebar-collapsible { display: none; }
  .shop-sidebar-collapsible.shop-sidebar-open { display: block; margin-bottom: 20px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
/* Tablet: 3 product cards per row */
@media (min-width: 761px) and (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
/* Desktop: 3 larger product cards per row */
@media (min-width: 1025px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .product-card { padding: 22px 22px 0; border-radius: 20px; }
  .product-card-link { padding-bottom: 14px; }
  .product-card .quick-add-form { margin: 0 -22px; }
  .quick-add-btn { border-radius: 0 0 20px 20px; }
  .product-card h3 { font-size: 17px; margin-top: 10px; }
  .product-card .price { font-size: 20px; margin: 8px 0 6px; }
  .product-card .card-sku { font-size: 14px; }
}

/* ---- Contact page (יצירת קשר) ---- */
.contact-wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.contact-form-panel { flex: 2 1 560px; min-width: 0; }
.contact-form-panel h1 { margin: 0 0 8px; font-size: 30px; }
.contact-intro { color: var(--muted); margin: 0 0 24px; line-height: 1.7; }
.contact-form { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.contact-form label { display: block; margin-bottom: 16px; font-size: 15px; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 17px; color: var(--ink); background: #fff; box-sizing: border-box;
}
.contact-form textarea { resize: vertical; }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.contact-field-full { grid-column: 1 / -1; }
.contact-submit { margin-top: 4px; padding: 14px 36px; border-radius: 999px; min-height: 48px; width: 100%; }
.contact-form .hp-field { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; margin: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

.contact-info-panel { flex: 1 1 280px; display: flex; flex-direction: column; gap: 26px; padding-top: 8px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-info-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--bg);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--brand-dark);
}
.contact-info-item strong { display: block; font-size: 14px; margin-bottom: 3px; }
.contact-info-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.contact-info-item a { color: var(--muted); text-decoration: none; }
.contact-info-item a:hover { color: var(--brand-dark); text-decoration: underline; }

/* Tablet */
@media (max-width: 900px) {
  .contact-wrap { gap: 24px; }
  .contact-form-panel { flex: 1 1 100%; }
  .contact-info-panel {
    flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 18px 24px;
    border-top: 1px solid var(--border); padding-top: 20px; margin-top: 4px;
  }
  .contact-info-item { flex: 1 1 240px; }
}

/* Mobile */
@media (max-width: 760px) {
  .contact-form-panel h1 { font-size: 24px; }
  .contact-intro { font-size: 14px; margin-bottom: 18px; }
  .contact-form { padding: 18px; border-radius: 12px; }
  .contact-form-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-form label { margin-bottom: 14px; }
  .contact-submit { width: 100%; padding: 14px 20px; }
  .contact-info-panel { flex-direction: column; gap: 18px; }
  .contact-info-item { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .contact-wrap { gap: 20px; }
  .contact-form { padding: 14px; }
}

/* Fixed header on mobile/tablet only (topbar + site-header stay pinned while scrolling) */
@media (max-width: 1024px) {
  .topbar {
    position: fixed !important; top: 0; left: 0; right: 0; z-index: 101;
  }
  .site-header {
    /* z-index raised above .topbar (101): .site-header creates its own
       stacking context here (position:fixed + z-index), so anything
       nested inside it - including the off-canvas .main-nav drawer and
       its own sticky head - was being visually clipped by the topbar
       sitting in a higher stacking context, no matter how high a
       z-index the nested nav elements had. Raising the header itself
       above the topbar lets its entire subtree render on top. */
    position: fixed !important; top: var(--topbar-h, 40px); left: 0; right: 0; z-index: 102; width: 100%;
  }
  body { padding-top: var(--header-total-h, 176px); }
}

/* Sticky header on desktop only: the topbar (announcement strip) scrolls
   away normally, but the whole header below it (logo/icons row + black
   category nav) stays pinned to the top of the viewport while scrolling. */
@media (min-width: 1025px) {
  .topbar { position: static !important; }
  .site-header { position: sticky !important; top: 0; z-index: 90; }
}

/* =========================================================================
   Fly-to-Cart animation + dynamic cart badge/toast (assets/cart-fly.js)
   ========================================================================= */

/* The floating clone of the product image that flies toward the cart icon.
   Positioned with inline left/top/width/height/transform by cart-fly.js -
   this class only supplies the static visual look. */
.fly-to-cart-clone {
  object-fit: cover;
  will-change: transform, opacity;
}

/* Small "pop" feedback on the header cart icon once the flyer lands. */
.cart-icon-bounce {
  animation: cartIconBounce .4s ease;
}
@keyframes cartIconBounce {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.25); }
  65%  { transform: scale(.95); }
  100% { transform: scale(1); }
}
/* Badge itself gets a quick pulse too, so a count change is noticeable
   even if the page never scrolled past the header. */
.icon-badge {
  transition: transform .25s ease;
}

/* Toast container: fixed at the bottom on mobile, bottom-left on desktop
   (site is RTL, so "start" reads naturally from the right - bottom-left
   keeps toasts out of the way of the cart icon in the top-right area). */
#cartToastContainer {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.cart-toast {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  max-width: 280px;
}
.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.cart-toast-error {
  background: #a33;
}

@media (max-width: 600px) {
  #cartToastContainer {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .cart-toast {
    max-width: none;
  }
}

/* =========================================================================
   Mobile/tablet "added to cart" bar - appears right under the search bar
   (#cartNotifyBar in header.php, shown/hidden by assets/cart-fly.js)
   ========================================================================= */

/* Hidden entirely on desktop - this feature is mobile/tablet only. */
.cart-notify-bar {
  display: none;
}

@media (max-width: 1024px) {
  .cart-notify-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    /* Sits directly beneath .header-search-bar, which is the last element
       before it in the DOM; .site-header is the positioned ancestor
       (fixed on mobile/tablet), so top:100% anchors it right under the
       whole header instead of pushing header height around. */
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .14);
    padding: 0 16px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    /* Smooth slide + fade in both directions. */
    transition: max-height .32s ease, opacity .28s ease, padding .32s ease;
  }
  .cart-notify-bar.show {
    max-height: 260px;
    opacity: 1;
    padding: 12px 16px 16px;
    pointer-events: auto;
  }

  .cart-notify-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }
  .cart-notify-message {
    margin: 0;
    font-size: 13px;
    color: var(--ink);
    line-height: 1.5;
  }
  .cart-notify-close {
    flex: none;
    border: none;
    background: none;
    font-size: 20px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0 2px;
  }
  .cart-notify-close:hover {
    color: var(--ink);
  }

  /* Two stacked options, per spec: goto-cart on top, continue-shopping below it. */
  .cart-notify-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 11px 14px;
    cursor: pointer;
    text-decoration: none;
  }
  .cart-notify-goto {
    order: 1;
    background: var(--brand);
    color: #fff;
    border: 1px solid var(--brand);
  }
  .cart-notify-goto:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
  }
  .cart-notify-count {
    font-weight: 700;
  }
  .cart-notify-continue {
    order: 2;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border);
  }
  .cart-notify-continue:hover {
    background: var(--bg);
    border-color: var(--muted);
  }
}



/* =========================================================================
   Mobile/tablet sticky "quick add to cart" bar (product.php only).
   Hidden by default; product.php's own inline script adds/removes .show
   once the real qty+add-to-cart box (#productBuyBox) scrolls out of view,
   so people don't have to scroll back up to buy. Desktop never sees it.
   Scoped entirely to product.php - doesn't touch .product-card at all.
   ========================================================================= */
.sticky-buy-bar { display: none; }

@media (max-width: 1024px) {
  .sticky-buy-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80; /* under .scroll-top-btn (90) and the mobile nav (95/96) */
    background: var(--panel);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 20px rgba(0, 0, 0, .12);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));

    /* Hidden state: no layout shift, since this is fixed and off-canvas
       via opacity/transform rather than being added/removed from flow. */
    visibility: hidden;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
  }
  .sticky-buy-bar.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity .28s ease, transform .28s ease, visibility 0s linear 0s;
  }

  .sticky-buy-bar .btn-primary { flex: 1 1 auto; padding: 13px 16px; text-align: center; border-radius: 10px; }
  .sticky-buy-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
  .sticky-buy-btn svg { flex-shrink: 0; }

  /* Lifts the round scroll-to-top button above the sticky bar instead of
     letting the two overlap in the same bottom-right corner. */
  body.has-sticky-buy-bar .scroll-top-btn {
    bottom: 82px;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease, bottom .28s ease;
  }
  /* Same treatment for the floating call icon (bottom-left), which would
     otherwise sit under the sticky bar on product.php. */
  body.has-sticky-buy-bar .mobile-call-icon {
    bottom: 100px;
    transition: bottom .28s ease;
  }
  /* WhatsApp icon stacks directly above the call icon, so it shifts up by
     the same amount to keep the gap between them constant. */
  body.has-sticky-buy-bar .whatsapp-float-icon {
    bottom: 156px;
    transition: bottom .28s ease;
  }
}