/* ============================================================
   Gecko Technology — main.css
   Global cloud / GPU / growth services storefront.
   Palette: ink #0B1220 · emerald #12B981 · sky #0EA5E9
   Type: Sora (headings) · Inter (body) · JetBrains Mono (code)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --ink: #0b1220;
    --ink-2: #17233a;
    --ink-3: #33415c;
    --muted: #5c6b84;
    --line: #e4e9f1;
    --line-soft: #eef2f7;
    --bg: #ffffff;
    --bg-soft: #f6f8fc;
    --bg-warm: #f9faf7;
    --accent: #12b981;
    --accent-dark: #0d9a6a;
    --accent-soft: #e7f8f1;
    --accent-ink: #065f46;
    --sky: #0ea5e9;
    --sky-soft: #e6f4fd;
    --amber: #f59e0b;
    --danger: #dc2626;
    --danger-soft: #fef2f2;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06);
    --shadow: 0 10px 30px -12px rgba(11, 18, 32, .18);
    --shadow-lg: 0 28px 60px -24px rgba(11, 18, 32, .28);

    --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --container: 1200px;
    --header-h: 74px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.18;
    letter-spacing: -.02em;
    margin: 0 0 .6em;
    font-weight: 600;
}

h1 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: .95rem; }

p { margin: 0 0 1em; }

a { color: var(--ink); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--accent-dark); }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

strong { font-weight: 600; color: var(--ink); }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container.narrow { max-width: 900px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: 11px 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s var(--ease), color .18s var(--ease),
                border-color .18s var(--ease), transform .18s var(--ease),
                box-shadow .18s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--accent);
    color: #04140d;
    box-shadow: 0 10px 24px -10px rgba(18, 185, 129, .65);
}
.btn-primary:hover {
    background: #16c98e;
    color: #04140d;
    box-shadow: 0 14px 30px -10px rgba(18, 185, 129, .75);
}

.btn-outline {
    background: transparent;
    border-color: #cdd6e3;
    color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn-ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}
.btn-ghost:hover { background: var(--accent-soft); border-color: #b7e7d6; color: var(--accent-ink); }

.btn-ghost-light {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
    backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); color: #fff; }

.btn-light {
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
}
.btn-light:hover { background: var(--accent); color: #04140d; }

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 7px 14px; font-size: .82rem; border-radius: 8px; }
.btn-block { display: flex; width: 100%; }

.link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--muted);
    font: inherit;
    font-size: .88rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.link-btn:hover { color: var(--danger); }

/* ---------- Badges & prices ---------- */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.4;
}

.badge-sale { background: var(--amber); color: #3b2503; }
.badge-stock { background: var(--accent-soft); color: var(--accent-ink); }
.badge-outstock { background: #fff4e5; color: #92400e; }

.badge-status-pending { background: #fff7e0; color: #92400e; }
.badge-status-processing { background: var(--sky-soft); color: #075985; }
.badge-status-completed { background: var(--accent-soft); color: var(--accent-ink); }
.badge-status-cancelled { background: var(--danger-soft); color: #991b1b; }

.price {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.02em;
}
.price-lg { font-size: 2.5rem; }
.price-original {
    font-size: .9rem;
    color: var(--muted);
    text-decoration: line-through;
}
.price-unit { font-size: .8rem; color: var(--muted); margin-left: 2px; }
.price-unit-lg { font-size: 1rem; }
.price-from {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-right: 6px;
}

/* ---------- Announcement bar ---------- */
.announce {
    background: var(--ink);
    color: #c8d3e6;
    font-size: .82rem;
    padding: 9px 0;
    position: relative;
    z-index: 60;
}

.announce-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
}

.announce strong { color: #fff; }

.announce-badge {
    background: var(--accent);
    color: #04140d;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .12em;
    padding: 2px 8px;
    border-radius: 4px;
}

.announce a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.4); }
.announce a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--accent);
}

.logo-mark { flex-shrink: 0; }

.logo-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.05;
    color: var(--ink);
}

