:root {
    --bg: #040404;
    --bg-2: #120606;
    --card-bg: rgba(18, 7, 7, 0.8);
    --text: #f6eded;
    --muted: #c7aaaa;
    --border: rgba(255, 78, 78, 0.22);
    --accent: #ff3b30;
    --accent-2: #d91f26;
    --accent-3: #7f0f14;
    --glow: 0 0 18px rgba(255, 59, 48, 0.34), 0 0 45px rgba(121, 10, 16, 0.26);
    --font-title: "Orbitron", "Space Grotesk", "Segoe UI", sans-serif;
    --font-body: "Space Grotesk", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: radial-gradient(1200px 800px at 10% -20%, rgba(147, 14, 24, 0.32), transparent 55%),
        radial-gradient(900px 700px at 120% 20%, rgba(255, 59, 48, 0.18), transparent 60%),
        linear-gradient(180deg, var(--bg), var(--bg-2));
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

body::before {
    background: rgba(255, 59, 48, 0.34);
    top: -220px;
    right: -180px;
}

body::after {
    background: rgba(123, 12, 22, 0.34);
    bottom: -240px;
    left: -160px;
}

header {
    display: block;
    padding: 16px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(13, 4, 4, 0.94), rgba(9, 3, 3, 0.9));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 5;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-products-link {
    display: none;
}

.mobile-quick-links {
    display: none;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--font-title);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 15px;
    min-width: 0;
    line-height: 1;
}

header a {
    text-decoration: none;
    color: var(--text);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(24, 7, 7, 0.82), rgba(11, 3, 3, 0.78));
    border: 1px solid rgba(255, 59, 48, 0.18);
    box-shadow: 0 0 0 1px rgba(255, 59, 48, 0.08), 0 0 16px rgba(121, 10, 16, 0.18);
}

.brand-logo-crop {
    width: 120px;
    height: 44px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.brand-text-fallback {
    display: none;
}

.spreadsheet-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 59, 48, 0.22);
    background: linear-gradient(135deg, rgba(24, 7, 7, 0.82), rgba(11, 3, 3, 0.78));
    box-shadow: 0 0 0 1px rgba(255, 59, 48, 0.08), 0 0 16px rgba(121, 10, 16, 0.18);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.spreadsheet-menu {
    position: relative;
}

.spreadsheet-menu summary {
    list-style: none;
    cursor: pointer;
}

.spreadsheet-menu summary::-webkit-details-marker {
    display: none;
}

.spreadsheet-menu[open] .spreadsheet-shortcut {
    border-color: rgba(255, 104, 96, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 104, 96, 0.12), 0 0 20px rgba(148, 16, 24, 0.24);
}

.spreadsheet-shortcut:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 104, 96, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 104, 96, 0.12), 0 0 20px rgba(148, 16, 24, 0.24);
}

.spreadsheet-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 260px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 59, 48, 0.24);
    background: linear-gradient(180deg, rgba(14, 4, 4, 0.98), rgba(10, 3, 3, 0.98));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42), 0 0 22px rgba(121, 10, 16, 0.18);
    z-index: 30;
}

.spreadsheet-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 59, 48, 0.12);
    background: linear-gradient(135deg, rgba(24, 7, 7, 0.95), rgba(14, 4, 4, 0.92));
    color: #fff4f4;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.spreadsheet-menu-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 104, 96, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 104, 96, 0.12), 0 0 18px rgba(148, 16, 24, 0.22);
}

.spreadsheet-menu-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #fff;
    padding: 4px;
}

.spreadsheet-shortcut-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #fff3f3;
    flex: 0 0 auto;
}

