/**
 * HYPERZ GAMING - UI (IMPULSE-style)
 * Black header, white content area, red accents, clean product grid
 */

:root {
    --header-red: #dc2626;
    --header-red-hover: #ef4444;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
    color: #111;
    font-family: var(--font-sans);
}

/* ========== SITE HEADER ========== */
@keyframes header-shine {
    0%   { transform: translateX(-120%) skewX(-20deg); }
    100% { transform: translateX(220%)  skewX(-20deg); }
}
@keyframes header-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: linear-gradient(135deg, #050505 0%, #0f0f0f 30%, #1a1a1a 60%, #0a0a0a 100%);
    background-size: 300% 300%;
    animation: header-shimmer 10s ease-in-out infinite;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    overflow: hidden;
}
.site-header::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 40%, rgba(255,255,255,0.12) 55%, rgba(255,255,255,0.06) 70%, transparent 100%);
    animation: header-shine 4s ease-in-out infinite;
    pointer-events: none;
}

.site-header__inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ---- Logo ---- */
.site-header__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-header__logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--header-red);
    flex-shrink: 0;
}
.site-header__logo-icon svg { width: 100%; height: 100%; display: block; }
.site-header__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.site-header__logo-name {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
}
.site-header__logo-sub {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--header-red);
}

/* ---- Search ---- */
.site-header__search {
    display: none;
    flex: 1;
    max-width: 440px;
    min-width: 0;
    height: 38px;
    background: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    align-items: center;
    gap: 0;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header__search:focus-within {
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}
@media (min-width: 640px) {
    .site-header__search { display: flex; }
}
.site-header__search-icon {
    flex-shrink: 0;
    margin: 0 10px;
    color: #9ca3af;
}
.site-header__search-input {
    flex: 1;
    min-width: 0;
    padding: 0 12px 0 0;
    font-size: 0.9rem;
    color: #111;
    background: transparent;
    border: none;
    outline: none;
}
.site-header__search-input::placeholder { color: #9ca3af; }

/* ---- Desktop nav ---- */
.site-header__nav {
    display: none;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}
@media (min-width: 768px) { .site-header__nav { display: flex; } }

.site-header__nav-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    border-radius: 7px;
    border: 1px solid transparent;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.site-header__nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
}
.site-header__nav-link.is-active {
    color: #fff;
    background: rgba(220,38,38,0.18);
    border-color: rgba(220,38,38,0.4);
}
.site-header__nav-link--cta {
    color: #fff;
    background: var(--header-red);
    border-color: transparent;
    padding: 6px 16px;
}
.site-header__nav-link--cta:hover {
    background: var(--header-red-hover);
    border-color: transparent;
}

/* ---- Icon buttons ---- */
.site-header__icons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
@media (min-width: 768px) { .site-header__icons { margin-left: 8px; } }

.site-header__icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.site-header__icon-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
}
.site-header__icon-btn--logout:hover {
    color: #fca5a5;
    background: rgba(220,38,38,0.15);
    border-color: rgba(220,38,38,0.3);
}
.site-header__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--header-red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.site-header__icon-label {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255,255,255,0.85);
}
.site-header__cart {
    position: relative;
}
.site-header__cart .site-header__cart-badge {
    position: absolute;
    top: -4px;
    right: 0;
    z-index: 2;
}
.site-header__cart-badge,
.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 9px;
    background: var(--header-red);
    color: #fff;
}

/* Flying thumbnail when adding to cart (cloned node + .cart-fly-item--animating) */
.cart-fly-item {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    will-change: transform, opacity;
}
.site-header__cart--pulse {
    animation: cartIconPulse 0.45s ease;
}
@keyframes cartIconPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* ---- Burger ---- */
.site-header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.site-header__burger:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
}
@media (min-width: 768px) { .site-header__burger { display: none; } }
.site-header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s;
}

