/* NewBiolüx — site styles. Colors are tokens only; dark theme overrides them. */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --text: #14213d;
  --muted: #4d5b74;
  --border: #dde4ee;
  --primary: #1d7f3a;
  --primary-hover: #176831;
  --primary-soft: #e3f4e7;
  --brand-blue: #304c9f;
  --brand-red: #ed1f24;
  --on-primary: #ffffff;
  --accent: #1d2f66;
  --danger: #b42318;
  --old-price: #7a8a94;
  --wa: #1fa855;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .08);
  --shadow-lg: 0 20px 50px rgba(20, 33, 61, .16);
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a1120;
  --surface: #111b2e;
  --surface-2: #18243b;
  --text: #e7ecf5;
  --muted: #a1aec4;
  --border: #263450;
  --primary: #4fc874;
  --primary-hover: #6fd78f;
  --primary-soft: #16351f;
  --brand-blue: #8ea7f2;
  --brand-red: #ff6b6b;
  --on-primary: #06220f;
  --accent: #e7ecf5;
  --danger: #ff8a80;
  --old-price: #7f95a3;
  --wa: #2fd06b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background-color .25s, color .25s;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s, background-color .15s, border-color .15s, color .15s;
  min-height: 48px;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { border-color: var(--border); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(1.05); }
[data-theme="dark"] .btn-wa { color: #04210f; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; min-height: 40px; font-size: 14px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; position: relative; text-decoration: none; color: var(--text);
  transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn .when-dark { display: none; }
[data-theme="dark"] .icon-btn .when-dark { display: grid; }
[data-theme="dark"] .icon-btn .when-light { display: none; }
.icon-btn span { display: grid; place-items: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.brand img { max-height: 44px; width: auto; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--primary); color: var(--on-primary); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--muted); white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1200px) { .main-nav { gap: 0; } .main-nav a { padding: 10px 8px; font-size: 14.5px; } }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--primary); color: var(--on-primary);
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.menu-btn { display: none; }

@media (max-width: 980px) {
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px;
    box-shadow: var(--shadow-lg); transform: translateY(-120%); transition: transform .25s; margin: 0;
    visibility: hidden;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav a { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
}

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 64px; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 65%); z-index: -1;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } .hero { padding: 72px 0 96px; } }
.hero h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; letter-spacing: -.035em; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.hero-badge {
  position: absolute; left: -8px; bottom: 24px; display: flex; gap: 10px; align-items: center;
  background: var(--surface); padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow-lg); font-weight: 700; font-size: 14px;
}
.hero-badge span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
@media (max-width: 600px) { .hero-badge { left: 12px; bottom: 12px; } }

/* About */
.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.about-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text p { color: var(--muted); font-size: 17px; }

/* Features */
.features-bg { background: var(--surface-2); }
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); margin: 0; }

/* Product grid & card */
.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1040px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* fixed square image box: every card is the same size whatever the photo's shape */
.product-card-media { position: relative; display: block; aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; background: #fff; }
.card-media-link { position: absolute; inset: 0; display: block; }
.product-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s ease, transform .35s ease; }
.card-img:not(.is-active) { opacity: 0; }
.product-card:hover .card-img.is-active { transform: scale(1.03); }
.card-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .92); color: #14213d; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); opacity: 0; transition: opacity .2s; }
.card-prev { left: 8px; }
.card-next { right: 8px; }
.product-card-media:hover .card-nav, .gallery-main:hover .card-nav, .card-nav:focus-visible { opacity: 1; }
@media (hover: none) { .card-nav { opacity: .9; width: 32px; height: 32px; } }
.card-dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.card-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(20, 33, 61, .25); transition: background .2s, width .2s; }
.card-dots i.is-active { width: 16px; border-radius: 4px; background: var(--primary); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
[data-theme="dark"] .badge { color: #2a0603; }
.product-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
@media (min-width: 700px) { .product-card-body { padding: 18px; } }
.product-card-cat { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.product-card h3 { font-size: 16px; margin: 0; }
.product-card h3 a { text-decoration: none; }
.product-card h3 a:hover { color: var(--primary); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin-top: auto; padding-top: 6px; }
.price { font-weight: 800; font-size: 18px; color: var(--brand-blue); }
.price-ask { font-weight: 700; color: var(--primary); }
.old-price { color: var(--old-price); text-decoration: line-through; font-size: 14px; }
.vat { font-size: 12px; color: var(--muted); }
.product-card .btn { margin-top: 10px; }

.center { text-align: center; }
.mt-lg { margin-top: 40px; }

/* Contact */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.contact-list small { display: block; color: var(--muted); font-size: 13px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 320px; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* Page header */
.page-head { padding-top: 40px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* Category chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.chip:hover { color: var(--text); border-color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.empty { text-align: center; padding: 64px 16px; color: var(--muted); }

/* Product detail */
.product-detail { display: grid; gap: 32px; padding-top: 16px; padding-bottom: 72px; }
@media (min-width: 900px) { .product-detail { grid-template-columns: 1fr 1fr; gap: 56px; } }
.gallery-main { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main .card-nav { width: 44px; height: 44px; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(20, 33, 61, .7); color: #fff; font-size: 13px; font-weight: 700; }
.gallery-thumbs button img { object-fit: contain; background: #fff; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 76px; height: 76px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--surface-2); }
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(28px, 4vw, 40px); }
.product-info .short { color: var(--muted); font-size: 17px; }
.product-info .price-row { margin: 16px 0 24px; padding: 0; }
.product-info .price { font-size: 30px; }
.field-label { font-weight: 700; font-size: 14px; margin-bottom: 8px; display: block; }
.sizes { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.size-btn { min-width: 64px; min-height: 48px; padding: 8px 18px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); font-weight: 700; cursor: pointer; }
.size-btn:hover { border-color: var(--primary); }
.size-btn[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.buy-row .btn { flex: 1 1 200px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); height: 48px; }
.qty button { width: 44px; height: 46px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--text); border-radius: 999px; }
.qty button:hover { color: var(--primary); }
.qty input { width: 44px; text-align: center; border: 0; background: none; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.description { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); }
.description-body { white-space: pre-line; }
.description h2 { font-size: 18px; color: var(--text); }

/* Cart */
.cart-layout { display: grid; gap: 24px; padding: 8px 0 72px; align-items: start; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1.6fr 1fr; gap: 32px; } }
.cart-lines { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; align-items: center; }
.cart-line img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.cart-line-title { font-weight: 700; text-decoration: none; }
.cart-line-meta { font-size: 14px; color: var(--muted); }
.cart-line-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.cart-line .qty { height: 40px; }
.cart-line .qty button { height: 38px; width: 38px; }
.link-btn { background: none; border: 0; padding: 6px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.link-btn:hover { color: var(--danger); }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 92px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 20px; font-weight: 800; padding: 16px 0; border-top: 1px solid var(--border); margin-top: 16px; }
.summary .note { font-size: 13px; color: var(--muted); }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); font-size: 16px; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea.input { resize: vertical; min-height: 88px; }
.summary .btn { margin-top: 10px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 24px; margin-top: 0; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.3fr; } }
.site-footer h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.footer-about { color: var(--muted); margin-top: 14px; max-width: 360px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--primary); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: 3px; color: var(--primary); }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); }
.socials a:hover { color: var(--primary); border-color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 20px; font-size: 14px; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-build { display: inline-block; margin-left: 8px; font-size: 12px; opacity: .8; }
.footer-build::before { content: "·"; margin-right: 8px; }

/* Floating WhatsApp & toast */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: var(--shadow-lg);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 20px); opacity: 0;
  background: var(--accent); color: var(--bg); padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow-lg);
  font-weight: 600; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); display: flex; gap: 12px; align-items: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: inherit; font-weight: 800; }