.spreadsheet-shortcut-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.spreadsheet-shortcut-text {
    color: #fff4f4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

header button {
    border: 1px solid rgba(255, 59, 48, 0.5);
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.18), rgba(121, 10, 16, 0.28));
    color: var(--text);
    padding: 8px 12px;
    border-radius: 999px;
    box-shadow: var(--glow);
    cursor: pointer;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.favorites-header-link {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 59, 48, 0.3);
    background: linear-gradient(135deg, rgba(24, 7, 7, 0.88), rgba(11, 3, 3, 0.82));
    box-shadow: 0 0 0 1px rgba(255, 59, 48, 0.08), 0 0 16px rgba(121, 10, 16, 0.18);
    color: #fff4f4;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.discord-header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 59, 48, 0.3);
    background: linear-gradient(135deg, rgba(24, 7, 7, 0.88), rgba(11, 3, 3, 0.82));
    box-shadow: 0 0 0 1px rgba(255, 59, 48, 0.08), 0 0 16px rgba(121, 10, 16, 0.18);
    color: #fff4f4;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.discord-header-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 104, 96, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 104, 96, 0.12), 0 0 20px rgba(148, 16, 24, 0.24);
}

.discord-header-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.discord-header-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.discord-header-text {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.favorites-header-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 104, 96, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 104, 96, 0.12), 0 0 20px rgba(148, 16, 24, 0.24);
}

.favorites-header-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.favorites-header-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.favorites-header-text {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.favorites-header-count {
    position: absolute;
    top: -4px;
    right: -3px;
}

.nav-toggle {
    display: none;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-top: 10px;
    flex-wrap: wrap;
}

.mobile-nav-head,
.mobile-nav-label,
.mobile-nav-close,
.mobile-nav-backdrop {
    display: none;
}

.top-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 59, 48, 0.5);
    background: linear-gradient(135deg, rgba(24, 7, 7, 0.95), rgba(14, 4, 4, 0.94));
    box-shadow: 0 0 0 1px rgba(255, 59, 48, 0.12), 0 0 14px rgba(121, 10, 16, 0.26);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff3f3;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}

.top-nav a:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 104, 96, 0.9);
    box-shadow: 0 0 0 1px rgba(255, 104, 96, 0.2), 0 0 18px rgba(148, 16, 24, 0.4);
}

.top-nav a:active {
    transform: translateY(0);
}