.logo-text small {
    font-family: var(--font-body);
    font-size: .55rem;
    font-weight: 500;
    letter-spacing: .26em;
    color: var(--muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.main-nav > a,
.nav-dropdown-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 13px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: background .16s var(--ease), color .16s var(--ease);
}

.main-nav > a:hover,
.nav-dropdown:hover .nav-dropdown-link,
.nav-dropdown-link:hover { background: var(--bg-soft); color: var(--ink); }

.caret { font-size: .65rem; color: var(--muted); }

.nav-dropdown { position: relative; }

.dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 268px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 2px;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel { display: flex; }

.dropdown-panel::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 0;
    right: 0;
    height: 12px;
}

.dropdown-panel a {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: .88rem;
    color: var(--ink-2);
}

.dropdown-panel a:hover { background: var(--bg-soft); color: var(--ink); }
.dropdown-panel a strong { font-weight: 600; color: var(--accent-ink); }

.header-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-soft);
    border: 1px solid transparent;
    border-radius: 100px;
    padding: 0 4px 0 14px;
    transition: border-color .16s var(--ease), background .16s var(--ease);
}

.search-form:focus-within {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(18, 185, 129, .14);
}

.search-form input {
    width: 148px;
    border: 0;
    background: transparent;
    padding: 8px 6px 8px 0;
    font: inherit;
    font-size: .85rem;
    color: var(--ink);
    outline: none;
}

.search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-3);
    cursor: pointer;
}

.search-form button:hover { color: var(--accent-dark); }

.account-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--ink-2);
    max-width: 170px;
}

.account-link:hover { background: var(--bg-soft); color: var(--ink); }

.account-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.currency-switch {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 4px 7px;
}

.currency-static { cursor: default; }

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--ink);
}

.cart-link:hover { background: var(--bg-soft); color: var(--accent-dark); }

.cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 100px;
    background: var(--accent);
    color: #04140d;
    font-size: .64rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.cart-badge.bump { animation: bump .4s var(--ease); }

@keyframes bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
}

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 64px;
    background:
        radial-gradient(900px 480px at 82% -10%, rgba(14, 165, 233, .14), transparent 62%),
        radial-gradient(760px 460px at 8% 8%, rgba(18, 185, 129, .13), transparent 60%),
        linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line-soft);
}

.hero-glow {
    position: absolute;
    right: -180px;
    top: -120px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 185, 129, .18), transparent 68%);
    filter: blur(10px);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent-ink);
    background: var(--accent-soft);
    border: 1px solid #cdeee1;
    border-radius: 100px;
    padding: 6px 14px;
    margin: 0 0 22px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(18, 185, 129, .18);
}

.hero-title {
    font-size: clamp(2.3rem, 4.4vw, 3.55rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.06;
    margin: 0 0 20px;
}

.hero-title em {
    font-style: normal;
    background: linear-gradient(100deg, var(--accent) 10%, var(--sky) 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 1.06rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 0 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-price {
    font-size: .86rem;
    color: var(--muted);
    margin: 0 0 28px;
}

.hero-price strong { color: var(--ink); }

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
}

.hero-proof li { display: flex; flex-direction: column; }
.hero-proof strong {
    font-family: var(--font-head);
    font-size: 1.5rem;
    letter-spacing: -.02em;
}
.hero-proof span { font-size: .78rem; color: var(--muted); }

.hero-visual { position: relative; }

.hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, .7);
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    font-size: .76rem;
    color: var(--muted);
    animation: float 6s ease-in-out infinite;
}

.float-card strong { display: block; font-size: .82rem; color: var(--ink); }
.float-card small { font-size: .72rem; }

.float-card-top { top: 18px; left: -26px; }
.float-card-bottom { bottom: 20px; right: -18px; animation-delay: -3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

.float-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(18, 185, 129, .16);
    flex-shrink: 0;
}

.float-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 22px;
}

.float-bars i {
    width: 4px;
    border-radius: 2px;
    background: var(--sky);
    animation: bars 1.6s ease-in-out infinite;
}
.float-bars i:nth-child(1) { height: 40%; }
.float-bars i:nth-child(2) { height: 75%; animation-delay: -.3s; }
.float-bars i:nth-child(3) { height: 55%; animation-delay: -.6s; }
.float-bars i:nth-child(4) { height: 90%; animation-delay: -.9s; }