/* ---- Mobile menu ---- */
.site-header__mobile {
    position: relative;
    z-index: 1;
    padding: 12px 20px 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
}
.site-header__mobile.hidden { display: none !important; }
.site-header__mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.site-header__mobile-search-input {
    flex: 1;
    padding: 9px 14px;
    font-size: 0.9rem;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    outline: none;
}
.site-header__mobile-search-input::placeholder { color: rgba(255,255,255,0.4); }
.site-header__mobile-search-btn {
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: var(--header-red);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.site-header__mobile-search-btn:hover { background: var(--header-red-hover); }
.site-header__mobile-link {
    display: block;
    padding: 10px 4px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.15s, padding-left 0.15s;
}
.site-header__mobile-link:last-child { border-bottom: none; }
.site-header__mobile-link:hover { color: #fff; padding-left: 8px; }
.site-header__mobile-link--cta { color: var(--header-red); font-weight: 600; }
.site-header__mobile-link--cta:hover { color: var(--header-red-hover); }
.site-header__mobile-link--danger { color: rgba(255,255,255,0.75); }
.site-header__mobile-link--danger:hover { color: #fca5a5; }

.site-header-spacer { height: 64px; }

/* ========== PAGE CONTENT (white) ========== */
.page-content {
    flex: 1;
    background: #fff;
    color: #111;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0 16px;
    font-size: 0.875rem;
    color: #6b7280;
}
.breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs a:hover {
    color: var(--header-red);
}
.breadcrumbs__sep {
    color: #d1d5db;
}
.breadcrumbs__current {
    color: var(--header-red);
    font-weight: 500;
}
.breadcrumbs__icon {
    display: inline-flex;
    color: #9ca3af;
}

/* Shop filter row: Keyword + Sort By */
.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.shop-toolbar__keyword {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    padding: 10px 14px;
    font-size: 0.9375rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #111;
}
.shop-toolbar__keyword:focus {
    outline: none;
    border-color: var(--header-red);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}
.shop-toolbar__keyword::placeholder {
    color: #9ca3af;
}
.shop-toolbar__sort {
    padding: 10px 36px 10px 14px;
    font-size: 0.9375rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%236b7280'%3E%3Cpath d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.shop-toolbar__sort:focus {
    outline: none;
    border-color: var(--header-red);
}

/* Product grid & cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    margin-top: 32px;
}
@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1280px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
.shop-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1rem;
}
/* Product card – modern rounded UI */
.product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.product-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}
.product-card__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
}
.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}
.product-card:hover .product-card__image {
    transform: scale(1.04);
}
/* Cart row thumbnail (matches shop “No image” treatment) */
.cart-line__thumb {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}
.cart-line__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cart-line__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    padding: 4px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%);
}

/* Game detail hero — avoid broken img onerror loops (no chained placeholder.svg) */
.game-detail__media {
    position: relative;
    min-height: 20rem;
    background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%);
}
@media (min-width: 768px) {
    .game-detail__media {
        min-height: 24rem;
    }
}
.game-detail__no-image {
    min-height: 20rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%);
}
@media (min-width: 768px) {
    .game-detail__no-image {
        min-height: 24rem;
    }
}

.product-card__no-image {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%);
}
.product-card__badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.product-card__badge--sold-out {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--header-red);
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}
.product-card__badge--shipping {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
    color: #fff;
    font-size: 0.6875rem;
}
.product-card__body {
    padding: 16px 16px 0;
    flex: 1;
}
.product-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.product-card:hover .product-card__title {
    color: var(--header-red);
}
.product-card__price-wrap {
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}
.product-card__price-wrap--dual {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
.product-card__price-row {
    display: grid;
    grid-template-columns: minmax(4.75rem, 32%) minmax(0, 1fr);
    column-gap: 10px;
    align-items: baseline;
    row-gap: 2px;
}
.product-card__price-label {
    flex: 0 0 auto;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin: 0;
    padding-top: 0.2em;
    line-height: 1.2;
    text-align: right;
    justify-self: end;
    max-width: 100%;
}
.product-card__price-values {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    justify-content: flex-start;
}
.product-card__price-row--member .product-card__price-label {
    color: #6d28d9;
}
.product-card__body .product-card__price--member {
    color: #7c3aed;
}
.product-card__price-note {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
    line-height: 1.25;
}
.product-card__price-discount {
    margin: 2px 0 0;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    text-align: center;
}
.product-card__price-discount-pct {
    font-weight: 600;
    color: #166534;
    white-space: nowrap;
}
.product-card__body .product-card__price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--header-red);
    margin: 0;
}
.product-card__body .product-card__price--struck {
    text-decoration: line-through;
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.9375rem;
}
.product-card__stock {
    margin: 8px 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.3;
}
.product-card__stock--out {
    color: #b91c1c;
    font-weight: 600;
}
.product-card__points {
    margin: 6px 0 0;
    font-size: 0.75rem;
    color: #047857;
    line-height: 1.35;
}
.product-card__points-value {
    font-weight: 700;
}
.product-card__price--struck {
    text-decoration: line-through;
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.9375rem;
}
.product-card__actions {
    padding: 14px 16px 16px;
}
.btn-add-cart {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    background: var(--header-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.02em;
}
.btn-add-cart:hover {
    background: var(--header-red-hover);
}
.btn-add-cart:active:not(:disabled) {
    transform: scale(0.98);
}
.btn-add-cart:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.85;
}

