:root {
    --bg-main: #0a0d14;
    --bg-card: #121824;
    --bg-card-subtle: #182030;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(157, 78, 221, 0.4);
    --accent-primary: #9d4edd;
    --accent-glow: rgba(157, 78, 221, 0.3);
    --accent-cyan: #00f2fe;
    --accent-amber: #f59e0b;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Announcement Top Bar */
.announcement-bar {
    background: linear-gradient(90deg, #7928ca, #ff0080, #7928ca);
    background-size: 200% auto;
    animation: gradientShift 6s ease infinite;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 8px 16px;
    letter-spacing: 0.02em;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    object-fit: cover;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    display: block;
    color: #ffffff;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent-cyan);
}

.cart-btn {
    position: relative;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-btn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-main);
}

/* Hero Showcase */
.hero-section {
    padding: 60px 24px 40px;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, rgba(157, 78, 221, 0.18) 0%, transparent 60%);
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(157, 78, 221, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(157, 78, 221, 0.3);
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff 40%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    max-width: 580px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* Store Main Container */
.store-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 10px 24px 80px;
    flex: 1;
}

/* Category Filter Tabs */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 36px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.cat-pill {
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cat-pill:hover, .cat-pill.active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #06090e;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: rgba(10, 13, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-cat {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.size-selector {
    margin-bottom: 16px;
}

.size-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
}

.size-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.size-chip {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.size-chip.selected {
    background: rgba(157, 78, 221, 0.25);
    border-color: var(--accent-primary);
    color: #ffffff;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--accent-primary), #7928ca);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    box-shadow: 0 4px 16px var(--accent-glow);
    transform: translateY(-2px);
}

/* Slide-over Drawer Cart */
.cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: #0f141f;
    border-left: 1px solid var(--border-color);
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.close-cart-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-empty-msg {
    color: var(--text-muted);
    text-align: center;
    margin-top: 40px;
    font-size: 15px;
}

.cart-item-row {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--bg-card);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cart-item-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 13px;
    color: var(--accent-cyan);
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: #0c1018;
}

.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cart-shipping-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-primary), #7928ca);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
.shop-footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
}

.shop-footer a {
    color: var(--accent-cyan);
    text-decoration: none;
    margin-top: 6px;
    display: inline-block;
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 30px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
}