@media (max-width: 900px) {
    body.mobile-nav-open {
        overflow: hidden;
    }

    header {
        display: grid;
        grid-template-columns: 1fr;
        padding: 12px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(7, 2, 2, 0.96);
    }

    header.nav-open {
        z-index: 1202;
    }

    .header-main {
        gap: 8px;
    }

    .mobile-products-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        min-width: 0;
        flex: 1 1 0;
        padding: 8px 12px;
        border-radius: 999px;
        border: 1px solid rgba(255, 59, 48, 0.5);
        background: linear-gradient(135deg, rgba(255, 59, 48, 0.18), rgba(121, 10, 16, 0.28));
        box-shadow: var(--glow);
        color: var(--text);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        text-align: center;
    }

    .mobile-spreadsheet-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        min-width: 0;
        flex: 1 1 0;
        min-height: auto;
        gap: 6px;
        padding: 8px 12px;
        border-radius: 999px;
        border: 1px solid rgba(255, 59, 48, 0.5);
        background: linear-gradient(135deg, rgba(255, 59, 48, 0.18), rgba(121, 10, 16, 0.28));
        box-shadow: var(--glow);
        color: var(--text);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        text-align: center;
    }

    .spreadsheet-menu-mobile {
        flex: 1 1 0;
        min-width: 0;
    }

    .spreadsheet-menu-mobile .spreadsheet-menu-panel {
        left: auto;
        right: 0;
        min-width: min(300px, calc(100vw - 24px));
        width: min(300px, calc(100vw - 24px));
    }

    .mobile-quick-links {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }

    .site-brand {
        font-size: 13px;
        gap: 8px;
        min-width: 0;
    }

    .brand-link {
        padding: 4px 8px;
    }

    .brand-logo-crop {
        width: 72px;
        height: 28px;
    }

    .spreadsheet-shortcut {
        min-height: 36px;
        padding: 6px 9px;
        gap: 6px;
    }

    .spreadsheet-shortcut-icon {
        width: 18px;
        height: 18px;
    }

    .spreadsheet-shortcut-text {
        display: inline;
        font-size: 9px;
        letter-spacing: 0.08em;
    }

    .mobile-spreadsheet-link {
        box-shadow: var(--glow);
    }

    .mobile-spreadsheet-link .spreadsheet-shortcut-icon {
        width: 16px;
        height: 16px;
    }

    .mobile-spreadsheet-link .spreadsheet-shortcut-text {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.04em;
    }

    .site-brand .spreadsheet-shortcut {
        display: none;
    }

    .top-nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(88vw, 360px);
        margin-top: 0;
        padding: 12px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        background: linear-gradient(180deg, rgba(10, 3, 3, 0.99), rgba(20, 5, 5, 0.98));
        border-right: 1px solid rgba(255, 59, 48, 0.16);
        box-shadow: 18px 0 38px rgba(0, 0, 0, 0.45);
        transform: translateX(-105%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.28s ease, opacity 0.22s ease;
        z-index: 1201;
    }

    .top-nav a {
        width: 100%;
        min-width: 0;
        justify-content: space-between;
        padding: 14px 14px;
        border-radius: 12px;
        border: 1px solid rgba(255, 59, 48, 0.18);
        background: linear-gradient(130deg, rgba(27, 8, 8, 0.95), rgba(16, 4, 4, 0.95));
        box-shadow: inset 0 0 0 1px rgba(255, 59, 48, 0.04);
        font-size: 13px;
        letter-spacing: 0;
        text-transform: none;
        white-space: nowrap;
    }

    .header-controls {
        margin-left: auto;
        gap: 8px;
    }

    .favorites-header-link {
        display: inline-flex;
        min-height: 36px;
        padding: 7px 10px;
    }

    .discord-header-link {
        min-height: 36px;
        padding: 7px 10px;
    }

    .favorites-header-text {
        display: none;
    }

    .discord-header-text {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 80px;
        padding: 8px 12px;
        border-radius: 999px;
        border: 1px solid rgba(255, 59, 48, 0.55);
        background: linear-gradient(135deg, rgba(24, 7, 7, 0.95), rgba(14, 4, 4, 0.92));
        color: #fff3f3;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: none;
    }

    header.nav-open .top-nav {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 0 10px;
        border-bottom: 1px solid rgba(255, 59, 48, 0.14);
        margin-bottom: 2px;
    }

    .mobile-nav-head strong {
        font-size: 22px;
        letter-spacing: 0.01em;
        color: #ffffff;
    }

    .mobile-nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: 1px solid rgba(255, 59, 48, 0.18);
        background: rgba(23, 6, 6, 0.96);
        color: #ffffff;
        font-size: 24px;
        line-height: 1;
        padding: 0;
    }

    .mobile-nav-label {
        display: block;
        margin: 2px 0 2px;
        color: rgba(255, 206, 206, 0.74);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 11px;
        font-weight: 700;
    }

    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1200;
        background: rgba(6, 1, 1, 0.68);
        backdrop-filter: blur(2px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.24s ease;
    }

    header.nav-open+.mobile-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

.currency-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.currency-toggle select {
    border: 1px solid var(--border);
    background: rgba(15, 4, 4, 0.82);
    color: var(--text);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.06em;
    box-shadow: inset 0 0 0 1px rgba(255, 59, 48, 0.05);
}

.currency-toggle label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

main {
    position: relative;
    z-index: 1;
}

.breadcrumbs {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 16px 0;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumbs a {
    color: var(--text);
    text-decoration: none;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.4);
}

.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    border-top: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(11, 3, 3, 0.94), rgba(6, 2, 2, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 59, 48, 0.05);
}

.site-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 16px 28px;
    display: grid;
    gap: 16px;
}

.site-footer-brand p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.site-footer-brand strong {
    color: #fff4f4;
    letter-spacing: 0.04em;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.site-footer-links a:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 95, 95, 0.48);
    box-shadow: 0 0 18px rgba(145, 15, 23, 0.16);
}

.site-notice {
    position: fixed;
    right: 14px;
    bottom: 16px;
    z-index: 20;
    width: min(360px, calc(100vw - 28px));
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 59, 48, 0.42);
    background: linear-gradient(120deg, rgba(20, 5, 5, 0.96), rgba(56, 10, 14, 0.96));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42), 0 0 24px rgba(145, 15, 23, 0.24);
    opacity: 0;
    transform: translateX(42px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.site-notice-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ff3b30;
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.65);
    flex: 0 0 auto;
    margin-top: 2px;
    animation: noticePulse 1.6s infinite;
}