@keyframes bars {
    0%, 100% { transform: scaleY(.7); }
    50% { transform: scaleY(1); }
}

/* ---------- Capability cards ---------- */
.capability {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    padding-bottom: 20px;
}

.cap-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    box-shadow: var(--shadow);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.cap-card:hover {
    transform: translateY(-4px);
    border-color: #bfe9d9;
    box-shadow: var(--shadow-lg);
}

.cap-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.cap-card h3 { font-size: 1.02rem; margin: 0; }
.cap-card p { font-size: .86rem; color: var(--muted); margin: 0; }

.cap-link {
    margin-top: auto;
    padding-top: 10px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--accent-dark);
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-warm { background: var(--bg-warm); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.section-eyebrow {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin: 0 0 10px;
}

.section-title {
    font-size: clamp(1.65rem, 2.6vw, 2.25rem);
    margin: 0;
    max-width: 640px;
}

.section-sub { color: var(--muted); max-width: 620px; margin: 12px 0 0; }

.section-link {
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

.section-link:hover { color: var(--accent-dark); }

/* ---------- Category strip ---------- */
.cat-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.cat-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 132px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}

.cat-tile:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-3px);
}

.cat-tile-index {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--muted);
}

.cat-tile-name {
    font-family: var(--font-head);
    font-size: .98rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.cat-tile-arrow {
    position: absolute;
    right: 18px;
    bottom: 14px;
    font-size: 1rem;
    color: var(--accent-dark);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.cat-tile:hover .cat-tile-arrow { opacity: 1; transform: translateX(0); }

/* ---------- Product grid & cards ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #c8dfd5;
    box-shadow: var(--shadow);
}

.product-card-media {
    position: relative;
    display: block;
    background: var(--bg-soft);
    overflow: hidden;
}

.product-card-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .45s var(--ease);
}

.product-card:hover .product-card-media img { transform: scale(1.04); }

.product-card-media .badge-sale {
    position: absolute;
    top: 12px;
    left: 12px;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 18px 16px;
}

.product-card-cat {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 6px;
}

.product-card-name { font-size: 1.02rem; margin: 0 0 6px; }
.product-card-name a { color: inherit; }

.product-card-tagline {
    font-size: .82rem;
    color: var(--muted);
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.product-card-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.product-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.product-card-price .price { font-size: 1.25rem; }
.product-card-price .price-original { font-size: .78rem; width: 100%; line-height: 1; }

/* ---------- Feature cards ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
}

.feature-num {
    display: block;
    font-family: var(--font-mono);
    font-size: .74rem;
    color: var(--accent);
    margin-bottom: 14px;
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Dark footprint band ---------- */
.section-ink {
    background:
        radial-gradient(700px 400px at 88% 12%, rgba(18, 185, 129, .22), transparent 65%),
        var(--ink);
    color: #b9c6da;
}

.section-ink .section-title { color: #fff; }
.section-ink .section-eyebrow { color: var(--accent); }
.section-ink .section-sub { color: #9fb0c8; }

.footprint-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
    align-items: center;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 28px;
    margin: 28px 0 30px;
    justify-content: start;
}

.stat { display: flex; flex-direction: column; }

.stat strong {
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -.02em;
}

.section-ink .stat strong { color: #fff; }
.stat span { font-size: .76rem; color: var(--muted); }
.section-ink .stat span { color: #8fa2bd; }

.region-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-content: center;
}

.region-chip {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 100px;
    background: rgba(255, 255, 255, .04);
    font-size: .8rem;
    color: #ccd8e9;
    transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}

.region-chip:hover {
    border-color: var(--accent);
    background: rgba(18, 185, 129, .14);
    color: #fff;
}

/* ---------- Trust ---------- */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 28px;
}

.trust-list li {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.trust-list strong { font-size: .92rem; font-weight: 600; }
.trust-list span { font-size: .8rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
    background:
        radial-gradient(600px 320px at 15% 0%, rgba(18, 185, 129, .28), transparent 60%),
        linear-gradient(120deg, #0b1220 0%, #122238 55%, #0d2a3a 100%);
    color: #fff;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-top: 64px;
    padding-bottom: 64px;
    flex-wrap: wrap;
}

.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.cta-band p { color: #a9bad0; margin: 0; max-width: 560px; font-size: .94rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band-tight .cta-inner { padding-top: 48px; padding-bottom: 48px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    padding: 52px 0 40px;
    background:
        radial-gradient(640px 320px at 90% 0%, rgba(14, 165, 233, .1), transparent 62%),
        linear-gradient(180deg, #fbfcfe, #fff);
    border-bottom: 1px solid var(--line-soft);
}

.page-title {
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -.03em;
    margin: 10px 0 12px;
}

.page-lead {
    font-size: 1.02rem;
    color: var(--muted);
    max-width: 700px;
    margin: 0;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-dark); }

/* ---------- Listing ---------- */
.listing-wrap { padding-top: 36px; padding-bottom: 72px; }

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    padding: 7px 15px;
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: .84rem;
    font-weight: 500;
    color: var(--ink-3);
    background: #fff;
    transition: all .16s var(--ease);
}

.filter-pill:hover { border-color: var(--ink-3); color: var(--ink); }

.filter-pill.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.filter-search {
    display: flex;
    gap: 8px;
}

.filter-search input {
    width: 220px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    font-size: .85rem;
    outline: none;
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.filter-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(18, 185, 129, .14);
}

.listing-count {
    font-size: .8rem;
    color: var(--muted);
    margin: 0 0 20px;
}

.product-grid-listing { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 44px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: .84rem;
    font-weight: 500;
    color: var(--ink-2);
    background: #fff;
}

.page-link:hover { border-color: var(--accent); color: var(--accent-dark); }
.page-link.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Product detail ---------- */
.pdp-wrap { padding-top: 26px; padding-bottom: 72px; }

.pdp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: start;
    margin: 28px 0 60px;
}

.pdp-media {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    box-shadow: var(--shadow);
}

.pdp-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.pdp-media .badge-sale { position: absolute; top: 16px; left: 16px; }

.pdp-title {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    margin: 6px 0 10px;
}

.pdp-tagline {
    font-size: 1rem;
    color: var(--muted);
    margin: 0 0 22px;
}

.pdp-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0 18px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
}

.pdp-availability {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.pdp-sku {
    font-family: var(--font-mono);
    font-size: .74rem;
    color: var(--muted);
}

.pdp-buy {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.qty-picker { display: flex; flex-direction: column; gap: 5px; }

.qty-picker label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.qty-picker input {
    width: 84px;
    padding: 12px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    font-size: .95rem;
    outline: none;
}

.qty-picker input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(18, 185, 129, .14);
}

.pdp-perks {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 18px;
    font-size: .86rem;
    color: var(--ink-3);
}

.pdp-specs {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
}

.pdp-specs h2 { font-size: 1rem; margin: 0 0 14px; }

.spec-list { margin: 0; }

.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
    font-size: .85rem;
}

.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--muted); margin: 0; }
.spec-row dd { margin: 0; font-weight: 500; color: var(--ink); text-align: right; }

