body {
    font-family: vg5000, 'sans-serif';
    background-color: black;
    color: white;
    margin: 0px;
    padding: 0px;
}


html, body {
    scrollbar-width: none;       
    -ms-overflow-style: none;
    overflow-x: hidden;
    max-width: 100%;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;              
}

:root {
    --bg: #000000;
    --surface: #1e1e1e;       
    --hairline: #262626;      
    --text: #ffffff;
    --text-muted: #8a8a8a;
    --text-faint: #555555;
}

.shop-main,
.cart-panel,
.cart-toggle,
.shop-header {
    font-family: 'Inter', -apple-system, sans-serif;
}

.hidden {
    display: none !important;
}

.key-gate {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 999;
}

.key-gate-box {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.key-gate-box h1 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.key-gate-box input,
.key-gate-box button {
    font-family: inherit;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid var(--hairline);
    background: var(--surface);
    color: var(--text);
    box-sizing: border-box;
}

.key-gate-box button {
    cursor: pointer;
    background: var(--text);
    color: var(--bg);
    border: none;
    font-weight: 500;
    transition: opacity 0.15s ease;
}

.key-gate-box button:hover {
    opacity: 0.85;
}

.key-gate-box .error {
    font-size: 12px;
    color: #e5484d;
    min-height: 1em;
}

.shop-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 32px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
}

.shop-logo {
    justify-self: start;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.shop-categories {
    justify-self: center;
    display: flex;
    gap: 28px;
}

.category-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.15s ease;
}

.category-link:hover,
.category-link.active {
    color: var(--text);
}

.cart-toggle {
    justify-self: end;
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.15s ease;
}

.cart-toggle:hover {
    color: var(--text);
}

.shop-main {
    padding: 96px 32px 64px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    column-gap: 28px;
    row-gap: 40px;
}

.product-tile {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-image {
    background: var(--surface);
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    position: relative;
    transition: background 0.15s ease;
    touch-action: pan-y;
}

.product-tile:hover .product-image {
    background: #262626;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.variant-count-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 1;
    background: rgba(0, 0, 0, 0.55);
    color: var(--text);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 3px 8px;
    white-space: nowrap;
    pointer-events: none;
}

.product-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--hairline);
    margin-top: 12px;
}

.product-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.product-price {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: 12px;
}

.product-action {
    margin-top: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    padding: 0;
    text-align: left;
    cursor: pointer;
    width: fit-content;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.product-action:hover {
    color: var(--text);
    border-color: var(--text);
}

.product-action:disabled {
    color: var(--text-faint);
    cursor: not-allowed;
    border-color: transparent;
}

.product-detail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.product-detail.open {
    grid-template-rows: 1fr;
}

.product-detail-inner {
    overflow: hidden;
    min-height: 0;
}

.product-detail-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    column-gap: 28px;
}

.product-detail-image {
    grid-column: span 2;
    background: var(--surface);
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
}

.detail-image-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.detail-image-arrow:hover {
    background: rgba(0, 0, 0, 0.65);
}

.detail-image-arrow--prev { left: 10px; }
.detail-image-arrow--next { right: 10px; }

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.image-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.15s ease;
}

.image-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.image-dot.active {
    background: var(--text);
}

.detail-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-thumb {
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--hairline);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.variant-thumb:hover {
    border-color: var(--text-muted);
}

.variant-thumb.active {
    border-color: var(--text);
}

.variant-thumb:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.variant-thumb-image {
    width: 100%;
    height: 100%;
}

.variant-thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.detail-dims-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
}

.detail-dim {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stock-note {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-faint);
}

.detail-dim-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.detail-dim-value {
    font-size: 20px;
    font-weight: 500;
    color: var(--text);
}

.qty-unavailable {
    color: var(--text-faint);
}

.qty-stepper {
    display: inline-flex;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--hairline);
    width: fit-content;
}