/* Shop pagination (Impulse-style) */
.shop-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}
.shop-pagination__left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.shop-pagination__results {
    font-size: 0.875rem;
    color: #6b7280;
}
.shop-pagination__per-page-form {
    display: inline-flex;
    align-items: center;
}
.shop-pagination__per-page-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: #6b7280;
}
.shop-pagination__per-page-select {
    padding: 5px 8px;
    font-size: 0.8125rem;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    outline: none;
}
.shop-pagination__per-page-select:focus {
    border-color: var(--header-red);
}
.shop-pagination__nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.shop-pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    user-select: none;
}
.shop-pg-btn:hover {
    border-color: var(--header-red);
    color: var(--header-red);
    background: #fff5f5;
    box-shadow: 0 1px 4px rgba(220,38,38,0.1);
}
.shop-pg-btn--active {
    background: var(--header-red);
    border-color: var(--header-red);
    color: #fff;
    box-shadow: 0 2px 6px rgba(220,38,38,0.3);
}
.shop-pg-btn--active:hover {
    background: var(--header-red-hover);
    border-color: var(--header-red-hover);
    color: #fff;
}
.shop-pg-btn--disabled {
    color: #d1d5db;
    border-color: #e5e7eb;
    background: #f9fafb;
    cursor: not-allowed;
    box-shadow: none;
}
.shop-pg-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 0.875rem;
    color: #9ca3af;
    letter-spacing: 0.05em;
}

/* ========== SLIDESHOW ========== */
.slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
    user-select: none;
}
.slideshow--contained {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.slideshow__track {
    position: relative;
    width: 100%;
    height: clamp(220px, 42vw, 500px);
    cursor: grab;
}
.slideshow__track:active {
    cursor: grabbing;
}
.slideshow__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}
.slideshow__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.slideshow__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slideshow__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.65) 0%,
        rgba(0,0,0,0.35) 50%,
        rgba(0,0,0,0.10) 100%
    );
}
.slideshow__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px clamp(24px, 6vw, 80px);
    max-width: 640px;
}
.slideshow__title {
    font-size: clamp(1.5rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.slideshow__subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.125rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: 22px;
    max-width: 460px;
    line-height: 1.5;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.slideshow__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    background: var(--header-red);
    border-radius: 8px;
    text-decoration: none;
    align-self: flex-start;
    box-shadow: 0 4px 16px rgba(220,38,38,0.4);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.slideshow__btn:hover {
    background: var(--header-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220,38,38,0.5);
}
/* Arrows */
.slideshow__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    backdrop-filter: blur(4px);
}
.slideshow__arrow:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.08);
}
.slideshow__arrow--prev { left: 16px; }
.slideshow__arrow--next { right: 16px; }
/* Dots */
.slideshow__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}
.slideshow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.slideshow__dot.is-active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.3);
}

/* Section headings (white page) */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1.5rem;
}
.section-title--accent {
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title--accent::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--header-red);
    border-radius: 2px;
}

