:root {
    --bg-dark: #121226;
    --bg-lighter: #1b1b36;
    --bg-card: #232345;
    --accent-pink: #ff8eaa;
    --accent-lavender: #b091f0;
    --accent-cyan: #72dced;
    --text-main: #f0f0fa;
    --text-muted: #555555;
    --glow-pink: rgba(255, 142, 170, 0.4);
    --glow-lavender: rgba(176, 145, 240, 0.4);
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --border-radius: 20px;
    --transition: all 0.4s ease-in-out;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 50%, rgba(255, 142, 170, 0.05), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(176, 145, 240, 0.05), transparent 30%);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: var(--accent-lavender);
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(18, 18, 38, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-pink);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--accent-pink);
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-icons a {
    font-weight: 700;
}

.cart-icon-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-cyan) !important;
}

.cart-count {
    background: var(--accent-pink);
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
}

/* Equalizer Animation (Lofi Touch) */
.equalizer {
    display: flex;
    gap: 3px;
    height: 20px;
    align-items: flex-end;
    margin-left: 1rem;
}

.bar {
    width: 4px;
    background: var(--accent-lavender);
    border-radius: 4px;
    animation: bounce 1.5s infinite ease-in-out alternate;
}

.bar:nth-child(1) {
    animation-delay: 0s;
    height: 100%;
}

.bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 60%;
}

.bar:nth-child(3) {
    animation-delay: 0.4s;
    height: 80%;
}

.bar:nth-child(4) {
    animation-delay: 0.1s;
    height: 40%;
}

@keyframes bounce {
    0% {
        transform: scaleY(0.3);
    }

    100% {
        transform: scaleY(1);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-solid {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-lavender));
    color: #fff !important;
    box-shadow: 0 5px 20px var(--glow-lavender);
}

.btn-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--glow-pink);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan) !important;
}

.btn-outline:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark) !important;
    box-shadow: 0 5px 20px rgba(114, 220, 237, 0.4);
}

/* Floating Animations */
@keyframes floatY {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-art {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--bg-lighter) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: floatY 8s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2.5rem;
}

/* Sections */
.section {
    padding: 7rem 5%;
}

.section-bg-alt {
    background-color: var(--bg-lighter);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 142, 170, 0.2);
}

.product-img-wrapper {
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    aspect-ratio: 4/3;
}

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

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

.product-category {
    font-size: 0.8rem;
    color: #1A1A1A;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.4rem;
    color: var(--accent-pink);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.product-card .btn {
    margin-top: auto;
    width: 100%;
}

/* Page Header */
.page-header {
    padding: 12rem 5% 5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-lighter) 0%, var(--bg-dark) 100%);
}

.page-header h1 {
    font-size: 3.5rem;
}

/* Forms */
.form-container {
    max-width: 550px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-lavender);
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12PX;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 3px var(--glow-pink);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-pink);
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Cart Page */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

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

.cart-item-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

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

.quantity-controls {
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    border-radius: 20px;
    padding: 0.25rem 0.5rem;
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 10px;
}

.qty-btn:hover {
    color: var(--accent-pink);
}

.remove-btn {
    background: transparent;
    color: #ff6b6b;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 1rem;
}

.remove-btn:hover {
    transform: scale(1.1);
}

.cart-summary {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-pink);
}

/* Product Details */
.product-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-gallery img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-meta .detail-category {
    color: var(--accent-cyan);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.detail-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.detail-price {
    font-size: 2.2rem;
    color: var(--accent-lavender);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.detail-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 4rem;
    border-radius: var(--border-radius);
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-lavender);
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.legal-content ul {
    margin-left: 2rem;
    list-style-type: disc;
}

/* Footer */
footer {
    background: var(--bg-lighter);
    padding: 5rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p,
.footer-col a {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: block;
    font-weight: 600;
}

.footer-col a:hover {
    color: var(--accent-pink);
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Toasts */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--accent-pink);
    animation: slideInLeft 0.4s ease forwards, fadeOut 0.4s ease 3s forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Reveal */








@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .cart-layout,
    .product-details-container {
        grid-template-columns: 1fr;
    }
}
/* --- Visibility Protocol CSS --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.reveal.js-hidden {
    opacity: 0;
    transform: translateY(40px);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
