/* Core Styles */
:root {
    --primary: #b5651d;
    --primary-light: #d4874a;
    --bg-dark: #0a1110;
    --bg-section: #f5f1eb;
    --bg-card: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #6b6b6b;
    --teal: #0f4c3a;
    --border: rgba(15, 76, 58, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

html,
body {
    background-color: var(--bg-section);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animations */
.reveal {
    transition: all 0.8s ease-out;
    opacity: 0;
    transform: translateY(30px);
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Header */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: transparent;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(245, 241, 235, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 70px;
}

nav .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

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

nav.scrolled .logo {
    color: var(--teal);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

nav.scrolled .nav-links a {
    color: var(--text-main);
    text-shadow: none;
}

.nav-links a:hover {
    color: var(--primary-light);
}

nav.scrolled .nav-links a:hover {
    color: var(--primary);
}

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

.cart-icon {
    position: relative;
    color: #ffffff;
    font-size: 1.25rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
}

nav.scrolled .cart-icon {
    color: var(--teal);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 2px solid var(--bg-card);
    transition: var(--transition);
    opacity: 0;
    transform: scale(0);
}

.cart-badge.active {
    opacity: 1;
    transform: scale(1);
}

.menu-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-btn span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: var(--transition);
}

nav.scrolled .menu-btn span,
.menu-btn.active span {
    background: var(--teal);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(10, 17, 16, 0.4), rgba(10, 17, 16, 0.4)), url('images/hero_outdoor.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#quantumCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
    color: white;
}

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

.hero-content h1 span {
    color: var(--primary-light);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(181, 101, 29, 0.3);
}

/* Products Section */
.products {
    padding: 100px 0;
    background: var(--bg-section);
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--teal);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card-category {
    padding: 4px 12px;
    background: rgba(181, 101, 29, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin: 1.5rem 0 0 1.5rem;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.product-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card-body h3 {
    font-size: 1.4rem;
    color: var(--teal);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-card-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.product-price {
    font-weight: 800;
    color: var(--teal);
    font-size: 1.2rem;
}

.price {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.sold-out {
    opacity: 0.8;
    filter: grayscale(0.5);
    position: relative;
    cursor: not-allowed;
}

.badge-sold-out {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #ff4444;
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

/* Contact */
.contact {
    padding: 80px 0;
    background: var(--bg-dark);
    color: white;
    text-align: center;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn-wa {
    background: #25d366;
}

.btn-wa:hover {
    background: #1ebc5c;
}

/* --- PRODUCT DETAIL PAGES --- */
.product-detail-hero {
    padding: 140px 0 80px;
    background: var(--bg-section);
    min-height: 100vh;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 120px;
}

.product-main-img {
    background: white;
    border-radius: 30px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.product-thumbs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.product-thumbs .thumb {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.product-thumbs .thumb:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.product-thumbs .thumb.active {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(181, 101, 29, 0.2);
}

.product-main-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-meta {
    padding-right: 2rem;
}

.product-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(181, 101, 29, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.product-meta h1 {
    font-size: 3rem;
    color: var(--teal);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.detail-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.detail-feature-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.detail-feature-card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 5px;
}

.detail-feature-card h4 {
    font-size: 1.1rem;
    color: var(--teal);
    margin-bottom: 4px;
    font-weight: 700;
}

.detail-feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.product-desc-large {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.contact-button-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1.2rem 2.4rem;
    background: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #1ebc5c;
    transform: translateY(-3px);
}

.btn-outdoor {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 2.4rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-outdoor:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

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

    nav .nav-links {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        border-top: 1px solid var(--border);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active a {
        color: var(--teal);
        text-shadow: none;
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links.active a:last-child {
        border-bottom: none;
    }

    .product-detail-hero {
        padding-top: 100px;
    }

    /* Product Detail Mobile Optimization */
    .product-main-img {
        padding: 1rem;
        background: #fff;
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }

    .product-thumbs .thumb {
        width: calc(25% - 0.75rem);
        max-width: 70px;
        aspect-ratio: 1/1;
        object-fit: contain;
        padding: 4px;
    }

    .detail-feature-card {
        padding: 1rem;
        gap: 1rem;
    }

    .detail-feature-card i {
        font-size: 1.5rem;
    }

    .contact-button-group {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-whatsapp,
    .btn-outdoor {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--teal);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
}

.cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Cart Drawer Styles */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-card);
    z-index: 10001;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--teal);
}

.close-cart {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    background: #000;
}

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

.cart-item-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

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

.cart-item-remove {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: var(--transition);
}

.cart-item-remove:hover {
    opacity: 1;
}

.cart-footer {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

#cartTotalAmount {
    color: var(--teal);
}

.btn-whatsapp-order {
    width: 100%;
    padding: 1rem;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-whatsapp-order:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

@media (max-width: 480px) {
    .cart-drawer {
        max-width: 100%;
    }
}

/* Visitor Stats Cards */
.visitor-cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 30px;
    min-width: 200px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-card i {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.stat-card .stat-count {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
}

@media (max-width: 576px) {
    .stat-card {
        width: 100%;
        min-width: unset;
    }
}