:root {
    --bg-color: #0A0A0A;
    --card-bg: #141414;
    --border-color: #222222;
    --text-main: #E5E5E5;
    --text-muted: #888888;
    --accent-color: #E63946;
    --accent-hover: #FF4D5A;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1400px;
    --gap: 25px;
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    overflow-x: clip; 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    font-family: var(--font-family); 
    line-height: 1.6; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== ПЛАВНАЯ СМЕНА ТЕМЫ ===== */
body,
header,
.logo,
.vtuber-card,
.product-card,
.review-card,
.news-card,
.slide-card,
.gallery-item,
.art-card,
.filter-toggle,
.search-bar,
.sidebar-item,
.modal,
.btn-secondary,
.social-btn,
.hero,
.news-section,
.arts-preview-grid .art-thumb,
footer,
.section-title::after,
.product-gallery-main,
.product-gallery-thumbs img,
.modal-overlay,
.nav-container,
nav a,
.hero-btn,
.btn-primary,
.btn-danger,
.cart-sidebar,
.toast,
.filter-panel,
.filter-option,
.vtuber-card-content {
    transition: background-color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== БАЗОВЫЕ АНИМАЦИИ ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(230, 57, 70, 0.3); }
    50% { box-shadow: 0 0 40px rgba(230, 57, 70, 0.6); }
}

/* ===== НОВЫЕ АНИМАЦИИ ===== */
@keyframes slideUpWord {
    to { transform: translateY(0); }
}
@keyframes blurIn {
    0% {
        opacity: 0;
        filter: blur(12px);
        transform: scale(0.92) translateY(20px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1) translateY(0);
    }
}

/* Анимация для слов в заголовке (hero-title) */
.hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #FFF 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title .word {
    display: inline-block;
    overflow: hidden;
    margin-right: 0.15em;
}
.hero-title .word-inner {
    display: inline-block;
    transform: translateY(120%);
    animation: slideUpWord 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Появление при скролле */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Карточки с blur-in (плюс каскадные задержки) */
.vtuber-card,
.product-card,
.slide-card,
.review-card,
.news-card,
.gallery-item,
.art-card {
    opacity: 0;
    animation: blurIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.vtuber-card:nth-child(1),
.product-card:nth-child(1),
.slide-card:nth-child(1),
.review-card:nth-child(1),
.news-card:nth-child(1),
.gallery-item:nth-child(1),
.art-card:nth-child(1) { animation-delay: 0.04s; }
.vtuber-card:nth-child(2),
.product-card:nth-child(2),
.slide-card:nth-child(2),
.review-card:nth-child(2),
.news-card:nth-child(2),
.gallery-item:nth-child(2),
.art-card:nth-child(2) { animation-delay: 0.08s; }
.vtuber-card:nth-child(3),
.product-card:nth-child(3),
.slide-card:nth-child(3),
.review-card:nth-child(3),
.news-card:nth-child(3),
.gallery-item:nth-child(3),
.art-card:nth-child(3) { animation-delay: 0.12s; }
.vtuber-card:nth-child(4),
.product-card:nth-child(4),
.slide-card:nth-child(4),
.review-card:nth-child(4),
.news-card:nth-child(4),
.gallery-item:nth-child(4),
.art-card:nth-child(4) { animation-delay: 0.16s; }
.vtuber-card:nth-child(5),
.product-card:nth-child(5),
.slide-card:nth-child(5),
.review-card:nth-child(5),
.news-card:nth-child(5),
.gallery-item:nth-child(5),
.art-card:nth-child(5) { animation-delay: 0.20s; }
.vtuber-card:nth-child(6),
.product-card:nth-child(6),
.slide-card:nth-child(6),
.review-card:nth-child(6),
.news-card:nth-child(6),
.gallery-item:nth-child(6),
.art-card:nth-child(6) { animation-delay: 0.24s; }
.vtuber-card:nth-child(7),
.product-card:nth-child(7),
.slide-card:nth-child(7),
.review-card:nth-child(7),
.news-card:nth-child(7),
.gallery-item:nth-child(7),
.art-card:nth-child(7) { animation-delay: 0.28s; }
.vtuber-card:nth-child(8),
.product-card:nth-child(8),
.slide-card:nth-child(8),
.review-card:nth-child(8),
.news-card:nth-child(8),
.gallery-item:nth-child(8),
.art-card:nth-child(8) { animation-delay: 0.32s; }
.vtuber-card:nth-child(9),
.product-card:nth-child(9),
.slide-card:nth-child(9),
.review-card:nth-child(9),
.news-card:nth-child(9),
.gallery-item:nth-child(9),
.art-card:nth-child(9) { animation-delay: 0.36s; }
.vtuber-card:nth-child(10),
.product-card:nth-child(10),
.slide-card:nth-child(10),
.review-card:nth-child(10),
.news-card:nth-child(10),
.gallery-item:nth-child(10),
.art-card:nth-child(10) { animation-delay: 0.40s; }
.vtuber-card:nth-child(11),
.product-card:nth-child(11),
.slide-card:nth-child(11),
.review-card:nth-child(11),
.news-card:nth-child(11),
.gallery-item:nth-child(11),
.art-card:nth-child(11) { animation-delay: 0.44s; }
.vtuber-card:nth-child(12),
.product-card:nth-child(12),
.slide-card:nth-child(12),
.review-card:nth-child(12),
.news-card:nth-child(12),
.gallery-item:nth-child(12),
.art-card:nth-child(12) { animation-delay: 0.48s; }
.vtuber-card:nth-child(13),
.product-card:nth-child(13),
.slide-card:nth-child(13),
.review-card:nth-child(13),
.news-card:nth-child(13),
.gallery-item:nth-child(13),
.art-card:nth-child(13) { animation-delay: 0.52s; }
.vtuber-card:nth-child(14),
.product-card:nth-child(14),
.slide-card:nth-child(14),
.review-card:nth-child(14),
.news-card:nth-child(14),
.gallery-item:nth-child(14),
.art-card:nth-child(14) { animation-delay: 0.56s; }
.vtuber-card:nth-child(15),
.product-card:nth-child(15),
.slide-card:nth-child(15),
.review-card:nth-child(15),
.news-card:nth-child(15),
.gallery-item:nth-child(15),
.art-card:nth-child(15) { animation-delay: 0.60s; }
.vtuber-card:nth-child(16),
.product-card:nth-child(16),
.slide-card:nth-child(16),
.review-card:nth-child(16),
.news-card:nth-child(16),
.gallery-item:nth-child(16),
.art-card:nth-child(16) { animation-delay: 0.64s; }
.vtuber-card:nth-child(17),
.product-card:nth-child(17),
.slide-card:nth-child(17),
.review-card:nth-child(17),
.news-card:nth-child(17),
.gallery-item:nth-child(17),
.art-card:nth-child(17) { animation-delay: 0.68s; }
.vtuber-card:nth-child(18),
.product-card:nth-child(18),
.slide-card:nth-child(18),
.review-card:nth-child(18),
.news-card:nth-child(18),
.gallery-item:nth-child(18),
.art-card:nth-child(18) { animation-delay: 0.72s; }
.vtuber-card:nth-child(19),
.product-card:nth-child(19),
.slide-card:nth-child(19),
.review-card:nth-child(19),
.news-card:nth-child(19),
.gallery-item:nth-child(19),
.art-card:nth-child(19) { animation-delay: 0.76s; }
.vtuber-card:nth-child(20),
.product-card:nth-child(20),
.slide-card:nth-child(20),
.review-card:nth-child(20),
.news-card:nth-child(20),
.gallery-item:nth-child(20),
.art-card:nth-child(20) { animation-delay: 0.80s; }

/* ===== ШАПКА ===== */
header { 
    position: sticky; 
    top: 0; 
    z-index: 10000;
    background-color: rgba(10, 10, 10, 0.95); 
    border-bottom: 1px solid var(--border-color); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
header.scrolled {
    background-color: rgba(10, 10, 10, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.nav-container { 
    max-width: var(--max-width); 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 20px; 
    position: relative;
}
.logo { 
    font-size: clamp(1.1rem, 2.5vw, 1.5rem); 
    font-weight: 700; 
    letter-spacing: 1px; 
    color: #FFF; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 10px;
    transition: none;
}
.logo-dot { 
    width: 8px; 
    height: 8px; 
    background-color: var(--accent-color); 
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 10001;
}
.nav-toggle:hover {
    color: var(--accent-color);
}

nav { 
    display: flex; 
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 7px;
    align-items: center; 
}
nav a { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-size: 0.82rem; 
    font-weight: 600; 
    transition: all 0.3s ease; 
    cursor: pointer;
    position: relative;
    padding: 5px 0;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}
nav a:hover, nav a.active { color: var(--text-main); }
nav a:hover::after, nav a.active::after { width: 100%; }

/* ===== КНОПКА ПЕРЕКЛЮЧЕНИЯ ТЕМЫ ===== */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    padding: 0 10px;
    line-height: 1;
    transition: transform 0.3s ease;
    order: 3;
}
.theme-toggle:hover {
    transform: scale(1.2);
}
@media (max-width: 768px) {
    .theme-toggle {
        order: 2;
        margin-left: auto;
    }
    .nav-toggle {
        order: 3;
    }
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
main { 
    max-width: var(--max-width); 
    margin: 0 auto; 
    padding: 40px 20px; 
    min-height: calc(100vh - 150px); 
}

/* ===== ОБНОВЛЁННЫЙ БЛОК HERO (растянут на всю ширину) ===== */
.hero {
    width: 100%;
    position: relative;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 60px;

    /* РАСТЯГИВАЕМ НА ВСЮ ШИРИНУ */
    
    /* ---- АДАПТИВНЫЙ ФОН ---- */
    background:
        radial-gradient(
            ellipse 80% 70% at 50% 105%,
            color-mix(in srgb, var(--accent-color) 9%, transparent),
            transparent 70%
        ),
        radial-gradient(
            ellipse 65% 55% at 15% 20%,
            rgba(255,255,255,0.045),
            transparent 65%
        ),
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--card-bg) 96%, #000),
            var(--bg-color)
        );

    /* ---- АДАПТИВНАЯ ГРАНИЦА ---- */
    border: 1px solid color-mix(
        in srgb,
        var(--border-color) 75%,
        var(--accent-color) 25%
    );

    box-shadow:
        0 25px 70px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.07);

    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(127,127,127,.18), rgba(127,127,127,.03));
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.hero p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 30px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.section-title { 
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700; 
    margin-bottom: 40px; 
    position: relative; 
    padding-bottom: 15px;
}
.section-title::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 60px; 
    height: 3px; 
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}
.section-subtitle {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* ===== КНОПКИ ===== */
.hero-btn, .btn-primary { 
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white; 
    padding: 14px 32px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: all 0.3s ease; 
    border: none; 
    cursor: pointer; 
    display: inline-block; 
    text-align: center;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    position: relative;
    overflow: hidden;
}
.hero-btn::before, .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.hero-btn:hover::before, .btn-primary:hover::before { left: 100%; }
.hero-btn:hover, .btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.5);
}
.btn-secondary { 
    background-color: var(--card-bg); 
    border: 1px solid var(--border-color); 
    color: var(--text-main); 
    padding: 12px 24px; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease;
}
.btn-secondary:hover { 
    border-color: var(--accent-color);
    background-color: rgba(230, 57, 70, 0.1);
    transform: translateY(-2px);
}
.btn-danger { 
    background-color: var(--accent-color); 
    color: white; 
    border: none; 
    padding: 12px 24px; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease;
}
.btn-danger:hover { 
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

/* ===== СЕТКИ И КАРТОЧКИ ===== */
.vtuber-grid,
.shop-grid,
.news-grid,
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap);
    margin-bottom: 60px;
}