.site-notice p {
    margin: 0;
    font-size: 12px;
    color: #dff7ff;
    letter-spacing: 0.03em;
}

@keyframes noticePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.62);
    }

    70% {
        box-shadow: 0 0 0 11px rgba(255, 59, 48, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

.site-notice button {
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(4, 10, 20, 0.85);
    color: #f2f6ff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.site-notice.is-hidden {
    opacity: 0;
    transform: translateX(28px);
    pointer-events: none;
}

.site-notice.is-visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hero {
    padding: 16px 16px 0;
}

.hero-card {
    border: 1px solid rgba(49, 247, 255, 0.35);
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(12, 18, 35, 0.8), rgba(7, 10, 18, 0.95));
    box-shadow: var(--glow);
}

.hero-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 11px;
    font-weight: 600;
}

.hero-title {
    margin: 0 0 10px;
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: clamp(24px, 4vw, 38px);
}

.hero-subtitle {
    margin: 0 0 16px;
    color: var(--muted);
    max-width: 520px;
}

.hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-tags span {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(49, 247, 255, 0.08);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    overflow: hidden;
    min-width: 0;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: floatIn 0.6s ease both;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(49, 247, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--glow);
}

.product-image {
    width: calc(100% - 16px);
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(14, 20, 38, 0.6), rgba(5, 8, 15, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 8px;
    border-radius: 14px;
    box-shadow: 0 0 16px rgba(255, 59, 48, 0.36), 0 0 38px rgba(121, 10, 16, 0.3);
    overflow: hidden;
}

.product-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.12), rgba(121, 10, 16, 0.14));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #260000;
    background: linear-gradient(120deg, #ffb347 0%, #ff6d5f 55%, #ff3d9a 100%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 111, 87, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.placeholder {
    color: var(--muted);
    font-size: 14px;
}

.product-info {
    padding: 10px 10px 6px;
}

.product-info h3 {
    margin: 0 0 6px;
    font-size: 13px;
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.product-price.detail {
    font-size: clamp(30px, 8vw, 44px);
    font-weight: 800;
    line-height: 1;
    margin: 0 0 14px;
}

.cta {
    font-size: 13px;
    color: var(--muted);
}

.product-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px 16px 32px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(12, 4, 4, 0.78);
}

.mobile-only {
    display: none;
}

.gallery {
    position: relative;
    display: grid;
    gap: 14px;
}

.details h1 {
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
    font-size: 20px;
}

.details p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 12px;
    font-size: 14px;
}

.detail-favorite-row {
    margin: 0 0 14px;
}

.detail-favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #ffeaea;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.detail-favorite-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.detail-favorite-btn.is-active {
    background: linear-gradient(120deg, rgba(255, 96, 96, 0.22), rgba(127, 15, 20, 0.36));
    color: #fff5f5;
    border-color: rgba(255, 111, 111, 0.5);
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
}

