/* ============================================================================================================
   OPTIMUS PRIME STOREFRONT - built to match elitesub.shop
   Their design tokens, read from their own stylesheet: shadcn/ui palette, blue primary hsl(221 83% 53%),
   Space Grotesk for display + Inter for body, 0.75/1/1.5rem radii, pill buttons. Same sections in the same
   order: marquee ribbon, sticky header, hero card, four promises, hot deals with a countdown, product grid.
   ============================================================================================================ */

:root {
    color-scheme: light;
    --background: 210 20% 98%;
    --foreground: 222 47% 11%;
    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;
    --border: 214 32% 91%;
    --input: 214 32% 91%;
    --primary: 221 83% 53%;
    --primary-foreground: 210 40% 98%;
    --muted: 210 40% 96%;
    --muted-foreground: 215 16% 47%;
    --accent: 262 83% 58%;
    --destructive: 0 84% 60%;
    --success: 142 71% 45%;
    --warning: 25 95% 53%;
    --radius: .75rem;
    --shadow-sm: 0 1px 2px hsl(222 47% 11% / .05);
    --shadow: 0 1px 3px hsl(222 47% 11% / .07), 0 8px 24px hsl(222 47% 11% / .06);
    --shadow-lg: 0 2px 6px hsl(222 47% 11% / .08), 0 20px 46px hsl(222 47% 11% / .12);
    --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[data-theme="dark"] {
    color-scheme: dark;
    --background: 222 47% 4%;
    --foreground: 210 40% 98%;
    --card: 222 47% 6%;
    --card-foreground: 210 40% 98%;
    --border: 217 33% 17%;
    --input: 217 33% 17%;
    --primary: 217 91% 60%;
    --primary-foreground: 222 47% 5%;
    --muted: 217 33% 12%;
    --muted-foreground: 215 20% 65%;
    --accent: 270 95% 75%;
    --shadow-sm: 0 1px 2px hsl(0 0% 0% / .5);
    --shadow: 0 1px 3px hsl(0 0% 0% / .55), 0 10px 28px hsl(0 0% 0% / .45);
    --shadow-lg: 0 2px 8px hsl(0 0% 0% / .6), 0 24px 54px hsl(0 0% 0% / .55);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -.025em; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
[hidden] { display: none !important; }
.container { width: min(1640px, 100% - 40px); margin-inline: auto; }

/* ---------------------------------------------------------------- marquee --------------------------------- */
.marquee {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 46px; padding: 8px 0; animation: marquee 32s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; }
.marquee-track i { width: 5px; height: 5px; border-radius: 999px; background: hsl(var(--primary-foreground) / .6); display: inline-block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------------------------------------------------------------- header ---------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: hsl(var(--card) / .85);
    backdrop-filter: blur(12px) saturate(1.5);
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
    border-bottom: 1px solid hsl(var(--border));
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none;
    background: #fff; color: hsl(var(--primary)); overflow: hidden;
    border: 1px solid hsl(var(--border));
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.logo-name { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.15; }
.logo-sub { font-size: 10.5px; color: hsl(var(--muted-foreground)); font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.main-nav a {
    padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
    color: hsl(var(--muted-foreground)); transition: all .15s;
}
.main-nav a:hover { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.main-nav a.active {
    background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 600;
    box-shadow: 0 4px 14px hsl(var(--primary) / .35);
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.ghost-icon {
    width: 36px; height: 36px; border-radius: 999px; border: 1px solid transparent; background: transparent;
    color: hsl(var(--muted-foreground)); display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .15s;
}
.ghost-icon:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.ghost-icon svg { width: 18px; height: 18px; }
.seg {
    display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px;
    background: hsl(var(--muted)); cursor: pointer; border: none;
}
.seg span { padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: hsl(var(--muted-foreground)); }
.seg span.on { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.chip-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
    border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--foreground));
    font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.chip-btn:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer;
    border-radius: var(--radius); font-weight: 600; font-size: 14px; padding: 10px 18px; transition: all .15s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
    background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
    box-shadow: 0 6px 18px hsl(var(--primary) / .3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px hsl(var(--primary) / .4); }
.btn-outline { background: hsl(var(--card)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); }
.btn-outline:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: calc(var(--radius) + 2px); }

/* language dropdown */
.menu-wrap { position: relative; }
.dropdown {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 232px; max-height: 340px; overflow-y: auto;
    background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 6px; z-index: 60;
}
.dropdown button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: none; border-radius: 8px;
    background: transparent; color: hsl(var(--foreground)); font-size: 14px; font-weight: 500; cursor: pointer; text-align: left;
}
.dropdown button:hover { background: hsl(var(--muted)); }
.dropdown button[aria-current="true"] { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 600; }
.dropdown .code { margin-left: auto; font-size: 11px; opacity: .7; text-transform: uppercase; }

/* ---------------------------------------------------------------- hero ------------------------------------ */
.hero {
    margin-top: 24px; position: relative; border-radius: 24px; overflow: hidden;
    background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow);
    display: grid; grid-template-columns: 1.08fr .92fr; gap: 28px; align-items: center; padding: 48px;
}
.hero::after {
    content: ""; position: absolute; right: -8%; top: -45%; width: 58%; height: 170%; pointer-events: none;
    background: radial-gradient(closest-side, hsl(var(--primary) / .13), transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
    background: hsl(var(--primary) / .1); color: hsl(var(--primary)); font-size: 12.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
}
.hero h1 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; margin: 18px 0 14px; text-wrap: balance; }
.hero h1 b { color: hsl(var(--primary)); font-weight: 700; }
.hero-sub { color: hsl(var(--muted-foreground)); font-size: 16px; max-width: 52ch; margin: 0 0 22px; }
.brandline { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 28px; }
.brandline span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.brandline .mark {
    width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; flex: none;
    font-size: 11px; font-weight: 700; color: hsl(var(--primary-foreground)); background: hsl(var(--primary));
}
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.safe-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: hsl(var(--muted-foreground)); }
.safe-note svg { width: 18px; height: 18px; color: hsl(var(--success)); }
.hero-visual {
    aspect-ratio: 4/3; border-radius: 20px; position: relative; overflow: hidden;
    background:
        radial-gradient(circle at 28% 28%, hsl(var(--primary) / .20), transparent 58%),
        radial-gradient(circle at 76% 72%, hsl(var(--accent) / .18), transparent 54%),
        hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    display: grid; place-items: center;
}
.hero-visual .orbit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 28px; width: 100%; }
.hero-visual .orb {
    aspect-ratio: 1; border-radius: 20px; display: grid; place-items: center; font-size: 32px;
    background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow);
    animation: bob 6s ease-in-out infinite;
}
.hero-visual .orb:nth-child(2n) { animation-delay: -1.6s; }
.hero-visual .orb:nth-child(3n) { animation-delay: -3.2s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-visual .orb { animation: none; } }