.pdp-body {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 52px;
    padding: 44px 0;
    border-top: 1px solid var(--line);
}

.pdp-description h2,
.pdp-features h2,
.pdp-faq h2 { font-size: 1.25rem; margin-bottom: 16px; }

.pdp-description p { color: var(--ink-3); font-size: .95rem; }

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    font-size: .9rem;
    color: var(--ink-3);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .35em;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1.5px var(--accent);
}

.check-list li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: .62em;
    width: 7px;
    height: 4px;
    border-left: 2px solid var(--accent-dark);
    border-bottom: 2px solid var(--accent-dark);
    transform: rotate(-45deg);
}

.pdp-faq {
    padding: 44px 0;
    border-top: 1px solid var(--line);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ---------- Static pages ---------- */
.static-page { padding-top: 48px; padding-bottom: 80px; }

.static-body { font-size: .97rem; color: var(--ink-3); }

.static-body > h2 { font-size: 1.3rem; margin-top: 36px; }
.static-body > h2:first-child { margin-top: 0; }
.static-body p { margin-bottom: 1.1em; }
.static-body a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 30px 0;
}

.mv-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.mv-card h2 { font-size: 1.05rem; margin-bottom: 8px; }
.mv-card p { margin: 0; font-size: .89rem; }

.fact-table {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 18px 0 34px;
}