.vtuber-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.vtuber-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 60px rgba(230, 57, 70, 0.3);
}
.vtuber-card-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.vtuber-card:hover .vtuber-card-img { transform: scale(1.1); }
.vtuber-card-content {
    padding: 20px;
    position: relative;
    z-index: 1;
    background: linear-gradient(to top, var(--card-bg) 0%, transparent 100%);
}
.vtuber-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}
.vtuber-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.shop-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.product-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 40px rgba(230, 57, 70, 0.25);
}
.product-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-img { transform: scale(1.08); }
.product-info {
    padding: 20px;
}
.product-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}
.product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}
.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.news-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.news-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}
.news-card:hover {
    transform: translateX(8px);
    border-color: var(--accent-color);
}
.news-card:hover::before { transform: scaleY(1); }
.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}
.news-content {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}
.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.reviews-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.review-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
}
.review-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 60px;
    color: var(--accent-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}
.review-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(230, 57, 70, 0.15);
}
.review-text {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.6;
    font-style: italic;
}
.review-author {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* ===== БОКОВАЯ ПАНЕЛЬ ===== */
.two-column-layout { 
    display: grid; 
    grid-template-columns: 280px 1fr; 
    gap: 30px; 
}
.sidebar { 
    background-color: var(--card-bg); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius); 
    padding: 25px; 
    height: fit-content;
    position: sticky;
    top: 100px;
}
.search-bar { 
    width: 100%; 
    background-color: #0E0E0E; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    padding: 12px 18px; 
    color: var(--text-main); 
    font-size: 0.9rem; 
    outline: none; 
    margin-bottom: 25px; 
    transition: all 0.3s ease;
}
.search-bar:focus { 
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}
.list-title { 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 15px; 
    font-weight: 700; 
}
.sidebar-list { 
    list-style: none; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}
.sidebar-item { 
    display: block; 
    width: 100%; 
    padding: 14px 18px; 
    border-radius: 8px; 
    background-color: #0D0D0D; 
    border: 1px solid var(--border-color); 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    text-align: left;
    position: relative;
    overflow: hidden;
}
.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}
.sidebar-item:hover { 
    background-color: #1A1A1A; 
    color: var(--text-main); 
    border-color: #333333; 
    transform: translateX(4px);
}
.sidebar-item:hover::before { transform: scaleY(1); }
.sidebar-item.active { 
    background-color: var(--accent-color); 
    color: #FFFFFF; 
    border-color: var(--accent-color); 
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}
.sidebar-item.active::before { transform: scaleY(1); }

