/* =============================================
   DesignDeepDream — Modern Responsive CSS
   Mobile-first, clean, fast
   ============================================= */

/* ── CSS Variables ── */
:root {
    --primary: #6C3CE1;
    --primary-dark: #5228C0;
    --primary-light: #8B5CF6;
    --secondary: #F59E0B;
    --accent: #EC4899;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    --bg: #0F0F14;
    --bg-card: #1A1A24;
    --bg-elevated: #232334;
    --bg-input: #1E1E2E;
    --border: #2D2D44;
    --border-light: #3D3D5C;

    --text: #F1F1F6;
    --text-secondary: #A0A0B8;
    --text-muted: #6B6B8A;
    --text-inverse: #0F0F14;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(108, 60, 225, 0.15);

    --transition: 0.2s ease;
    --max-width: 1400px;
    --header-height: 72px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { color: var(--text-secondary); }

/* ── Utility ── */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary-light); }
.text-secondary-color { color: var(--secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    gap: 16px;
}
.site-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-logo span { color: var(--primary-light); }
.site-logo:hover { color: var(--text); }

/* Search bar */
.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}
.header-search input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 10px 20px 10px 44px;
    color: var(--text);
    font-size: 0.9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.15);
}
.header-search .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

/* Nav */
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-nav a, .header-nav button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.header-nav a:hover, .header-nav button:hover {
    color: var(--text);
    background: var(--bg-elevated);
}
.nav-cart-badge {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    padding: 4px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(108, 60, 225, 0.4);
}
.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--border);
    color: var(--text);
}
.btn-accent {
    background: var(--secondary);
    color: var(--text-inverse);
}
.btn-accent:hover {
    background: #D97706;
    color: var(--text-inverse);
}
.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 12px;
}
.btn-ghost:hover {
    color: var(--text);
    background: var(--bg-elevated);
}
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Cards ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow);
}
.card-body { padding: 20px; }
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

/* ── Product Grid ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}
.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.product-card__image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-elevated);
    position: relative;
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card__image img {
    transform: scale(1.05);
}
.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-card__fav {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1rem;
}
.product-card__fav:hover { background: var(--accent); }
.product-card__fav.active { background: var(--accent); }
.product-card__body { padding: 16px; }
.product-card__creator {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.product-card__creator a { color: var(--text-muted); }
.product-card__creator a:hover { color: var(--primary-light); }
.product-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__title a { color: var(--text); }
.product-card__title a:hover { color: var(--primary-light); }
.product-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
}
.product-card__price .compare-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}
.product-card__type {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Series Cards ── */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.series-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}
.series-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}
.series-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark), var(--bg-elevated));
    display: flex;
    align-items: center;
    justify-content: center;
}
.series-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.series-card__placeholder {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.15);
    text-transform: uppercase;
}
.series-card__body { padding: 20px; }
.series-card__name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.series-card__name a { color: var(--text); }
.series-card__name a:hover { color: var(--primary-light); }
.series-card__desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.series-card__count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Hero Section ── */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(108, 60, 225, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.hero h1 .highlight { color: var(--primary-light); }
.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px;
    color: var(--text-secondary);
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Section ── */
.section {
    padding: 60px 0;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-header h2 {
    font-size: 1.5rem;
}
.section-header a {
    font-size: 0.9rem;
    color: var(--primary-light);
    font-weight: 500;
}

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; }
.form-hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* ── Alerts ── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid;
}
.alert-success { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); color: var(--success); }
.alert-error { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: var(--danger); }
.alert-warning { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); color: var(--warning); }
.alert-info { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); color: var(--info); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}
.table th {
    background: var(--bg-elevated);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.table td { color: var(--text-secondary); }
.table tr:hover td { background: rgba(108, 60, 225, 0.03); }

/* ── Badge ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.badge-primary { background: rgba(108, 60, 225, 0.15); color: var(--primary-light); }
.badge-neutral { background: var(--bg-elevated); color: var(--text-muted); }

/* ── Pagination ── */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    padding: 40px 0;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.pagination a:hover {
    color: var(--text);
    border-color: var(--primary);
    background: var(--bg-elevated);
}
.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ── Stats Grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.stat-card__value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}
.stat-card__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-card--primary .stat-card__value { color: var(--primary-light); }
.stat-card--success .stat-card__value { color: var(--success); }
.stat-card--accent .stat-card__value { color: var(--secondary); }

/* ── Page Header ── */
.page-header {
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}
.page-header h1 { margin-bottom: 8px; }
.page-header p { font-size: 1rem; }
.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb .separator { color: var(--border-light); }