.fact-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 20px;
    font-size: .88rem;
    border-bottom: 1px solid var(--line-soft);
}

.fact-row:last-child { border-bottom: 0; }
.fact-row:nth-child(odd) { background: var(--bg-soft); }
.fact-row span { color: var(--muted); }
.fact-row strong { font-weight: 500; text-align: right; }

.faq-list { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 36px; }

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}

.faq-item summary {
    position: relative;
    padding: 16px 48px 16px 20px;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--accent-dark);
    transition: transform .2s var(--ease);
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item p {
    margin: 0;
    padding: 0 20px 18px;
    font-size: .9rem;
    color: var(--muted);
}

details > summary { outline-offset: -2px; }

.inline-cta {
    margin-top: 40px;
    padding: 30px 32px;
    background: linear-gradient(120deg, var(--accent-soft), var(--sky-soft));
    border: 1px solid #d3ece2;
    border-radius: var(--radius-lg);
}

.inline-cta h2 { font-size: 1.2rem; margin-bottom: 6px; }
.inline-cta p { font-size: .9rem; color: var(--ink-3); margin-bottom: 16px; }

.step-list { display: flex; flex-direction: column; gap: 0; margin: 10px 0 40px; }

.step {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.step:last-child { border-bottom: 0; }

.step-num {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--accent-dark);
    padding-top: 4px;
}

.step h2 { font-size: 1.08rem; margin: 0 0 6px; }
.step p { margin: 0; font-size: .9rem; color: var(--muted); }

.sla-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 8px 0 34px;
}

.sla-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 20px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.sla-card strong {
    font-family: var(--font-head);
    font-size: 1.45rem;
    color: var(--ink);
}
.sla-card span { font-size: .78rem; color: var(--muted); }

.role-list { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 34px; }

.role {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    align-items: center;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.role strong { display: block; font-size: .98rem; }
.role span { font-size: .78rem; color: var(--muted); }
.role p { margin: 0; font-size: .86rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 44px;
    padding-top: 44px;
    padding-bottom: 80px;
    align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 14px; }

.info-card {
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.info-card h2 {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 8px;
}

.info-card p { margin: 0; font-size: .88rem; color: var(--ink-3); }
.info-card p + p { margin-top: 6px; }
.info-card a { color: var(--accent-dark); }
.info-meta { font-size: .76rem !important; color: var(--muted) !important; }

.info-card-accent {
    background: var(--ink);
    border-color: var(--ink);
    color: #c6d2e4;
}

.info-card-accent h2 { color: var(--accent); }
.info-card-accent p { color: #b9c6da; }
.info-card-accent strong { color: #fff; }

.contact-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.contact-form h2 { font-size: 1.3rem; margin-bottom: 20px; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.field label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink-2);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: .92rem;
    color: var(--ink);
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.field textarea { resize: vertical; min-height: 96px; }

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(18, 185, 129, .14);
}

.field-hint { font-size: .76rem; color: var(--muted); }
.field-hint a { color: var(--accent-dark); text-decoration: underline; }

.req { color: var(--danger); }

fieldset {
    border: 0;
    margin: 0 0 22px;
    padding: 0;
}

fieldset legend {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 16px;
    padding: 0;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: .88rem;
    margin-bottom: 18px;
}

.alert ul { margin: 0; padding-left: 18px; }

.alert-error {
    background: var(--danger-soft);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.form-success {
    background: var(--accent-soft);
    border: 1px solid #c8ecdd;
    color: var(--accent-ink);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .88rem;
    margin-bottom: 18px;
}

.form-error {
    background: var(--danger-soft);
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .88rem;
    margin-bottom: 18px;
}

/* ---------- Cart ---------- */
.container > .page-title { margin-top: 38px; }

.cart-layout {
    display: grid;
    grid-template-columns: 1.6fr .9fr;
    gap: 32px;
    align-items: start;
    padding-bottom: 72px;
}

.cart-lines {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
}

.cart-line {
    display: grid;
    grid-template-columns: 76px 1fr auto auto auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line-soft);
}

.cart-line:last-of-type { border-bottom: 0; }

.cart-line-media img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--bg-soft);
}

.cart-line-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.cart-line-name { font-family: var(--font-head); font-size: .94rem; font-weight: 500; }
.cart-line-unit { font-size: .76rem; color: var(--muted); }

.cart-line-qty { display: flex; align-items: center; gap: 8px; }

.cart-line-qty input {
    width: 64px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: .86rem;
    outline: none;
}

.cart-line-qty input:focus { border-color: var(--accent); }

.cart-line-total { font-weight: 600; font-size: .94rem; min-width: 70px; text-align: right; }

.cart-line-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    transition: all .16s var(--ease);
}