/* ===== ФИЛЬТР ===== */
.filter-dropdown {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0D0D0D;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    width: 100%;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    user-select: none;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}
.filter-toggle:hover {
    border-color: #444;
}
.filter-toggle .burger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
    flex-shrink: 0;
}
.filter-toggle .burger-icon span {
    display: block;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.filter-toggle .burger-icon span:nth-child(2) {
    width: 80%;
}
.filter-toggle .filter-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.filter-toggle .arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 16px;
    flex-shrink: 0;
}
.filter-toggle.open .arrow {
    transform: rotate(180deg);
}
.filter-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    z-index: 50;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    max-height: 420px;
    flex-direction: column;
    box-sizing: border-box;
}
.filter-panel.open {
    display: flex !important;
}
.filter-options {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    max-height: 260px;
    width: 100%;
}
.filter-options::-webkit-scrollbar {
    width: 4px;
}
.filter-options::-webkit-scrollbar-track {
    background: transparent;
}
.filter-options::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
.filter-options::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    max-width: 100%;
    overflow: hidden;
}
.filter-option:hover {
    background: #1A1A1A;
}
.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    cursor: pointer;
    flex-shrink: 0;
}
.filter-option label {
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.filter-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0;
}
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    width: 100%;
}
.filter-actions button {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    text-align: center;
}
.filter-actions .filter-reset {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}
.filter-actions .filter-reset:hover {
    border-color: var(--accent-color);
    color: var(--text-main);
    background: rgba(230, 57, 70, 0.05);
}
.filter-actions .filter-apply {
    background: var(--accent-color);
    color: white;
}
.filter-actions .filter-apply:hover {
    background: var(--accent-hover);
}
.filter-count {
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
}

/* ===== МОДАЛКИ ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.modal-close:hover {
    color: var(--accent-color);
    background: rgba(230, 57, 70, 0.1);
}
.modal-body {
    padding: 25px;
}
.modal-body p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-main);
}
.modal-body .highlight {
    color: var(--accent-color);
    font-weight: 600;
}
.modal-footer {
    padding: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* ===== ТОСТЫ ===== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 15px 20px;
    color: var(--text-main);
    font-size: 0.9rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast.success { border-left-color: #10B981; }
.toast.error { border-left-color: var(--accent-color); }

/* ===== КОРЗИНА ===== */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.3s ease-out;
}
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.active { right: 0; }
.cart-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #0D0D0D;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.cart-item:hover { border-color: var(--accent-color); }
.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
.cart-item-info { flex: 1; }
.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 5px;
}
.cart-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
}
.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}
.cart-item-remove:hover { color: var(--accent-color); }
.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--border-color);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

/* ===== ФОРМЫ ===== */
.form-group { margin-bottom: 20px; }
.form-group label { 
    display: block; 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    margin-bottom: 8px;
    font-weight: 600;
}
.form-control { 
    width: 100%; 
    background-color: #0E0E0E; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    padding: 12px 18px; 
    color: var(--text-main); 
    font-size: 0.9rem; 
    outline: none; 
    transition: all 0.3s ease;
}
.form-control:focus { 
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* ===== ФУТЕР ===== */
footer { 
    text-align: center; 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    border-top: 1px solid var(--border-color); 
    padding: 40px 20px; 
    margin-top: 60px;
    background: linear-gradient(to top, rgba(20, 20, 20, 0.5), transparent);
}
footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover { color: var(--accent-hover); }

/* ===== ФИКСИРОВАННОЕ МЕНЮ ДЛЯ МОБИЛЬНЫХ ===== */
body.menu-open {
    overflow: hidden !important;
}
body.menu-open header {
    z-index: 100000 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
}
body.menu-open nav.open {
    display: flex !important;
    position: fixed !important;
    top: 60px;
    left: 0;
    right: 0;
    bottom: auto;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 100001 !important;
    flex-direction: column;
    align-items: stretch;
    padding: 15px 20px;
    gap: 5px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
body.menu-open nav.open a {
    padding: 12px 0;
    text-align: center;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
}
body.menu-open nav.open a:last-child {
    border-bottom: none;
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 1024px) {
    .two-column-layout { 
        grid-template-columns: 220px 1fr; 
        gap: 20px; 
    }
    .vtuber-grid,
    .shop-grid,
    .news-grid,
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    .hero { padding: 60px 20px; }
}

@media (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
    .two-column-layout { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    }
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 20px;
    }
    .sidebar .search-bar { grid-column: 1 / -1; }
    .sidebar-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .sidebar-item {
        flex: 1 0 calc(50% - 10px);
        text-align: center;
    }
    .vtuber-grid,
    .shop-grid,
    .news-grid,
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .two-column-layout { 
        grid-template-columns: 240px 1fr; 
        gap: 25px; 
    }
    .vtuber-grid,
    .shop-grid,
    .news-grid,
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (min-width: 1400px) {
    :root {
        --max-width: 1600px;
        --gap: 30px;
    }
    main { padding: 50px 40px; }
    .two-column-layout { grid-template-columns: 320px 1fr; gap: 40px; }
    .vtuber-grid,
    .shop-grid,
    .news-grid,
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
    .hero { padding: 100px 40px; }
    .hero h1 { font-size: 4.5rem; }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        padding: 10px 15px;
        overflow: visible !important;
    }
    .nav-toggle {
        display: block;
        order: 3;
    }
    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 15px 0 5px;
        order: 4;
        border-top: 1px solid var(--border-color);
        margin-top: 10px;
    }
    nav.open {
        display: flex !important;
        position: relative;
        z-index: 10001;
    }
    .logo {
        order: 1;
        flex: 1;
    }
    .theme-toggle {
        order: 2;
        margin-left: auto;
    }
    .two-column-layout { grid-template-columns: 1fr; }
    .sidebar {
        position: static;
        padding: 15px;
    }
    .sidebar-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }
    .sidebar-item {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    .sidebar-item:hover { transform: none; }
    .hero { padding: 40px 15px; }
    .vtuber-grid,
    .shop-grid,
    .news-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .vtuber-card-img { height: 250px; }
    .product-img { height: 220px; }
    .cart-sidebar { 
        width: 100%; 
        right: -100%; 
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem !important; }
    .hero p { font-size: 0.9rem !important; }
    .section-title { font-size: 1.3rem; }
    .product-img { height: 180px; }
    .product-info { padding: 15px; }
    .product-title { font-size: 0.9rem; }
    .product-desc { font-size: 0.8rem; }
    .modal { width: 95%; }
    .modal-title { font-size: 1.2rem; }
    .btn-primary, .btn-secondary, .btn-danger {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .vtuber-card-img { height: 200px; }
    .review-card::before { font-size: 40px; top: 5px; right: 10px; }
    .vtuber-detail .vtuber-photo { height: 220px; }
    .product-detail .product-gallery-main { height: 220px; }
    .product-detail .product-gallery-thumbs img { height: 50px; }
}


/* ===== ДОПОЛНИТЕЛЬНАЯ АДАПТАЦИЯ ===== */

@media (min-width: 1024px) and (max-width: 1200px) and (orientation: portrait) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 20px;
        position: static;
    }
    .sidebar .search-bar {
        grid-column: 1 / -1;
    }
    .sidebar-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .sidebar-item {
        flex: 1 0 calc(50% - 10px);
        text-align: center;
        padding: 12px 10px;
        font-size: 0.9rem;
    }
    .vtuber-grid, .shop-grid, .news-grid, .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    .hero {
        padding: 60px 30px;
    }
    .hero h1 {
        font-size: clamp(2.4rem, 5vw, 3.2rem);
    }
    .product-img {
        height: 240px;
    }
}

