@import url("/assets/surge-fonts.css");
@import url("/assets/surge-brand.css");

:root {
    --bg: #0a0a0a;
    --card: #121214;
    --muted: #9ca3af;
    --border: #232326;
    --primary: var(--surge-orange);
    --primary-hover: var(--surge-orange-hover);
    --primary-light: var(--surge-orange-light);
    --primary-glow: var(--surge-orange-glow);
    --danger: #ef4444;
    --ok: #22c55e;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: #fff;
}

body {
    font-family: "Space Mono", monospace;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    overflow-x: clip;
    max-width: 100%;
}

.surge-page-wrap {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem max(0.75rem, env(safe-area-inset-left)) 1.25rem max(0.75rem, env(safe-area-inset-right));
}

@media (min-width: 640px) {
    .surge-page-wrap {
        padding: 1.25rem 1rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .surge-page-wrap {
        padding: 1.5rem 1rem;
    }
}

.surge-heading {
    font-family: var(--surge-display);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.surge-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: .75rem;
}

.surge-btn {
    border: 1px solid var(--border);
    background: #161616;
    color: #fff;
    font-weight: 700;
    border-radius: .6rem;
    padding: .7rem 1rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    cursor: pointer;
    transition: .2s ease;
    -webkit-tap-highlight-color: rgba(245, 124, 0, 0.25);
    touch-action: manipulation;
}

.surge-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.surge-btn-primary {
    background: var(--primary);
    color: #1a1000;
    border-color: var(--primary);
    font-weight: 800;
}

.surge-btn-primary:hover {
    background: var(--primary-hover);
    color: #0a0a0a;
}

.surge-pill {
    font-size: .72rem;
    border: 1px solid var(--border);
    background: #111;
    border-radius: 999px;
    padding: .25rem .65rem;
}

.surge-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.surge-grid.cols-2,
.surge-grid.cols-3,
.surge-grid.cols-4 {
    grid-template-columns: 1fr;
}

/* Store / kits: 2 columns on small tablets */
@media (min-width: 480px) and (max-width: 767px) {
    .surge-grid.cols-2,
    .surge-grid.cols-3,
    .surge-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .surge-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .surge-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .surge-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .surge-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
}

/* ——— Site header (mobile menu + touch targets) ——— */
.surge-site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: #0a0a0a;
    border-bottom: 1px solid #1f1f1f;
    padding-top: env(safe-area-inset-top, 0);
}

.surge-header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.65rem max(0.75rem, env(safe-area-inset-left)) 0.65rem max(0.75rem, env(safe-area-inset-right));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
}

.surge-brand {
    text-decoration: none;
    color: #fff;
    font-family: var(--surge-display);
    font-weight: 800;
    letter-spacing: 0.1em;
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    line-height: 1.2;
    padding: 0.35rem 0;
    -webkit-tap-highlight-color: transparent;
}

