/* NovaCart Premium Dark Luxury */
:root {
    color-scheme: dark;
    font-family: 'Poppins', sans-serif;
    --bg: #080b14;
    --surface: rgba(16,20,33,.92);
    --surface-strong: #121828;
    --surface-soft: rgba(255,255,255,.05);
    --primary: #FF3B5C;
    --secondary: #6C63FF;
    --accent: #00E5FF;
    --success: #22C55E;
    --warning: #F59E0B;
    --text: #F8FAFC;
    --muted: rgba(248,250,252,.72);
    --border: rgba(255,255,255,0.08);
    --shadow: 0 30px 80px rgba(0,0,0,.32);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(108,99,255,.18), transparent 18%),
                radial-gradient(circle at bottom right, rgba(0,229,255,.12), transparent 22%),
                var(--bg);
    color: var(--text);
}

a {
    color: var(--muted);
    text-decoration: none;
}

a:hover {
    color: var(--secondary);
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1.6rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 18px 40px rgba(255,59,92,.22);
}

.btn-secondary {
    background: rgba(255,255,255,.05);
    color: var(--muted);
    border: 1px solid rgba(255,255,255,.08);
}

.btn:hover {
    transform: translateY(-2px);
}

.text-muted {
    color: var(--muted);
}

.page-header {
    padding: 2rem 0 1rem;
}

.page-header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-header {
    background: rgba(10, 14, 26, .94);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header__top {
    display: none;
}

.brand-row,
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-top {
    padding: 1.25rem 0 .65rem;
}

.site-logo {
    color: #fff;
    font-weight: 900;
    font-size: 1.65rem;
    letter-spacing: .08rem;
    text-transform: uppercase;
}

.top-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.top-nav a {
    color: var(--muted);
    font-size: .95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    transition: color .2s ease;
}

.top-nav a:hover {
    color: #fff;
}

.header-meta {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.header-meta a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    color: var(--muted);
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.08);
    transition: all .2s ease;
}

.header-meta a:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.header-main {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    padding: 1rem;
}

.category-toggle {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.06);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    min-width: 220px;
}

.category-toggle .menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 14px;
    background: rgba(255,255,255,.12);
}

.search-panel {
    flex: 1;
    min-width: 260px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
}

.search-panel input[type="search"] {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.search-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.search-meta select {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff;
    padding: 1rem 1.1rem;
    min-width: 220px;
    outline: none;
}

.btn-search {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: 999px;
    width: 64px;
    min-width: 64px;
    height: 64px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-actions.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-actions.header-right .greeting {
    color: #e2e8f0;
    font-weight: 700;
    letter-spacing: .03em;
}

.header-actions.header-right .icon-button {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    transition: transform .2s ease, background .2s ease;
}

.header-actions.header-right .icon-button:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.16);
}

.header-actions.header-right .action-badge {
    top: -8px;
    right: -8px;
}

@media (max-width: 980px) {
    .header-main {
        flex-direction: column;
        align-items: stretch;
    }

    .category-toggle,
    .search-panel,
    .header-actions.header-right {
        width: 100%;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .search-meta {
        justify-content: space-between;
    }
}

@media (max-width: 720px) {
    .top-nav {
        justify-content: center;
    }

    .header-meta {
        justify-content: center;
        width: 100%;
    }

    .search-meta select {
        min-width: 0;
        flex: 1;
    }
}

.header-actions .btn {
    padding: .75rem 1rem;
}

.action-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: .72rem;
    position: absolute;
    top: -8px;
    right: -8px;
}

.site-header__nav {
    padding-bottom: 1rem;
    overflow-x: auto;
}

.site-header__nav nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.site-header__nav a {
    color: var(--muted);
    font-size: .95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s ease;
}

.site-header__nav a:hover {
    color: #fff;
}

.flash-bar {
    padding: .85rem 0;
    color: #d5ffe3;
    background: rgba(34, 197, 94, .12);
    border-top: 1px solid rgba(34, 197, 94, .15);
    text-align: center;
}

.hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    padding: 2rem 0 3rem;
}