@media (min-width: 1200px) and (max-width: 1400px) and (orientation: landscape) {
    .two-column-layout {
        grid-template-columns: 260px 1fr;
        gap: 30px;
    }
    .vtuber-grid, .shop-grid, .news-grid, .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    .product-img {
        height: 260px;
    }
    .hero h1 {
        font-size: clamp(2.8rem, 4.5vw, 3.6rem);
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    header {
        position: relative;
    }
    .hero {
        padding: 30px 20px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .vtuber-grid, .shop-grid, .news-grid, .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .vtuber-card-img {
        height: 180px;
    }
    .product-img {
        height: 150px;
    }
    .modal {
        max-height: 80vh;
        overflow-y: auto;
    }
    .modal-body {
        padding: 15px;
    }
}

@media (max-width: 360px) {
    .nav-container {
        padding: 8px 10px;
    }
    .logo {
        font-size: 1rem;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero p {
        font-size: 0.85rem;
    }
    .vtuber-card-img {
        height: 160px;
    }
    .product-img {
        height: 140px;
    }
    .sidebar {
        padding: 10px;
    }
    .sidebar-item {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .filter-toggle {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .filter-panel {
        max-height: 300px;
    }
    .filter-option {
        padding: 6px 2px;
    }
    .filter-option label {
        font-size: 13px;
    }
    .modal {
        width: 98%;
        padding: 10px;
    }
    .modal-title {
        font-size: 1.1rem;
    }
    .btn-primary, .btn-secondary, .btn-danger {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (pointer: coarse) {
    * {
        scroll-behavior: smooth;
    }
    .sidebar-list {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .filter-options {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    .gallery-item img {
        height: 160px;
    }
}
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    .gallery-item img {
        height: 120px;
    }
    .lightbox-content img {
        max-height: 50vh;
    }
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    .lightbox-nav button {
        padding: 6px 12px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .product-gallery-main {
        height: 250px;
    }
    .product-gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    .product-gallery-thumbs img {
        height: 50px;
    }
    .product-title-big {
        font-size: 1.5rem;
    }
    .product-price-big {
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .arts-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    .arts-preview-grid .art-thumb img {
        height: 90px;
    }
}

button, .filter-toggle, .sidebar-item, .vtuber-card, .product-card, .modal-close {
    cursor: pointer;
    touch-action: manipulation;
}
input, select, textarea {
    font-size: 16px !important;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.3;
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem !important;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    .hero p {
        font-size: 1rem !important;
    }
}

/* ===== СВЕТЛАЯ ТЕМА ===== */
body.light-theme {
    --bg-color: #F5F5F5;
    --card-bg: #FFFFFF;
    --border-color: #DDDDDD;
    --text-main: #1A1A1A;
    --text-muted: #666666;
}
body.light-theme .logo {
    color: #1A1A1A;
}

/* Адаптация фона и границы для героя в светлой теме */
body.light-theme .hero {
    background:
        radial-gradient(
            ellipse 80% 70% at 50% 105%,
            color-mix(in srgb, var(--accent-color) 5%, transparent),
            transparent 70%
        ),
        radial-gradient(
            ellipse 65% 55% at 15% 20%,
            rgba(0,0,0,0.025),
            transparent 65%
        ),
        linear-gradient(
            135deg,
            #ffffff,
            var(--bg-color)
        );
    border-color: color-mix(
        in srgb,
        var(--border-color) 80%,
        var(--accent-color) 20%
    );
    box-shadow:
        0 25px 70px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

body.light-theme .hero::before {
    opacity: 0.05;
}

body.light-theme header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--border-color);
}
body.light-theme .filter-toggle,
body.light-theme .search-bar,
body.light-theme .sidebar-item,
body.light-theme .product-card,
body.light-theme .vtuber-card,
body.light-theme .review-card,
body.light-theme .news-card,
body.light-theme .modal {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-main);
}
body.light-theme .filter-toggle .burger-icon span {
    background: var(--text-main);
}
body.light-theme .filter-panel {
    background: var(--card-bg);
    border-color: var(--border-color);
}
body.light-theme .filter-option:hover {
    background: #F0F0F0;
}
body.light-theme .product-gallery-main {
    background: #F0F0F0;
}
body.light-theme .product-gallery-thumbs img {
    border-color: #DDDDDD;
}
body.light-theme .product-gallery-thumbs img:hover,
body.light-theme .product-gallery-thumbs img.active {
    border-color: var(--accent-color);
}
body.light-theme .modal-overlay {
    background: rgba(0,0,0,0.4);
}
body.light-theme .btn-secondary {
    background: #F0F0F0;
    border-color: var(--border-color);
    color: var(--text-main);
}
body.light-theme .btn-secondary:hover {
    background: #E0E0E0;
}
body.light-theme .social-btn {
    background: #F0F0F0;
    color: var(--text-main);
}
body.light-theme .social-btn:hover {
    background: #E0E0E0;
}
body.light-theme .news-section {
    background: var(--card-bg);
    border-color: var(--border-color);
}
body.light-theme .arts-preview-grid .art-thumb {
    background: #F0F0F0;
    border-color: var(--border-color);
}
body.light-theme footer {
    border-top-color: var(--border-color);
    color: var(--text-muted);
}
body.light-theme .section-title::after {
    background: linear-gradient(90deg, var(--accent-color), transparent);
}



/* ===== VTUBER SHOP storefront polish · 2026-10-14 ===== */
:root {
    --bg-color: #0b0e17;
    --card-bg: #151a29;
    --border-color: rgba(164, 177, 205, 0.19);
    --text-main: #f5f7ff;
    --text-muted: #a4aec4;
    --accent-color: #f04f78;
    --accent-hover: #ff7092;
    --radius: 16px;
}
body {
    min-height: 100vh;
    line-height: 1.55;
    background: radial-gradient(ellipse at 12% -8%, rgba(115, 83, 255, .16), transparent 38rem),
                radial-gradient(ellipse at 92% 12%, rgba(240, 79, 120, .11), transparent 34rem),
                var(--bg-color);
}
header {
    background: rgba(11, 14, 23, .88);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.nav-container { max-width: 1320px; }
.logo { letter-spacing: .035em; }
.logo-dot { box-shadow: 0 0 18px color-mix(in srgb, var(--accent-color) 70%, transparent); }
a { text-underline-offset: .2em; }
button, .btn-primary, .btn-secondary, .btn-soft, .theme-toggle, .nav-toggle {
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent-color) 72%, white);
    outline-offset: 3px;
}
.btn-primary { box-shadow: 0 8px 22px color-mix(in srgb, var(--accent-color) 19%, transparent); }
.btn-primary:hover:not(:disabled), .spin:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 28px color-mix(in srgb, var(--accent-color) 24%, transparent); }
.product-card, .vtuber-card, .review-card, .news-card, .auth, .panel, .section, .product-gallery-main {
    border-color: var(--border-color);
}
.product-card, .vtuber-card, .news-card {
    border-radius: 18px;
    overflow: clip;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.product-card:hover, .vtuber-card:hover, .news-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent-color) 55%, var(--border-color));
    box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}
.auth, .panel, .section { box-shadow: 0 18px 48px rgba(0, 0, 0, .13); }
footer { border-top-color: var(--border-color); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 600px) {
    .nav-container { gap: 10px; }
    .logo { font-size: .95rem; }
    .redeem-row > * { width: 100% !important; }
}

/* ===== VTUBER SHOP light cloud theme ===== */
body.light-theme{--bg-color:#eef8ff;--card-bg:rgba(255,255,255,.88);--border-color:#cbe6f8;--text-main:#17324a;--text-muted:#67869f;--accent-color:#319fe8;--accent-hover:#1787cf;background:linear-gradient(180deg,#dff3ff 0%,#f8fcff 55%,#eaf7ff 100%);position:relative}
body.light-theme::before{content:"";position:fixed;z-index:-1;left:-8vw;right:-8vw;top:8vh;height:58vh;transform:translateY(var(--cloud-shift,0px));transition:transform .08s linear;background:radial-gradient(ellipse at 18% 55%,rgba(255,255,255,.98) 0 16%,transparent 17%),radial-gradient(ellipse at 38% 42%,rgba(255,255,255,.96) 0 21%,transparent 22%),radial-gradient(ellipse at 60% 55%,rgba(255,255,255,.95) 0 19%,transparent 20%),radial-gradient(ellipse at 80% 45%,rgba(255,255,255,.92) 0 16%,transparent 17%);filter:drop-shadow(0 20px 30px rgba(79,157,204,.14));pointer-events:none}
body.light-theme header{background:rgba(244,251,255,.78)!important;backdrop-filter:blur(18px)}
body.light-theme .product-img{background:#e4f4ff}.logo-dot{box-shadow:0 0 0 5px rgba(230,57,70,.08)}body.light-theme .logo-dot{background:#2799df!important;box-shadow:0 0 0 5px rgba(39,153,223,.10)}

.rarity-badge{display:inline-flex;width:max-content;border:1px solid currentColor;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:800;margin:10px 0}.rarity-badge.rarity-common{color:#8a949d}.rarity-badge.rarity-rare{color:#3e83ff}.rarity-badge.rarity-adult{color:#ef4056}.rarity-badge.rarity-legendary{color:#d6a928}.soon-inline{display:inline-flex;margin-left:8px;border:1px solid var(--border-color);border-radius:999px;padding:5px 10px;font-size:11px;color:var(--text-muted)}

/* VTUBER SHOP 2026 visual polish */
:root{--lux-shadow:0 24px 80px rgba(0,0,0,.22)}
body{background-image:radial-gradient(circle at 10% 10%,rgba(91,157,255,.08),transparent 28%),radial-gradient(circle at 90% 20%,rgba(230,57,70,.06),transparent 26%)}
body.light-theme{--bg-color:#f5fbff;--card-bg:#ffffff;--border-color:#c9e5f7;--text-main:#17324a;--text-muted:#5c7890;--accent-color:#3f9fe8;--accent-hover:#2186d0}
body.light-theme .hero-title,body.light-theme .hero h1{background:linear-gradient(135deg,#17324a 0%,#3f9fe8 100%);-webkit-background-clip:text;background-clip:text}
body.light-theme .btn-primary,body.light-theme .hero-btn{border-color:#3f9fe8}
body.light-theme .support-btn{background:linear-gradient(135deg,#6dc3ff,#3f9fe8)}
.support-btn{background:linear-gradient(135deg,#c9a84c,#8f6b18)!important;border:1px solid #f1d47b;box-shadow:0 12px 30px rgba(143,107,24,.25)}
.support-btn::first-letter{color:#fff}

/* More voluminous premium clouds */
body.light-theme::after{content:"";position:fixed;z-index:-1;inset:4vh -10vw auto -10vw;height:62vh;pointer-events:none;background:
radial-gradient(ellipse at 5% 70%,rgba(255,255,255,.94) 0 11%,transparent 12%),
radial-gradient(ellipse at 16% 54%,rgba(255,255,255,.98) 0 15%,transparent 16%),
radial-gradient(ellipse at 28% 68%,rgba(255,255,255,.96) 0 13%,transparent 14%),
radial-gradient(ellipse at 42% 50%,rgba(255,255,255,.97) 0 17%,transparent 18%),
radial-gradient(ellipse at 55% 72%,rgba(255,255,255,.95) 0 12%,transparent 13%),
radial-gradient(ellipse at 67% 55%,rgba(255,255,255,.98) 0 16%,transparent 17%),
radial-gradient(ellipse at 80% 70%,rgba(255,255,255,.94) 0 13%,transparent 14%),
radial-gradient(ellipse at 94% 52%,rgba(255,255,255,.97) 0 15%,transparent 16%);
filter:blur(2px) drop-shadow(0 25px 32px rgba(69,137,183,.16));opacity:.9}

.pill{display:inline-flex;align-items:center;padding:7px 11px;border:1px solid var(--border-color);border-radius:999px;font-size:12px;letter-spacing:.08em;text-transform:uppercase}.btn:disabled,.btn-primary:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}

/* Accessible newsletter subscription block */
.newsletter-block{box-sizing:border-box;max-width:1160px;margin:24px auto 72px;padding:clamp(24px,4vw,44px);display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:32px;align-items:center;border:1px solid var(--border-color);border-radius:24px;background:linear-gradient(135deg,color-mix(in srgb,var(--accent-color) 9%,var(--card-bg)),var(--card-bg));}
.newsletter-kicker{font-size:12px;letter-spacing:.12em;font-weight:800;color:var(--accent-color);margin:0 0 10px}.newsletter-copy h2{margin:0 0 12px;font-size:clamp(24px,3vw,36px);letter-spacing:-.03em}.newsletter-copy p:last-child{margin:0;max-width:600px;line-height:1.7;color:var(--text-muted)}.newsletter-form{display:grid;gap:10px}.newsletter-form>label:first-child{font-size:13px;font-weight:700}.newsletter-form input[type=email]{box-sizing:border-box;width:100%;min-height:46px;padding:12px 14px;border:1px solid var(--border-color);border-radius:12px;background:var(--bg-color);color:var(--text-main)}.newsletter-consent{display:flex;align-items:flex-start;gap:8px;line-height:1.5;font-size:12px;color:var(--text-muted)}.newsletter-consent input{margin-top:3px;flex-shrink:0}.newsletter-status{min-height:20px;margin:0;font-size:13px;color:var(--text-muted)}@media(max-width:760px){.newsletter-block{grid-template-columns:1fr;margin:20px 12px 48px;padding:22px;gap:20px}}

/* VTDialog accessible centered dialog. Keep this in the external stylesheet so CSP does not block it. */
#vt-dialog-root { position: relative; z-index: 2147483000; }
dialog.vt-dialog {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  box-sizing: border-box;
  width: min(520px, calc(100vw - 28px));
  max-width: 520px;
  max-height: min(88dvh, 780px);
  height: fit-content;
  padding: 0;
  border: 1px solid var(--border-color, #d8dce5);
  border-radius: 22px;
  background: var(--card-bg, #fff);
  color: var(--text-main, #171923);
  box-shadow: 0 28px 90px rgba(0,0,0,.28);
  overflow: auto;
  transform: scale(1);
}
dialog.vt-dialog::backdrop { background: rgba(8,12,25,.62); backdrop-filter: blur(5px); }
.vt-dialog__head { display:flex; align-items:flex-start; gap:18px; padding:22px 24px 14px; border-bottom:1px solid var(--border-color,#d8dce5); }
.vt-dialog__mark { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; border-radius:14px; background:color-mix(in srgb,var(--accent-color,#5965f2) 13%,transparent); color:var(--accent-color,#5965f2); font-size:20px; font-weight:800; }
.vt-dialog__title { margin:1px 0 0; font-size:20px; line-height:1.3; font-weight:750; letter-spacing:-.02em; }
.vt-dialog__close { margin-left:auto; flex:0 0 34px; width:34px; height:34px; border:0; border-radius:10px; background:transparent; color:inherit; font-size:22px; cursor:pointer; }
.vt-dialog__close:hover { background:rgba(127,127,127,.13); }
.vt-dialog__body { padding:19px 24px 5px; display:grid; gap:13px; }
.vt-dialog__message { margin:0; color:var(--text-muted,#687084); line-height:1.65; white-space:pre-line; font-size:14px; }
.vt-dialog__fields { display:grid; gap:13px; }
.vt-dialog__field { display:grid; gap:6px; font-size:13px; font-weight:650; }
.vt-dialog__field-label { display:block; }
.vt-dialog__input-wrap { position:relative; display:block; min-width:0; }
.vt-dialog__input-wrap input { padding-right:50px!important; }
.vt-dialog__password-toggle { position:absolute; right:6px; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:36px; height:36px; padding:0; border:0; border-radius:9px; background:transparent; color:var(--text-muted,#687084); cursor:pointer; }
.vt-dialog__password-toggle:hover { background:rgba(127,127,127,.12); color:var(--text-main,#171923); }
.vt-dialog__password-toggle:focus-visible { outline:2px solid var(--accent-color,#5965f2); outline-offset:2px; }
.vt-dialog__password-toggle svg { display:block; width:21px; height:21px; pointer-events:none; }
.vt-dialog__field input,.vt-dialog__field textarea,.vt-dialog__field select { box-sizing:border-box; width:100%; min-height:44px; padding:11px 12px; border:1px solid var(--border-color,#d8dce5); border-radius:12px; background:var(--bg-color,#fff); color:var(--text-main,#171923); font:inherit; font-weight:450; outline:none; transition:border-color .15s,box-shadow .15s; }
.vt-dialog__field textarea { min-height:105px; resize:vertical; }
.vt-dialog__field input:focus,.vt-dialog__field textarea:focus,.vt-dialog__field select:focus { border-color:var(--accent-color,#5965f2); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent-color,#5965f2) 18%,transparent); }
.vt-dialog__hint { font-size:12px; font-weight:400; line-height:1.5; color:var(--text-muted,#687084); }
.vt-dialog__footer { display:flex; justify-content:flex-end; gap:9px; padding:19px 24px 23px; flex-wrap:wrap; }
.vt-dialog__btn { min-height:42px; padding:10px 16px; border-radius:12px; border:1px solid var(--border-color,#d8dce5); background:transparent; color:inherit; font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.vt-dialog__btn:hover { filter:brightness(.97); }
.vt-dialog__btn--primary { color:#fff; border-color:transparent; background:var(--accent-color,#5965f2); }
.vt-dialog__btn--danger { color:#fff; border-color:transparent; background:#cf3446; }
.vt-dialog__btn:disabled { opacity:.55; cursor:wait; }
@media (max-width:480px) {
  dialog.vt-dialog { width:calc(100vw - 18px); border-radius:18px; }
  .vt-dialog__head { padding:18px 17px 12px; }
  .vt-dialog__body { padding:16px 17px 4px; }
  .vt-dialog__footer { padding:16px 17px 18px; }
  .vt-dialog__title { font-size:18px; }
}
@media (prefers-reduced-motion:no-preference) {
  dialog.vt-dialog[open] { animation:vt-dialog-in .16s ease-out; }
  @keyframes vt-dialog-in { from { opacity:0; transform:scale(.985); } to { opacity:1; transform:scale(1); } }
}
/* Legacy custom modal overlays are also centered and constrained to the viewport. */
.modal-overlay { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; box-sizing:border-box; padding:16px; overflow:auto; }
.modal-overlay .modal { margin:auto; flex-shrink:0; }


/* VTUBER SHOP v5.1 — visual polish, accessible inputs and refined starry theme */
body:not(.light-theme) {
  background-color:#08090f;
  background-image:
    radial-gradient(ellipse at 12% 9%, rgba(155,23,46,.23), transparent 31%),
    radial-gradient(ellipse at 88% 23%, rgba(88,20,35,.19), transparent 29%),
    radial-gradient(1px 1px at 7% 18%, rgba(255,255,255,.82) 0 1px, transparent 1.6px),
    radial-gradient(1px 1px at 19% 72%, rgba(255,255,255,.62) 0 1px, transparent 1.7px),
    radial-gradient(1.5px 1.5px at 34% 31%, rgba(255,190,205,.8) 0 1px, transparent 2px),
    radial-gradient(1px 1px at 47% 86%, rgba(255,255,255,.65) 0 1px, transparent 1.7px),
    radial-gradient(1px 1px at 63% 16%, rgba(255,255,255,.72) 0 1px, transparent 1.7px),
    radial-gradient(1.5px 1.5px at 76% 55%, rgba(255,190,205,.74) 0 1px, transparent 2px),
    radial-gradient(1px 1px at 91% 79%, rgba(255,255,255,.7) 0 1px, transparent 1.7px),
    linear-gradient(180deg,#090a11 0%,#0e0b12 52%,#09090f 100%);
  background-attachment:fixed;
}
body:not(.light-theme) .product-card,
body:not(.light-theme) .vtuber-card,
body:not(.light-theme) .review-card,
body:not(.light-theme) .news-card,
body:not(.light-theme) .modal,
body:not(.light-theme) .box,
body:not(.light-theme) .account-card,
body:not(.light-theme) .checkout-card {
  border-color:rgba(255,105,130,.17);
  box-shadow:0 14px 42px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.025);
}
body:not(.light-theme) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  background-color:rgba(16,17,26,.94);
  color:var(--text-main,#f5f5fb);
  border-color:rgba(255,255,255,.15);
  border-radius:12px;
  min-height:44px;
}
body:not(.light-theme) textarea { min-height:118px; line-height:1.55; resize:vertical; }
body:not(.light-theme) :is(input,select,textarea):focus-visible {
  outline:2px solid rgba(240,58,86,.85);
  outline-offset:2px;
  border-color:#ee3656;
}
body:not(.light-theme) .action,
body:not(.light-theme) .btn-primary,
body:not(.light-theme) .btn-secondary {
  border-radius:12px;
  transition:transform .16s ease,filter .16s ease,box-shadow .16s ease;
}
body:not(.light-theme) :is(.action,.btn-primary):hover { box-shadow:0 9px 25px rgba(190,25,58,.23); }
.theme-toggle { min-width:42px; min-height:42px; display:inline-grid; place-items:center; border:1px solid var(--border-color,rgba(255,255,255,.18)); border-radius:13px; background:rgba(127,127,127,.10); cursor:pointer; transition:transform .16s ease,background .16s ease; }
.theme-toggle:hover { transform:translateY(-1px); background:rgba(127,127,127,.16); }
body.light-theme :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { border-radius:12px; min-height:44px; }
body.light-theme textarea { min-height:118px; line-height:1.55; resize:vertical; }
body.light-theme :is(input,select,textarea):focus-visible { outline:2px solid rgba(49,159,232,.65); outline-offset:2px; }
:where(.modal-overlay,.vt-dialog,.modal) :is(input,select,textarea) { max-width:100%; }
:where(.modal-overlay,.modal) textarea { min-height:115px; resize:vertical; }
.vt-dialog { max-height:min(88dvh,820px); overflow:auto; overscroll-behavior:contain; }
.vt-dialog__head { position:sticky; top:0; z-index:2; background:var(--card-bg,#fff); }
.shipping-info { overflow-wrap:anywhere; line-height:1.6; }
@media(max-width:640px) {
  .modal-overlay { padding:9px; align-items:flex-start; }
  .modal-overlay .modal { width:100%; max-width:100%; max-height:calc(100dvh - 18px); overflow:auto; }
  .vt-dialog { width:calc(100vw - 18px); max-height:calc(100dvh - 18px); }
  .theme-toggle { min-width:38px; min-height:38px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}


/* Atmospheric cloudscape: brighter sky, soft volumetric clouds and restrained motion. */
body.light-theme{
  background:linear-gradient(180deg,#4A90E2 0%,#7FB3D8 30%,#B8D8E8 62%,#E8F4FD 100%) fixed!important;
  isolation:isolate;
}
body.light-theme::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:url('/assets/cloudscape-premium-v2.png?v=20261106-cloudscape-2');
  background-repeat:no-repeat;
  background-position:center top;
  background-size:cover;
  opacity:.94;
  transform:translate3d(-.25%,0,0) scale(1.025);
  filter:saturate(.96) contrast(1.025);
  animation:vt-cloudscape-drift 72s ease-in-out infinite alternate;
}
@keyframes vt-cloudscape-drift{
  from{transform:translate3d(-.3%,0,0) scale(1.025)}
  to{transform:translate3d(.3%,-.35%,0) scale(1.025)}
}
body.light-theme::after{content:none!important;display:none!important}
body.light-theme header{background:rgba(246,252,255,.72)!important;border-bottom-color:rgba(145,191,221,.42)!important;backdrop-filter:blur(22px)}
body.light-theme .card,body.light-theme .product-card,body.light-theme .adm-card,body.light-theme .info,body.light-theme .gallery{box-shadow:0 20px 70px rgba(75,127,168,.09),inset 0 1px 0 rgba(255,255,255,.76)}
.rarity-badge.rarity-limited{color:#b47718;border-color:rgba(180,119,24,.6)}
.rarity-badge.rarity-legendary{background:linear-gradient(100deg,rgba(206,166,54,.13),rgba(244,211,117,.14))}
.age-badge{display:inline-flex;align-items:center;justify-content:center;min-width:36px;padding:5px 8px;border-radius:8px;background:#9d1729;color:#fff;border:1px solid rgba(255,255,255,.2);font-size:12px;font-weight:900;letter-spacing:.04em}
.age-gate{max-width:760px;margin:clamp(24px,6vw,70px) auto;padding:clamp(24px,4vw,42px);border:1px solid var(--border-color);border-radius:26px;background:linear-gradient(145deg,var(--card-bg),color-mix(in srgb,var(--accent-color) 7%,var(--card-bg)));box-shadow:0 30px 90px rgba(0,0,0,.18)}
.age-gate .age-symbol{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:20px;background:#9d1729;color:white;font-size:24px;font-weight:950;box-shadow:0 12px 30px rgba(157,23,41,.24)}
.age-gate p{line-height:1.75;color:var(--text-muted);margin:14px 0 22px}.age-gate-actions{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:640px){
  body.light-theme::before{background-position:center top;opacity:.96}
}
@media(prefers-reduced-motion:reduce){
  body.light-theme::before{animation:none!important;transform:none!important}
}

/* Public information links live in the page footer, not in the crowded primary nav. */
.public-footer-nav{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 12px;margin:14px auto 4px;padding:0 12px;font-size:.92rem;line-height:1.8}
.public-footer-nav a{color:var(--text-muted,var(--text-main));text-decoration:none}
.public-footer-nav a:hover,.public-footer-nav a:focus-visible{color:var(--accent,#8b5cf6);text-decoration:underline}

/* Consistent polished back/navigation links */
a.back-button,.back-button{display:inline-flex;align-items:center;gap:9px;padding:10px 16px;border:1px solid var(--border-color);border-radius:12px;background:linear-gradient(135deg,var(--card-bg),rgba(80,140,220,.10));color:var(--text-main);font-weight:750;text-decoration:none;box-shadow:0 5px 16px rgba(0,0,0,.10);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
a.back-button:hover,.back-button:hover{transform:translateY(-2px);border-color:var(--accent-color);box-shadow:0 9px 22px rgba(0,0,0,.16)}

/* v35.4: legacy VIP labels are no longer shown in the public catalogue. */
.vip-badge,.badge-vip,.product-vip-badge,.vip-label,[data-badge=\"vip\"],[data-label=\"VIP\"]{display:none!important}


/* Full-page light sky: use the same cloudscape artwork from the Cloudscape reference. */
body.light-theme {
  background-color: #8fc7ed;
  background-image:
    linear-gradient(180deg, rgba(87, 157, 211, .04) 0%, rgba(225, 243, 255, .02) 58%, rgba(235, 247, 255, .13) 100%),
    url('/assets/cloudscape-premium-v2.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}
body.light-theme::before,
body.light-theme::after {
  content: none !important;
  display: none !important;
}

/* Checkout wizard and basket actions: consistent, accessible button hierarchy. */
.checkout-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: color-mix(in srgb, var(--card-bg) 92%, transparent);
  box-shadow: 0 12px 30px rgba(18, 69, 105, .08);
}
.checkout-step-nav button {
  min-width: 142px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 13px;
  font-weight: 750;
  letter-spacing: .01em;
}
.checkout-step-nav .btn-soft,
.basket-actions #guestClearCart {
  color: var(--text-main);
  border: 1px solid color-mix(in srgb, var(--accent-color) 24%, var(--border-color));
  background: linear-gradient(135deg, color-mix(in srgb, var(--card-bg) 96%, white), color-mix(in srgb, var(--accent-color) 8%, var(--card-bg)));
  box-shadow: 0 7px 18px rgba(34, 102, 150, .08);
}
.checkout-step-nav .btn-soft:hover:not(:disabled),
.basket-actions #guestClearCart:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent-color) 52%, var(--border-color));
  box-shadow: 0 11px 24px rgba(34, 102, 150, .14);
}
.checkout-step-nav .action {
  color: #fff;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #48b4f2, #258bd5);
  box-shadow: 0 9px 22px rgba(37, 139, 213, .24);
}
.checkout-step-nav .action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(37, 139, 213, .3);
}
.checkout-steps { gap: 10px !important; }
.checkout-step-indicator {
  border-radius: 13px !important;
  background: color-mix(in srgb, var(--card-bg) 84%, transparent);
  box-shadow: 0 5px 16px rgba(25, 95, 143, .05);
}
.checkout-step-indicator.active {
  background: color-mix(in srgb, var(--accent-color) 10%, var(--card-bg));
  box-shadow: 0 8px 22px rgba(37, 139, 213, .1);
}
.basket-actions #guestClearCart {
  min-height: 46px;
  border-radius: 13px;
  font-weight: 750;
  cursor: pointer;
}
.basket-actions #guestClearCart:disabled { opacity: .48; cursor: not-allowed; }
@media (max-width: 640px) {
  body.light-theme { background-attachment: scroll; background-position: center top; }
  .checkout-step-nav { padding: 12px; gap: 9px; }
  .checkout-step-nav button { min-width: 0; flex: 1 1 0; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body.light-theme { background-attachment: scroll; }
}
.cart-sync-warning {
  display: block;
  margin-top: 7px;
  color: color-mix(in srgb, var(--text-main) 72%, #c27b18);
  font-size: 12px;
  line-height: 1.5;
}
.notice-dismiss {
  min-height: 34px;
  margin-left: 8px;
  padding: 6px 13px;
  border: 1px solid color-mix(in srgb, var(--accent-color) 28%, var(--border-color));
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-bg) 88%, var(--accent-color));
  color: var(--text-main);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.notice-dismiss:hover { transform: translateY(-1px); border-color: var(--accent-color); }


/* Full-viewport procedural cloudscape in the light theme (desktop, tablets and phones). */
body.light-theme{position:relative;isolation:isolate;background-color:#7fb3d8!important;background-image:linear-gradient(180deg,#4A90E2 0%,#7FB3D8 31%,#B8D8E8 67%,#E8F4FD 100%)!important;background-repeat:no-repeat!important;background-size:cover!important;background-attachment:fixed!important}
body.light-theme::before,body.light-theme::after{content:none!important;display:none!important}
#vt-cloudscape-background{contain:strict;max-width:none;max-height:none}
@media(max-width:760px){body.light-theme{background-attachment:scroll!important}}
@media(prefers-reduced-motion:reduce){#vt-cloudscape-background{transform:none!important}}

/* Password visibility controls */
.password-input-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}
.password-input-wrap > input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding-right: 3.25rem !important;
}
.password-input-wrap > .password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: .45rem;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2.5rem !important;
  height: 2.5rem !important;
  min-width: 2.5rem !important;
  min-height: 2.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: .65rem;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-muted,#687084);
  cursor: pointer;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}
.password-input-wrap > .password-visibility-toggle:hover {
  background: rgba(127,127,127,.12) !important;
  color: var(--text-main,#171923);
}
.password-input-wrap > .password-visibility-toggle:focus-visible {
  outline: 2px solid var(--accent-color,#5965f2);
  outline-offset: 2px;
}
.password-input-wrap > .password-visibility-toggle svg {
  display: block;
  width: 21px;
  height: 21px;
  flex: none;
  pointer-events: none;
}


/* R8: compact support launcher fixed to the lower-right corner. */
.vt-chat-widget{
  position:fixed;
  right:max(14px,env(safe-area-inset-right));
  bottom:max(14px,env(safe-area-inset-bottom));
  z-index:9999;
  width:min(360px,calc(100vw - 28px));
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:12px;
  font-family:inherit;
  pointer-events:none;
  isolation:isolate;
}
.vt-chat-widget>*{pointer-events:auto}
.vt-chat-panel{
  box-sizing:border-box;
  width:100%;
  max-height:min(68vh,560px);
  max-height:min(68dvh,560px);
  overflow:auto;
  overscroll-behavior:contain;
  padding:14px;
  border:1px solid var(--border-color);
  border-radius:18px;
  background:var(--card-bg);
  color:var(--text-main);
  box-shadow:0 16px 50px rgba(0,0,0,.22);
}
.vt-chat-panel[hidden]{display:none!important}
.vt-chat-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.vt-chat-close{flex:0 0 34px;width:34px;height:34px;border:1px solid var(--border-color);border-radius:50%;background:var(--bg-color);color:var(--text-main);font-size:22px;line-height:1;cursor:pointer}
.vt-chat-list{box-sizing:border-box;max-height:min(30vh,220px);max-height:min(30dvh,220px);min-height:42px;overflow:auto;margin:0 0 10px;padding:0 4px;overscroll-behavior:contain}
.vt-chat-message{padding:8px 0;border-bottom:1px solid var(--border-color);overflow-wrap:anywhere}
.vt-chat-message small{display:block;margin-bottom:3px;color:var(--text-muted);font-size:11px}
.vt-chat-message-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.5}
.vt-chat-email,.vt-chat-text{box-sizing:border-box;width:100%;margin:5px 0;padding:10px 11px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-color);color:var(--text-main);font:inherit}
.vt-chat-text{resize:vertical;min-height:76px;max-height:180px}
.vt-chat-status{min-height:18px;margin:4px 0;font-size:12px;line-height:1.4;color:var(--text-muted)}
.vt-chat-send{width:100%;padding:10px 14px}
.vt-chat-launcher{
  display:grid;
  place-items:center;
  box-sizing:border-box;
  width:56px;
  height:56px;
  padding:0;
  border-radius:50%;
  font-size:23px;
  line-height:1;
  box-shadow:0 8px 24px rgba(0,0,0,.24);
  transition:transform .18s ease,box-shadow .18s ease;
}
.vt-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 11px 28px rgba(0,0,0,.28)}
.vt-chat-launcher:focus-visible,.vt-chat-close:focus-visible{outline:3px solid var(--accent-color);outline-offset:3px}
@media(max-width:600px){
  .vt-chat-widget{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));width:min(340px,calc(100vw - 24px));gap:10px}
  .vt-chat-launcher{width:50px;height:50px;font-size:21px}
  .vt-chat-panel{max-height:calc(100vh - 84px);max-height:calc(100dvh - 84px);padding:12px}
  .vt-chat-list{max-height:min(26vh,180px);max-height:min(26dvh,180px)}
}
@media(prefers-reduced-motion:reduce){.vt-chat-launcher{transition:none}}

/* Account review center */
.side-link{display:block;width:100%;box-sizing:border-box;text-align:left;text-decoration:none;color:var(--text-main);padding:11px;border-radius:10px;line-height:1.4}.side-link:hover{background:rgba(127,127,127,.1)}
.reviews-page{max-width:1040px;margin:0 auto;padding:48px 20px 86px}.reviews-back{display:inline-block;color:var(--text-muted);text-decoration:none;margin-bottom:18px}.reviews-shell{background:var(--card-bg);border:1px solid var(--border-color);border-radius:22px;padding:clamp(18px,4vw,34px)}.reviews-heading{max-width:700px;margin-bottom:24px}.reviews-heading h1{margin:5px 0 10px}.reviews-eyebrow{font-size:.72rem;font-weight:750;letter-spacing:.11em;color:var(--accent-color)}.reviews-message{padding:12px 14px;border-radius:12px;background:rgba(127,127,127,.08);color:var(--text-muted);margin:14px 0}.reviews-list{display:grid;gap:14px}.review-write-card{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;border:1px solid var(--border-color);border-radius:16px;padding:14px;min-width:0}.review-write-photo{width:112px;height:112px;object-fit:cover;border-radius:12px;background:rgba(127,127,127,.08)}.review-write-body{min-width:0}.review-write-title{font-size:1.05rem;font-weight:750}.review-write-meta{font-size:.84rem;color:var(--text-muted);margin:5px 0 12px}.review-write-form{display:grid;gap:10px;margin-top:12px}.review-write-form label{display:grid;gap:6px;font-weight:600;font-size:.9rem}.review-write-form select,.review-write-form textarea,.review-write-form input[type=file]{width:100%;box-sizing:border-box;max-width:100%;padding:11px 12px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-color);color:var(--text-main);font:inherit}.review-write-form textarea{min-height:110px;resize:vertical}.review-write-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.review-status{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:.78rem;background:rgba(127,127,127,.12);color:var(--text-muted)}.review-status--ok{color:#23865a;background:rgba(35,134,90,.1)}.review-status--wait{color:#a16c19;background:rgba(201,148,48,.12)}.review-form-message{font-size:.88rem;color:var(--text-muted)}.review-empty{display:flex;gap:10px;flex-wrap:wrap;padding:10px 0}
@media(max-width:640px){.reviews-page{padding:24px 12px 64px}.review-write-card{grid-template-columns:76px minmax(0,1fr);gap:11px;padding:10px}.review-write-photo{width:76px;height:76px}.reviews-shell{border-radius:17px}}


/* R39 mobile navigation stability and readable labels */
@media (max-width: 768px) {
  header .nav-container > nav {
    box-sizing: border-box;
    min-width: 0;
  }

  body.menu-open header {
    z-index: 100000 !important;
  }

  body.menu-open header .nav-container > nav.open {
    display: flex !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    max-height: calc(100vh - 60px) !important;
    max-height: calc(100dvh - 60px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    padding: 14px 20px max(18px, env(safe-area-inset-bottom)) !important;
    gap: 4px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: var(--card-bg) !important;
    color: var(--text-main) !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.32) !important;
    z-index: 100001 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.menu-open header .nav-container > nav.open > a {
    display: flex !important;
    width: 100% !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 11px 4px !important;
    color: var(--text-main) !important;
    font-size: 16px !important;
    font-weight: 650 !important;
    line-height: 1.45 !important;
    text-align: left !important;
    text-indent: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-bottom: 1px solid var(--border-color) !important;
  }

  body.menu-open header .nav-container > nav.open > a:last-child {
    border-bottom: 0 !important;
  }

  .nav-toggle {
    position: relative;
    z-index: 100002 !important;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }
}