.qty-stepper button {
    background: none;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.qty-stepper button:hover:not(:disabled) {
    background: #2a2a2a;
}

.qty-stepper button:disabled {
    color: var(--text-faint);
    cursor: not-allowed;
}

.qty-stepper .qty-count {
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text);
    border-left: 1px solid var(--hairline);
    border-right: 1px solid var(--hairline);
}

/* Compact variant used inline in the cart panel's line items. */
.qty-stepper--sm {
    flex-shrink: 0;
}

.qty-stepper--sm button {
    width: 26px;
    height: 26px;
    font-size: 13px;
}

.qty-stepper--sm .qty-count {
    min-width: 22px;
    font-size: 12px;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 100vw;
    height: 100%;
    background: var(--bg);
    border-left: 1px solid var(--hairline);
    z-index: 98;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px 24px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-bottom: 1px solid var(--hairline);
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s ease;
}

.cart-close:hover {
    color: var(--text);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cart-items::-webkit-scrollbar {
    display: none;
}

.cart-items .empty {
    color: var(--text-muted);
    font-size: 13px;
    padding: 20px 0;
}

.cart-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline);
}

.cart-line-thumb {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--surface);
    overflow: hidden;
}

.cart-line-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-line-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-line-name {
    color: var(--text);
}

.cart-line-price {
    color: var(--text-muted);
    font-size: 12px;
}

.cart-footer {
    padding: 20px 24px 24px 24px;
    border-top: 1px solid var(--hairline);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 16px;
}

.checkout-btn {
    display: block;
    box-sizing: border-box;
    width: 100%;
    background: var(--text);
    color: var(--bg);
    border: none;
    padding: 13px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.checkout-btn:hover {
    opacity: 0.85;
}

.checkout-message {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   Checkout page
   ========================================================================== */

.checkout-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 24px 80px 24px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.checkout-back {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 24px;
    transition: color 0.15s ease;
}

.checkout-back:hover {
    color: var(--text);
}

.checkout-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 28px 0;
}

.checkout-empty {
    color: var(--text-muted);
    font-size: 14px;
}

.checkout-line {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline);
}

.checkout-line-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: var(--surface);
    overflow: hidden;
}

.checkout-line-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.checkout-line-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-line-name {
    font-size: 14px;
    color: var(--text);
}

.checkout-line-unit-price {
    font-size: 12px;
    color: var(--text-faint);
}

.checkout-line-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.checkout-line-subtotal {
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
}

.checkout-summary {
    margin-top: 8px;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    padding-top: 20px;
    margin-top: 4px;
    border-top: 1px solid var(--hairline);
}

.checkout-pay-btn {
    width: 100%;
    margin-top: 24px;
    background: var(--text);
    color: var(--bg);
    border: none;
    padding: 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.checkout-pay-btn:hover:not(:disabled) {
    opacity: 0.85;
}

.checkout-pay-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkout-error {
    margin-top: 12px;
    font-size: 13px;
    color: #e5484d;
    min-height: 1em;
}

.checkout-expiry-warning {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid var(--hairline);
    background: var(--surface);
    font-size: 13px;
    color: var(--text);
}

.checkout-expiry-warning.hidden {
    display: none;
}

.checkout-extend-btn {
    background: none;
    border: 1px solid var(--text);
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.checkout-extend-btn:hover {
    background: var(--text);
    color: var(--bg);
}

.checkout-confirmation {
    text-align: center;
    padding: 24px 0 0 0;
}

.checkout-confirmation-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.checkout-confirmation-sub {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 28px;
}

.checkout-confirmation .checkout-lines {
    text-align: left;
}

.checkout-confirmation .checkout-total-row {
    text-align: left;
}

.checkout-confirmation-shop-link {
    display: inline-block;
    margin-top: 28px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--text);
    font-size: 13px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
    .shop-header {
        padding: 16px 16px;
    }

    .shop-categories {
        gap: 16px;
    }

    .category-link {
        font-size: 12px;
    }

    .shop-main {
        padding: 80px 16px 48px 16px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 16px;
        row-gap: 28px;
    }

    .product-detail-content {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 16px;
    }

    .cart-panel {
        width: 100%;
    }
}