:root {
    --bg-gradient: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    --text-main: #2d3436;
    --text-muted: #555555;
    --accent-cyan: #00cec9;
    --accent-blue: #0984e3;
    --accent-purple: #6c5ce7;
    --glass-bg: rgba(255, 255, 255, 0.3);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-family);
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.title-gradient {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 5%;
    width: 90%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-radius: 100px;
    transition: var(--transition);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    letter-spacing: 1px;
}

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

.nav-links li a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

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

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

.cart-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -15px;
    background: var(--accent-purple);
    color: white;
    font-size: 0.75rem;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(108, 92, 231, 0.4);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background: var(--accent-blue);
    color: white;
}

.btn-solid {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-cyan));
    color: white;
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3);
}

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(9, 132, 227, 0.4);
    color: white;
}

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

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    top: -100px;
    right: -100px;
    animation: float 10s infinite alternate;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    bottom: -200px;
    left: -100px;
    animation: float 15s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-30px, 50px) scale(1.1);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 4rem;
    margin-top: 50px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--text-main);
}

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

/* Product Card */
.product-card {
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.15);
}

.product-img-wrapper {
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    margin-bottom: 1.5rem;
}

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

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

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

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

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

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

/* Page Header */
.page-header {
    padding: 12rem 5% 4rem;
    text-align: center;
}

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

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(9, 132, 227, 0.1);
}

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

.checkbox-group input {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-blue);
}

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

/* Footer */
footer {
    padding: 5rem 5% 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

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

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

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

/* 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;
    margin-bottom: 1rem;
}

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

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

.cart-item-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

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

.quantity-controls {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    padding: 0.25rem;
}

.qty-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--text-main);
    transition: var(--transition);
}

.qty-btn:hover {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.remove-btn {
    background: #ff7675;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.cart-summary {
    padding: 2rem;
    position: sticky;
    top: 120px;
    height: fit-content;
}

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

.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.4);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
}

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

.product-gallery {
    padding: 1rem;
}

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

.detail-category {
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.detail-price {
    font-size: 2.5rem;
    color: var(--accent-blue);
    font-weight: 800;
    margin-bottom: 2rem;
}

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

.empty-state {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 3rem;
    color: var(--text-main);
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Toast */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--accent-cyan);
    color: var(--text-main);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, fadeOut 0.5s ease 3s forwards;
}

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

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Scroll Reveal Utility */








/* Responsive */
@media (max-width: 900px) {

    .cart-layout,
    .product-details-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Simplified mobile for now */
    .hero-content h1 {
        font-size: 3rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}
/* --- 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);
}
