/* Modern Wall Art — theme layer for things Tailwind utilities can't express */

:root {
  --page: #fff;
  --ink: #202020;
  --body: #4e4e4e;
  --soft: #f8f8f8;
  --line: #e6e6e6;
  --accent: #b08d4f;
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --gutter: 15px;
  --header: 57px;
}
/* On desktop the gutter grows so content never runs wider than 1410px; carousels still bleed to the edge. */
@media (min-width: 1024px) {
  :root { --gutter: max(40px, calc((100vw - 1410px) / 2)); --header: 66px; }
}

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--page);
  color: var(--body);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body :is(h1, h2, h3, h4) { color: var(--ink); font-weight: 400; letter-spacing: -0.035em; line-height: 1.15; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.gutter { padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap { padding-inline: var(--gutter); }
[id] { scroll-margin-top: calc(var(--header) + 16px); }
.h-section { font-size: clamp(26px, 6.4vw, 36px); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-locked { overflow: hidden; }

/* ---------- Header ---------- */
/* The wrapper keeps its place while the header slides away, so it must not swallow taps. */
.header-wrap { height: var(--header); pointer-events: none; }
.site-header {
  height: var(--header); pointer-events: auto;
  background: var(--page); color: var(--ink); border-bottom: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.4s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06); }
.site-header.is-hidden { transform: translateY(-101%); box-shadow: none; }
.logo-block { background: #000; color: #fff; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 11px; }
.logo-block img { height: 22px; width: auto; filter: invert(1); }
@media (min-width: 400px) { .logo-block { gap: 9px; padding: 0 16px; } .logo-block img { height: 26px; } }
@media (min-width: 1024px) { .logo-block { padding: 0 30px; } .logo-block img { height: 30px; } }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; flex: none; position: relative; border-radius: 50%; transition: background-color 0.3s ease; }
@media (hover: hover) { .icon-btn:hover { background: var(--soft); } }
.cart-badge {
  position: absolute; top: 5px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 600; line-height: 16px; text-align: center;
}
.cart-badge[data-count="0"] { display: none; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; height: var(--header); font-size: 13px; color: var(--ink); }
.nav-link svg { transition: transform 0.3s var(--ease); }
.nav-item { position: relative; }
.nav-menu {
  position: absolute; left: -18px; top: calc(100% - 8px); min-width: 210px; padding: 10px; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s 0.3s;
}
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-item:hover .nav-link svg, .nav-item:focus-within .nav-link svg { transform: rotate(180deg); }
.nav-menu a { display: flex; justify-content: space-between; gap: 18px; padding: 7px 10px; border-radius: 8px; font-size: 13px; color: var(--ink); }
.nav-menu a:hover { background: var(--soft); }
.nav-menu a span { color: #9a9a9a; font-size: 11px; }
.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease); }
.ulink:hover { background-size: 100% 1px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 47px; padding: 0 30px; border-radius: 70px; border: 1px solid var(--ink);
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* A soft sheen crossing the button, in place of the reference theme's glow. */
.btn::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-110%);
}
@media (hover: hover) { .btn:hover::after { transform: translateX(110%); transition: transform 0.8s var(--ease); } }
.btn--dark { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #b9b9b9; }
.btn--white { background: #fff; color: var(--ink); border-color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.75); backdrop-filter: blur(4px); }
@media (hover: hover) {
  .btn--dark:hover { background: #000; }
  .btn--light:hover, .btn--white:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
  .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
}
.btn--sm { min-height: 40px; padding: 0 22px; font-size: 11px; }
.btn[disabled] { background: #c9c9c9; border-color: #c9c9c9; color: #fff; cursor: not-allowed; }
.arrow-btn {
  width: 34px; height: 34px; border-radius: 8px; background: var(--ink); color: #fff; flex: none;
  display: grid; place-items: center; transition: background-color 0.3s, opacity 0.3s, transform 0.3s var(--ease);
}
@media (hover: hover) { .arrow-btn:hover { background: #000; } }
.arrow-btn:active { transform: scale(0.94); }
.arrow-btn[disabled] { opacity: 0.35; pointer-events: none; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 70px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 11px; font-weight: 500; line-height: 1.5;
}
.chip--dark { background: rgba(20, 20, 20, 0.62); color: #fff; backdrop-filter: blur(8px); }
.star { color: var(--accent); }

/* ---------- Marquee ---------- */
.marquee { display: flex; overflow: hidden; white-space: nowrap; user-select: none; }
.marquee__track { display: flex; align-items: center; flex: none; min-width: 100%; animation: marquee var(--dur, 30s) linear infinite; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@media (hover: hover) { .marquee--hover:hover .marquee__track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-100%); } }
.slash { font-size: 22px; font-weight: 500; color: var(--ink); line-height: 1; transform: skewX(-8deg); }
.vmarquee { overflow: hidden; }
.vmarquee__track { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; animation: vmarquee 38s linear infinite; }
.vmarquee.is-paused .vmarquee__track { animation-play-state: paused; }
@keyframes vmarquee { from { translate: 0 0; } to { translate: 0 -100%; } }

/* ---------- Scroll reveals (kept quiet: short travel, no colour change) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js [data-reveal='fade'] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .w {
  display: inline-block; opacity: 0; transform: translateY(0.3em);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i) * 50ms);
}
.js [data-split].is-in .w { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s 0.9s; }
.hero__slide.is-on { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.hero__img { object-position: var(--pos); }
@media (min-width: 1024px) { .hero__img { object-position: var(--pos-lg); } }
.hero__slide img { transform: scale(1.04); transition: transform 6s ease-out; }
.hero__slide.is-on img { transform: none; }
.hero__copy > * { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.hero__slide.is-on .hero__copy > * { opacity: 1; transform: none; transition-delay: calc(0.25s + var(--i, 0) * 80ms); }
.hero__dot { width: 22px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.45); transition: background-color 0.3s, width 0.4s var(--ease); }
.hero__dot.is-on { background: #fff; width: 34px; }

/* ---------- Product card (hairline grid, image first) ---------- */
.pcard__img { transition: opacity 0.6s ease, transform 1.2s var(--ease); }
.pcard__img--alt { opacity: 0; }
.pcard__eye {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; opacity: 0; transform: scale(0.8);
  transition: opacity 0.35s ease, transform 0.35s var(--ease), background-color 0.3s, color 0.3s;
}
.pcard__opts {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 14px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(6px); color: var(--ink); font-size: 11px; white-space: nowrap;
  transform: translateY(100%); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
/* Touch screens have no hover, so they get a quick-add button that is always there. */
.pcard__add {
  position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.pcard__add:active { transform: scale(0.94); }
.pcard__amount, .pcard__choose { transition: transform 0.4s var(--ease), opacity 0.3s ease; }
.pcard__choose { position: absolute; left: 0; top: 0; transform: translateY(100%); opacity: 0; }
@media (hover: hover) {
  .pcard__add { display: none; }
  .pcard__eye:hover { background: var(--ink); color: #fff; }
  .pcard:hover .pcard__img { transform: scale(1.03); }
  .pcard:hover .pcard__img--alt { opacity: 1; }
  .pcard:hover .pcard__eye { opacity: 1; transform: none; }
  .pcard:hover .pcard__opts { transform: none; opacity: 1; }
  .pcard:hover .pcard__amount { transform: translateY(-100%); opacity: 0; }
  .pcard:hover .pcard__choose { transform: none; opacity: 1; }
}
.pcard:focus-within .pcard__eye { opacity: 1; transform: none; }
.prow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
.prow::-webkit-scrollbar { display: none; }
.prow > * { flex: 0 0 58%; scroll-snap-align: start; }
.prow > :first-child { border-left: 1px solid var(--line); }
@media (min-width: 480px) { .prow > * { flex-basis: 40%; } }
@media (min-width: 768px) { .prow > * { flex-basis: 30%; } }
@media (min-width: 1024px) { .prow > * { flex-basis: 22.4%; } }
@media (min-width: 1280px) { .prow > * { flex-basis: 18.6%; } }
.js .pgrid.is-swapping > .pcard { opacity: 0; transform: translateY(12px); transition-duration: 0.3s; transition-delay: 0s; }
.tab-pill {
  min-height: 40px; padding: 0 18px; border-radius: 70px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; flex: none; font-size: 13px; white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
@media (hover: hover) { .tab-pill:hover { border-color: var(--ink); } }
.tab-pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.dotlink { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; font-size: 13px; }
.dotlink::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transition: transform 0.35s var(--ease); }
@media (hover: hover) { .dotlink:hover::before { transform: scale(1.7); } }

/* Tall image cards under the hero, with the text over a gradient */
.tcard { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; color: #fff; background: var(--soft); flex: none; }
.tcard img { transition: transform 1.2s var(--ease); }
.tcard::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0)); pointer-events: none; }
@media (hover: hover) { .tcard:hover img { transform: scale(1.03); } }

/* Product grids sit in a rounded box; the grid overlaps the box edge by a pixel so borders never double. */
.pbox { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.pbox > .pgrid { margin: 0 -1px -1px 0; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); font-size: 13px;
  display: grid; place-items: center; transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
@media (hover: hover) { .page-btn:hover { border-color: var(--ink); } }
.page-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Bundle builder ---------- */
.btile { position: relative; flex: none; width: 124px; text-align: left; color: var(--ink); scroll-snap-align: start; }
@media (min-width: 1024px) { .btile { width: 138px; } }
.btile__img { display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--soft); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 0.3s; }
.btile__check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.3s var(--ease); }
.btile.is-on .btile__img { outline-color: var(--ink); }
.btile.is-on .btile__check { opacity: 1; transform: none; }
.btile--skip .btile__img { display: grid; place-items: center; border: 1px dashed #c9c9c9; background: transparent; font-size: 12px; color: var(--body); }
.bsel { appearance: none; -webkit-appearance: none; height: 40px; max-width: 100%; padding: 0 34px 0 14px; border: 1px solid var(--line); border-radius: 70px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23202020' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ink); font: inherit; font-size: 16px; text-overflow: ellipsis; }
@media (min-width: 1024px) { .bsel { font-size: 13px; } }
.bsel:focus-visible { border-color: var(--ink); }

/* ---------- Dropdowns ---------- */
.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 130px; padding: 6px; z-index: 30;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s 0.3s;
}
.dropdown--up .dropdown__menu { top: auto; bottom: calc(100% + 6px); }
.dropdown--left .dropdown__menu { right: auto; left: 0; }
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown__menu button { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 8px; font-size: 13px; white-space: nowrap; }
.dropdown__menu button:hover, .dropdown__menu button[aria-current] { background: var(--soft); }
[data-dropdown] svg { transition: transform 0.3s var(--ease); }
.dropdown.is-open [data-dropdown] svg { transform: rotate(180deg); }

/* ---------- Carousels ---------- */
.snap-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
.snap-row::-webkit-scrollbar { display: none; }
.snap-row > * { scroll-snap-align: start; flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink); transition: background-color 0.3s; }
.dot.is-on { background: var(--ink); }

/* Lifestyle row: the centred card is in colour, its neighbours are muted */
.life { scroll-padding-inline: 0; }
.life > * { scroll-snap-align: center; }
.life__card { position: relative; border-radius: 30px; overflow: hidden; background: var(--soft); }
.life__card img { filter: grayscale(1); opacity: 0.75; transition: filter 0.8s ease, opacity 0.8s ease; }
.life__card .life__pill { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s var(--ease); }
.life__card.is-center img { filter: none; opacity: 1; }
.life__card.is-center .life__pill { opacity: 1; transform: none; }

/* Collection list rows */
.crow { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: #6d6d6d; text-align: left; transition: color 0.3s; }
.crow svg { transition: transform 0.4s var(--ease); }
.crow.is-active { color: var(--ink); }
.crow.is-active svg { transform: rotate(45deg); }
.cimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; opacity: 0; transform: scale(1.04); transition: opacity 0.6s ease, transform 1s var(--ease); }
.cimg.is-on { opacity: 1; transform: none; }

/* ---------- Hotspots ---------- */
.hotspot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; display: grid; place-items: center; }
.hotspot::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: rgba(32, 32, 32, 0.38); transition: transform 0.4s var(--ease), background-color 0.3s; }
.hotspot::after { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 5px solid #fff; position: relative; }
.hotspot.is-active::before { background: rgba(176, 141, 79, 0.55); animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); } 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 13px 20px; border-top: 1px solid var(--line); font-size: 12px; }
.spec b { color: var(--ink); font-weight: 600; }
[data-show-panel] { transition: opacity 0.25s ease; }

/* ---------- Overlays (drawers, search, modals) ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; transition: visibility 0s 0.8s; }
.overlay.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.overlay__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(12px); opacity: 0; transition: opacity 0.8s var(--ease); }
.overlay.is-open .overlay__backdrop { opacity: 1; }
.overlay__panel { transform: translateY(calc(100% + 60px)); transition: transform 0.6s var(--ease); }
.overlay.is-open .overlay__panel { transform: none; }
.overlay__fade { opacity: 0; transform: translateY(-16px); transition: opacity 0.5s ease, transform 0.6s var(--ease); }
.overlay.is-open .overlay__fade { opacity: 1; transform: none; }
.grab { width: 46px; height: 4px; border-radius: 4px; background: rgba(0, 0, 0, 0.18); margin: 10px auto 0; flex: none; }
.close-btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--soft); color: var(--ink); display: grid; place-items: center; flex: none;
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s;
}
@media (hover: hover) { .close-btn:hover { transform: rotate(90deg); background: var(--ink); color: #fff; } }
.menu-link { display: flex; align-items: center; justify-content: space-between; min-height: 46px; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.menu-link > span, .menu-link > a { transition: transform 0.35s var(--ease); }
@media (hover: hover) { .menu-link:hover > span, .menu-link:hover > a { transform: translateX(6px); } }
.submenu { position: absolute; inset: 0; background: #fff; transform: translateX(105%); transition: transform 0.55s var(--ease); visibility: hidden; overflow-y: auto; }
.submenu.is-open { transform: none; visibility: visible; }
.s-item { display: flex; align-items: center; gap: 14px; padding: 8px; background: var(--soft); border-radius: 14px; color: var(--ink); }
.s-add { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; transition: background-color 0.3s, color 0.3s; }
@media (hover: hover) { .s-add:hover { background: var(--ink); color: #fff; } }

/* ---------- Accordions ---------- */
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.acc__body > * { overflow: hidden; min-height: 0; }
.acc.is-open > .acc__body { grid-template-rows: 1fr; }
/* Footer columns: accordions on phones, always open on desktop. */
@media (min-width: 1024px) {
  .acc--mobile > .acc__body { grid-template-rows: 1fr; }
  .acc--mobile > .acc__head { pointer-events: none; }
  .acc--mobile > .acc__head .acc__icon { display: none; }
}

/* ---------- Product form ---------- */
.opt-pill {
  min-height: 38px; padding: 6px 14px; border-radius: 70px; border: 1px solid var(--line); color: var(--ink);
  font-size: 12px; line-height: 1.3; transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
@media (hover: hover) { .opt-pill:hover { border-color: var(--ink); } }
.opt-pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.qty { display: inline-flex; align-items: center; height: 47px; border: 1px solid var(--line); border-radius: 70px; color: var(--ink); }
.qty button { width: 40px; height: 100%; display: grid; place-items: center; }
.qty output { min-width: 24px; text-align: center; font-size: 13px; }
.qty--sm { height: 34px; }
.qty--sm button { width: 30px; }
.stock-dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(60, 140, 70, 0.22); display: grid; place-items: center; }
.stock-dot::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #3c8c46; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: 0.55; } }

/* ---------- Dock and back-to-top ---------- */
.dock { transform: translateY(150%); transition: transform 0.6s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.dock.is-on { transform: none; }
.dock__bar { background: rgba(32, 32, 32, 0.86); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22); }
.dock__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.dock__item:active { opacity: 0.6; }
.to-top { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s var(--ease), visibility 0s 0.4s; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top circle { transition: stroke-dashoffset 0.15s linear; }

/* ---------- Newsletter pop-up (corner card, not a modal) ---------- */
.news-pop {
  opacity: 0; visibility: hidden; transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease), visibility 0s 0.6s;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}
.news-pop.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* On phones the card spans the width above the dock, so the back-to-top button steps aside. */
@media (max-width: 1023px) { .has-news .to-top { opacity: 0; visibility: hidden; } }

/* ---------- Product page ---------- */
.crumbs { display: flex; align-items: center; gap: 10px; min-height: 46px; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; }
.crumbs i { font-style: normal; opacity: 0.5; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 500; }
.pgal > * { scroll-snap-align: start; flex: 0 0 86%; }
@media (min-width: 768px) { .pgal > * { flex-basis: calc(50% - 7px); } }
.pthumb { width: 62px; height: 62px; border-radius: 10px; overflow: hidden; flex: none; opacity: 0.55; outline: 1.5px solid transparent; outline-offset: 2px; transition: opacity 0.3s, outline-color 0.3s; }
.pthumb.is-on { opacity: 1; outline-color: var(--ink); }
.btn--wa { background: #17602f; border-color: #17602f; color: #fff; }
@media (hover: hover) { .btn--wa:hover { background: #114a24; } }
.acc__icon { transition: transform 0.4s var(--ease); }
.acc.is-open > .acc__head .acc__icon { transform: rotate(45deg); }
.buybar { transform: translateY(calc(100% + 110px)); transition: transform 0.5s var(--ease); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16); }
.buybar.is-on { transform: none; }
.has-buybar .to-top { bottom: 150px; }
@media (max-width: 1023px) { .has-buybar .news-pop { bottom: 144px; } }
.sort { appearance: none; -webkit-appearance: none; background: transparent; padding-right: 22px; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; outline: none; }

/* ---------- Rich text ---------- */
.rich p { margin-bottom: 0.8em; }
.rich p:last-child { margin-bottom: 0; }
.rich ul, .rich ol { margin: 0 0 0.8em 1.2em; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li { margin-bottom: 0.35em; }
.rich a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rich strong, .rich b { color: var(--ink); font-weight: 500; }
.policy { font-size: 15px; line-height: 1.7; }
.policy h2 { font-size: 22px; margin: 2em 0 0.6em; }
.policy h2:first-child { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-split] .w { opacity: 1; transform: none; }
}