.cart-line-remove:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }

.cart-clear-row { padding: 14px 20px; background: var(--bg-soft); }

.cart-summary {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
}

.cart-summary h2 { font-size: 1.05rem; margin-bottom: 18px; }

.summary-items {
    list-style: none;
    margin: 0 0 18px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-items li { display: flex; align-items: center; gap: 10px; font-size: .83rem; }

.summary-items img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-soft);
    flex-shrink: 0;
}

.summary-item-name { flex: 1; min-width: 0; }
.summary-item-name em { font-style: normal; color: var(--muted); font-size: .76rem; }
.summary-item-price { font-weight: 600; }

.summary-rows { margin: 0 0 20px; }

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    font-size: .85rem;
}

.summary-row dt { margin: 0; color: var(--muted); }
.summary-row dd { margin: 0; text-align: right; max-width: 62%; }

.summary-total {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 1rem;
}

.summary-total dt { color: var(--ink); font-weight: 600; }
.summary-total dd { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--ink); }

.cart-summary .btn-block { margin-bottom: 14px; }
.cart-summary .link-btn { display: inline-block; margin-bottom: 16px; font-size: .82rem; color: var(--ink-3); }
.cart-summary .link-btn:hover { color: var(--accent-dark); }

.summary-note {
    font-size: .74rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* ---------- Checkout ---------- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr .9fr;
    gap: 32px;
    align-items: start;
    padding-bottom: 72px;
}

.checkout-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.checkout-guest-note {
    font-size: .85rem;
    color: var(--muted);
    background: var(--bg-soft);
    border-radius: 10px;
    padding: 10px 14px;
}

.checkout-guest-note a { color: var(--accent-dark); font-weight: 600; }

.pay-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.pay-option.is-selected { border-color: var(--accent); background: var(--accent-soft); }

.pay-option-body { display: flex; flex-direction: column; gap: 4px; }
.pay-option-body strong { font-size: .92rem; }
.pay-option-body small { font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* ---------- Auth & account ---------- */
.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 38px;
    margin-top: 48px;
    margin-bottom: 72px;
    box-shadow: var(--shadow-sm);
}

.auth-title { font-size: 1.6rem; margin-bottom: 6px; }
.auth-sub { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }

.auth-alt {
    margin: 20px 0 0;
    font-size: .86rem;
    color: var(--muted);
    text-align: center;
}

.auth-alt a { color: var(--accent-dark); font-weight: 600; }

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 24px 0;
}

.account-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
    transition: border-color .18s var(--ease), background .18s var(--ease);
}

a.account-tile:hover { border-color: var(--accent); background: var(--accent-soft); }
.account-tile.is-static { opacity: .85; }

.account-tile-count {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink);
    word-break: break-all;
}

.account-tile-label { font-size: .8rem; color: var(--muted); }

.account-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Orders ---------- */
.orders-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .86rem;
}

.orders-table th,
.orders-table td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
    white-space: nowrap;
}

.orders-table th {
    background: var(--bg-soft);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.orders-table tbody tr:last-child td { border-bottom: 0; }
.orders-table tbody tr:hover { background: #fbfcfe; }
.orders-table tfoot th { background: var(--bg-soft); font-size: .95rem; }
.orders-table td:last-child, .orders-table th:last-child { text-align: right; }

.order-detail-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 32px;
    align-items: start;
    padding-bottom: 24px;
}

.order-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 0 0 18px;
    padding: 20px;
    background: var(--bg-soft);
    border-radius: var(--radius);
}

