/* ==========================================================
   style.css — base, header, hero, search and global UI
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-stretch: 112%; line-height: 1.12; margin: 0 0 .5em; color: var(--deep); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--deep); color: #fff; padding: 8px 14px; z-index: 999; }
.skip-link:focus { left: 8px; }
body.no-scroll { overflow: hidden; }

/* Icon drawn with a mask so it takes the theme colour */
.ico {
  display: inline-block; width: 28px; height: 28px; background: currentColor;
  -webkit-mask-position: center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
  mask-position: center; mask-size: contain; mask-repeat: no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: color .3s var(--ease), border-color .3s, transform .2s;
}
/* sweep fill on hover */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:active { transform: scale(.97); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary::before { background: var(--deep); }
.btn--primary:hover { color: #fff; }

.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent::before { background: #fff; }
.btn--accent:hover { color: var(--deep); }

.btn--light { background: #fff; color: var(--deep); }
.btn--light::before { background: var(--accent); }
.btn--light:hover { color: var(--on-accent); }

.btn--outline { border-color: var(--primary); color: var(--primary); }
.btn--outline::before { background: var(--primary); }
.btn--outline:hover { color: #fff; }

.btn--ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost-light::before { background: #fff; }
.btn--ghost-light:hover { color: var(--deep); border-color: #fff; }

.round-nav { display: flex; gap: 10px; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--deep); border: 1px solid var(--line); transition: .25s var(--ease);
}
.round-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.round-btn.swiper-button-disabled { opacity: .35; pointer-events: none; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 600; font-size: 15px; color: var(--primary);
}
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--accent); }
.kicker--light { color: var(--accent); }
.title { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; }
.lead { font-size: 20px; color: var(--deep); line-height: 1.55; }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; background: var(--deep); display: grid; place-items: center; transition: opacity .5s, visibility .5s; }
.preloader.is-done { opacity: 0; visibility: hidden; }
/* fallback: never block the page, even if scripts fail to load */
.preloader { animation: preloaderOut .5s ease 3.5s forwards; }
@keyframes preloaderOut { to { opacity: 0; visibility: hidden; } }
.preloader__flask {
  width: 64px; height: 76px; position: relative; overflow: hidden;
  clip-path: polygon(38% 0, 62% 0, 62% 38%, 100% 100%, 0 100%, 38% 38%);
  background: rgba(255,255,255,.12);
}
.preloader__liquid { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--accent); animation: fill 1.1s var(--ease) infinite; }
@keyframes fill { 0% { height: 0; } 70%, 100% { height: 100%; } }

/* ---------- Top bar ---------- */
.topbar { background: var(--deep); color: rgba(255,255,255,.72); font-size: 14px; position: relative; z-index: 60; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 16px; }
.topbar ul { display: flex; gap: 22px; align-items: center; }
.topbar li { display: flex; align-items: center; gap: 8px; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--accent); }

/* ---------- Header (transparent over hero, solid on scroll) ---------- */
.header { position: absolute; left: 0; right: 0; top: 42px; z-index: 50; transition: background .35s, box-shadow .35s, transform .35s; }
.header__inner { display: flex; align-items: center; gap: 28px; height: 84px; }
.logo { position: relative; flex: 0 0 auto; }
.logo img { width: 176px; height: auto; transition: opacity .3s; }
.logo__dark { position: absolute; inset: 0; opacity: 0; }

.header.is-scrolled {
  position: fixed; top: 0; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  box-shadow: 0 10px 30px -18px rgba(10,25,50,.4); animation: dropIn .45s var(--ease);
}
.header.is-scrolled .header__inner { height: 72px; }
.header.is-scrolled .logo__light { opacity: 0; }
.header.is-scrolled .logo__dark { opacity: 1; }
@keyframes dropIn { from { transform: translateY(-100%); } }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list > li { position: relative; }
.nav__link {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: none; border: 0; color: #fff; white-space: nowrap;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 500; font-size: 15px;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after, .nav__has-drop.is-open > .nav__link::after { transform: scaleX(1); }
.header.is-scrolled .nav__link { color: var(--deep); }
.header.is-scrolled .nav__link.is-active, .header.is-scrolled .nav__link:hover { color: var(--primary); }
.nav__drop-toggle svg { transition: transform .3s; }
.nav__has-drop:hover .nav__drop-toggle svg, .nav__has-drop.is-open .nav__drop-toggle svg { transform: rotate(180deg); }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(880px, 92vw);
  display: grid; grid-template-columns: 1fr 230px; gap: 18px;
  background: #fff; border-radius: var(--r-md); padding: 18px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px); transition: .3s var(--ease);
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__has-drop:hover .mega, .nav__has-drop.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega__grid a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--ink); font-weight: 600; font-size: 15px; transition: background .2s, transform .2s;
}
.mega__grid a:hover { background: var(--tint); color: var(--primary); transform: translateX(4px); }
.mega__grid .ico { width: 34px; height: 34px; color: var(--primary); flex: 0 0 auto; padding: 0; }
.mega__grid small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; line-height: 1.3; }
.mega__promo {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 20px;
  border-radius: 12px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--primary), var(--deep));
}
.mega__promo:hover { color: #fff; }
.mega__promo-art { position: absolute; top: -6px; right: -30px; width: 190px; transition: transform .5s var(--ease); }
.mega__promo:hover .mega__promo-art { transform: rotate(-8deg) scale(1.05); }
.mega__promo strong { font-family: var(--font-display); font-stretch: 112%; font-size: 20px; position: relative; }
.mega__promo span { font-size: 14px; color: rgba(255,255,255,.8); position: relative; }
.mega__promo .mega__promo-cta { margin-top: 10px; align-self: flex-start; background: var(--accent); color: var(--on-accent); padding: 6px 14px; border-radius: 999px; font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; transition: .25s;
}
.icon-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.header.is-scrolled .icon-btn { border-color: var(--line); background: #fff; color: var(--deep); }
.header.is-scrolled .icon-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.icon-btn__count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--warm); color: #1a1200; font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.icon-btn__count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; padding: 14px 12px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.header.is-scrolled .nav-toggle { border-color: var(--line); }
.header.is-scrolled .nav-toggle span { background: var(--deep); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 30%, color-mix(in srgb, var(--primary) 70%, transparent), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(160deg, var(--deep) 30%, var(--deep-2));
}
.hero__bubbles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__grid-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); mask: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero__slider { position: relative; z-index: 2; min-height: 760px; }
.hero__slide { min-height: 760px; display: flex; align-items: center; }
.hero__slide .container { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding-top: 160px; padding-bottom: 230px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 14px; font-weight: 600;
  backdrop-filter: blur(6px);
}
.hero__tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent); }
.hero__title { color: #fff; font-size: clamp(36px, 4.4vw, 62px); font-weight: 800; margin: 22px 0 20px; max-width: 17ch; }
.hero__title { opacity: 0; transform: translateY(40px); clip-path: inset(0 0 100% 0); transition: opacity .9s var(--ease) .1s, transform .9s var(--ease) .1s, clip-path 1s var(--ease) .1s; }
.swiper-slide-active .hero__title { opacity: 1; transform: none; clip-path: inset(0 0 -20% 0); }
.hero__text { font-size: 19px; color: rgba(255,255,255,.78); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__copy > :not(.hero__title) { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease) .35s, transform .8s var(--ease) .35s; }
.swiper-slide-active .hero__copy > :not(.hero__title) { opacity: 1; transform: none; }
.swiper-slide-active .hero__copy .hero__actions { transition-delay: .5s; }

.hero__visual { position: relative; justify-self: center; width: min(500px, 100%); aspect-ratio: 1; }
.hero__orb { /* soft theme-coloured glow behind the product image */
  position: absolute; inset: 4%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent) 0%, color-mix(in srgb, var(--primary) 30%, transparent) 45%, transparent 70%);
  filter: blur(6px);
}
.hero__orb::after { /* rotating dashed ring */
  content: ""; position: absolute; inset: -4%; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.18);
  animation: spin 50s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__art { position: absolute; inset: 0; transform: scale(.85); opacity: 0; transition: transform 1s var(--ease) .2s, opacity 1s .2s; }
