:root {
    --bg: #0d0d0f;
    --bg-card: #121113;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.72);
    --accent: #bfbfbf;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 0.5rem;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --container: 1320px;
}

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

html { scroll-behavior: smooth; }

body.site-dark {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.site-bg-character {
    position: absolute;
    bottom: 0;
    width: min(38vw, 520px);
    height: min(92vh, 900px);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    opacity: 0.55;
    filter: saturate(1.1) contrast(1.05);
}

.site-bg-left {
    left: -2%;
    background-image: url('../images/bg-character-left.png');
    mask-image: linear-gradient(to right, #000 55%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%);
}

.site-bg-right {
    right: -2%;
    background-image: url('../images/bg-character-right.png');
    mask-image: linear-gradient(to left, #000 55%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
}

.site-bg-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.55) 100%),
        linear-gradient(180deg, rgba(13,13,15,0.3) 0%, rgba(13,13,15,0.85) 100%);
}

.site-shell {
    position: relative;
    z-index: 1;
}

#main-container {
    background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 24px 24px;
}

img, iframe, a { border-radius: var(--radius); }

::selection {
    color: white;
    background-color: var(--accent);
}

::-webkit-scrollbar { width: 10px; background-color: #1a1a1a; }
::-webkit-scrollbar-track { border-radius: 8px; box-shadow: inset 0 0 10px rgba(0,0,0,0.25); }
::-webkit-scrollbar-thumb {
    border-radius: 2rem;
    background: linear-gradient(170deg, #bfbfbf 0%, #5c5c5c 100%);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}
.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 9999;
    background: #fff;
    color: #000;
    padding: 8px 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    display: block;
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 24px rgba(255, 77, 141, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.site-logo-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #ff6b9d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (max-width: 768px) {
    .site-logo-text { display: none; }
    .site-bg-character { opacity: 0.22; width: min(50vw, 280px); }
}

.header-nav { flex: 1; display: flex; justify-content: center; }
.header-nav > ul { display: flex; gap: 8px; align-items: center; }

.header-nav a {
    display: block;
    padding: 10px 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    transition: background 0.2s;
}

.header-nav a:hover, .header-nav a.active { background: rgba(255,255,255,0.06); }

.has-dropdown { position: relative; }
.has-dropdown .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #1a1a1c;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.has-dropdown:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown .sub-menu a { font-size: 14px; }

.header-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.header-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    padding: 8px;
    position: relative;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: 700;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count[data-count="0"] { display: none; }

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.btn-discord:hover { background: rgba(255,255,255,0.08); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.hide-mobile { }
@media (max-width: 1024px) {
    .header-nav, .hide-mobile, .btn-discord { display: none; }
    .menu-toggle { display: flex; }
}

.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
}
.mobile-drawer[aria-hidden="false"] { pointer-events: auto; }
.mobile-drawer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.3s;
}
.mobile-drawer[aria-hidden="false"]::before { opacity: 1; }
.mobile-drawer-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: #141416;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s;
    overflow-y: auto;
}
.mobile-drawer[aria-hidden="false"] .mobile-drawer-inner { transform: translateX(0); }
.drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    margin-bottom: 20px;
}
.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: #fff;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
}
.mobile-nav .has-sub > span { display: block; padding: 12px 0; font-weight: 600; color: var(--text-muted); }
.mobile-nav .has-sub ul a { padding-left: 16px; font-size: 14px; }

.account-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
}
.account-modal[aria-hidden="false"] { pointer-events: auto; opacity: 1; }
.account-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}
.account-modal-panel {
    position: relative;
    width: min(440px, 92vw);
    background: #161618;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.account-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
.account-tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.account-tabs li {
    padding: 12px 16px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.account-tabs li.active { color: #fff; border-bottom-color: #fff; }
.account-form { display: none; }
.account-form.active { display: block; }
.account-form label { display: block; margin-bottom: 6px; font-size: 14px; }
.account-form input[type="text"],
.account-form input[type="email"],
.account-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: #000;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
}
.login-remember { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.form-note { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.btn-primary, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    background: linear-gradient(170deg, #bfbfbf 0%, #5c5c5c 100%);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}
.btn-primary:hover, .button:hover { transform: translateY(-1px); opacity: 0.95; }

.site-main { min-height: 60vh; }
.page-container { max-width: var(--container); margin: 0 auto; padding: 40px 20px; }

/* Page banners */
.page-banner {
    position: relative;
    min-height: 220px;
    margin: 0 20px 32px;
    border-radius: 28px;
    overflow: hidden;
    background: var(--banner-image, none) center/cover no-repeat;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.75) 100%);
}

.page-banner-content {
    position: relative;
    z-index: 1;
    padding: 48px 40px;
    max-width: 700px;
}

.page-banner-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 107, 157, 0.15);
    border: 1px solid rgba(255, 107, 157, 0.3);
    color: #ff8fb3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-banner-content h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.1;
}

.page-banner-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.6;
}

/* Shop category cards with images */
.shop-categories-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.shop-categories-visual .shop-category-card {
    padding: 0;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.shop-category-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #0b0b0f;
}

.shop-category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.35s ease;
}

.shop-categories-visual .shop-category-card:hover .shop-category-thumb img {
    transform: scale(1.05);
}

.shop-category-info {
    padding: 20px 22px 22px;
}

.shop-category-info h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.shop-category-info span {
    color: var(--text-muted);
    font-size: 14px;
}