.grid img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.gallery-track {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0;
    padding: 4px 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-track img {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 0 0 100%;
    height: clamp(320px, 72vw, 560px);
    object-fit: contain;
    object-position: center;
    scroll-snap-align: start;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    background: rgba(10, 3, 4, 0.72);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding: 4px 0 10px;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.qc-data-note {
    margin: 10px 6px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.gallery-thumb {
    border: 1px solid var(--border);
    background: rgba(12, 4, 4, 0.78);
    padding: 2px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background: rgba(10, 3, 4, 0.75);
}

.gallery-thumb.active {
    border-color: rgba(255, 59, 48, 0.72);
    box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.2);
}

body.lightbox-open {
    overflow: hidden;
}

body.lightbox-open header {
    z-index: 0;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.image-lightbox.is-open {
    display: block;
}

.image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 1, 1, 0.9);
    backdrop-filter: blur(5px);
}

.image-lightbox-shell {
    position: absolute;
    inset: 16px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    background: linear-gradient(180deg, rgba(14, 4, 4, 0.98), rgba(7, 2, 2, 0.98));
    border: 1px solid rgba(255, 59, 48, 0.16);
    border-radius: 16px;
    padding: 12px;
}

.image-lightbox-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.image-lightbox-btn {
    border: 1px solid rgba(255, 59, 48, 0.2);
    background: rgba(18, 5, 5, 0.95);
    color: #fff1f1;
    border-radius: 10px;
    min-width: 44px;
    height: 38px;
    padding: 0 10px;
    cursor: pointer;
    font-weight: 700;
}

.image-lightbox-btn.danger {
    color: #ffb8b8;
    border-color: rgba(255, 113, 113, 0.45);
}

.lightbox-close-btn {
    min-width: 56px;
    height: 44px;
    font-size: 20px;
    font-weight: 800;
    color: #ffe7e7;
    background: rgba(40, 8, 12, 0.95);
    border-color: rgba(255, 113, 113, 0.72);
    box-shadow: 0 0 0 1px rgba(255, 113, 113, 0.18), 0 0 16px rgba(255, 80, 80, 0.24);
}

.image-lightbox-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    min-height: 0;
}

.image-lightbox-stage {
    background: rgba(7, 2, 2, 0.96);
    border: 1px solid rgba(255, 59, 48, 0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
    touch-action: none;
}

.image-lightbox-stage img {
    max-width: 100%;
    max-height: min(72vh, 900px);
    object-fit: contain;
    transform-origin: center;
    transition: transform 0.16s ease;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.image-lightbox-nav {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 59, 48, 0.2);
    background: rgba(18, 5, 5, 0.95);
    color: #fff1f1;
    cursor: pointer;
    font-size: 20px;
}

.image-lightbox-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.image-lightbox-thumb {
    border: 1px solid rgba(255, 59, 48, 0.16);
    background: rgba(12, 4, 4, 0.9);
    border-radius: 10px;
    padding: 2px;
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    cursor: pointer;
}

.image-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.image-lightbox-thumb.active {
    border-color: rgba(255, 59, 48, 0.72);
    box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.24);
}

.buy-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 14px;
}

.similar-products-section {
    padding: 4px 16px 36px;
}

.similar-products-header {
    margin-bottom: 12px;
}

.similar-products-kicker {
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.similar-products-header h2 {
    margin: 0;
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: clamp(18px, 3vw, 24px);
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.similar-products-grid .product-card {
    background: linear-gradient(180deg, rgba(24, 6, 8, 0.95), rgba(10, 2, 3, 0.96));
    border: 1px solid rgba(177, 22, 33, 0.52);
    border-radius: 16px;
    box-shadow: 0 0 18px rgba(145, 15, 23, 0.22);
    overflow: hidden;
    min-width: 0;
}

.similar-products-grid .product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 92, 92, 0.8);
    box-shadow: 0 0 26px rgba(145, 15, 23, 0.35);
}

.similar-products-grid .product-image {
    margin: 8px;
    border-radius: 12px;
    width: calc(100% - 16px);
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle at 50% 22%, rgba(143, 18, 28, 0.34), rgba(12, 3, 4, 0.9));
    box-shadow: 0 0 14px rgba(145, 15, 23, 0.35);
}

.similar-products-grid .product-image img {
    object-fit: contain;
    padding: 6px;
}

.similar-products-grid .product-info {
    text-align: center;
    padding: 8px 10px 6px;
}

.similar-products-grid .product-info h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    min-height: auto;
    margin: 0 0 6px;
    color: #fff;
    display: block;
    -webkit-line-clamp: unset;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.similar-products-grid .product-price {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 6px;
}

.similar-products-grid .card-actions {
    border-top: 1px solid rgba(177, 22, 33, 0.35);
    padding: 8px;
}

.similar-products-grid .card-btn {
    border: 2px solid #b11621;
    background: #ffffff;
    color: #8e1119;
    border-radius: 999px;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    padding: 9px 0;
    box-shadow: 0 0 16px rgba(145, 15, 23, 0.4);
}