/* 404 */
.notfound { text-align: center; padding: 96px 16px; }
.notfound-code { font-size: 96px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.notfound p:not(.notfound-code) { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.price-from { font-size: 16px; }
.contact-grid > :only-child { grid-column: 1 / -1; }

/* Hero slider */
.slider {
  --slide-h: clamp(520px, 78vh, 760px);
  position: relative; height: var(--slide-h); overflow: hidden; background: var(--accent); isolation: isolate;
}
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; z-index: 1; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform: scale(1.08); }
.slide.is-active .slide-img { animation: slide-zoom 7s ease-out forwards; }
@keyframes slide-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.slide-plain .slide-img { object-position: center; }
/* no dark filter over the photos; the text keeps a soft shadow so it stays readable on light images */
.slide-overlay { display: none; }
.slide-content {
  position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  color: #fff; padding-bottom: 56px;
}
.slide-content > * { max-width: 620px; opacity: 0; transform: translateY(24px); }
.slide.is-active .slide-content > * { animation: slide-up .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.slide.is-active .slide-content > :nth-child(2) { animation-delay: .12s; }
.slide.is-active .slide-content > :nth-child(3) { animation-delay: .24s; }
@keyframes slide-up { to { opacity: 1; transform: none; } }
.slide-title { font-size: clamp(36px, 6vw, 68px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 18px; text-wrap: balance; text-shadow: 0 2px 4px rgba(8, 16, 40, .45), 0 4px 24px rgba(8, 16, 40, .45); }
.slide-text { font-size: clamp(17px, 2vw, 21px); color: rgba(255, 255, 255, .94); margin-bottom: 30px; text-shadow: 0 1px 3px rgba(8, 16, 40, .6), 0 2px 14px rgba(8, 16, 40, .5); }
.btn-lg { padding: 15px 28px; min-height: 54px; font-size: 17px; }
.slider .btn-primary { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
[data-theme="light"] .slider .btn-primary { background: #279b48; }
[data-theme="light"] .slider .btn-primary:hover { background: #22893f; }

.slider-controls {
  position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.slider-dots { display: flex; gap: 10px; }
.slider-dot { width: 44px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.slider-dot span { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); overflow: hidden; position: relative; }
.slider-dot span::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.slider-dot.is-active span::after { animation: dot-progress var(--slide-interval, 5s) linear forwards; }
.slider.is-paused .slider-dot.is-active span::after { animation-play-state: paused; }
.slider.no-autoplay .slider-dot.is-active span::after { animation: none; transform: scaleX(1); }
@keyframes dot-progress { to { transform: scaleX(1); } }
.slider-arrows { display: flex; gap: 10px; }
.slider-arrow {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .2s, transform .2s;
}
.slider-arrow:hover { background: rgba(255, 255, 255, .26); transform: scale(1.05); }
.slider :focus-visible { outline-color: #fff; }

/* phones: the whole image is shown at its own aspect ratio (no cropping);
   the slide text sits in a strip below the image */
@media (max-width: 700px) {
  .slider { height: auto; background: #1d2f66; }
  .slides { position: relative; display: grid; }
  .slide { position: relative; inset: auto; grid-area: 1 / 1; display: flex; flex-direction: column; }
  .slide-img { position: relative; inset: auto; height: auto; aspect-ratio: var(--slide-ratio, 1920 / 900); object-fit: cover; object-position: center; transform: none; }
  .slide.is-active .slide-img { animation: none; }
  .slide-overlay { display: none; }
  .slide-content { height: auto; flex: 1; justify-content: center; padding-top: 18px; padding-bottom: 52px; background: #1d2f66; }
  .slide-content > * { max-width: 100%; }
  .slide-title { font-size: clamp(24px, 7vw, 32px); margin-bottom: 8px; text-shadow: none; }
  .slide-text { font-size: 15px; line-height: 1.45; margin-bottom: 16px; text-shadow: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .slider .btn-lg { padding: 11px 20px; min-height: 44px; font-size: 15px; }
  .slider-controls { bottom: 14px; }
  .slider-dot { width: 30px; }
  .slider-arrows { display: none; } /* swipe instead; the floating buttons sit there */
}
@media (prefers-reduced-motion: reduce) {
  .slide-content > * { opacity: 1; transform: none; }
  .slide-img { transform: none; }
}

/* Brand logo (dark backgrounds get a white backing so the blue stays readable) */
.brand-logo { height: 44px; width: auto; max-width: 190px; object-fit: contain; }
/* dark theme: no white box; a lightened copy of the logo is shown instead (or a soft glow if none could be made) */
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }
[data-theme="dark"] .brand-logo-light:not(.brand-logo-glow) { display: none; }
[data-theme="dark"] .brand-logo-glow { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .85)) drop-shadow(0 0 6px rgba(255, 255, 255, .25)); }
.site-footer .brand-logo { height: 52px; max-width: 220px; }
@media (max-width: 400px) { .site-header .brand-logo { height: 36px; max-width: 140px; } }

/* Shop: filters left, products right */
.shop-layout { display: grid; gap: 32px; align-items: start; padding-bottom: 72px; }
@media (min-width: 961px) { .shop-layout { grid-template-columns: 270px minmax(0, 1fr); } }
.shop-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sidebar-head h2 { font-size: 18px; margin: 0; }
.sidebar-head .icon-btn { display: none; }
.filter-block { padding: 16px 0; border-bottom: 1px solid var(--border); }
.filter-block:last-of-type { border-bottom: 0; }
.filter-title { display: block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field .input { padding-left: 42px; }
.filter-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filter-cats a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--text); }
.filter-cats a:hover { background: var(--surface-2); }
.filter-cats a.active { background: var(--primary-soft); color: var(--primary); }
.filter-cats .count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 9px; }
.filter-cats a.active .count { background: var(--surface); color: var(--primary); }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; color: var(--muted); }
.price-range .input { padding: 10px 12px; }
.filter-form .check { font-size: 15px; }
.filter-form > .btn { margin-top: 8px; }

.shop-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.result-count { margin: 0; color: var(--muted); flex: 1; min-width: 140px; }
.result-count strong { color: var(--text); }
.sort-field { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.sort-field select { width: auto; padding: 9px 38px 9px 12px; font-size: 15px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.filters-toggle { display: none; }
.filters-backdrop { display: none; }
@media (min-width: 1040px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shop-empty { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

@media (max-width: 960px) {
  .filters-toggle { display: inline-flex; }
  .shop-sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); max-height: none; z-index: 80; border-radius: 0 var(--radius) var(--radius) 0;
    transform: translateX(-105%); transition: transform .25s; box-shadow: var(--shadow-lg);
  }
  .filters-open .shop-sidebar { transform: none; }
  .filters-open .filters-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 79; }
  .sidebar-head .icon-btn { display: inline-grid; }
  .sort-field span { display: none; }
}

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.toast-error { background: var(--danger); color: #fff; }
.form-alert { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); padding: 12px 14px; border-radius: 12px; font-weight: 600; margin-bottom: 14px; }
.field-help { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.muted-text { color: var(--muted); }

/* Floating quick actions (follow the page) */
.wa-float { display: none; }
.float-actions { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.float-btn {
  position: relative; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 999px;
  color: #fff; text-decoration: none; box-shadow: var(--shadow-lg); transition: transform .2s, width .25s, padding .25s; overflow: hidden;
}
.float-btn svg { flex: none; }
.float-label { max-width: 0; opacity: 0; white-space: nowrap; font-weight: 700; font-size: 14px; transition: max-width .25s, opacity .2s, margin .25s; }
@media (hover: hover) {
  .float-btn:hover { width: auto; padding: 0 18px 0 15px; transform: translateX(-2px); }
  .float-btn:hover .float-label { max-width: 140px; opacity: 1; margin-left: 9px; }
}
.float-wa { background: #1fa855; }
.float-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.float-contact { background: var(--brand-blue); }
[data-theme="dark"] .float-contact { background: #3d5cc0; }
@media (max-width: 600px) { .float-actions { right: 12px; bottom: 12px; gap: 8px; } .float-btn { width: 48px; height: 48px; } }

/* Section head with action */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: left; max-width: none; margin-bottom: 28px; }
.section-head-row h2 { margin: 0; }

/* Story cards */
.stories-section { padding-top: 56px; padding-bottom: 56px; }
.stories-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; margin: 0 -4px; scrollbar-width: thin; }
.stories-row .story-card { flex: 0 0 clamp(150px, 42vw, 200px); scroll-snap-align: start; }
.stories-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.story-card { display: block; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: #fff; border-radius: 22px; }
.story-ring { display: block; padding: 3px; border-radius: 22px; background: linear-gradient(135deg, #279b48, #8ad24a 35%, #304c9f 70%, #ed1f24); transition: transform .25s; }
.story-card:hover .story-ring, .story-card:focus-visible .story-ring { transform: translateY(-4px); }
.story-frame { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 19px; overflow: hidden; background: #0d1626; border: 2px solid var(--bg); }
.story-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.75) 100%); }
.story-play { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.story-title { position: absolute; left: 12px; right: 12px; bottom: 12px; font-weight: 700; font-size: 15px; line-height: 1.25; text-shadow: 0 1px 6px rgba(0,0,0,.5); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Story viewer */
.story-viewer { position: fixed; inset: 0; z-index: 100; background: rgba(4, 8, 18, .94); display: grid; place-items: center; }
.story-stage { position: relative; height: min(100dvh, 100vh); aspect-ratio: 9 / 16; max-width: 100vw; background: #000; overflow: hidden; }
@media (min-width: 600px) { .story-stage { height: min(92vh, 860px); border-radius: 18px; } }
.story-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.story-bars { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; display: flex; gap: 4px; }
.story-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.story-bar i { display: block; height: 100%; width: 0; background: #fff; }
.story-bar.done i { width: 100%; }
.story-head { position: absolute; top: 22px; left: 10px; right: 6px; z-index: 3; display: flex; align-items: center; gap: 10px; color: #fff; }
.story-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid #fff; }
.story-head-title { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.story-icon { width: 42px; height: 42px; border: 0; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.story-icon span { display: grid; place-items: center; }
.story-viewer .when-muted { display: none; }
.story-viewer.is-muted .when-muted { display: grid; }
.story-viewer.is-muted .when-sound { display: none; }
.story-nav { position: absolute; top: 80px; bottom: 90px; z-index: 2; width: 35%; border: 0; background: none; cursor: pointer; }
.story-prev { left: 0; }
.story-next { right: 0; width: 65%; }
.story-cta { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3; white-space: nowrap; }
.story-open { overflow: hidden; }

/* Contact page */
.contact-page { display: grid; gap: 24px; align-items: start; padding-bottom: 24px; }
@media (min-width: 900px) { .contact-page { grid-template-columns: 1fr 1.4fr; } }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.contact-form-card .form-field { margin-bottom: 16px; }

/* Ratings & reviews */
.stars { display: inline-flex; gap: 1px; vertical-align: -2px; }
.star path { fill: var(--border); }
.star-full path { fill: #f5a623; }
.star-half path { fill: #f5c46b; }
.card-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.rating-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-size: 14px; margin: -4px 0 12px; }
.rating-link:hover span { color: var(--primary); }
.reviews { padding-bottom: 72px; scroll-margin-top: 90px; }
.reviews-head { border-top: 1px solid var(--border); padding-top: 40px; margin-bottom: 24px; }
.reviews-head h2 { font-size: clamp(24px, 3vw, 32px); }
.rating-summary { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.rating-summary span { color: var(--muted); font-size: 15px; }
.reviews-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 900px) { .reviews-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.review-list { display: grid; gap: 14px; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
.review-top { display: flex; gap: 12px; align-items: center; }
.review-avatar { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--primary-soft); color: var(--primary); }
.review-avatar .flag, .xp-avatar .flag { position: absolute; right: -4px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.25); background: var(--surface); }
.review-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.review-text { margin: 12px 0 0; color: var(--text); white-space: pre-line; }
.review-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 92px; }
.review-form h3 { font-size: 18px; }
.star-input { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; width: 100%; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { cursor: pointer; padding: 2px; border-radius: 8px; }
.star-input label path { fill: var(--border); transition: fill .15s; }
.star-input label:hover path, .star-input label:hover ~ label path, .star-input input:checked ~ label path { fill: #f5a623; }
.star-input input:focus-visible + label { outline: 3px solid var(--primary); }

/* Normal videos (uploaded or YouTube) */
.video-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.stories-row + .video-grid { margin-top: 28px; }
.video-subhead { font-size: 22px; margin-bottom: 16px; }
.vcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.vcard-media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vcard-media video, .vcard-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.yt-lite { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s; }
.yt-lite:hover img { opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); transition: transform .2s; }
.yt-lite:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.vcard-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.vcard-body h3 { font-size: 16px; margin: 0; }
.vcard-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--primary); text-decoration: none; }
.vcard-link:hover { text-decoration: underline; }

/* Language switcher */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; width: auto; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; font-weight: 700; font-size: 13px; border-radius: 999px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 70; display: grid; }
.lang-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--text); }
.lang-list a:hover { background: var(--surface-2); }
.lang-list a.active { background: var(--primary-soft); color: var(--primary); }
.flag { flex: none; display: block; width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); overflow: hidden; }
.lang-list .flag { width: 24px; height: 16px; }
/* phones: keep the switcher in the header bar, flag only */
@media (max-width: 860px) {
  .header-actions { gap: 6px; }
  .lang-menu summary { width: 44px; padding: 0; justify-content: center; }
  .lang-menu .lang-btn-code { display: none; }
}
@media (max-width: 400px) {
  .header-actions .icon-btn { width: 40px; height: 40px; }
  .lang-menu summary { width: 40px; }
}
.product-code { margin: -8px 0 18px; font-size: 14px; color: var(--muted); }
.product-code strong { color: var(--text); font-weight: 700; letter-spacing: .02em; }
.phone-person { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.footer-contact .phone-person { font-size: 12px; }

/* ---------- Boxes (wholesale) and order requests ---------- */
.spec-card { margin: 18px 0 6px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.spec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: var(--primary-soft); color: var(--text); }
.spec-head-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--primary); color: #fff; flex: none; }
.spec-head strong { font-size: 15px; }
.spec-pill { margin-left: auto; padding: 4px 12px; border-radius: 999px; background: var(--surface); color: var(--primary); font-size: 13px; font-weight: 700; white-space: nowrap; }
.spec-grid { display: flex; flex-wrap: wrap; gap: 1px; margin: 0; background: var(--border); }
.spec { flex: 1 1 110px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px 14px; background: var(--surface); transition: background .2s; }
.spec:hover { background: var(--surface-2); }
.spec-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); transition: transform .2s; }
.spec:hover .spec-icon { transform: translateY(-2px); }
.spec dt { font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; font-size: 17px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.25; }
.spec dd.spec-dims { white-space: nowrap; letter-spacing: -.02em; }
.spec dd small { display: block; white-space: normal; letter-spacing: 0; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.box-info-note { margin: 0; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); background: var(--surface-2); }
@media (max-width: 520px) { .spec { flex-basis: 40%; } .spec-icon { width: 44px; height: 44px; border-radius: 13px; } .spec dd { font-size: 15px; } }
.cart-line-box { font-size: 13px; font-weight: 600; color: var(--primary); margin-top: 2px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--muted); }
.summary-row strong { color: var(--text); }
.order-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.order-form .form-row { gap: 10px; }
.order-form .form-field { margin-bottom: 12px; }
.order-form textarea { min-height: 72px; }
.order-info { font-size: 12.5px; line-height: 1.5; }
.summary-alt { display: grid; gap: 10px; margin-top: 12px; }
.order-done { max-width: 720px; text-align: center; padding-block: 48px 64px; }
.done-badge { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); animation: done-pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes done-pop { from { transform: scale(.3); opacity: 0; } }
.order-no-box { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 18px 0 26px; padding: 14px 20px; border: 2px dashed var(--primary); border-radius: var(--radius); }
.order-no-box strong { font-size: clamp(22px, 5vw, 30px); letter-spacing: .06em; font-family: ui-monospace, Menlo, monospace; }
.order-summary-card { text-align: left; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.order-summary-card h2 { font-size: 18px; margin: 0 0 10px; }
.order-items { list-style: none; margin: 0 0 10px; padding: 0; }
.order-items li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-meta { margin: 6px 0 0; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
@media (max-width: 560px) { .order-items li { grid-template-columns: 1fr auto; } .order-items li strong { grid-column: 2; } }

/* ---------- 3D container (cart) ---------- */
.ctr-widget { margin-bottom: 20px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%); overflow: hidden; }
.ctr-head { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: flex-start; }
.ctr-head h2 { font-size: 20px; margin: 0; }
.ctr-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.ctr-types { display: flex; gap: 6px; flex-wrap: wrap; }
.ctr-types button { display: grid; gap: 1px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; transition: border-color .2s, background .2s, transform .2s; }
.ctr-types button small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.ctr-types button:hover { transform: translateY(-1px); }
.ctr-types button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary) inset; }
.ctr-stage { position: relative; height: 260px; margin: 8px -20px 0; cursor: grab; touch-action: pan-y; user-select: none; transition: height .3s; }
.is-dragging .ctr-stage { cursor: grabbing; }
.ctr-scene { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1600px; }
.ctr-box { --rx: -20deg; --ry: -32deg; position: relative; width: var(--L, 300px); height: var(--H, 80px); transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); animation: ctr-float 6s ease-in-out infinite; }
.is-dragging .ctr-box { animation-play-state: paused; }
@keyframes ctr-float { 50% { translate: 0 -6px; } }
.ctr-wall, .ctr-cells, .ctr-cell { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.ctr-wall { box-sizing: border-box; }
.ctr-floor, .ctr-roof { width: var(--L); height: var(--W); margin: calc(var(--W) / -2) 0 0 calc(var(--L) / -2); }
.ctr-floor { transform: translateY(calc(var(--H) / 2)) rotateX(90deg); background: repeating-linear-gradient(90deg, hsl(30 25% 32%) 0 10px, hsl(30 25% 27%) 10px 11px); box-shadow: 0 0 40px rgb(0 0 0 / .25); }
.ctr-roof { transform: translateY(calc(var(--H) / -2)) rotateX(90deg); border: 1.5px solid hsl(212 40% 55% / .55); }
.ctr-back, .ctr-front { width: var(--L); height: var(--H); margin: calc(var(--H) / -2) 0 0 calc(var(--L) / -2); }
.ctr-back { transform: translateZ(calc(var(--W) / -2)); background: repeating-linear-gradient(90deg, hsl(212 35% 42% / .85) 0 6px, hsl(212 35% 34% / .85) 6px 12px); }
.ctr-front { transform: translateZ(calc(var(--W) / 2)); background: hsl(212 60% 80% / .07); border: 1.5px solid hsl(212 40% 55% / .55); }
.ctr-left, .ctr-end { width: var(--W); height: var(--H); margin: calc(var(--H) / -2) 0 0 calc(var(--W) / -2); }
.ctr-left { transform: translateX(calc(var(--L) / -2)) rotateY(90deg); background: repeating-linear-gradient(90deg, hsl(212 35% 38% / .9) 0 6px, hsl(212 35% 30% / .9) 6px 12px); }
.ctr-end { transform: translateX(calc(var(--L) / 2)) rotateY(90deg); background: linear-gradient(90deg, transparent 49%, hsl(212 40% 55% / .5) 49% 51%, transparent 51%), hsl(212 60% 80% / .06); border: 1.5px solid hsl(212 40% 55% / .55); }
.ctr-cells { width: 0; height: 0; }
.ctr-cell { width: 0; height: 0; transform: translate3d(calc(var(--L) / -2 + (var(--ix) + .5) * var(--cl)), calc(var(--H) / 2 - (var(--iy) + .5) * var(--ch)), calc(var(--W) / -2 + (var(--iz) + .5) * var(--cw))); }
.ctr-cube { position: absolute; transform-style: preserve-3d; transform: scale3d(.93, .93, .93); }
.ctr-cube i { position: absolute; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); }
.ctr-cube b { color: rgb(255 255 255 / .92); font: 800 calc(var(--cl) * .085) / 1 system-ui, sans-serif; letter-spacing: .02em; white-space: nowrap; }
.cf-front { width: var(--cl); height: var(--ch); left: calc(var(--cl) / -2); top: calc(var(--ch) / -2); transform: translateZ(calc(var(--cw) / 2)); background: hsl(var(--h) 52% 48%); }
.cf-top { width: var(--cl); height: var(--cw); left: calc(var(--cl) / -2); top: calc(var(--cw) / -2); transform: translateY(calc(var(--ch) / -2)) rotateX(90deg); background: linear-gradient(90deg, transparent 43%, rgb(255 255 255 / .3) 43% 57%, transparent 57%), hsl(var(--h) 58% 62%); }
.cf-side { width: var(--cw); height: var(--ch); left: calc(var(--cw) / -2); top: calc(var(--ch) / -2); transform: translateX(calc(var(--cl) / 2)) rotateY(90deg); background: hsl(var(--h) 48% 37%); }
.cf-side b { font-size: calc(var(--cw) * .085); }
/* no opacity while dropping: opacity < 1 flattens the 3D faces */
.ctr-cell.is-in .ctr-cube { animation: ctr-drop .55s cubic-bezier(.3, 1.3, .5, 1) var(--d, 0ms) backwards; }
.ctr-cell.is-out .ctr-cube { animation: ctr-lift .4s ease-in var(--d, 0ms) forwards; }
@keyframes ctr-drop { from { transform: translateY(-240px) scale3d(.93, .93, .93); } }
@keyframes ctr-lift { to { transform: translateY(-180px) scale3d(.6, .6, .6); opacity: 0; } }
.ctr-hint { position: absolute; right: 20px; bottom: 6px; margin: 0; font-size: 12px; color: var(--muted); }
.ctr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-top: 4px; }
.ctr-stats .ctr-stat-main { grid-column: span 2; }
.ctr-stat { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.ctr-stat span { display: block; font-size: 12px; color: var(--muted); }
.ctr-stat strong { font-size: 18px; }
.ctr-stat-main strong { font-size: 24px; color: var(--primary); }
.ctr-bar { height: 6px; margin-top: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ctr-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary), hsl(150 60% 45%)); transition: width .6s cubic-bezier(.3, 1, .4, 1); }
/* more than one container is information, not an error: amber, never red */
.ctr-stat-kg.is-high .ctr-bar i { background: linear-gradient(90deg, #d97706, #f59e0b); }
.ctr-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ctr-tabs button { display: grid; gap: 1px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; }
.ctr-tabs button small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.ctr-tabs button[aria-selected="true"] { border-color: #d97706; background: #fef3c7; box-shadow: 0 0 0 1px #d97706 inset; color: #78350f; }
.ctr-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; font-size: 13px; }
.ctr-legend li { display: flex; align-items: center; gap: 6px; }
.ctr-legend i { width: 12px; height: 12px; border-radius: 3px; background: hsl(var(--h) 52% 48%); }
.ctr-legend span { color: var(--muted); }
.ctr-over { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff7e6; border: 1px solid #f5d08a; color: #78350f; font-size: 13.5px; }
.ctr-over p { margin: 0; }
.ctr-over ul { margin: 8px 0 0; padding-left: 18px; }
.ctr-over li { margin-top: 4px; }
.ctr-over button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; cursor: pointer; }
.ctr-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .ctr-widget { padding: 16px; }
  .ctr-stage { margin-inline: -16px; }
  .ctr-stats { grid-template-columns: 1fr 1fr; }
  .ctr-stat-main { grid-column: 1 / -1; }
  .ctr-types { width: 100%; }
  .ctr-types button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .ctr-box { animation: none; } }
.cart-layout > div { min-width: 0; }
.ctr-stage { overflow: hidden; }

/* ---------- Order tracking ---------- */
.track-page { max-width: 760px; padding-bottom: 64px; display: grid; gap: 20px; }
.track-form { max-width: 440px; width: 100%; margin: 0 auto; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.track-no-input { text-transform: uppercase; letter-spacing: .08em; font-family: ui-monospace, Menlo, monospace; }
.track-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.track-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.track-head > div { display: grid; gap: 2px; }
.track-head .muted-text { font-size: 13px; margin: 0; }
.track-no { font-size: clamp(20px, 5vw, 26px); letter-spacing: .06em; font-family: ui-monospace, Menlo, monospace; }
.track-status { padding: 6px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 14px; animation: track-pop .5s .9s cubic-bezier(.2, 1.4, .4, 1) both; }
.track-line { position: relative; margin: 28px 0 8px; }
.track-line-bar { position: absolute; top: 13px; left: 10%; right: 10%; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.track-line-bar i { display: block; height: 100%; width: calc(var(--progress) * 100%); background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 65%, #22d3ee)); border-radius: inherit; transform-origin: left; animation: track-fill 1.1s .2s cubic-bezier(.6, 0, .2, 1) both; }
.track-line ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.track-line li { display: grid; justify-items: center; gap: 8px; text-align: center; }
.track-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 3px solid var(--border); color: #fff; animation: track-pop .45s calc(.25s + var(--i) * .2s) cubic-bezier(.2, 1.4, .4, 1) both; }
.track-line li.done .track-dot { background: var(--primary); border-color: var(--primary); }
.track-line li.current .track-dot { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); animation: track-pop .45s calc(.25s + var(--i) * .2s) cubic-bezier(.2, 1.4, .4, 1) both, track-pulse 2s 1.5s ease-out infinite; }
.track-label { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.25; }
.track-line li.done .track-label { color: var(--text); }
.track-timeline { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.track-timeline li { position: relative; padding: 0 0 0 22px; border-left: 2px solid var(--border); margin-left: 6px; animation: track-rise .5s calc(.6s + var(--d, 0s)) ease-out both; }
.track-timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--border); }
.track-timeline li.current { border-left-color: var(--primary); }
.track-timeline li.current::before { background: var(--primary); }
.tt-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.tt-head time { font-size: 13px; color: var(--muted); }
.track-timeline p { margin: 4px 0 0; color: var(--muted); white-space: pre-line; }
@keyframes track-fill { from { transform: scaleX(0); } }
@keyframes track-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes track-rise { from { transform: translateY(8px); opacity: 0; } }
@keyframes track-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 12px transparent; } }
@media (max-width: 520px) { .track-label { font-size: 10.5px; } .track-dot { width: 26px; height: 26px; } .track-line-bar { top: 11px; } }
@media (prefers-reduced-motion: reduce) { .track-page * { animation: none !important; } }

/* ---------- First-visit language picker ---------- */
html.lp-open { overflow: hidden; }
.lang-picker { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); animation: lp-fade .4s ease-out both; }
.lang-picker.is-closing { animation: lp-fade .35s ease-in reverse both; }
.lp-card { width: min(520px, 100%); padding: 32px 24px 26px; border-radius: 28px; text-align: center; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .35); animation: lp-rise .6s .05s cubic-bezier(.2, 1.2, .4, 1) both; }
.lp-logo { height: 44px; width: auto; margin: 0 auto 14px; border-radius: 10px; }
.lp-hello { position: relative; height: 1.3em; margin: 0 0 6px; font-size: clamp(26px, 6vw, 34px); overflow: hidden; }
.lp-hello span { position: absolute; inset: 0; opacity: 0; transform: translateY(60%); transition: opacity .45s, transform .45s cubic-bezier(.2, 1, .3, 1); }
.lp-hello span.on { opacity: 1; transform: none; }
.lp-sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.lp-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.lp-option { display: grid; justify-items: center; gap: 6px; padding: 18px 10px 14px; border-radius: 18px; border: 2px solid var(--border); background: var(--surface-2, var(--surface)); color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; animation: lp-pop .5s calc(.25s + var(--i) * .1s) cubic-bezier(.2, 1.4, .4, 1) both; }
.lp-option:hover, .lp-option:focus-visible { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--primary) 60%, transparent); outline: none; }
.lp-option.is-current { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); }
.lp-flag svg { width: 54px; height: 36px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); transition: transform .3s; }
.lp-option:hover .lp-flag svg { transform: scale(1.08) rotate(-3deg); }
.lp-option small { color: var(--muted); font-weight: 700; letter-spacing: .1em; font-size: 11px; }
@keyframes lp-fade { from { opacity: 0; } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes lp-pop { from { opacity: 0; transform: translateY(14px) scale(.9); } }
@media (max-width: 420px) { .lp-options { grid-template-columns: 1fr; } .lp-option { grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; padding: 12px 16px; } .lp-flag svg { width: 40px; height: 27px; } }
@media (prefers-reduced-motion: reduce) { .lang-picker, .lp-card, .lp-option, .lp-hello span { animation: none !important; transition: none !important; } }

/* ---------- Cookie consent ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .4); animation: cb-in .5s .8s cubic-bezier(.2, 1.2, .4, 1) both; }
.cookie-banner.is-leaving { animation: cb-in .3s ease-in reverse both; }
.cb-icon { font-size: 28px; }
.cb-text strong { display: block; margin-bottom: 2px; }
.cb-text p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.cb-actions { display: flex; gap: 8px; }
.footer-link-btn { padding: 0; font: inherit; color: inherit; opacity: .85; }
@keyframes cb-in { from { opacity: 0; transform: translateY(30px); } }
@media (max-width: 640px) { .cookie-banner { grid-template-columns: 1fr; left: 10px; right: 10px; bottom: 10px; gap: 10px; } .cb-icon { display: none; } .cb-actions > * { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }
.footer-link-btn:hover { color: var(--primary); }

/* container: box contents popup */
.ctr-widget { position: relative; }
.ctr-wall { pointer-events: none; }
.ctr-cube i { cursor: pointer; transition: filter .25s; }
.has-pick .ctr-cell:not(.is-picked) .ctr-cube i { filter: grayscale(.85) brightness(.55); }
.ctr-cell.is-picked .ctr-cube i { filter: brightness(1.12) saturate(1.15); }
.ctr-pop { position: absolute; z-index: 5; width: min(290px, calc(100% - 16px)); padding: 14px 14px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid hsl(var(--h) 52% 48%); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .45); animation: ctr-pop-in .28s cubic-bezier(.2, 1.3, .4, 1); }
.ctr-pop[hidden] { display: none; }
.ctr-pop-x { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.ctr-pop-head { display: flex; gap: 10px; align-items: center; padding-right: 26px; margin-bottom: 8px; }
.ctr-pop-head img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--surface-2); flex: none; }
.ctr-pop-head strong { display: block; font-size: 14.5px; line-height: 1.3; }
.ctr-pop-head small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ctr-pop dl { margin: 0; display: grid; }
.ctr-pop dl div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 13px; }
.ctr-pop dt { color: var(--muted); }
.ctr-pop dd { margin: 0; font-weight: 700; text-align: right; }
@keyframes ctr-pop-in { from { opacity: 0; transform: translateY(8px) scale(.95); } }
.ctr-legend button { display: flex; align-items: center; gap: 6px; padding: 4px 8px; margin: -4px -8px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.ctr-legend button:hover { background: var(--surface-2); }
@media (prefers-reduced-motion: reduce) { .ctr-pop { animation: none; } }

/* container: open on arrival, then folds into a small summary */
.ctr-title { min-width: 0; flex: 1 1 260px; }
.ctr-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s cubic-bezier(.4, 0, .2, 1), opacity .4s; }
.ctr-body-inner { min-height: 0; overflow: hidden; }
.ctr-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; order: 3; }
.ctr-toggle svg { transform: rotate(180deg); transition: transform .3s; }
.ctr-toggle .when-closed, .is-collapsed .ctr-toggle .when-open { display: none; }
.is-collapsed .ctr-toggle .when-closed { display: inline; }
.is-collapsed .ctr-toggle svg { transform: none; }
.ctr-mini { display: none; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.ctr-mini-bar { flex: 0 0 90px; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ctr-mini-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary), hsl(150 60% 45%)); transition: width .6s; }
.ctr-widget { transition: padding .4s; }
.ctr-widget.is-collapsed { padding-block: 14px; cursor: pointer; animation: ctr-nudge .9s .5s ease-out 1; }
.ctr-widget.is-collapsed:hover { border-color: var(--primary); }
.is-collapsed .ctr-body { grid-template-rows: 0fr; opacity: 0; }
.is-collapsed .ctr-sub, .is-collapsed .ctr-types { display: none; }
.is-collapsed .ctr-mini { display: flex; }
.is-collapsed .ctr-head h2 { font-size: 17px; }
.is-collapsed .ctr-toggle { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
@keyframes ctr-nudge { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 6px var(--primary-soft); } }
@media (prefers-reduced-motion: reduce) { .ctr-body { transition: none; } .ctr-widget.is-collapsed { animation: none; } }
/* the container's own planes sit in front of the back row: only the box faces take clicks */
.ctr-box, .ctr-cells, .ctr-cell, .ctr-cube { pointer-events: none; }
.ctr-cube i { pointer-events: auto; }
.ctr-toggle { order: 2; align-self: flex-start; }
.ctr-head .ctr-types { order: 4; flex-basis: 100%; }