.surge-header-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.surge-nav-auth-slot {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.surge-nav-user {
    color: #9ca3af;
    font-size: 0.72rem;
    font-family: var(--surge-display);
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.surge-nav-login,
.surge-nav-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-family: var(--surge-display);
    font-weight: 800;
    font-size: 0.72rem;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(245, 124, 0, 0.3);
    touch-action: manipulation;
}

.surge-nav-login {
    background: var(--primary);
    color: #1a1000;
    border: 1px solid var(--primary);
}

/* Profile dropdown — store nav (matches console Surge style) */
.surge-profile-menu-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #1a1000;
    font-family: var(--surge-display);
    font-weight: 800;
    padding: 0.45rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid var(--primary);
    letter-spacing: 0.04em;
    transition: box-shadow 0.2s ease, filter 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.surge-profile-menu {
    position: relative;
}

.surge-profile-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.25rem 0.9rem 0.25rem 0.25rem;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(245, 124, 0, 0.22);
    border-radius: 9999px;
    cursor: pointer;
    color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.surge-profile-menu-trigger:hover,
.surge-profile-menu.is-open .surge-profile-menu-trigger {
    border-color: rgba(245, 124, 0, 0.5);
    box-shadow: 0 0 14px var(--primary-glow);
    background: rgba(20, 20, 20, 0.95);
}

.surge-profile-menu-avatar,
.surge-profile-menu-avatar img {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.surge-profile-menu-avatar {
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    overflow: hidden;
    background: rgba(245, 124, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.surge-profile-menu-avatar img {
    border: none;
    box-shadow: none;
}

.surge-profile-menu-avatar i {
    color: var(--primary);
    font-size: 0.75rem;
}

.surge-profile-menu-name {
    font-family: var(--surge-display);
    font-weight: 700;
    color: #fff;
    font-size: 0.72rem;
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.04em;
}

.surge-profile-menu-chevron {
    font-size: 0.625rem;
    color: rgba(245, 124, 0, 0.5);
    transition: transform 0.2s ease;
}

.surge-profile-menu.is-open .surge-profile-menu-chevron {
    transform: rotate(180deg);
}

.surge-profile-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 0.45rem);
    min-width: 100%;
    width: max-content;
    max-width: min(15rem, calc(100vw - 2rem));
    z-index: 120;
}

.surge-profile-menu.is-open .surge-profile-menu-dropdown {
    display: block;
}

.surge-profile-menu-panel {
    background: rgba(13, 13, 13, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 124, 0, 0.16);
    border-left: 3px solid var(--primary);
    border-radius: 0.75rem;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(245, 124, 0, 0.05);
    overflow: hidden;
}

.surge-profile-menu-header {
    padding: 0.85rem 1rem 0.75rem;
    background: linear-gradient(
        180deg,
        rgba(245, 124, 0, 0.16) 0%,
        rgba(245, 124, 0, 0.04) 55%,
        transparent 100%
    );
    border-bottom: 1px solid rgba(245, 124, 0, 0.1);
}

.surge-profile-menu-header-label {
    margin: 0;
    font-family: var(--surge-display);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 124, 0, 0.52);
}

.surge-profile-menu-header-name {
    margin: 0.3rem 0 0;
    font-family: var(--surge-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.surge-profile-menu-items {
    padding: 0.35rem 0;
}

.surge-profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    font-family: "Space Mono", monospace;
    font-size: 0.8125rem;
    color: #d1d5db;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    line-height: 1.4;
    -webkit-tap-highlight-color: rgba(245, 124, 0, 0.15);
    touch-action: manipulation;
}

.surge-profile-menu-item:hover,
.surge-profile-menu-item:focus-visible {
    background: rgba(245, 124, 0, 0.1);
    color: var(--primary);
    outline: none;
}

.surge-profile-menu-item i {
    width: 1rem;
    text-align: center;
    color: var(--primary);
    font-size: 0.82rem;
    opacity: 0.85;
}

.surge-profile-menu-divider {
    border-top: 1px solid rgba(245, 124, 0, 0.1);
    margin: 0.2rem 0;
}

.surge-profile-menu-item-admin {
    color: #f57c00;
}

.surge-profile-menu-item-admin i {
    color: #f57c00;
}

.surge-profile-menu-item-admin:hover,
.surge-profile-menu-item-admin:focus-visible {
    background: rgba(245, 124, 0, 0.1);
    color: #ffd54f;
}

.surge-profile-menu-item-logout {
    color: #d4845a;
}

.surge-profile-menu-item-logout i {
    color: #c9734a;
}

.surge-profile-menu-item-logout:hover,
.surge-profile-menu-item-logout:focus-visible {
    background: rgba(201, 115, 74, 0.12);
    color: #e8a07a;
}

.surge-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: 0.5rem;
    border: 1px solid #374151;
    background: #161616;
    color: #e5e7eb;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(245, 124, 0, 0.25);
    touch-action: manipulation;
}

.surge-nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    gap: 0.15rem;
    padding: 0.35rem 0 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.surge-site-header.surge-nav-open .surge-nav-menu {
    display: flex;
}

.surge-nav-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 0.5rem;
    min-height: 2.75rem;
    text-decoration: none;
    font-family: var(--surge-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 0.45rem;
    -webkit-tap-highlight-color: rgba(245, 124, 0, 0.2);
    touch-action: manipulation;
}

.surge-nav-link i {
    width: 1.1rem;
    text-align: center;
    opacity: 0.9;
}

@media (min-width: 960px) {
    .surge-header-inner {
        flex-wrap: nowrap;
        padding: 0.8rem 1rem;
        gap: 1rem;
    }

    .surge-nav-toggle {
        display: none;
    }

    .surge-nav-menu {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        width: auto;
        flex: 1;
        order: 0;
        gap: 0.65rem 1rem;
        padding: 0;
        border-top: none;
    }

    .surge-site-header.surge-nav-open .surge-nav-menu {
        display: flex !important;
    }

    .surge-nav-link {
        padding: 0.4rem 0.35rem;
        min-height: auto;
    }

    .surge-nav-user {
        max-width: 8rem;
    }
}

/* Full-width banner: fills card edge-to-edge; may crop top/bottom on wide assets */
.surge-store-banner-wrap {
    width: 100%;
    height: clamp(150px, 24vw, 280px);
    margin-bottom: 1.25rem;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(245, 124, 0, 0.28);
    box-shadow: 0 0 40px rgba(245, 124, 0, 0.12);
    background: #0a0806;
}

.surge-store-banner {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 0;
    background: #0a0806;
}

/* Square product image: fills card width; image covers cell (no letterboxing) */
.surge-product-thumb {
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0c0c0e;
    position: relative;
}

.surge-product-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Kits page only: slight upward shift inside square thumbs (store unchanged) */
.page-kits .surge-product-thumb img {
    object-position: center 42%;
}

/* Store: preview full image */
.surge-thumb-preview-btn {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 3;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border-radius: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.72);
    color: #f5f3ff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.surge-thumb-preview-btn:hover {
    background: rgba(245, 124, 0, 0.35);
    border-color: var(--primary);
    color: #fff;
}