.similar-products-grid .card-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(145, 15, 23, 0.5);
}

.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    text-align: center;
    background: linear-gradient(120deg, rgba(255, 59, 48, 0.9), rgba(127, 15, 20, 0.92));
    color: #fff7f7;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 10px;
    box-shadow: var(--glow);
}

.buy-btn-premium {
    --platform-accent: #ff3b30;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 180, 180, 0.46);
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: none;
    color: #5a5151;
    background: linear-gradient(180deg, #fffdfd 0%, #f2eaea 100%);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.32) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    padding: 14px 16px;
}

.buy-btn-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.buy-btn-premium::after {
    content: "";
    position: absolute;
    top: -130%;
    left: -35%;
    width: 30%;
    height: 360%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: left 0.45s ease, opacity 0.3s ease;
    pointer-events: none;
}

.buy-btn-premium:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 205, 205, 0.82);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34), 0 0 20px rgba(255, 59, 48, 0.16);
}

.buy-btn-premium:hover::after {
    left: 125%;
    opacity: 1;
}

.buy-btn-kakobuy {
    --platform-accent: #ff4f6d;
}

.buy-btn-oopbuy {
    --platform-accent: #ff6b57;
}

.buy-btn-acbuy {
    --platform-accent: #b11621;
}

.buy-btn-weidian {
    --platform-accent: #ff6a54;
}

.buy-btn.with-logo {
    gap: 18px;
}

.buy-btn-icon {
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
}

.buy-action-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: stretch;
}

.buy-action-row .buy-btn {
    width: 100%;
    justify-content: center;
}

.copy-link-btn {
    width: 52px;
    border-radius: 12px;
    border: 1px solid rgba(255, 59, 48, 0.18);
    background: linear-gradient(180deg, rgba(19, 5, 5, 0.96), rgba(10, 3, 3, 0.98));
    color: #fff2f2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 59, 48, 0.04), 0 10px 20px rgba(0, 0, 0, 0.28);
}

.copy-link-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.copy-link-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 95, 95, 0.38);
    box-shadow: inset 0 0 0 1px rgba(255, 59, 48, 0.06), 0 12px 24px rgba(0, 0, 0, 0.34), 0 0 14px rgba(145, 15, 23, 0.16);
}

.copy-link-btn.copied {
    color: #ffd0d0;
    border-color: rgba(255, 120, 120, 0.62);
    box-shadow: inset 0 0 0 1px rgba(255, 59, 48, 0.08), 0 0 16px rgba(255, 120, 120, 0.22);
}

.buy-btn-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    flex: 0 0 auto;
}

.buy-btn-logo.kakobuy-logo {
    width: 32px;
    height: 32px;
    transform: scale(1.9);
    transform-origin: center;
}

.buy-btn-logo.weidian-logo {
    width: 28px;
    height: 28px;
}

.buy-btn.secondary {
    background: rgba(128, 150, 200, 0.2);
    color: var(--text);
    box-shadow: none;
    border: 1px solid var(--border);
}

.dark {
    --bg: #040404;
    --bg-2: #120606;
    --card-bg: rgba(18, 7, 7, 0.8);
    --text: #f6eded;
    --muted: #c7aaaa;
    --border: rgba(255, 78, 78, 0.22);
    --accent: #ff3b30;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-link {
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.card-actions {
    display: flex;
    gap: 8px;
    padding: 8px 10px 10px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.card-actions.vertical {
    flex-direction: column;
}

.card-btn {
    flex: 1;
    padding: 7px 0;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    background: linear-gradient(120deg, rgba(255, 59, 48, 0.95), rgba(127, 15, 20, 0.92));
    color: #fff7f7;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.card-btn.secondary {
    background: rgba(128, 150, 200, 0.2);
    color: var(--text);
    box-shadow: none;
    border: 1px solid var(--border);
}

.product-card .card-btn.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffe6e6;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.product-card .card-btn.secondary:hover {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.26);
}

.favorite-toggle {
    cursor: pointer;
}

.favorite-toggle.is-active {
    background: linear-gradient(120deg, rgba(255, 96, 96, 0.22), rgba(127, 15, 20, 0.36));
    color: #fff5f5;
    border-color: rgba(255, 111, 111, 0.5);
}

.favorite-toggle-icon {
    font-size: 14px;
    line-height: 1;
}

.favorite-toggle-label {
    white-space: nowrap;
}

.favorites-link-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 59, 48, 0.92);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.favorites-page {
    padding: 24px 12px 40px;
}