/* ---------------------------------------------------------------- promises -------------------------------- */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.promise {
    display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); background: hsl(var(--card));
    border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-sm);
}
.promise .tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.promise .tile svg { width: 21px; height: 21px; }
.promise b { display: block; font-family: var(--display); font-size: 15px; }
.promise span { font-size: 13.5px; color: hsl(var(--muted-foreground)); }
.t-blue  { background: hsl(var(--primary) / .12);     color: hsl(var(--primary)); }
.t-green { background: hsl(var(--success) / .14);     color: hsl(var(--success)); }
.t-violet{ background: hsl(var(--accent) / .14);      color: hsl(var(--accent)); }
.t-amber { background: hsl(var(--warning) / .14);     color: hsl(var(--warning)); }

/* ---------------------------------------------------------------- sections -------------------------------- */
.band { margin-top: 48px; padding: 34px 0 40px; border-radius: 26px; }
.band-hot {
    background:
        radial-gradient(70% 120% at 15% 0%, hsl(var(--destructive) / .07), transparent 60%),
        radial-gradient(60% 120% at 85% 10%, hsl(var(--warning) / .07), transparent 55%);
}
.section-head { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head .tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 23px; flex: none; }
.section-head h2 { font-size: 28px; }
.section-head p { margin: 3px 0 0; color: hsl(var(--muted-foreground)); font-size: 14px; }
.section-head .link { margin-left: auto; color: hsl(var(--primary)); font-weight: 600; font-size: 14px; }
.timer { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: hsl(var(--muted-foreground)); }
.timer .box {
    min-width: 42px; padding: 7px 8px; border-radius: 9px; background: hsl(var(--destructive)); color: #fff;
    font-family: var(--display); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- filters --------------------------------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.field {
    flex: 1 1 280px; min-width: 230px; height: 48px; padding: 0 16px 0 44px; border-radius: var(--radius);
    border: 1px solid hsl(var(--input)); background:
        hsl(var(--card))
        url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E")
        no-repeat 15px center;
    color: hsl(var(--foreground)); font-family: var(--sans); font-size: 15px; outline: none;
}
.field:focus { border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / .16); }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pills::-webkit-scrollbar { display: none; }
.pill {
    flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid hsl(var(--border));
    background: hsl(var(--card)); color: hsl(var(--muted-foreground)); font-size: 13.5px; font-weight: 600;
    cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; transition: all .15s;
}
.pill:hover { color: hsl(var(--foreground)); border-color: hsl(var(--primary)); }
.pill.active { background: hsl(var(--primary)); border-color: transparent; color: hsl(var(--primary-foreground)); }