.order-meta dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.order-meta dd { margin: 4px 0 0; font-size: .86rem; font-weight: 500; }

.order-address {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    font-size: .86rem;
}

.order-address h3 { font-size: .95rem; margin-bottom: 10px; }
.order-address p { margin: 0; color: var(--muted); line-height: 1.6; }

/* ---------- Success / empty / 404 ---------- */
.success-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    margin: 52px 0 76px;
    text-align: center;
    box-shadow: var(--shadow);
}

.success-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 1.7rem;
    box-shadow: 0 0 0 8px rgba(18, 185, 129, .1);
    margin-bottom: 18px;
}

.success-title { font-size: 1.9rem; margin-bottom: 12px; }

.success-message { font-size: .96rem; color: var(--ink-3); max-width: 620px; margin: 0 auto 26px; }

.success-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 22px;
}

.success-meta > div {
    padding: 14px 18px;
    background: var(--bg-soft);
}

.success-meta dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.success-meta dd { margin: 3px 0 0; font-size: .86rem; font-weight: 500; }

.success-note { font-size: .82rem; color: var(--muted); margin-bottom: 26px; }

.success-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 64px 24px;
    background: var(--bg-soft);
    border: 1px dashed #d5dde9;
    border-radius: var(--radius-lg);
    margin: 20px 0 64px;
    color: var(--muted);
}

.empty-note { font-size: .96rem; color: var(--muted); margin: 0; }