/* ── Footer ── */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand h3 { margin-bottom: 12px; }
.footer-brand h3 span { color: var(--primary-light); }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); max-width: 300px; }
.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.875rem; }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Admin / Panel Layout ── */
.panel-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - var(--header-height));
}
.panel-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}
.panel-sidebar__nav { list-style: none; }
.panel-sidebar__nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}
.panel-sidebar__nav li a:hover {
    background: var(--bg-elevated);
    color: var(--text);
}
.panel-sidebar__nav li a.active {
    color: var(--primary-light);
    background: rgba(108, 60, 225, 0.05);
    border-left-color: var(--primary);
}
.panel-sidebar__section {
    padding: 8px 24px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 16px;
}
.panel-content { padding: 32px 40px; }

/* ── Listing Detail ── */
.listing-detail {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}
.listing-gallery {
    position: relative;
}
.listing-gallery__main {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.listing-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.listing-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}
.listing-sidebar .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 4px;
}
.listing-sidebar .compare-price {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.listing-sidebar .creator-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.listing-sidebar .creator-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    overflow: hidden;
}
.variant-selector { margin: 24px 0; }
.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.variant-option {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
}
.variant-option:hover, .variant-option.selected {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(108, 60, 225, 0.05);
}
.buy-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

/* ── Cart ── */
.cart-table { width: 100%; }
.cart-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.cart-item__image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-elevated);
    flex-shrink: 0;
}
.cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__details { flex: 1; }
.cart-item__title { font-weight: 600; margin-bottom: 4px; }
.cart-item__meta { font-size: 0.8rem; color: var(--text-muted); }
.cart-item__price { font-weight: 700; color: var(--secondary); white-space: nowrap; }
.cart-item__remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.85rem;
}
.cart-item__remove:hover { color: var(--danger); }
.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.cart-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
}
.cart-summary__total {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 1.2rem;
    font-weight: 700;
}
.cart-summary__total .amount { color: var(--secondary); }

/* ── Reviews ── */
.review {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.review-stars { color: var(--secondary); }
.review-author { font-weight: 600; font-size: 0.9rem; }
.review-date { font-size: 0.8rem; color: var(--text-muted); }
.review-body { font-size: 0.9rem; color: var(--text-secondary); }

/* ── Stars ── */
.stars { display: flex; gap: 2px; }
.star { color: var(--border-light); }
.star.filled { color: var(--secondary); }

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state__icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* ── Loading ── */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Mobile Responsive ── */
@media (max-width: 1024px) {
    .listing-detail { grid-template-columns: 1fr; }
    .listing-sidebar { position: static; }
    .panel-layout { grid-template-columns: 1fr; }
    .panel-sidebar { display: none; }
    .panel-content { padding: 24px 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-search { display: none; }
    .header-nav .nav-text { display: none; }
    .mobile-menu-btn { display: block; }
    .hero { padding: 50px 0 40px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .section { padding: 40px 0; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .product-card__body { padding: 12px; }
    .product-card__title { font-size: 0.85rem; }
    .series-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .cart-item { flex-wrap: wrap; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .container { padding: 0 16px; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* ── Creator Shop Banner ── */
.creator-banner {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-dark), var(--bg-elevated));
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: -60px;
    position: relative;
}
.creator-banner img { width: 100%; height: 100%; object-fit: cover; }
.creator-profile-header {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}
.creator-avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--bg);
    background: var(--bg-elevated);
    overflow: hidden;
    flex-shrink: 0;
}
.creator-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.creator-info-main h1 { margin-bottom: 4px; }
.creator-info-main p { font-size: 0.9rem; }

/* ── Filters Sidebar ── */
.browse-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}
.filter-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    align-self: start;
}
.filter-group { margin-bottom: 24px; }
.filter-group h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.sort-bar .result-count { font-size: 0.875rem; color: var(--text-muted); }
.sort-bar select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}
@media (max-width: 768px) {
    .browse-layout { grid-template-columns: 1fr; }
    .filter-sidebar { display: none; }
}

/* ── Checkout Layout ── */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}
@media (max-width: 768px) {
    .checkout-layout { grid-template-columns: 1fr; }
}

/* ── Auth Pages ── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 200px);
    padding: 40px 20px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.auth-card h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    text-align: center;
}
.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.auth-card .divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 24px 0;
    position: relative;
}
.auth-card .divider::before,
.auth-card .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 24px);
    height: 1px;
    background: var(--border);
}
.auth-card .divider::before { left: 0; }
.auth-card .divider::after { right: 0; }