.favorites-shell {
    max-width: 1280px;
    margin: 0 auto;
}

.favorites-hero {
    margin-bottom: 16px;
}

.favorites-kicker {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.favorites-hero h1 {
    margin: 0;
}

.favorites-copy {
    max-width: 760px;
    color: var(--muted);
}

.favorites-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.favorites-count-copy {
    margin: 0;
    color: var(--muted);
}

.favorites-clear-btn,
.favorites-empty-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
}

.favorites-empty {
    padding: 24px 18px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 18px;
}

.favorites-empty h2 {
    margin-top: 0;
}

.favorites-grid:empty {
    display: none;
}

body.marketing-popup-open {
    overflow: hidden;
}

.marketing-popup {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: none;
}

.marketing-popup.is-visible {
    display: block;
}

.marketing-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 1, 1, 0.82);
    backdrop-filter: blur(6px);
}

.marketing-popup-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(92vw, 460px);
    transform: translate(-50%, -50%);
    padding: 22px 18px 18px;
    border-radius: 22px;
    border: 1px solid rgba(177, 22, 33, 0.4);
    background:
        radial-gradient(circle at top right, rgba(255, 92, 92, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(20, 5, 7, 0.98), rgba(8, 2, 3, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.marketing-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
}

.marketing-popup-kicker {
    margin: 0 0 6px;
    color: #ff6d5f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.marketing-popup-dialog h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 5vw, 32px);
}

.marketing-popup-copy {
    margin: 10px 0 0;
    color: rgba(255, 236, 236, 0.88);
    line-height: 1.6;
}

.marketing-popup-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.marketing-popup-field {
    display: grid;
    gap: 6px;
}

.marketing-popup-field span {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.marketing-popup-field input {
    width: 100%;
    border-radius: 999px;
    border: 2px solid #b11621;
    background: rgba(12, 4, 4, 0.88);
    color: #ffffff;
    padding: 11px 14px;
    font-size: 13px;
    outline: none;
    box-shadow: inset 0 0 14px rgba(145, 15, 23, 0.2), 0 0 14px rgba(145, 15, 23, 0.18);
}

.marketing-popup-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 236, 236, 0.88);
    font-size: 12px;
    line-height: 1.5;
}

.marketing-popup-consent input {
    margin-top: 2px;
}

.marketing-popup-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 2px solid #b11621;
    background: #ffffff;
    color: #8e1119;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(145, 15, 23, 0.4);
}

.marketing-popup-status {
    margin: 0;
    min-height: 18px;
    font-size: 12px;
    color: rgba(255, 236, 236, 0.88);
}

.marketing-popup-status.is-error {
    color: #ffb4ae;
}

.marketing-popup-status.is-success {
    color: #b6f7c7;
}

.qc-page {
    padding: 18px 16px 32px;
    display: grid;
    gap: 16px;
}

.qc-header {
    background: linear-gradient(135deg, rgba(12, 18, 35, 0.85), rgba(7, 10, 18, 0.95));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--glow);
}

.qc-kicker {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: var(--accent);
}

.qc-title {
    margin: 0 0 6px;
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 18px;
}

.qc-subtitle {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.qc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(49, 247, 255, 0.5);
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(49, 247, 255, 0.08);
}

.qc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.qc-grid img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