/* ---------- Product badges ---------- */
.badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; pointer-events: none; }
.badges-inline { position: static; flex-direction: row; flex-wrap: wrap; margin-bottom: 10px; }
.badge-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .01em; color: #fff; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35); animation: badge-in .45s calc(.1s + var(--i, 0) * .08s) cubic-bezier(.2, 1.4, .4, 1) both; }
.b-sale { background: linear-gradient(135deg, #e5484d, #c2262b); }
.b-best { background: linear-gradient(135deg, #f97316, #ea580c); }
.b-new { background: linear-gradient(135deg, #2f6fed, #1d4fc4); }
.b-star { background: linear-gradient(135deg, #f5b40b, #d4920a); color: #3b2a02; }
.b-best svg { animation: flame 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
.mini-badge { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: #fff; vertical-align: -5px; }
@keyframes badge-in { from { opacity: 0; transform: translateX(-8px) scale(.85); } }
@keyframes flame { 50% { transform: scale(1.15) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .badge-pill, .b-best svg { animation: none; } }
.filter-block .check { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.track-status.is-cancelled { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.track-cancelled { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.track-cancelled time { color: var(--muted); font-size: 13px; margin-left: 6px; }
.track-cancelled p { margin: 4px 0 0; color: var(--muted); }
.track-line.is-cancelled { filter: grayscale(.8); opacity: .7; }
[data-theme="dark"] .ctr-over { background: #3a2a0c; border-color: #7a5a1c; color: #fde6b3; }
[data-theme="dark"] .ctr-tabs button[aria-selected="true"] { background: #3a2a0c; color: #fde6b3; }
.ctr-stat-kg strong small { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ctr-stat-kg strong { white-space: nowrap; }
.ctr-stats .ctr-stat-kg { grid-column: span 2; }

/* Customer experiences: Shorts-style vertical cards and full-screen feed */
.experiences { padding-bottom: 40px; scroll-margin-top: 90px; }
.xp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.xp-head > div { flex: 1 1 280px; min-width: 0; }
.xp-head p { margin: 6px 0 0; }
.xp-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin-bottom: 24px; scrollbar-width: thin; }
.xp-card { position: relative; flex: 0 0 auto; width: 158px; aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: #000; cursor: pointer; scroll-snap-align: start; box-shadow: 0 4px 14px rgba(0,0,0,.12); transition: transform .2s; }
.xp-card:hover { transform: translateY(-3px); }
@media (min-width: 700px) { .xp-card { width: 190px; } }
.xp-card video, .xp-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.72)); pointer-events: none; }
.xp-card-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(4px); z-index: 1; }
.xp-card-count { position: absolute; top: 8px; right: 8px; z-index: 1; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(0,0,0,.55); color: #fff; }
.xp-card-info { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; text-align: left; }
.xp-card-info > span:last-child { display: grid; gap: 2px; min-width: 0; }
.xp-card-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-avatar { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--primary); color: #fff; border: 2px solid #fff; }
.xp-avatar .flag { width: 16px; height: 16px; right: -5px; bottom: -4px; border-width: 1.5px; border-color: #fff; }
.xp-form { position: static; max-width: 720px; margin-bottom: 8px; }
.xp-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
@media (min-width: 600px) { .xp-form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
select.input { min-width: 0; max-width: 100%; }
.xp-drop { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 76px; padding: 14px; border: 2px dashed var(--border); border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; cursor: pointer; text-align: center; }
.xp-drop:hover { border-color: var(--primary); color: var(--primary); }
.xp-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.xp-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.xp-previews:empty { display: none; }
.xp-previews > * { width: 72px; height: 128px; object-fit: cover; border-radius: 10px; background: #000; }
.xp-previews img { height: 72px; }
.form-error { color: #c62828; font-weight: 600; font-size: 14px; margin: 8px 0 0; }

.xp-viewer { position: fixed; inset: 0; z-index: 100; background: rgba(4, 8, 18, .96); display: flex; align-items: center; justify-content: center; gap: 18px; }
.xp-stage { position: relative; height: 100%; width: min(100%, calc(100dvh * 9 / 16)); }
@media (min-width: 600px) { .xp-stage { height: min(92vh, 860px); width: calc(min(92vh, 860px) * 9 / 16); } .xp-feed { border-radius: 18px; } }
.xp-feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; background: #000; }
.xp-feed::-webkit-scrollbar { display: none; }
.xp-slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.xp-media { position: absolute; inset: 0; background: #000; }
.xp-slide video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.xp-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.xp-paused { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1.6); width: 54px; height: 54px; border-radius: 50%; display: none; place-items: center; background: rgba(0,0,0,.45); color: #fff; pointer-events: none; }
.xp-slide.is-paused .xp-paused { display: grid; }
.xp-slide-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 16px 22px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.78)); color: #fff; pointer-events: none; }
.xp-slide-stars { margin-top: 10px; }
.xp-slide-body p { margin: 10px 0 0; font-size: 14px; line-height: 1.45; max-height: 6.5em; overflow-y: auto; white-space: pre-line; pointer-events: auto; }
.xp-slide-who { display: flex; align-items: center; gap: 10px; }
.xp-slide-who > span:not(.xp-avatar):not(.xp-card-count) { display: grid; line-height: 1.25; }
.xp-slide-who small { opacity: .8; font-size: 12px; }
.xp-slide-who .xp-card-count { position: static; margin-left: auto; }
.xp-controls { position: absolute; top: 10px; right: 8px; display: flex; gap: 2px; z-index: 2; }
.xp-viewer .when-muted { display: none; }
.xp-viewer.is-muted .when-muted { display: grid; }
.xp-viewer.is-muted .when-sound { display: none; }
.xp-nav { display: none; flex-direction: column; gap: 12px; }
@media (min-width: 700px) and (hover: hover) { .xp-nav { display: flex; } }
.xp-nav button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.xp-nav button:hover { background: rgba(255,255,255,.26); }
/* wide screens: media on the left, details in a panel on the right (like Instagram) */
@media (min-width: 900px) {
  .xp-stage { width: min(calc(min(92vh, 860px) * 9 / 16 + 380px), calc(100vw - 120px)); }
  .xp-slide { display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
  .xp-media { position: relative; inset: auto; }
  .xp-slide-info { position: static; display: flex; flex-direction: column; min-height: 0; padding: 18px 20px; background: var(--surface); color: var(--text); pointer-events: auto; }
  .xp-slide-info .xp-avatar { border-color: var(--surface); }
  .xp-slide-who { padding: 0 44px 14px 0; border-bottom: 1px solid var(--border); }
  .xp-slide-who small { color: var(--muted); opacity: 1; }
  .xp-slide-who .xp-card-count { background: var(--surface-2); color: var(--text); }
  .xp-slide-body { flex: 1; min-height: 0; overflow-y: auto; }
  .xp-slide-stars { margin-top: 16px; }
  .xp-slide-body p { max-height: none; overflow: visible; font-size: 15px; line-height: 1.6; }
  .xp-controls { top: 12px; right: 12px; }
  .xp-controls .story-icon { width: 36px; height: 36px; border-radius: 50%; filter: none; color: var(--text); background: var(--surface-2); }
  .xp-controls [data-xp-mute] { position: absolute; right: calc(380px - 4px); color: #fff; background: rgba(0,0,0,.4); }
}

/* ---------- Shop listing (2026-11 redesign) ---------- */
.shop-hero { position: relative; overflow: hidden; padding: 36px 0 26px; margin-bottom: 28px; border-bottom: 1px solid var(--border);
  background: radial-gradient(900px 320px at 0% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
              radial-gradient(700px 300px at 100% 0%, color-mix(in srgb, var(--brand-blue) 14%, transparent), transparent 70%), var(--surface); }
.shop-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid color-mix(in srgb, var(--primary) 7%, transparent); pointer-events: none; }
.shop-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.02em; line-height: 1.05; }
.shop-hero-sub { margin: 8px 0 20px; color: var(--muted); font-weight: 600; }
.cat-chips { position: relative; z-index: 1; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.cat-chip span { min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; text-align: center; }
.cat-chip:hover { border-color: var(--primary); transform: translateY(-1px); }
.cat-chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.cat-chip.active span { background: color-mix(in srgb, var(--on-primary) 18%, transparent); color: var(--on-primary); }

.shop-sidebar { border-radius: 22px; box-shadow: var(--shadow); }
.filter-cats a { transition: background .2s, color .2s, padding .2s; }
.filter-cats a:hover { padding-left: 16px; }
.shop-toolbar { padding: 10px 10px 10px 18px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); position: sticky; top: 84px; z-index: 5; box-shadow: var(--shadow); }
.shop-toolbar .sort-field select { border-radius: 999px; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 18px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.filter-chip:hover { background: var(--primary); color: var(--on-primary); }
.filter-chip-clear { font-size: 13px; font-weight: 700; color: var(--muted); }
.filter-chip-clear:hover { color: var(--danger); }

/* product card */
.product-card { border-radius: 22px; border: 1px solid var(--border); background: var(--surface); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.product-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: 0 24px 48px -18px color-mix(in srgb, var(--primary) 40%, transparent), var(--shadow); }
.product-card-media { margin: 8px 8px 0; border-radius: 16px; }
.product-card:hover .card-img.is-active { transform: scale(1.06); }
.card-variants { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #14213d; font-size: 12px; font-weight: 700; box-shadow: 0 2px 8px rgba(20, 33, 61, .15); backdrop-filter: blur(6px); }
.product-card-body { gap: 4px; }
.product-card h3 { font-size: 16.5px; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .price-row { padding-top: 10px; }
.product-card .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.product-card .btn-outline svg { transition: transform .25s; }
.product-card .btn-outline:hover svg { transform: translateX(3px); }
.shop-grid .product-card { animation: card-in .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--n, 0) * 45ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (min-width: 961px) { .shop-hero .cat-chips { display: none; } }
@media (max-width: 960px) { .shop-toolbar { top: 72px; } }
@media (max-width: 600px) { .shop-hero { padding: 24px 0 18px; } .product-card { border-radius: 18px; } .product-card-media { margin: 6px 6px 0; border-radius: 13px; } .card-variants { font-size: 11px; padding: 3px 8px; } }
@media (prefers-reduced-motion: reduce) { .shop-grid .product-card { animation: none; } }

/* ---------- Product detail (2026-11 redesign) ---------- */
.pd-head { padding-top: 28px; }
.product-detail { position: relative; padding-top: 8px; }
@media (min-width: 900px) {
  .product-detail { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .product-detail .gallery { position: sticky; top: 96px; }
}
.gallery { position: relative; }
.gallery::before { content: ""; position: absolute; inset: 8% 6% auto; height: 70%; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--primary) 45%, transparent), transparent 60%), radial-gradient(circle at 70% 70%, color-mix(in srgb, var(--brand-blue) 45%, transparent), transparent 60%); }
.gallery-main { border-radius: 28px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.gallery-main img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) { .gallery-main:hover img { transform: scale(1.04); } }
.gallery-count { backdrop-filter: blur(6px); }
.gallery-thumbs { gap: 12px; margin-top: 16px; padding: 2px; }
.gallery-thumbs button { width: 80px; height: 80px; border-radius: 16px; border: 2px solid var(--border); opacity: .7; transition: opacity .2s, border-color .2s, transform .2s; }
.gallery-thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.gallery-thumbs button.active { opacity: 1; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 14px; }
.pd-cat { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.pd-cat:hover { background: var(--primary); color: var(--on-primary); }
.pd-meta .badges-inline { margin: 0; }
.product-info h1 { margin: 0 0 10px; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.025em; }
.product-info .rating-link { margin: 0 0 12px; }
.product-info .short { margin: 0 0 22px; font-size: 18px; line-height: 1.55; }

.buy-panel { position: relative; padding: 24px; border: 1px solid var(--border); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.buy-panel::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--primary), var(--brand-blue)); }
.product-info .buy-panel .price-row { margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px dashed var(--border); align-items: center; }
.product-info .price { font-size: clamp(32px, 4vw, 40px); letter-spacing: -.02em; line-height: 1; }
.product-info .old-price { font-size: 17px; }
.product-info .vat { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-weight: 600; }
.buy-panel .field-label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.buy-panel .sizes { gap: 8px; margin-bottom: 20px; }
.buy-panel .size-btn { min-height: 46px; padding: 8px 20px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface-2); transition: border-color .2s, background .2s, color .2s, transform .15s, box-shadow .2s; }
.buy-panel .size-btn:hover { transform: translateY(-1px); }
.buy-panel .size-btn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
.buy-panel .product-code { margin: -6px 0 4px; font-size: 13px; color: var(--muted); }
.buy-panel .spec-card { margin: 14px 0 20px; }
.buy-panel .buy-row { gap: 10px; }
.buy-panel .qty { height: 54px; background: var(--surface-2); border-color: transparent; }
.buy-panel .buy-row .btn { min-height: 54px; font-size: 16px; }
.buy-panel .buy-row .btn-primary { box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--primary) 80%, transparent); }
.buy-panel .buy-row .btn-primary:hover { transform: translateY(-1px); }
.buy-panel .btn-wa { margin-top: 10px; min-height: 50px; }

.description { margin-top: 24px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); color: var(--muted); }
.description h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 18px; }
.description-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.description-body { line-height: 1.75; }

.reviews .review { border-radius: 20px; transition: border-color .2s, transform .2s; }
.reviews .review:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.reviews .review-form { border-radius: 24px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .buy-panel { padding: 18px; border-radius: 22px; } .buy-panel::before { left: 18px; right: 18px; } .description { padding: 18px; } .gallery-main { border-radius: 22px; } }
/* card badges sit above the title, never over the product photo */
.card-tags { gap: 5px; margin: 0 0 4px; }
.card-tags .badge-pill { padding: 3px 8px 3px 6px; font-size: 11px; box-shadow: none; }
.product-card .price-from { font-size: 15.5px; }
.card-tags { flex-wrap: wrap; }
.card-tags .badge-pill { white-space: nowrap; }

/* breadcrumb: pill trail with home icon and chevrons; long names are clipped with … */
.breadcrumb { margin-bottom: 14px; font-size: 13.5px; color: var(--muted); }
.breadcrumb ol { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px; max-width: 100%; margin: 0; padding: 4px; list-style: none;
  border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(8px); box-shadow: 0 1px 2px rgba(20, 33, 61, .05); }
.breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumb a, .breadcrumb [aria-current] { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.breadcrumb a:hover { background: var(--primary-soft); color: var(--primary); }
.breadcrumb li:first-child a svg { color: var(--primary); }
.breadcrumb [aria-current] { background: var(--surface-2); color: var(--text); font-weight: 700; }
.breadcrumb [aria-current] span { overflow: hidden; text-overflow: ellipsis; max-width: 32ch; }
.breadcrumb .bc-sep { color: color-mix(in srgb, var(--muted) 55%, transparent); }
@media (max-width: 600px) {
  .breadcrumb ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .breadcrumb ol::-webkit-scrollbar { display: none; }
  .breadcrumb a, .breadcrumb [aria-current] { padding: 5px 10px; }
  .breadcrumb [aria-current] span { max-width: 20ch; }
}

/* shop hero: compact, optional category photo fading in from the right */
.shop-hero { padding: 18px 0 16px; margin-bottom: 22px; }
.shop-hero .breadcrumb { margin-bottom: 10px; }
.shop-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.shop-hero-sub { margin: 4px 0 12px; font-size: 15px; }
@media (min-width: 961px) { .shop-hero-sub { margin-bottom: 0; } }
.shop-hero > .container { position: relative; z-index: 1; }
.shop-hero-img { position: absolute; top: 0; right: 0; width: min(62%, 900px); height: 100%; object-fit: cover; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.shop-hero.has-image::after { display: none; }
@media (max-width: 700px) {
  .shop-hero-img { width: 100%; opacity: .28; -webkit-mask-image: none; mask-image: none; }
}

/* about photo: shown whole at its own shape, never cropped */
.about-grid img { aspect-ratio: auto; height: auto; max-height: 640px; object-fit: contain; }

/* hero slider on wider screens: like phones, the whole photo on top and the text in a navy strip below it */
@media (min-width: 701px) {
  /* fills the screen below the 73px header: the photo takes all the height the text strip leaves */
  .slider { height: max(520px, calc(100vh - 73px)); height: max(520px, calc(100svh - 73px)); background: #1d2f66; }
  .slides { position: relative; display: grid; height: 100%; }
  .slide { position: relative; inset: auto; grid-area: 1 / 1; display: flex; flex-direction: column; height: 100%; }
  .slide-img { position: relative; inset: auto; width: 100%; flex: 1 1 0; min-height: 0; height: auto; object-fit: cover; object-position: center; transform: none; }
  .slide.is-active .slide-img { animation: none; }
  .slide-content { height: auto; flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 40px; padding-top: 22px; padding-bottom: 58px; background: none; }
  .slide { background: radial-gradient(700px 220px at 0% 100%, rgba(79, 200, 116, .16), transparent 70%), radial-gradient(700px 220px at 100% 100%, rgba(142, 167, 242, .18), transparent 70%), #1d2f66; }
  .slide-content > * { max-width: none; grid-column: 1; }
  .slide-content > .slide-actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .slide-title { font-size: clamp(28px, 3.2vw, 44px); margin-bottom: 6px; text-shadow: none; }
  .slide-text { font-size: 17px; margin-bottom: 0; text-shadow: none; color: rgba(231, 236, 245, .9); }
  .slider-controls { bottom: 20px; }
  .slider-dot { width: 36px; height: 20px; }
  .slider-arrow { width: 40px; height: 40px; }
}