.why-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .page-banner { margin: 0 12px 24px; min-height: 180px; border-radius: 20px; }
    .page-banner-content { padding: 32px 24px; }
    .shop-categories-visual { grid-template-columns: 1fr; }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.015) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.22s, box-shadow 0.22s;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.product-card figure {
    margin: 0;
    position: relative;
    padding: 24px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(255,255,255,0.04) 0%, transparent 70%);
}
.product-card figure img {
    max-width: 170px;
    max-height: 170px;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius);
}
.badge-soldout {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #cf2e2e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}
.product-card h2 {
    margin: 0;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}
.product-card h2 a:hover { color: var(--accent); }
.product-meta {
    padding: 8px 16px 0;
    font-size: 13px;
    color: var(--text-muted);
}
.product-actions {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}
.product-actions .price {
    font-size: 18px;
    font-weight: 700;
}
.product-actions .button {
    width: 100%;
    font-size: 14px;
    min-height: 42px;
}

@media (max-width: 1200px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products-grid { grid-template-columns: 1fr; } }

.shop-header { text-align: center; margin-bottom: 40px; }
.shop-header h1 { font-size: 42px; font-weight: 800; margin: 0 0 12px; }
.shop-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}
.shop-category-card {
    display: block;
    padding: 32px 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: transform 0.2s;
}
.shop-category-card:hover { transform: translateY(-4px); }
.shop-category-card h2 { margin: 0 0 8px; font-size: 28px; }
.shop-category-card span { color: var(--text-muted); font-size: 14px; }

.shop-search {
    max-width: 480px;
    margin: 0 auto 40px;
    display: flex;
    gap: 10px;
}
.shop-search input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid #4a4a4a;
    background: #000;
    color: #fff;
    font-size: 14px;
    outline: none;
}
.shop-search input:focus { border-color: var(--accent); }
.shop-search button { border-radius: 999px; }

.faq-page { max-width: 900px; margin: 0 auto; padding: 60px 20px; }
.faq-page h1 { font-size: 42px; font-weight: 800; text-align: center; margin-bottom: 16px; }
.faq-intro { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 18px; }
.faq-section { margin-bottom: 40px; }
.faq-section h2 { font-size: 28px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.faq-item { margin-bottom: 24px; }
.faq-item h3 { font-size: 18px; margin: 0 0 8px; }
.faq-item p { color: var(--text-muted); margin: 0; line-height: 1.7; }
.faq-item ul { margin: 8px 0 0; padding-left: 20px; list-style: disc; color: var(--text-muted); }

.legal-page { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.legal-page h1 { font-size: 36px; margin-bottom: 32px; }
.legal-page h4 { font-size: 20px; margin: 28px 0 12px; }
.legal-page p, .legal-page li { color: var(--text-muted); line-height: 1.8; }
.legal-page ul { padding-left: 20px; list-style: disc; margin: 12px 0; }

.product-single {
    max-width: var(--container);
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.product-single-gallery img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
}
.product-single-info h1 { font-size: 36px; margin: 0 0 16px; }
.product-single-info .price { font-size: 28px; font-weight: 800; margin-bottom: 24px; display: block; }
.product-description { color: var(--text-muted); line-height: 1.8; }
.product-description p { margin-bottom: 16px; }
.stock-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.stock-badge.in { background: rgba(0,208,130,0.15); color: #00d084; }
.stock-badge.out { background: rgba(207,46,46,0.15); color: #cf2e2e; }

.cart-page { max-width: 900px; margin: 0 auto; padding: 60px 20px; }
.cart-page h1 { font-size: 36px; margin-bottom: 32px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 16px; border-bottom: 1px solid var(--border); text-align: left; }
.cart-table img { width: 60px; border-radius: 8px; }

.account-page { max-width: 600px; margin: 0 auto; padding: 60px 20px; }
.account-page h1 { font-size: 36px; margin-bottom: 24px; }

.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.4);
}
.footer-middle { padding: 60px 20px; }
.footer-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.footer-brand p { color: var(--text-muted); margin-top: 16px; max-width: 360px; line-height: 1.7; }
.footer-col h6 {
    font-size: 16px;
    margin: 0 0 16px;
    color: var(--accent);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 15px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px;
    text-align: center;
}
.footer-bottom p { margin: 0; color: var(--text-muted); font-size: 14px; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .shop-categories { grid-template-columns: 1fr; }
    .product-single { grid-template-columns: 1fr; }
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: #fff;
    color: #000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 50;
    transition: opacity 0.2s;
}
.back-to-top[hidden] { display: none; }

.popular-products-section {
    padding: 40px 20px 90px;
    max-width: 1380px;
    margin: 0 auto;
}
.popular-products-section h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 8px;
}
.popular-products-section > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-page-wrap {
    padding: 20px;
    max-width: 1440px;
    margin: 0 auto;
}
.hero-page-wrap .zuki-hero {
    background:
        linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.72) 100%),
        url('../images/hero-bg.png') center/cover no-repeat;
}

.zuki-hero-image img {
    width: 280px;
    max-width: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
        0 0 0 4px rgba(255, 107, 157, 0.25),
        0 25px 60px rgba(0, 0, 0, 0.45),
        0 0 80px rgba(255, 77, 141, 0.3);
}

.zuki-category-image img,
.product-card figure img {
    border-radius: 16px;
}

.zuki-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card figure img {
    max-width: 100%;
    max-height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.footer-brand img {
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 77, 141, 0.25);
}
