:root {
    --ink: #1c1c1c;
    --muted: #5c5c5c;
    --line: #e6e6e6;
    --teal: #28aeb1;
    --bg: #fff;
    --header: #fff;
    --max: 1120px;
}

html { font-size: 17px; }
* { box-sizing: border-box; }
body {
    margin: 0;
    color: #333;
    background: var(--bg);
    font-family: Jost, Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: #fff;
    padding: 0.5rem 1rem;
}
.skip:focus { top: 1rem; }

.site-header { background: #fff; color: #333; position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 #eee; }
.site-header.is-stuck { box-shadow: 0 1px 8px rgba(0, 0, 0, .08); }
.header-bar {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 120px;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.logo img { height: 80px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 1.35rem; }
.site-nav > a, .dropdown > a {
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 13px;
    font-weight: 500;
}
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.dropdown { position: relative; }
.dropdown > a::after { content: " ▾"; font-size: 10px; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    padding: 0.6rem 0;
    z-index: 5;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.dropdown-menu a { display: block; padding: 0.45rem 1rem; text-transform: none; letter-spacing: 0; color: #333; text-decoration: none; font-size: 15px; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.header-tools { justify-self: end; display: flex; gap: 0.35rem; align-items: center; }
.icon-btn, .nav-toggle {
    color: #333;
    background: none;
    border: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.count {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--teal);
    color: #04211d;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}
.nav-toggle { display: none; width: auto; padding: 0 0.4rem; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; }
.search-bar[hidden] { display: none !important; }
.search-bar {
    display: flex;
    gap: 0.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem 1rem;
}
.search-bar input { flex: 1; padding: 0.6rem 0.75rem; border: 1px solid #ccc; }
.search-bar button { background: var(--teal); color: #04211d; border: 0; padding: 0.6rem 1rem; cursor: pointer; }

main { max-width: 1200px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
body.page-home main { max-width: none; padding: 0 0 3rem; }
.home-wrap { max-width: 1380px; margin: 0 auto; padding: 1.5rem 1.25rem 0; }
.notice, .errors {
    background: #f4fbfa;
    border: 1px solid #b7e4de;
    padding: 0.8rem 1rem;
}
.errors { margin: 0 0 1rem; }
.button, .stack-form > button, .cart-table button, .form-actions > button, .search-bar button, .form-actions a.button {
    display: inline-block;
    background: var(--teal);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    padding: 0.75rem 1.2rem;
    cursor: pointer;
}
.text-link { margin-left: 1rem; }
.hero-slider { position: relative; background: #8eb7c9; min-height: 620px; }
.hero-slide { display: none; position: relative; min-height: 620px; }
.hero-slide.is-active { display: block; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1380px;
    margin: 0 auto;
    min-height: 620px;
    padding: 2rem 2.5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 1rem;
}
.hero-copy { color: #fff; }
.hero-copy p { margin: 0 0 0.85rem; color: #83fcd8; font-size: 25px; line-height: 1.35; }
.hero-copy p.kicker { margin: 0 0 0.35rem; color: #5effe1; font-size: 24px; }
.hero-copy p.kicker-gold { color: #ffcc00; }
.hero-copy h1, .hero-copy p.hero-title { margin: 0 0 0.9rem; color: #fff; font-weight: 500; font-size: 49px; line-height: 1.05; }
.hero-copy h1 .light, .hero-copy p.hero-title .light { font-weight: 300; }
.hero-copy p.app-line, .hero-copy p.app-line a { color: #fff; font-size: 14px; }
.shop-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 44px;
    margin-top: 0.6rem;
    background: #000;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 17px;
    text-decoration: none;
}
.hero-product { max-height: 500px; width: auto; justify-self: end; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.hero-dots button.is-active { background: #fff; }
.banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 2rem; }
.banner { position: relative; display: block; background: #fff; text-decoration: none; color: #4a4a4a; }
.banner img { width: 100%; display: block; }
.banner span {
    position: absolute;
    left: 7%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 48%;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.25;
}
.banner small { display: block; font-weight: 400; font-size: 0.95rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 1rem; }
.product-card a { display: block; text-decoration: none; text-align: center; color: #555; }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.home-wrap .product-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
.home-wrap .product-card { padding: 0 10px 5px; }
.product-card h3 {
    margin: 0.35rem 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-wrap .product-card h3 { -webkit-line-clamp: 1; }
.product-card .sku { margin: 0.45rem 0 0; font-size: 0.78rem; letter-spacing: 0.02em; }
.price { color: #333; font-weight: 500; margin: 0.15rem 0 0; }
.product-buy .price { font-size: 1.1rem; color: #333; font-weight: 400; }
.breadcrumb { color: #333; font-size: 17px; margin: -2rem -1.25rem 1.5rem; padding: 0.9rem 1.25rem; background: #f8f8f8; }
.breadcrumb a { color: #333; }
.page h1, .page-title h1, .product-buy h1 { font-size: 2.3rem; font-weight: 500; color: #2d2a2a; line-height: 1.2; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.desc-video { width: 100%; max-width: 892px; aspect-ratio: 16 / 9; background: #111; margin: 1rem 0; }
.product-specs, .product-docs { margin: 2rem 0 0; }
.product-specs h2, .product-docs h2 { font-size: 1.4rem; font-weight: 500; color: #2d2a2a; }
.product-specs table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.product-specs td { border: 1px solid #e5e5e5; padding: 0.55rem 0.75rem; }
.product-docs ul { list-style: none; padding: 0; margin: 0.5rem 0 0; max-width: 28rem; }
.product-docs li { border-bottom: 1px solid #eee; }
.product-docs a { display: flex; align-items: center; gap: 0.65rem; padding: 0.7rem 0; color: #333; }
.product-docs svg { width: 18px; height: 18px; fill: #e24b4b; flex: none; }
.thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.thumb { padding: 0; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.thumb img { width: 72px; height: 72px; object-fit: contain; }
.product-buy form, .stack-form { display: grid; gap: 0.4rem; max-width: 32rem; }
.buy-extra { margin-top: 1.15rem; color: #333; font-size: 15px; }
.buy-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.buy-links button, .product-share { display: flex; align-items: center; gap: 0.45rem; }
.buy-links button { border: 0; background: none; padding: 0; color: #333; font: inherit; cursor: pointer; }
.buy-extra p { display: flex; align-items: flex-start; gap: 0.45rem; margin: 0.7rem 0; }
.stroke-icon, .fill-icon { width: 18px; height: 18px; flex: none; }
.stroke-icon { fill: none; stroke: currentColor; stroke-width: 1.6; }
.fill-icon { fill: currentColor; stroke: none; }
.product-share a { color: #333; display: inline-flex; }
.safe-checkout { border: 1px solid #e6e6e6; margin: 1rem 0 0; padding: 0.35rem 0.6rem 0.85rem; text-align: center; }
.safe-checkout legend { padding: 0 0.45rem; font-size: 15px; }
.pay-icons { display: flex; justify-content: center; gap: 0.4rem; flex-wrap: wrap; }
.pay-icons svg { width: 50px; height: 32px; }
.product-dialog { border: 0; border-radius: 4px; padding: 1.4rem 1.4rem 1.2rem; max-width: 38rem; width: calc(100% - 2rem); color: #333; }
.product-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.product-dialog h3, .product-dialog h4 { font-weight: 500; color: #2d2a2a; margin: 0.8rem 0 0.35rem; }
.product-dialog h3 { text-align: center; font-size: 1.6rem; }
.dialog-close { position: absolute; top: 0.4rem; right: 0.55rem; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: #333; }
.ask-product { display: flex; gap: 0.9rem; align-items: center; }
.ask-product img { width: 88px; height: 88px; object-fit: contain; }
.product-dialog .stack-form { max-width: none; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 1.5rem; }
.admin-bar h1 { margin: 0; font-size: 1.6rem; }
.admin-bar nav { display: flex; gap: 1rem; }
.admin-bar nav a { color: #333; }
.admin-bar nav a[aria-current="page"] { color: #28aeb1; }
.admin-bar form { margin-left: auto; }
.admin-message { border-top: 1px solid #e6e6e6; padding: 1rem 0; }
.admin-message p { margin: 0.25rem 0; }
.stack-form input, .stack-form select, .stack-form textarea, .cart-table input {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid #ccc;
}
.narrow { max-width: 24rem; }
.sku { color: var(--muted); font-size: 0.9rem; }
.prose img { display: block; margin: 1rem 0; }
.prose h2, .prose h3 { font-weight: 500; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { border-bottom: 1px solid var(--line); text-align: left; padding: 0.75rem 0.4rem; vertical-align: top; }
.cart-table input { width: 4.5rem; }
.total { font-size: 1.15rem; font-weight: 500; }
.form-actions { display: flex; gap: 0.75rem; align-items: center; }
.checkout-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: start; }
.summary { border: 1px solid var(--line); padding: 1rem; }
.summary ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.summary li, .summary p { display: flex; justify-content: space-between; gap: 1rem; }
.fine { color: var(--muted); font-size: 0.92rem; display: block; }
.status { font-weight: 500; }
.empty { color: var(--muted); }

.site-footer { background: #fafafa; color: #333; font-size: 17px; }
.footer-band { padding: 2.5rem 1.25rem; }
.footer-top, .footer-links, .footer-legal {
    max-width: 1280px;
    margin: 0 auto;
}
.footer-top, .footer-links { display: grid; gap: 1.5rem 1.5rem; }
.footer-top { grid-template-columns: repeat(4, 1fr); }
.footer-links { grid-template-columns: repeat(5, 1fr); }
.footer-teal { background: #28aeb1; }
.footer-legal-bar { background: #fff; }
.site-footer h2 { margin: 0 0 0.7rem; font-size: 20px; font-weight: 500; }
.footer-top h2 { color: #28aeb1; }
.footer-links h2, .footer-links a, .footer-links span { color: #bce9ea; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.35rem 0; }
.footer-top a, .footer-top span, .footer-contact, .footer-contact a { color: #333; text-decoration: none; }
.footer-links a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-contact p { margin: 0.35rem 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: 1.4rem 0; }
.footer-legal p { margin: 0 1rem 0 0; }
.footer-legal a { color: #333; text-decoration: none; }
.social { display: flex; gap: 1rem; }
.cookie {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #111;
    color: #fff;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    z-index: 20;
}
.cookie img { height: 36px; width: auto; }
.cookie p { margin: 0; font-size: 14px; }
.cookie button { background: #fff; color: #111; border: 0; padding: 0.55rem 1rem; cursor: pointer; }
.cookie #cookie-accept { background: #28aeb1; color: #fff; }
.cookie[hidden] { display: none; }

@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .header-bar { position: relative; grid-template-columns: auto auto 1fr; }
    .site-nav { display: none; }
    .site-nav.open {
        display: flex;
        position: absolute;
        top: 120px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,.08);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.25rem 1.25rem;
        gap: 0.8rem;
    }
    .site-header.is-stuck .site-nav.open { background: #fff; }
    .dropdown-menu { position: static; display: block; padding: 0.2rem 0 0.2rem 0.8rem; background: transparent; box-shadow: none; }
    .hero-slider, .hero-slide, .hero-inner { min-height: 480px; }
    .hero-copy p { font-size: 18px; }
    .hero-copy h1, .hero-copy p.hero-title { font-size: 32px; }
    .hero-copy p.kicker { font-size: 20px; }
    .hero-copy p.app-line { font-size: 14px; }
    .hero-inner, .banners, .product-detail, .checkout-layout, .footer-top, .footer-links { grid-template-columns: 1fr; }
    .product-grid, .home-wrap .product-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-product { max-height: 220px; justify-self: center; }
}