@media (min-width: 560px) {
    .hero {
        padding: 18px 22px 0;
    }

    .hero-card {
        padding: 22px;
        border-radius: 20px;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
        padding: 18px;
        gap: 14px;
    }

    .product-info h3 {
        font-size: 14px;
    }

    .product-image {
        aspect-ratio: 3 / 2;
    }

    .card-btn {
        font-size: 11px;
        letter-spacing: 0.05em;
    }

    .product-page {
        padding: 28px 22px;
    }

    .similar-products-section {
        padding: 8px 22px 38px;
    }

    .similar-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .details h1 {
        font-size: 22px;
    }

    .details p {
        font-size: 15px;
    }

    .qc-page {
        padding: 22px 22px 36px;
        gap: 18px;
    }

    .qc-header {
        padding: 18px;
    }

    .qc-title {
        font-size: 20px;
    }

    .qc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .image-lightbox-shell {
        inset: 26px;
        padding: 14px;
    }
}

@media (min-width: 820px) {
    .hero {
        padding: 24px clamp(20px, 6vw, 60px) 0;
    }

    .hero-card {
        padding: clamp(22px, 4vw, 36px);
        border-radius: 22px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: clamp(18px, 2.5vw, 32px);
        padding: clamp(24px, 4vw, 56px);
    }

    .product-card {
        border-radius: 18px;
    }

    .product-image {
        aspect-ratio: 16 / 9;
    }

    .product-info {
        padding: 12px 14px 8px;
    }

    .card-actions {
        padding: 10px 12px 12px;
        gap: 8px;
    }

    .card-btn {
        font-size: 13px;
        padding: 9px 0;
    }

    .product-page {
        grid-template-columns: minmax(390px, 0.84fr) minmax(560px, 1.16fr);
        gap: 46px;
        padding: 40px;
        align-items: start;
        max-width: 1520px;
        margin: 0 auto;
    }

    .similar-products-section {
        padding: 0 40px 48px;
    }

    .similar-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .details h1 {
        font-size: clamp(34px, 3vw, 54px);
        line-height: 1.02;
        margin-bottom: 14px;
    }

    .details p {
        font-size: 15px;
        max-width: 700px;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        padding: 24px clamp(20px, 5vw, 40px) 40px;
    }

    .gallery-track {
        display: flex;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0;
        border-radius: 18px;
        border: 1px solid var(--border);
        background: rgba(4, 8, 15, 0.92);
    }

    .gallery-track img {
        flex: 0 0 100%;
        width: 100%;
        height: clamp(400px, 38vw, 620px);
        border-radius: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
        padding: 14px;
    }

    .gallery .qc-data-note {
        margin: 18px 0 10px;
    }

    .gallery .gallery-thumbs {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
        padding: 0;
    }

    .gallery .gallery-thumb {
        width: 100%;
        padding: 3px;
        border-radius: 12px;
    }

    .gallery .gallery-thumb img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 9px;
        object-fit: cover;
    }

    .qc-page {
        padding: 32px clamp(24px, 6vw, 56px) 48px;
        gap: 24px;
    }

    .qc-header {
        padding: 22px 24px;
    }

    .qc-title {
        font-size: 22px;
    }

    .qc-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 901px) {
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .header-main {
        flex: 0 0 auto;
    }

    header {
        padding: 22px clamp(20px, 6vw, 48px);
    }

    .site-brand {
        font-size: clamp(18px, 2vw, 22px);
    }

    .brand-logo-crop {
        width: 132px;
        height: 48px;
    }

    .site-footer-inner {
        grid-template-columns: 1.2fr 1.8fr;
        align-items: start;
    }

    header button {
        padding: 10px 14px;
    }

    .top-nav a {
        min-width: 96px;
        font-size: 11px;
    }

    .top-nav {
        margin-top: 0;
        flex-wrap: nowrap;
    }
}

@media (max-width: 560px) {
    .mobile-only {
        display: inline-flex;
    }

    .back-btn {
        width: fit-content;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .buy-buttons {
        position: sticky;
        bottom: 12px;
        background: rgba(5, 8, 15, 0.85);
        padding: 12px;
        border-radius: 14px;
        border: 1px solid var(--border);
        backdrop-filter: blur(10px);
    }

    .image-lightbox-shell {
        inset: 0;
        border-radius: 0;
        border: 0;
        padding: 10px;
    }

    .image-lightbox-main {
        grid-template-columns: 1fr;
    }

    .image-lightbox-nav {
        display: none;
    }

    .image-lightbox-stage img {
        max-height: 66vh;
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