.error-404 { border-style: solid; border-color: var(--line); background: #fff; }
.error-404-code {
    font-family: var(--font-head);
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 700;
    line-height: 1;
    color: transparent;
    background: linear-gradient(120deg, var(--accent), var(--sky));
    -webkit-background-clip: text;
    background-clip: text;
    margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: #a7b6cb;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; color: var(--accent); }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text small { color: #7d8fa8; }

.footer-blurb { font-size: .85rem; line-height: 1.6; color: #94a5bd; margin-bottom: 14px; }

.footer-entity {
    font-size: .72rem;
    color: #6f809a;
    font-family: var(--font-mono);
    line-height: 1.6;
}

.footer-col { display: flex; flex-direction: column; gap: 9px; }

.footer-col h4 {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 6px;
}

.footer-col a { font-size: .86rem; color: #a7b6cb; }
.footer-col a:hover { color: var(--accent); }

.footer-contact p { font-size: .84rem; margin: 0 0 6px; color: #94a5bd; }
.footer-company { color: #fff !important; font-weight: 600; }
.footer-contact a { color: #cdd9e8; }
.footer-contact a:hover { color: var(--accent); }
.footer-hours { font-size: .76rem !important; color: #7d8fa8 !important; line-height: 1.6; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 20px;
}

.footer-bottom-inner p { font-size: .78rem; color: #7d8fa8; margin: 0; }

.footer-legal { display: flex; align-items: center; gap: 10px; font-size: .78rem; }
.footer-legal a { color: #94a5bd; }
.footer-legal a:hover { color: #fff; }
.footer-legal span { color: #45536b; }

.pay-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.pay-badge {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #9fb0c8;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 5px;
    padding: 3px 7px;
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 18px);
    background: var(--ink);
    color: #fff;
    font-size: .86rem;
    padding: 12px 22px;
    border-radius: 100px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
    z-index: 100;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .search-form input { width: 112px; }
    .account-label { display: none; }
    .capability { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cat-strip { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
    .footer-col:nth-child(4) { display: none; }
}

@media (max-width: 980px) {
    :root { --header-h: 66px; }

    .nav-toggle { display: inline-flex; order: -1; }

    .main-nav {
        position: fixed;
        top: calc(var(--header-h) + 37px);
        left: 0;
        right: 0;
        bottom: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: #fff;
        padding: 18px 24px 40px;
        margin: 0;
        overflow-y: auto;
        border-top: 1px solid var(--line);
        z-index: 49;
    }

    body.nav-open .main-nav { display: flex; }

    .main-nav > a,
    .nav-dropdown-link {
        padding: 13px 12px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .nav-dropdown { position: static; }

    .dropdown-panel {
        position: static;
        display: flex;
        border: 0;
        box-shadow: none;
        padding: 0 0 6px 12px;
        min-width: 0;
    }

    .dropdown-panel::before { display: none; }

    .search-form { display: none; }

    .hero { padding: 44px 0 52px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-copy { max-width: 640px; }
    .hero-visual { max-width: 620px; }
    .float-card-top { left: 10px; }
    .float-card-bottom { right: 10px; }

    .section { padding: 60px 0; }
    .footprint-grid,
    .trust-grid,
    .pdp,
    .pdp-body,
    .contact-layout,
    .checkout-layout,
    .cart-layout,
    .order-detail-grid { grid-template-columns: 1fr; gap: 32px; }

    .trust-grid,
    .footprint-grid { gap: 36px; }

    .pdp { gap: 32px; }
    .pdp-media { max-width: 560px; }

    .cart-summary { position: static; }

    .product-grid, .product-grid-listing { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-col:nth-child(4) { display: flex; }
    .footer-brand { grid-column: 1 / -1; }

    .sla-grid { grid-template-columns: repeat(2, 1fr); }
    .role { grid-template-columns: 1fr; gap: 8px; }
    .static-page { padding-top: 36px; padding-bottom: 60px; }
}

@media (max-width: 720px) {
    .container { padding: 0 18px; }

    .announce-inner { font-size: .74rem; gap: 8px; }
    .announce-badge { display: none; }

    .header-inner { gap: 12px; }
    .logo-text { font-size: .92rem; }
    .logo-text small { font-size: .48rem; }
    .currency-switch { display: none; }

    .hero { padding: 34px 0 44px; }
    .hero-title { font-size: clamp(2.05rem, 8.4vw, 2.7rem); }
    .hero-sub { font-size: .98rem; }
    .hero-proof { gap: 22px; }
    .hero-proof strong { font-size: 1.25rem; }
    .hero-actions .btn { flex: 1 1 auto; }
    .float-card { display: none; }

    .capability { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
    .cat-strip { grid-template-columns: 1fr 1fr; }
    .product-grid, .product-grid-listing { grid-template-columns: 1fr; }
    .stat-strip { grid-template-columns: 1fr 1fr; gap: 18px; }
    .trust-list { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; padding-top: 44px; padding-bottom: 44px; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { flex: 1 1 auto; }

    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-search input { width: 100%; }
    .filter-search { width: 100%; }
    .filter-search .btn { flex-shrink: 0; }

    .pdp-perks { grid-template-columns: 1fr; }
    .pdp-buy { align-items: stretch; }
    .pdp-buy .btn { flex: 1 1 auto; }
    .qty-picker { flex-direction: row; align-items: center; gap: 10px; width: 100%; }
    .qty-picker label { margin: 0; }
    .qty-picker input { width: 72px; }

    .faq-grid { grid-template-columns: 1fr; }
    .mv-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .fact-row { flex-direction: column; gap: 2px; }
    .fact-row strong { text-align: left; }
    .step { grid-template-columns: 42px 1fr; gap: 12px; }
    .sla-grid { grid-template-columns: 1fr 1fr; }

    .cart-line {
        grid-template-columns: 60px 1fr auto;
        grid-template-areas:
            "media info remove"
            "media qty total";
        gap: 10px 14px;
        padding: 16px;
    }
    .cart-line-media { grid-area: media; }
    .cart-line-media img { width: 60px; height: 60px; }
    .cart-line-info { grid-area: info; }
    .cart-line-qty { grid-area: qty; }
    .cart-line-total { grid-area: total; min-width: 0; }
    .cart-line > form:last-child { grid-area: remove; }

    .checkout-form, .contact-form, .auth-card, .success-card { padding: 24px 20px; }
    .success-meta { grid-template-columns: 1fr; }
    .account-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .footer-brand { grid-column: auto; }

    .page-title { margin-top: 22px; }
    .page-hero { padding: 34px 0 28px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
