:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F8F8;
    --bg-card: #FFFFFF;
    --text-main: #2A2A2A;
    --text-muted: #555555;
    --accent-slate: #4A4A4A;
    --accent-light: #CCCCCC;
    --font-base: 'Inter', system-ui, -apple-system, sans-serif;
    --layout-max: 1200px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 0px;
    /* Sharp minimal edges */
}

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

body {
    font-family: var(--font-base);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1.2rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bg-secondary);
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 300;
    color: var(--text-muted);
}

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

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

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

.nav-icons a {
    font-size: 0.9rem;
    font-weight: 500;
}

.cart-icon-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-count {
    background: var(--bg-secondary);
    color: var(--text-main);
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-solid {
    background: var(--text-main);
    color: #fff;
    border: 1px solid var(--text-main);
}

.btn-solid:hover {
    background: #000;
    color: #fff;
}

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

.btn-outline:hover {
    border-color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://picsum.photos/1920/1080?random=21000') center/cover no-repeat;
    filter: grayscale(1) opacity(0.04);
    z-index: 0;
}

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

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

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
}

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

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

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

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.product-card {
    background: var(--bg-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
    padding: 2rem;
}

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

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

.product-category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1A1A1A;
    z-index: 2;
}

.product-info {
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
}

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

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
    display: none;
    /* Keep grid extreme minimal */
}

.product-price {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Page Headers */
.page-header {
    padding: 12rem 5% 5rem;
    text-align: center;
    border-bottom: 1px solid var(--bg-secondary);
}

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

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

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--accent-light);
    color: var(--text-main);
    font-family: var(--font-base);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--text-main);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

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

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

/* Layouts */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.cart-item {
    display: flex;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--bg-secondary);
    margin-bottom: 2rem;
    align-items: center;
}

.cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    background: var(--bg-secondary);
    padding: 0.5rem;
}

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

.cart-item-title {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--accent-light);
    padding: 0.2rem;
}

.qty-btn {
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--bg-secondary);
}

.remove-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
}

.cart-summary {
    background: var(--bg-secondary);
    padding: 3rem;
    position: sticky;
    top: 120px;
}

.cart-summary h3 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

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

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--accent-light);
    font-size: 1.2rem;
    font-weight: 500;
}

/* Product Details */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.detail-img {
    width: 100%;
    background: var(--bg-secondary);
    padding: 3rem;
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-category {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.detail-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.detail-price {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.detail-actions {
    display: flex;
    gap: 1rem;
}

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

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}

.legal-content p,
.legal-content li {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

/* Footer */
footer {
    border-top: 1px solid var(--bg-secondary);
    padding: 6rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: var(--layout-max);
    margin: 0 auto 5rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-secondary);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Toasts */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--text-main);
    color: #fff;
    padding: 1.2rem 2rem;
    font-size: 0.9rem;
    animation: slideInUp 0.3s forwards, fadeOut 0.3s ease 3s forwards;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

@keyframes fadeOut {
    to {
        opacity: 0;
        display: none;
    }
}

/* Animations */








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

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

    .cart-layout,
    .product-details,
    .footer-grid,
    .legal-content {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}
/* --- 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);
}