.swiper-slide-active .hero__art { transform: none; opacity: 1; }
.hero__art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.hero__card {
  position: absolute; display: flex; flex-direction: column; padding: 14px 18px; border-radius: 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); opacity: 0; transition: opacity .8s .6s, transform .8s var(--ease) .6s;
}
.hero__card strong { font-family: var(--font-display); font-stretch: 112%; font-size: 26px; color: var(--accent); line-height: 1.1; }
.hero__card span { font-size: 13px; color: rgba(255,255,255,.85); }
.hero__card--a { top: 6%; left: -8%; transform: translateX(-30px); }
.hero__card--b { bottom: 4%; right: -12%; transform: translateX(30px); }
.swiper-slide-active .hero__card { opacity: 1; transform: none; animation: float 6s ease-in-out 1.4s infinite; }
.swiper-slide-active .hero__card--b { animation-delay: 2.4s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero__layer { transition: transform .3s ease-out; } /* mouse parallax */

.hero__nav { position: absolute; left: 0; right: 0; bottom: 126px; z-index: 5; display: flex; justify-content: space-between; align-items: center; }
.hero__progress { display: flex; gap: 10px; }
.hero__progress button { width: 64px; height: 30px; padding: 0; border: 0; background: none; color: rgba(255,255,255,.6); font: 600 13px var(--font-display); text-align: left; position: relative; }
.hero__progress button::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: rgba(255,255,255,.2); }
.hero__progress button i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; border-radius: 2px; background: var(--accent); }
.hero__progress button.is-active { color: #fff; }
.hero__progress button.is-active i { animation: bar var(--dur, 6s) linear forwards; }
@keyframes bar { to { width: 100%; } }
.hero__arrows { display: flex; gap: 10px; }
.hero__arrows button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.05); color: #fff; display: grid; place-items: center; transition: .25s; }
.hero__arrows button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Finder (search panel overlapping hero) ---------- */
.finder {
  position: relative; z-index: 10; margin-top: -84px; background: #fff; border-radius: var(--r-lg);
  padding: 22px 22px 16px; box-shadow: 0 30px 60px -30px rgba(10,25,50,.45), 0 0 0 1px rgba(10,25,50,.04);
}
.search { position: relative; display: flex; gap: 12px; align-items: stretch; }
.search__field { display: flex; flex-direction: column; justify-content: center; padding: 8px 18px; border-radius: 14px; background: var(--tint); transition: box-shadow .25s, background .25s; }
.search__field:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--primary); }
.search__field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.search__field--cat { flex: 0 0 260px; }
.search__field--q { flex: 1; }
.search__select, .search__input { border: 0; background: transparent; font: 600 17px var(--font-body); color: var(--deep); padding: 2px 0; outline: none; width: 100%; }
.search__btn { border-radius: 14px; padding: 0 30px; }
.finder__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.finder__popular button { border: 1px solid var(--line); background: #fff; padding: 4px 12px; border-radius: 999px; color: var(--ink); font-size: 14px; transition: .2s; }
.finder__popular button:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.search__results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 30;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); max-height: 420px; overflow: auto; padding: 6px;
  animation: pop .25s var(--ease);
}
.search__item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; text-align: left; color: var(--ink); }
.search__item:hover, .search__item:focus { background: var(--tint); outline: none; }
.search__item .ico { width: 44px; height: 44px; flex: 0 0 44px; color: var(--primary); background-color: currentColor; }
.search__thumb { width: 52px; height: 52px; border-radius: 10px; background: var(--tint); display: grid; place-items: center; flex: 0 0 52px; color: var(--primary); }
.search__thumb .ico { width: 30px; height: 30px; flex-basis: 30px; }
.search__item b { display: block; font-weight: 600; }
.search__item small { color: var(--muted); font-size: 13px; }
.search__item mark { background: color-mix(in srgb, var(--accent) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.search__empty { padding: 16px; color: var(--muted); margin: 0; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 120; background: color-mix(in srgb, var(--deep) 94%, transparent); backdrop-filter: blur(8px); display: flex; align-items: flex-start; padding-top: 18vh; animation: fadeIn .3s; }
.search-overlay[hidden] { display: none; }
.search-overlay__title { color: #fff; font-family: var(--font-display); font-stretch: 112%; font-size: clamp(26px, 3vw, 40px); font-weight: 700; margin-bottom: 24px; }
.search--overlay { background: #fff; border-radius: 18px; padding: 8px; }
.search--overlay .search__select { flex: 0 0 200px; background: var(--tint); border-radius: 12px; padding: 0 14px; font-size: 15px; }
.search--overlay .search__input { flex: 1; padding: 14px; font-size: 19px; }
.search-overlay__close { position: absolute; top: 24px; right: 28px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; font-size: 30px; line-height: 1; }
.search-overlay__close:hover { background: #fff; color: var(--deep); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal--left { transform: translateX(-48px); }
.reveal--right { transform: translateX(48px); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Floating tools ---------- */
.float-wa {
  position: fixed; left: 24px; bottom: 24px; z-index: 80; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(37,211,102,.7);
}
.float-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ping 2s infinite; }
.float-wa:hover { color: #fff; transform: scale(1.06); }
@keyframes ping { to { transform: scale(1.6); opacity: 0; } }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: var(--deep); color: #fff; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: .35s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary); }
.to-top__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 132; stroke-dashoffset: var(--offset, 132); stroke-linecap: round; }

.theme-switch { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; align-items: center; }
.theme-switch__toggle {
  width: 50px; height: 50px; border: 0; border-radius: 12px 0 0 12px; background: var(--primary); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.theme-switch__toggle svg { animation: spin 8s linear infinite; }
.theme-switch__panel { position: absolute; right: 58px; top: 50%; transform: translateY(-50%); background: #fff; border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow); width: 236px; animation: pop .25s var(--ease); }
.theme-switch__panel p { margin: 0 0 10px; font: 700 15px var(--font-display); font-stretch: 112%; color: var(--deep); }
.theme-switch__list { display: grid; gap: 6px; }
.theme-opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: none; text-align: left; font-size: 15px; color: var(--ink); }
.theme-opt:hover { background: var(--tint); }
.theme-opt[aria-pressed="true"] { border-color: var(--primary); background: var(--tint); font-weight: 600; }
.theme-opt__sw { display: flex; width: 44px; height: 22px; border-radius: 6px; overflow: hidden; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.theme-opt__sw i { flex: 1; }

/* ---------- Modal, drawer, toast ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 130; }
.modal[hidden], .drawer[hidden] { display: none; }
.modal__backdrop, .drawer__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--deep) 65%, transparent); backdrop-filter: blur(4px); animation: fadeIn .3s; }
.modal__panel { position: relative; max-width: 900px; width: calc(100% - 32px); margin: 7vh auto 0; background: #fff; border-radius: var(--r-lg); padding: 36px; max-height: 86vh; overflow: auto; animation: pop .35s var(--ease); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border: 0; background: var(--tint); border-radius: 50%; font-size: 26px; line-height: 1; color: var(--deep); transition: .25s; }
.modal__close:hover { background: var(--primary); color: #fff; transform: rotate(90deg); }
.qv { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.qv__media { border-radius: var(--r-md); aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(145deg, var(--tint), var(--tint-2)); color: var(--primary); overflow: hidden; }
.qv__media img { width: 100%; height: 100%; object-fit: contain; padding: 28px; mix-blend-mode: multiply; }
.qv__media .ico { width: 45%; height: 45%; }
.qv h2 { font-size: 30px; }
.qv p { color: var(--muted); }
.qv__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.qv__meta span { background: var(--tint); color: var(--primary-dark); padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.qv__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: #fff; display: flex; flex-direction: column; overflow: auto; animation: slideIn .4s var(--ease); }
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; background: var(--deep); color: #fff; }
.drawer__head h2 { color: #fff; font-size: 21px; margin: 0; }
.drawer__head .modal__close { position: static; background: rgba(255,255,255,.12); color: #fff; }
.drawer__items { padding: 10px 26px; }
.drawer__items li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); animation: pop .3s var(--ease); }
.drawer__items .search__thumb { width: 46px; height: 46px; flex-basis: 46px; }
.drawer__items span.name { flex: 1; font-weight: 600; font-size: 15px; }
.drawer__items button { border: 0; background: none; color: var(--muted); font-size: 14px; }
.drawer__items button:hover { color: #B42318; }
.drawer__empty { color: var(--muted); padding: 14px 0; }
.enquiry-form { padding: 20px 26px 26px; display: grid; gap: 12px; margin-top: auto; background: var(--tint); }
.enquiry-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.enquiry-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; color: var(--deep); }
.enquiry-form input, .enquiry-form textarea, .enquiry-form select { font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.enquiry-form input:focus, .enquiry-form textarea:focus, .enquiry-form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.form-msg { margin: 0; font-size: 14px; min-height: 1em; }
.form-msg.is-error { color: #D92D20; }
.form-msg.is-ok { color: #12B76A; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px); background: var(--deep); color: #fff; padding: 13px 22px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .35s var(--ease); z-index: 200; font-weight: 600; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); }
.toast::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.skeleton { border-radius: var(--r-md); min-height: 240px; background: linear-gradient(90deg, var(--tint), #fff, var(--tint)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton--dark { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04)); background-size: 200% 100%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Catalogue download form ---------- */
.modal--form .modal__panel { max-width: 620px; padding: 34px 34px 28px; }
.cf__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; padding-right: 40px; }
.cf__icon { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.cf__head h2 { font-size: 26px; margin-bottom: 4px; }
.cf__head p { margin: 0; color: var(--muted); font-size: 15px; }
.cf__head strong { color: var(--deep); }
#catalogueForm { display: grid; gap: 14px; }
#catalogueForm[hidden], .cf-done[hidden], .cf-done__demo[hidden] { display: none; }
.cf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-field { display: grid; gap: 5px; }
.cf-field label { font-size: 14px; font-weight: 600; color: var(--deep); }
.cf-field input, .cf-field select, .cf-field textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.cf-error { display: none; font-size: 13px; font-weight: 600; color: #C0281B; }
.cf-field.is-invalid input, .cf-field.is-invalid select { border-color: #C0281B; }
.cf-field.is-invalid .cf-error { display: block; animation: pop .25s var(--ease); }
.cf__privacy { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.cf-done { text-align: center; padding: 10px 6px; animation: pop .35s var(--ease); }
.cf-done__tick { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--accent); color: var(--on-accent); }
.cf-done h3 { font-size: 24px; }
.cf-done p { color: var(--muted); }
.cf-done__demo { background: var(--tint); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.cf-done__demo a { font-weight: 700; }
@media (max-width: 720px) {
  .modal--form .modal__panel { padding: 26px 18px 22px; margin-top: 3vh; max-height: 94vh; }
  .cf__row { grid-template-columns: 1fr; }
  .cf__head { padding-right: 34px; }
}

/* Item count on the "Get a quote" button (enquiry list) */
.quote-btn__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--deep); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.quote-btn__count[hidden] { display: none; }
.quote-btn__count.bump { animation: bump .5s var(--ease); }
