:root {
    --bg: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #00f5ff;
    --accent-glow: rgba(0, 245, 255, 0.3);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-blur: blur(12px);
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-primary);
    overflow-x: hidden;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.glass {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    border-top: none;
    border-left: none;
    border-right: none;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    cursor: pointer;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.nav-actions button {
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.nav-actions button:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: var(--bg);
    font-size: 0.7rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sections */
.section {
    padding: 100px 0;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 245, 255, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent-glow);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

h1 span {
    display: block;
    color: var(--text-muted);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.8s var(--transition);
}

.hero-visual:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.radial-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(50px);
}

/* Products */
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.section-header span {
    color: var(--text-muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    border-radius: 24px;
    padding: 1rem;
    transition: all 0.5s var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #141414;
    aspect-ratio: 1/1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.add-to-cart-overlay {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.product-card:hover .add-to-cart-overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-info {
    padding: 1.5rem 0.5rem 0.5rem;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.category {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-icon:hover {
    color: #ff4d4d;
}

/* About Section */
.about-content {
    border-radius: 32px;
    padding: 4rem;
    text-align: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
}

.features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text);
    font-weight: 500;
}

.features i {
    color: var(--accent);
}

/* Drawer / Cart */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
}

.drawer.open {
    visibility: visible;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.drawer.open .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: right 0.5s var(--transition);
}

.drawer.open .drawer-content {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 4rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.full-width {
    width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-up {
    animation: fadeInUp 0.8s var(--transition) forwards;
    opacity: 0;
}

.fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.scale-in {
    animation: scaleIn 1s var(--transition) forwards;
    opacity: 0;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .drawer-content {
        width: 100%;
        right: -100%;
    }
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    border-radius: 32px;
    padding: 3rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.main-image-container img {
    width: 100%;
    border-radius: 20px;
}

.modal-details h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-category {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.modal-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 2rem;
}

.option-group {
    margin-bottom: 2rem;
}

.option-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

/* Quantity Picker */
.quantity-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    width: fit-content;
    padding: 0.5rem;
    border-radius: 12px;
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--text);
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
}

#qty-input {
    background: transparent;
    border: none;
    color: var(--text);
    width: 40px;
    text-align: center;
    font-size: 1rem;
}

/* Brush Toggle */
.brush-toggle {
    display: flex;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 2rem;
    }
}