/* Category pills (light) */
.category-pill {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
}
.category-pill:hover {
    border-color: var(--header-red);
    color: var(--header-red);
}

/* Buttons (red primary) */
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    background: var(--header-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-primary:hover {
    background: var(--header-red-hover);
    color: #fff;
}
.btn-glow,
.hero-slide__btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--header-red);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-glow:hover,
.hero-slide__btn:hover {
    background: var(--header-red-hover);
    color: #fff;
}
.btn-purple {
    background: var(--header-red);
}
.btn-purple:hover {
    background: var(--header-red-hover);
}

/* Inputs */
.input-glow {
    padding: 10px 14px;
    font-size: 0.9375rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #111;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-glow:focus {
    outline: none;
    border-color: var(--header-red);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid;
}
.alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* ========== HERO (dark, for homepage) ========== */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    background: #0a0a0a;
}
@media (min-width: 768px) {
    .hero-section {
        min-height: 520px;
    }
}
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
    z-index: 1;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}
.hero-slide.slide-enter-right {
    transform: translateX(100%);
}
.hero-slide.active.slide-enter-right {
    transform: translateX(0);
}
.hero-slide.slide-enter-left {
    transform: translateX(-100%);
}
.hero-slide.active.slide-enter-left {
    transform: translateX(0);
}
.hero-slide__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    pointer-events: none;
}
.hero-slide__no-img {
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.875rem;
    pointer-events: none;
}
.hero-slide__content {
    position: relative;
    z-index: 2;
    max-width: 80rem;
    margin: 0 auto;
    padding: 4rem 1rem;
    text-align: center;
}
.hero-slide__title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}
@media (min-width: 768px) {
    .hero-slide__title {
        font-size: 3.75rem;
    }
}
.hero-slide__subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.slide-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}
.slide-btn--prev {
    left: 1rem;
}
.slide-btn--next {
    right: 1rem;
}
.slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}
.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}
.slide-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}
.slide-dot.active {
    background: var(--header-red);
    transform: scale(1.15);
}

/* Homepage sections (white content below hero) */
.home-section {
    background: #fff;
    color: #111;
    padding: 3rem 0;
}
.home-section .section-title {
    color: #111;
}
.game-card,
.glass-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.game-card:hover,
.glass-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.game-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f9fafb;
}
.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.game-no-image {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.875rem;
    background: #f3f4f6;
}
.game-no-image--sm {
    min-height: 140px;
}
.game-card-price {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--header-red);
    color: #fff;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
}
.game-card-body {
    padding: 1rem 0 0;
}
.game-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 4px;
}
.game-card-body h3:hover {
    color: var(--header-red);
}
.game-card-body p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Footer (light) */
.site-footer {
    margin-top: auto;
    padding: 2.5rem 0;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    color: #374151;
}
.site-footer a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer a:hover {
    color: var(--header-red);
}
.site-footer__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.75rem;
}
.site-footer__copy {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ========== ADMIN LAYOUT (sidebar + breadcrumb) ========== */
.admin-layout {
    font-family: var(--font-sans);
}
.admin-sidebar {
    width: 14rem;
    flex-shrink: 0;
    flex-grow: 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}
.admin-sidebar__link {
    transition: background 0.15s, color 0.15s;
}
.admin-breadcrumb a {
    text-decoration: none;
}
.admin-content {
    overflow-x: auto;
}
/* Mobile & tablet: off-canvas drawer (hidden until opened) */
@media (max-width: 1023px) {
    #admin-sidebar.admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        width: 14rem;
        max-width: min(14rem, 85vw);
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        flex: none;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    }
    #admin-sidebar.admin-sidebar.admin-sidebar--open {
        transform: translateX(0);
    }
}
/* Desktop: sidebar in layout flow; collapse uses display:none */
@media (min-width: 1024px) {
    #admin-sidebar.admin-sidebar {
        position: relative;
        transform: none;
        height: auto;
        max-height: none;
        transition: none;
    }
    #admin-sidebar.admin-sidebar:not(.admin-sidebar--open) {
        display: none;
    }
}