/* ---------------------------------------------------------------- product cards --------------------------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.product {
    display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: hsl(var(--card));
    border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: hsl(var(--primary) / .45); }
.product-media {
    position: relative; aspect-ratio: 16/11; display: grid; place-items: center; font-size: 50px; overflow: hidden;
    background: linear-gradient(140deg, hsl(var(--primary) / .12), hsl(var(--accent) / .10));
    border-bottom: 1px solid hsl(var(--border));
}
.product-media img { width: auto; height: auto; max-width: 68px; max-height: 68px; object-fit: contain; }
.product-media tg-emoji { width: 68px !important; height: 68px !important; }
.badge { position: absolute; top: 10px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.badge-off { left: 10px; background: hsl(var(--destructive)); color: #fff; box-shadow: 0 4px 12px hsl(var(--destructive) / .4); }
.badge-feat { top: auto; bottom: 10px; left: 10px; background: hsl(222 47% 11% / .88); color: #fff; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(4px); }
.badge-now { right: 10px; background: hsl(var(--success)); color: #fff; display: inline-flex; align-items: center; gap: 4px; }
.badge-man { right: 10px; background: hsl(var(--warning)); color: #1c1200; display: inline-flex; align-items: center; gap: 4px; }
.product-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-title { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.32; min-height: 2.64em; }
.stars { display: flex; align-items: center; gap: 6px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.stars .s { color: hsl(var(--warning)); letter-spacing: -1px; font-size: 13px; }
.warranty { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.warranty svg { width: 14px; height: 14px; color: hsl(var(--success)); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { font-family: var(--display); font-size: 22px; font-weight: 700; color: hsl(var(--primary)); font-variant-numeric: tabular-nums; }
.price small { font-size: 12px; font-weight: 600; color: hsl(var(--muted-foreground)); margin-left: 3px; }
.strike { font-size: 13px; color: hsl(var(--muted-foreground)); text-decoration: line-through; }
.view-btn {
    width: 100%; margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px; border-radius: 10px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
    font-weight: 600; font-size: 14px; transition: all .15s;
}
.view-btn:hover { box-shadow: 0 8px 20px hsl(var(--primary) / .35); }
.view-btn svg { width: 16px; height: 16px; }
.nothing { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: hsl(var(--muted-foreground)); }

/* ---------------------------------------------------------------- footer + float -------------------------- */
.site-footer { margin-top: 64px; border-top: 1px solid hsl(var(--border)); padding: 34px 0 46px; color: hsl(var(--muted-foreground)); font-size: 14px; }
.footer-inner { display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: hsl(var(--primary)); }
.float-chat {
    position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 999px; z-index: 60;
    background: #0088cc; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,136,204,.45);
    transition: transform .15s;
}
.float-chat:hover { transform: scale(1.06); }
.float-chat svg { width: 27px; height: 27px; }

/* ---------------------------------------------------------------- responsive ------------------------------ */
@media (max-width: 1100px) {
    .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .promises { grid-template-columns: repeat(2, 1fr); }
    .main-nav { display: none; }
    .hero { grid-template-columns: 1fr; padding: 32px; }
    .hero-visual { order: -1; aspect-ratio: 16/9; }
}
@media (max-width: 760px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 520px) {
    .container { width: calc(100% - 24px); }
    .promises { grid-template-columns: 1fr; }
    .hero { padding: 24px; }
    .hero h1 { font-size: 30px; }
    .product-media { font-size: 36px; }
    .section-head h2 { font-size: 22px; }
    .logo-sub { display: none; }
    .header-inner { height: 60px; gap: 8px; }
}

/* ---------------------------------------------------------------- phone header ---------------------------
   On a narrow screen the brand name was wrapping to three lines and pushing the buttons off the edge. The mark
   and the two things a visitor needs there (language, sign in) stay; the rest steps aside. */
.logo-name { white-space: nowrap; }
@media (max-width: 720px) {
    .header-inner { gap: 6px; }
    .logo-name { font-size: 14px; }
    .chip-btn { display: none; }
}
@media (max-width: 520px) {
    .logo-sub, .logo-name { display: none; }
    .header-actions { gap: 4px; margin-left: auto; }
    .header-actions .btn { padding: 0 11px; font-size: 13px; }
    .ghost-icon { width: 32px; height: 32px; }
    .ghost-icon svg { width: 16px; height: 16px; }
    .seg span { padding: 4px 7px; font-size: 11px; }
}
@media (max-width: 380px) {
    .header-actions a[href="/tools"] { display: none; }
}

.btn { white-space: nowrap; } /* btn */
@media (max-width: 420px) { .header-actions .btn { padding: 0 9px; font-size: 12px; } }

/* a sticky header must not cover the heading someone just jumped to */
[id] { scroll-margin-top: 96px; }

/* ---------------------------------------------------------------- sold out, said plainly */
.warranty.oos { color: hsl(var(--destructive)); font-weight: 600; }
.warranty.oos svg { color: hsl(var(--destructive)); stroke: hsl(var(--destructive)); }
.badge-oos { right: 10px; background: hsl(var(--destructive)); color: #fff; }
.product.is-oos .product-media { filter: grayscale(.85); opacity: .62; }
.product.is-oos .price { color: hsl(var(--muted-foreground)); }
.product.is-oos .view-btn { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); box-shadow: none; }