.surge-thumb-preview-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.surge-view-contents-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    margin-bottom: 0.85rem;
    background: #000;
    border: 1px solid rgba(184, 148, 72, 0.72);
    border-radius: 0.45rem;
    color: #fff;
    font-family: var(--surge-display);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: none;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.surge-view-contents-btn:hover {
    border-color: rgba(212, 175, 88, 0.95);
    background: #0a0a0a;
    color: #fff;
}

.surge-view-contents-btn:focus-visible {
    outline: 2px solid rgba(212, 175, 88, 0.85);
    outline-offset: 2px;
}

.surge-view-contents-btn i {
    font-size: 0.85rem;
    opacity: 0.95;
}

.surge-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.surge-lightbox[hidden] {
    display: none !important;
}

.surge-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    cursor: zoom-out;
}

.surge-lightbox-close {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
    z-index: 102;
    min-width: 2.75rem;
    min-height: 2.75rem;
}

.surge-lightbox-figure {
    position: relative;
    z-index: 101;
    margin: 0;
    max-width: min(96vw, 1600px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
}

.surge-lightbox-figure img {
    pointer-events: auto;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 0 60px rgba(245, 124, 0, 0.08);
}

.surge-lightbox-caption {
    pointer-events: none;
    font-family: var(--surge-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d1d5db;
    text-align: center;
    max-width: 50ch;
    line-height: 1.35;
}

/* True browser fullscreen (eye button uses Fullscreen API) */
#product-image-lightbox:fullscreen,
#product-image-lightbox:-webkit-full-screen {
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

#product-image-lightbox:fullscreen .surge-lightbox-figure,
#product-image-lightbox:-webkit-full-screen .surge-lightbox-figure {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    justify-content: center;
}

#product-image-lightbox:fullscreen .surge-lightbox-figure img,
#product-image-lightbox:-webkit-full-screen .surge-lightbox-figure img {
    max-width: 100%;
    max-height: calc(100vh - 4rem);
    max-height: calc(100dvh - 4rem);
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (pointer: coarse) {
    .surge-thumb-preview-btn {
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* Footer: stack on phones */
.surge-site-footer {
    margin-top: 2rem;
    border-top: 1px solid #1f1f1f;
    background: #0a0a0a;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.surge-site-footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.25rem max(0.75rem, env(safe-area-inset-left)) 1.5rem max(0.75rem, env(safe-area-inset-right));
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .surge-site-footer-inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.surge-site-footer-title {
    font-family: var(--surge-display);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.surge-site-footer-tag {
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.surge-site-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
}

.surge-site-footer-links a {
    color: #9ca3af;
    text-decoration: none;
    padding: 0.35rem 0.15rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    -webkit-tap-highlight-color: rgba(245, 124, 0, 0.2);
}

.surge-site-footer-links a:active {
    color: var(--primary);
}

.surge-site-footer-sep {
    color: #374151;
    user-select: none;
}

@media (min-width: 640px) {
    .surge-site-footer-sep {
        display: inline;
    }
}

/* —— Cart: queue skip delivery —— */
.cart-item {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.875rem;
}

.cart-item--queue-skip,
.cart-item--pack {
    border-color: rgba(245, 124, 0, 0.22);
    background: linear-gradient(160deg, rgba(245, 124, 0, 0.06) 0%, rgba(255, 255, 255, 0.03) 55%);
}

.cart-item-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.cart-item-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: rgba(245, 124, 0, 0.12);
    border: 1px solid rgba(245, 124, 0, 0.28);
    color: var(--primary);
    font-size: 1.1rem;
}

.cart-item-thumb {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #000;
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.cart-item-meta {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-family: var(--surge-display);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    margin: 0 0 0.2rem;
}

.cart-item-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-remove {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.4rem;
    background: rgba(0, 0, 0, 0.35);
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.cart-item-remove:hover {
    color: #fff;
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.15);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item-qty-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6b7280;
}

.cart-item-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.45rem;
    overflow: hidden;
    background: #0a0a0a;
}

.cart-item-qty-controls button {
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.cart-item-qty-controls button:hover {
    background: var(--primary);
    color: #000;
}

.cart-item-qty-controls span {
    min-width: 2rem;
    text-align: center;
    font-size: 0.75rem;
    font-family: inherit;
}

.cart-qs-delivery {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.65rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-qs-delivery-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
    margin-bottom: 0.55rem;
}

.cart-qs-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.cart-qs-toggle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.6rem 0.45rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #9ca3af;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.cart-qs-toggle-btn i {
    font-size: 0.95rem;
    opacity: 0.85;
}

.cart-qs-toggle-btn:hover {
    border-color: rgba(245, 124, 0, 0.45);
    color: #e5e7eb;
}

.cart-qs-toggle-btn.is-active {
    border-color: var(--primary);
    background: rgba(245, 124, 0, 0.14);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(245, 124, 0, 0.25);
}

.cart-qs-toggle-btn.is-active i {
    color: var(--primary);
    opacity: 1;
}

.cart-qs-hint {
    margin: 0.55rem 0 0;
    font-size: 0.7rem;
    line-height: 1.45;
    color: #6b7280;
}

.cart-qs-hint strong {
    color: #d1d5db;
    font-weight: 600;
}

/* Queue skip choice modal */
.qs-modal-pick {
    width: 100%;
    text-align: left;
    padding: 1rem;
    border-radius: 0.65rem;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
    color: inherit;
}

.qs-modal-pick:hover {
    border-color: rgba(245, 124, 0, 0.45);
}

.qs-modal-pick.is-selected {
    border-color: var(--primary);
    background: rgba(245, 124, 0, 0.1);
}

.qs-modal-pick-title {
    display: block;
    font-family: var(--surge-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 0.25rem;
}

.qs-modal-pick-desc {
    display: block;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #9ca3af;
}

/* ——— Mobile polish (phones) ——— */
.surge-product-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.surge-product-footer-price {
    font-weight: 700;
    color: #fcd34d;
    font-size: 1.125rem;
    font-family: "Space Mono", monospace;
}

.surge-product-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.surge-product-footer-actions .surge-btn {
    width: 100%;
    justify-content: center;
}

@media (min-width: 420px) {
    .surge-product-footer {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .surge-product-footer-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: auto;
        justify-content: flex-end;
    }

    .surge-product-footer-actions .surge-btn {
        width: auto;
        flex: 0 1 auto;
    }
}

#cart-drawer {
    height: 100dvh;
    max-height: 100dvh;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

#cart-drawer > :last-child {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0));
}

.surge-profile-hero .surge-heading {
    font-size: clamp(1.35rem, 6vw, 2.25rem);
    line-height: 1.15;
    word-break: break-word;
}

.surge-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.surge-profile-actions .surge-btn {
    width: 100%;
    justify-content: center;
}

@media (min-width: 480px) {
    .surge-profile-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .surge-profile-actions .surge-btn {
        width: auto;
    }
}

@media (max-width: 639px) {
    .surge-podium {
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .surge-podium-item {
        max-width: 6.5rem;
    }

    .surge-podium-bar {
        width: 3.5rem !important;
    }

    .lb-row {
        gap: 0.5rem !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .lb-row .w-10 {
        width: 1.75rem !important;
        font-size: 0.7rem;
    }

    .lb-row img.w-10 {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }

    .lb-tab {
        flex: 1 1 calc(50% - 0.25rem);
        min-height: 2.75rem;
        justify-content: center;
    }
}

@media (pointer: coarse) {
    .cart-item-remove {
        width: 2.75rem;
        height: 2.75rem;
    }

    .cart-item-qty-controls button {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1rem;
    }

    .cart-item-qty-controls span {
        min-width: 2.5rem;
        font-size: 0.85rem;
    }

    .cart-qs-toggle-btn {
        min-height: 2.75rem;
        padding: 0.75rem 0.5rem;
    }
}