.hero__sidebar {
    background: rgba(21, 27, 45, .98);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 32px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.hero__sidebar h2,
.hero__sidebar nav a {
    margin: 0;
}

.hero__main {
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    border: 1px solid var(--border);
    border-radius: 36px;
    padding: 2.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,59,92,.14);
    color: #ff8aa2;
    padding: .75rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero__title {
    font-size: clamp(3rem, 4vw, 4.4rem);
    line-height: .95;
    margin: 0;
}

.hero__subtitle {
    max-width: 640px;
    color: var(--muted);
    margin: 1.5rem 0 2rem;
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hero__stat {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    padding: 1.25rem;
}

.hero__stat h3 {
    margin: 0 0 .5rem;
    font-size: 1rem;
    color: var(--muted);
}

.hero__stat p {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.flash-sale {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 1.25rem;
}

.flash-card {
    position: relative;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    padding: 1.5rem;
    overflow: hidden;
}

.flash-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,59,92,.18), transparent 30%);
    pointer-events: none;
}

.flash-card__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,59,92,.15);
    color: #ff8aa2;
    padding: .55rem .9rem;
    border-radius: 999px;
    font-size: .85rem;
    margin-bottom: 1rem;
}

.flash-card h3 {
    margin: 0 0 .75rem;
    font-size: 1.05rem;
}

.flash-card p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.flash-card .price {
    font-size: 1.2rem;
    font-weight: 700;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    margin: 0;
    font-size: 2rem;
}

.section-title a {
    color: var(--muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 28px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

.product-card__image {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(108,99,255,.16), rgba(0,229,255,.1));
}

.product-card__body {
    padding: 1.5rem;
}

.product-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: .95rem;
}

.product-card__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    font-weight: 700;
}

.product-card__price span:first-child {
    color: var(--primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    padding: 1.5rem;
}

.feature-card h4 {
    margin: 0 0 .75rem;
    font-size: 1rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

.hero__sidebar h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.hero__sidebar nav {
    display: grid;
    gap: .75rem;
}

.hero__sidebar nav a {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .95rem 1rem;
    border-radius: 18px;
    color: var(--muted);
    border: 1px solid transparent;
    transition: background .22s ease, color .22s ease, border-color .22s ease;
}

.hero__sidebar nav a:hover {
    background: rgba(255,255,255,.04);
    color: #fff;
    border-color: rgba(255,255,255,.12);
}

.hero__main {
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    border: 1px solid var(--border);
    border-radius: 36px;
    padding: 2.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,59,92,.14);
    color: #ff8aa2;
    padding: .75rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero__title {
    font-size: clamp(3rem, 4vw, 4.4rem);
    line-height: .95;
    margin: 0;
}

.hero__subtitle {
    max-width: 640px;
    color: var(--muted);
    margin: 1.5rem 0 2rem;
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hero__stat {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    padding: 1.25rem;
}

.hero__stat h3 {
    margin: 0 0 .5rem;
    font-size: 1rem;
    color: var(--muted);
}

.hero__stat p {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.flash-sale {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 1.25rem;
}

.flash-card {
    position: relative;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    padding: 1.5rem;
    overflow: hidden;
}

.flash-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,59,92,.18), transparent 30%);
    pointer-events: none;
}

.flash-card__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,59,92,.15);
    color: #ff8aa2;
    padding: .55rem .9rem;
    border-radius: 999px;
    font-size: .85rem;
    margin-bottom: 1rem;
}

.flash-card h3 {
    margin: 0 0 .75rem;
    font-size: 1.05rem;
}

.flash-card p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.flash-card .price {
    font-size: 1.2rem;
    font-weight: 700;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    margin: 0;
    font-size: 2rem;
}

.section-title a {
    color: var(--muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 28px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

.product-card__image {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(108,99,255,.16), rgba(0,229,255,.1));
}

.product-card__body {
    padding: 1.5rem;
}

.product-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: .95rem;
}

.product-card__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    font-weight: 700;
}

.product-card__price span:first-child {
    color: var(--primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    padding: 1.5rem;
}

.feature-card h4 {
    margin: 0 0 .75rem;
    font-size: 1rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

@media (max-width: 1120px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .flash-sale,
    .product-grid,
    .feature-grid,
    .hero__stats {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 760px) {
    .page-header__top,
    .hero__stats,
    .flash-sale,
    .product-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .product-card {
        width: 100%;
    }
    .product-card__image {
        aspect-ratio: auto;
        height: 220px;
    }
    .product-card__image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .product-card__price {
        flex-direction: column;
        align-items: flex-start;
    }
    .product-card__price a {
        width: 100%;
        text-align: center;
        padding: .85rem 1rem;
    }
    .site-search {
        width: 100%;
    }
    .site-header__top {
        flex-direction: column;
        align-items: stretch;
    }
    .search-field {
        flex-wrap: wrap;
    }
}
