/* =========================================================
   Sandra Surgical — dynamic site layer
   Catalogue, product, inquiry basket, catalogues (PDF), hero
   slider / video, newsletter, utilities. Builds on styles.css tokens.
   ========================================================= */

.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lede { font-size: var(--t-lede); color: var(--ivory-dim); max-width: 44rem; margin: 0 0 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.link-btn { font-size: 0.85rem; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
select { font: inherit; color: inherit; }

/* ---------- Header additions ---------- */
.topbar__right { display: flex; align-items: center; gap: 6px; }
.topbar__social { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.topbar__social:hover { background: rgba(255, 255, 255, 0.12); }
.topbar__social .ico { width: 14px; height: 14px; stroke: #fff; }
.brand-img { height: 64px; width: auto; max-width: 220px; object-fit: contain; padding: 3px 5px; border-radius: 12px; background: #fff; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.4); flex: none; transition: height 0.5s var(--ease-out); }
.nav.is-scrolled .brand-img { height: 54px; }
@media (max-width: 760px) { .brand-img, .nav.is-scrolled .brand-img { height: 54px; } }
.footer__logo .brand-img { height: 120px; max-width: 260px; padding: 8px 10px; border-radius: 16px; }

.nav__dd { position: relative; display: flex; align-items: center; }
.nav__menu { position: absolute; top: calc(100% + 18px); left: -24px; min-width: 300px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -20px rgba(23, 20, 63, 0.4); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.3s, transform 0.4s var(--ease-out), visibility 0.3s;
  --ivory: #17143f; --ivory-dim: rgba(23, 20, 63, 0.7); --ivory-faint: rgba(23, 20, 63, 0.55); color: var(--ivory); }
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav__dd:hover .nav__menu, .nav__dd:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__links .nav__menu a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 11px 14px; border-radius: 10px; color: var(--ivory); font-weight: 500; }
.nav__links .nav__menu a::after { display: none; }
.nav__links .nav__menu a:hover { background: var(--graphite); color: var(--indigo); }
.nav__menu small { color: var(--red); }
.nav__links .nav__menu .nav__menu-all { margin-top: 4px; border-top: 1px solid rgba(23, 20, 63, 0.08); border-radius: 0 0 10px 10px; color: var(--red); }

.nav__cart { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hairline-strong); color: #fff; transition: background 0.3s; }
.nav__cart:hover { background: rgba(255, 255, 255, 0.12); }
.nav__cart .ico { width: 19px; height: 19px; }
.nav__cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font: 700 0.68rem/20px var(--f-body); text-align: center; box-shadow: 0 0 0 2px var(--indigo); }
.nav__cart-count[hidden] { display: none; }
.bump { animation: bump 0.5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.35); } }

.mobile-menu:not([hidden]) > a, .mobile-menu:not([hidden]) .mobile-menu__contact { animation: rise 0.7s var(--ease-out) both; }
html.menu-open { overflow: hidden; }

/* ---------- Inner pages ---------- */
.is-inner main { position: relative; z-index: 2; }
.page { padding-top: 168px; padding-bottom: clamp(64px, 10vw, 120px); min-height: 70vh; }
.page-hero { padding-bottom: clamp(24px, 4vw, 48px); }
.page-hero .h2 { max-width: 20ch; margin-bottom: 0.3em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.6rem; }
.crumbs a:hover { color: var(--red); }
.crumbs span { opacity: 0.6; }
.notfound { padding-block: 60px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 2.6rem; }
.section-head .h2 { margin: 0; }
.notice { padding: 16px 20px; border-radius: 14px; margin-bottom: 24px; background: var(--graphite); border-left: 4px solid var(--indigo); }
.notice--success { background: #eaf7ef; border-color: #1b8a4b; }
.notice--error { background: #fdeceb; border-color: var(--red); }
.empty { padding: 48px; text-align: center; border: 1px dashed var(--hairline-strong); border-radius: var(--radius); background: #fff; display: grid; gap: 18px; justify-items: center; }
.empty p { margin: 0; max-width: 34rem; color: var(--ivory-dim); }

.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- Catalogue layout ---------- */
.shop { display: grid; grid-template-columns: 270px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.shop__side { position: sticky; top: 130px; display: grid; gap: 22px; }
.search { position: relative; }
.search input { width: 100%; height: 50px; padding: 0 50px 0 18px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: #fff; font-size: 0.92rem; }
.search input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(59, 48, 158, 0.1); }
.search button { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.cats { background: #fff; border: 1px solid var(--hairline); border-radius: 18px; padding: 14px; }
.cats summary { cursor: pointer; padding: 6px 8px 12px; list-style: none; }
.cats summary::-webkit-details-marker { display: none; }
.cats ul { list-style: none; margin: 0; padding: 0; }
.cats ul ul { margin: 2px 0 8px 12px; padding-left: 10px; border-left: 2px solid var(--graphite); }
.cats a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 0.9rem; color: var(--ivory-dim); transition: background 0.25s, color 0.25s; }
.cats a small { color: var(--ivory-faint); font-size: 0.75rem; }
.cats a:hover { background: var(--graphite); color: var(--ivory); }
.cats a.is-active { background: var(--indigo); color: #fff; }
.cats a.is-active small { color: var(--coral); }
.side-cta { padding: 22px; border-radius: 18px; background: linear-gradient(160deg, var(--indigo), var(--indigo-deep)); color: #fff; position: relative; overflow: hidden; }
.side-cta::after { content: ""; position: absolute; top: 0; right: 0; width: 40%; height: 14px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%); }
.side-cta .mono { color: var(--coral); }
.side-cta p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); margin: 8px 0 16px; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: #fff; font-size: 0.85rem; transition: all 0.3s; }
.chip:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.shop__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.shop__bar p { margin: 0; }
.sorter { display: flex; align-items: center; gap: 10px; }
.sorter select { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: #fff; font-size: 0.85rem; }

/* ---------- Product cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.featured { padding-block: var(--section) 0; }
.featured .pgrid { grid-template-columns: repeat(4, 1fr); }
.pcard { position: relative; display: flex; flex-direction: column; border-radius: 18px; background: #fff; border: 1px solid var(--hairline); overflow: hidden; transition: box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out), border-color 0.4s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--hairline-strong); }
.pcard__media { display: block; aspect-ratio: 1; background: radial-gradient(70% 70% at 50% 40%, #fff, #f1f0f8); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; transition: transform 0.9s var(--ease-out); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; border-top: 1px solid var(--hairline); }
.pcard__sku { color: var(--red); font-size: 0.66rem; }
.pcard__title { font: 600 0.95rem/1.35 var(--f-body); margin: 0 0 8px; }
.pcard__title a:hover { color: var(--indigo); }
.pcard__add { margin-top: auto; }
.pcard__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--red); color: var(--red); font-size: 0.82rem; font-weight: 600; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.pcard__btn .ico { width: 16px; height: 16px; }
.pcard__btn:hover { background: var(--red); color: #fff; }
.pcard__btn.is-added { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.is-busy { opacity: 0.6; pointer-events: none; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--hairline-strong); font-size: 0.88rem; background: #fff; }
.pager a:hover { border-color: var(--indigo); color: var(--indigo); }
.pager span[aria-current] { background: var(--indigo); border-color: var(--indigo); color: #fff; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.pdp__gallery { position: sticky; top: 130px; display: grid; gap: 14px; }
.pdp__stage { aspect-ratio: 1; border-radius: 24px; background: radial-gradient(70% 70% at 50% 40%, #fff, #eeedf8); border: 1px solid var(--hairline); overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow); }
.pdp__stage img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.pdp__stage.is-zoom img { transform: scale(1.8); cursor: zoom-in; }
.pdp__stage img.is-swapping { opacity: 0.3; }
.pdp__thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pdp__thumbs button { flex: none; width: 78px; height: 78px; border-radius: 12px; border: 2px solid transparent; background: #fff; overflow: hidden; }
.pdp__thumbs button.is-active { border-color: var(--red); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp__cat { margin-bottom: 1rem; }
.pdp__title { font: 400 clamp(2.2rem, 4vw, 3.6rem)/1.02 var(--f-display); letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.pdp__sku { color: var(--red); margin: 0 0 1.4rem; }
.pdp__specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 1.6rem 0 2rem; border-top: 1px solid var(--hairline); }
.pdp__specs div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--hairline); }
.pdp__specs dd { margin: 6px 0 0; font-weight: 500; }
.pdp__add { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pdp__add .btn { flex: 1 1 220px; height: 56px; width: auto; border: 0; }
.pdp__add .pcard__btn { background: var(--red); color: #fff; }
.pdp__add .pcard__btn.is-added { background: var(--indigo); }
.pdp__alt { display: flex; flex-wrap: wrap; gap: 24px; margin: 22px 0 0; color: var(--indigo); font-weight: 500; }
.pdp__desc { margin-top: 2rem; color: var(--ivory-dim); }
.pdp__assure { list-style: none; padding: 20px; margin: 2rem 0 0; display: grid; gap: 10px; border-radius: 16px; background: var(--graphite); font-size: 0.92rem; }
.pdp__assure li { display: flex; gap: 10px; align-items: center; }
.pdp__assure .ico { color: var(--red); }
.related { padding-top: var(--section); }

.qty { display: inline-flex; align-items: center; height: 56px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 46px; height: 100%; display: grid; place-items: center; color: var(--indigo); }
.qty button:hover { background: var(--graphite); }
.qty input { width: 64px; height: 100%; border: 0; text-align: center; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- Inquiry basket ---------- */
.basket { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.basket__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.basket__head p { margin: 0; }
.blist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bitem { display: grid; grid-template-columns: 84px 1fr auto auto; gap: 16px; align-items: center; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--hairline); transition: opacity 0.3s, transform 0.3s; }
.bitem.is-leaving { opacity: 0; transform: translateX(30px); }
.bitem__img { width: 84px; height: 84px; border-radius: 12px; background: #f3f2f9; overflow: hidden; }
.bitem__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.bitem__info { display: grid; gap: 4px; min-width: 0; }
.bitem__name { font-weight: 600; line-height: 1.3; }
.bitem__info .mono { color: var(--red); }
.bitem__qty { display: grid; gap: 8px; justify-items: end; }
.bitem__qty .qty { height: 42px; }
.bitem__qty .qty button { width: 36px; }
.bitem__qty .qty input { width: 54px; }
.bitem__note { width: 190px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--hairline); font-size: 0.8rem; background: var(--obsidian); }
.bitem__rm { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ivory-faint); }
.bitem__rm:hover { background: #fdeceb; color: var(--red); }
.basket__form { position: sticky; top: 130px; }
.quote__grid--solo { grid-template-columns: 1fr; padding: clamp(24px, 3vw, 40px); }
.form__title { grid-column: 1 / -1; font: 400 2rem/1 var(--f-display); margin: 0 0 4px; }
.check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; font-size: 0.88rem; color: var(--ivory-dim); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.form .btn[disabled] { opacity: 0.7; }

/* ---------- Catalogues (PDF) ---------- */
.docgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cat-teaser { padding-top: var(--section); }
.doc { display: flex; flex-direction: column; border-radius: 20px; background: #fff; border: 1px solid var(--hairline); overflow: hidden; transition: box-shadow 0.5s, transform 0.5s var(--ease-out); }
.doc:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.doc__cover { aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--indigo), var(--indigo-deep)); display: grid; place-items: center; position: relative; overflow: hidden; }
.doc__cover::after { content: ""; position: absolute; top: 0; right: 0; width: 38%; height: 16px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%); }
.doc__cover img { width: 100%; height: 100%; object-fit: cover; }
.doc__ph { display: grid; justify-items: center; gap: 8px; color: #fff; }
.doc__ph .ico { width: 56px; height: 56px; stroke-width: 1.1; }
.doc__ph .mono { color: var(--coral); }
.doc__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.doc__body h3 { font: 500 1.5rem/1.15 var(--f-display); margin: 0; }
.doc__body p { margin: 0; font-size: 0.9rem; color: var(--ivory-dim); }
.doc__meta { margin-top: 4px !important; color: var(--red) !important; }
.doc__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.doc__actions .btn { flex: 1; padding: 0 14px; }
.doc__actions .ico { width: 16px; height: 16px; }

/* ---------- Contact ---------- */
.quote--page { padding-block: 0; }
.contact-list { display: grid; gap: 22px; }
.contact-list > div { display: grid; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--hairline); }
.contact-list address { font-style: normal; color: var(--ivory-dim); }
.map { margin-top: 48px; }
.map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); }

/* ---------- Home: category cards with photos ---------- */
.collections .card { color: inherit; }
.card__art--img { inset: 12% 8% 40%; }
.card__art--img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: drop-shadow(0 18px 24px rgba(23, 20, 63, 0.18)); transition: transform 1.2s var(--ease-out); }
.card:hover .card__art--img img { transform: rotate(-4deg) scale(1.06); }

/* ---------- Hero: image slider & video modes ---------- */
.hero--media { padding: 0; min-height: 100svh; overflow: hidden; color: #fff; background: var(--indigo-deep);
  --ivory: #fff; --ivory-dim: rgba(255, 255, 255, 0.86); --ivory-faint: rgba(255, 255, 255, 0.66); --hairline-strong: rgba(255, 255, 255, 0.4); }
.hero--media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(23, 20, 63, calc(var(--overlay, 0.45) + 0.25)) 0%, rgba(23, 20, 63, var(--overlay, 0.45)) 55%, rgba(23, 20, 63, calc(var(--overlay, 0.45) - 0.15)) 100%); }
.hero--media .hero__content, .slide__content { position: relative; z-index: 2; }
.hero--video { display: flex; flex-direction: column; justify-content: center; padding-top: 190px; padding-bottom: 110px; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__vbtn { position: absolute; z-index: 3; right: var(--gutter); bottom: 32px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(23, 20, 63, 0.35); backdrop-filter: blur(8px); }
.hero--media .mono { color: rgba(255, 255, 255, 0.85); }
.hero--media .eyebrow { background: rgba(255, 255, 255, 0.95); }
.hero--media .hero__title em { background: linear-gradient(115deg, #fff 0%, #ffb4a8 40%, #fff 80%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; }
.hero--media .btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.hero--media .btn--ghost::before { background: #fff; }
.hero--media .btn--ghost:hover { color: var(--indigo); }

.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; padding: 190px 0 140px; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease-inout), visibility 1.2s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 8s linear; }
.slide.is-active .slide__bg { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(23, 20, 63, calc(var(--overlay, 0.45) + 0.25)), rgba(23, 20, 63, calc(var(--overlay, 0.45) - 0.1))); }
.hero--slider::after { display: none; }
.slide__content > * { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.slide.is-active .slide__content > * { opacity: 1; transform: none; }
.slide.is-active .slide__content > *:nth-child(2) { transition-delay: 0.15s; }
.slide.is-active .slide__content > *:nth-child(3) { transition-delay: 0.3s; }
.slide.is-active .slide__content > *:nth-child(4) { transition-delay: 0.45s; }
.slide__title { font: 400 clamp(2.8rem, 7vw, 7rem)/0.95 var(--f-display); letter-spacing: -0.03em; margin: 0 0 1.4rem; max-width: 14ch; }
.slide__title em { color: var(--coral); }
.slide__lede { max-width: 34rem; font-size: var(--t-lede); color: rgba(255, 255, 255, 0.88); margin: 0 0 2.2rem; }
.slider__nav { position: absolute; z-index: 3; left: 0; right: 0; bottom: 34px; display: flex; align-items: center; gap: 18px; }
.slider__nav .round-btn { color: #fff; border-color: rgba(255, 255, 255, 0.4); width: 48px; height: 48px; }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button { width: 28px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); transition: background 0.3s, width 0.4s var(--ease-out); }
.slider__dots button.is-active { width: 48px; background: var(--red); }
.slider__progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.15); }
.slider__progress span { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }

/* ---------- Footer: newsletter + brand ---------- */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding-bottom: 70px; margin-bottom: 70px; border-bottom: 1px solid var(--hairline); }
.newsletter__title { font: 400 clamp(1.9rem, 3.4vw, 3rem)/1.05 var(--f-display); margin: 10px 0; }
.newsletter__title em { color: var(--coral); }
.newsletter__copy p:last-child { margin: 0; color: var(--ivory-dim); }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter__form input[type=email] { flex: 1 1 240px; height: 56px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: #fff; }
.newsletter__form input::placeholder { color: rgba(255, 255, 255, 0.6); }
.newsletter__form input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, 0.14); }
.newsletter__form .form-msg { flex-basis: 100%; margin: 4px 0 0; font-size: 0.85rem; color: var(--coral); min-height: 1.2em; }
.footer__top { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.footer__logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.footer__logo strong { font-size: 1.05rem; }
.footer__brand > p { max-width: 22rem; }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.3); transition: background 0.3s, border-color 0.3s; }
.footer__social a:hover { background: var(--red); border-color: var(--red); }
.footer__social--dark a { border-color: var(--hairline-strong); color: var(--indigo); }
.footer__social--dark a:hover { color: #fff; }
.footer address { font-style: normal; }
.footer__hours { font-size: 0.85rem; opacity: 0.8; }

/* ---------- Floating WhatsApp + toast ---------- */
.wa-float { position: fixed; z-index: 90; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1fae5b; color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45); transition: transform 0.4s var(--ease-out); }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ico { width: 26px; height: 26px; stroke-width: 1.8; }
.toast { position: fixed; z-index: 300; left: 50%; bottom: 28px; max-width: min(92vw, 460px); padding: 14px 22px; border-radius: 14px; background: var(--indigo); color: #fff; font-size: 0.92rem; box-shadow: 0 20px 40px -12px rgba(23, 20, 63, 0.5); border-left: 4px solid #3ccf7f; transform: translate(-50%, 30px); opacity: 0; transition: transform 0.4s var(--ease-out), opacity 0.4s; }
.toast[data-type=err] { border-left-color: var(--red); }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .featured .pgrid { grid-template-columns: repeat(3, 1fr); }
  .basket { grid-template-columns: 1fr; }
  .basket__form { position: static; }
}
@media (max-width: 1024px) {
  .shop { grid-template-columns: 1fr; }
  .shop__side { position: static; }
  .cats:not([open]) { padding-bottom: 8px; }
  .side-cta { display: none; }
  .pdp { grid-template-columns: 1fr; }
  .pdp__gallery { position: static; }
  .newsletter { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .page { padding-top: 112px; }
  .featured .pgrid, .pgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard__body { padding: 12px; }
  .pcard__title { font-size: 0.86rem; }
  .pcard__btn { height: 38px; font-size: 0.76rem; }
  .bitem { grid-template-columns: 64px 1fr auto; }
  .bitem__img { width: 64px; height: 64px; }
  .bitem__qty { grid-column: 1 / -1; grid-row: 2; justify-items: stretch; grid-template-columns: auto 1fr; align-items: center; }
  .bitem__note { width: 100%; }
  .slide { padding: 120px 0 130px; }
  .hero--video { padding-top: 130px; }
  .nav__cart { width: 40px; height: 40px; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .section-head .btn { display: none; }
}
@media (max-width: 640px) {
  .footer__top { grid-template-columns: 1fr; }
  .doc__actions { flex-direction: column; }
  .shop__bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .pgrid, .featured .pgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .slide__bg { transition: none; transform: none; }
}

/* ---------- CAPTCHA ---------- */
.captcha { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; }
.captcha__img { position: relative; display: flex; align-items: center; gap: 8px; }
.captcha__img img { width: 170px; height: 54px; border-radius: 10px; border: 1px solid var(--hairline-strong); background: #f6f6fb; }
.captcha__refresh { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hairline-strong); font-size: 1.2rem; color: var(--indigo); transition: transform 0.4s var(--ease-out), background 0.3s; }
.captcha__refresh:hover { background: var(--graphite); transform: rotate(120deg); }
.captcha__input { flex: 1 1 180px; }
.captcha__input input { text-transform: uppercase; letter-spacing: 0.2em; }

/* Quote card keeps the page gutter (its own padding replaces .container padding) */
.quote__grid { width: min(100% - 2 * var(--gutter), var(--max) - 2 * var(--gutter)); }
.basket .quote__grid, .quote__grid--solo { width: 100%; }

/* Product page: WhatsApp link with icon */
.pdp__wa { display: inline-flex; align-items: center; gap: 8px; color: #1a9e52; }
.pdp__wa .ico { width: 20px; height: 20px; stroke-width: 1.8; }
.pdp__wa:hover { color: #14843f; }

/* ---------- Back-to-top button (stacks above the WhatsApp button) ---------- */
.to-top-btn { position: fixed; z-index: 90; right: 26px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo); color: #fff; box-shadow: 0 12px 26px -10px rgba(23, 20, 63, 0.6); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.35s, visibility 0.35s, transform 0.45s var(--ease-out), background 0.3s; }
.to-top-btn.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top-btn:hover { background: var(--red); }
.to-top-btn .ico { width: 20px; height: 20px; stroke-width: 2; }
.wa-float ~ .to-top-btn { bottom: 88px; }
@media (max-width: 760px) {
  .to-top-btn { right: 17px; bottom: 14px; }
  .wa-float ~ .to-top-btn { bottom: 74px; }
}
