:root {
    --bg: #0d0b14;
    --bg-gradient: radial-gradient(circle at top, #1a1428, #0d0b14 70%);
    --accent: #ff00ff;
    --accent-light: #ff66ff;
    --text: #ffffff;
    --muted: #cccccc;
    --card-bg: rgba(20, 15, 35, 0.6);
    --stroke: #333;
    --glow: 0 0 20px rgba(255, 0, 255, 0.4);
}

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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-gradient);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated background particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Falling Snowflakes */
.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1em;
    opacity: 0.8;
    pointer-events: none;
    animation: fall linear infinite;
    z-index: 2;
}

@keyframes fall {
    to { 
        transform: translateY(100vh) rotate(360deg); 
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 8, 15, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--stroke);
    transform: translateY(-100%);
    animation: slideDown 0.8s ease-out forwards;
}

@keyframes slideDown {
    to { transform: translateY(0); }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 900;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-dot {
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: var(--glow);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 0 0 40px rgba(255, 0, 255, 0.8);
    }
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s;
    transform: translateX(-50%);
}

nav a:hover {
    color: var(--text);
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--accent-light);
}

nav a.active::after {
    width: 100%;
}

.cart {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--stroke);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.cart:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: var(--glow);
}

.cart-icon {
    font-size: 20px;
    animation: swing 2s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: pop 0.3s ease-out;
}

@keyframes pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 8, 15, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--accent);
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.5s ease-out;
    box-shadow: 0 -10px 40px rgba(255, 0, 255, 0.3);
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text p {
    color: var(--muted);
    margin-bottom: 5px;
}

.cookie-text a {
    color: var(--accent-light);
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 14px;
}

.cookie-accept {
    background: linear-gradient(135deg, var(--accent), #9900cc);
    color: white;
    box-shadow: var(--glow);
}

.cookie-accept:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.6);
}

.cookie-decline {
    background: rgba(100, 100, 100, 0.3);
    color: var(--muted);
    border: 1px solid var(--stroke);
}

.cookie-decline:hover {
    background: rgba(100, 100, 100, 0.5);
    color: var(--text);
}

/* Sliding Cart Panel */
.cart-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: rgba(10, 8, 15, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--accent);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: -10px 0 40px rgba(255, 0, 255, 0.3);
    display: flex;
    flex-direction: column;
}

.cart-panel.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cart-overlay.show {
    opacity: 1;
    pointer-events: all;
}

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

.cart-title {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--text), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cart-close:hover {
    color: var(--text);
    background: rgba(255, 0, 255, 0.1);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    background: var(--card-bg);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    transition: all 0.3s;
}

.cart-item:hover {
    border-color: var(--accent);
    transform: translateX(-5px);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--stroke);
}

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

.cart-item-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text);
}

.cart-item-category {
    font-size: 12px;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 18px;
    color: var(--accent);
    font-weight: 700;
}

.cart-item-remove {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.5);
    color: #ff6b6b;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.cart-item-remove:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: scale(1.05);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.cart-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--stroke);
    background: rgba(10, 8, 15, 0.8);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(30, 20, 50, 0.8);
    border-radius: 12px;
    border: 1px solid var(--accent);
}

.cart-total-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--muted);
}

.cart-total-amount {
    font-size: 28px;
    color: var(--accent);
    font-weight: 900;
}

.cart-checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), #9900cc);
    color: white;
    padding: 16px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--glow);
}

.cart-checkout-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.6);
}

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

.notification-bar {
    background: rgba(30, 20, 50, 0.8);
    padding: 12px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid var(--stroke);
    animation: slideInDown 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.notification-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to { left: 100%; }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-content {
    position: relative;
    z-index: 10;
}

footer {
    text-align: center;
    padding: 60px 40px;
    color: var(--muted);
    border-top: 1px solid var(--stroke);
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    header { padding: 20px; flex-direction: column; gap: 20px; }
    nav ul { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .cart-panel { width: 100%; right: -100%; }
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-buttons { width: 100%; }
    .cookie-btn { flex: 1; }
}
