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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #0f0f0f;
    color: #e8e8e8;
    min-height: 100vh;
}

header {
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

header a.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

header a.logo span {
    color: #6c63ff;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #fff;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-badge {
    background: #6c63ff;
    color: #fff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 1px 7px;
    min-width: 20px;
    text-align: center;
    display: none;
}

.cart-badge.visible {
    display: inline-block;
}

main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px;
}

footer {
    text-align: center;
    padding: 32px;
    color: #555;
    font-size: 0.85rem;
    border-top: 1px solid #1e1e1e;
    margin-top: 80px;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.25s ease;
}

.modal h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #fff;
}

.modal p {
    color: #888;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal button {
    background: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.modal button:hover {
    background: #574fd6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
