body {
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    font-family: var(--font-body);
    position: relative;
    overflow-x: hidden;
}

/* Background decor */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: var(--z-background);
    pointer-events: none;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-brand-active) 0%, transparent 60%);
    opacity: 0.25;
    filter: blur(90px);
    min-width: 400px;
    min-height: 400px;
    z-index: var(--z-carousel-bg);
    transition: background 1s ease, transform 3s ease-in-out;
    animation: pulse-glow 8s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.25;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.35;
    }
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    z-index: var(--z-navbar);
    background: rgba(7, 7, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.navbar .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.nav-links li a:hover {
    color: var(--color-text-main);
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
}

.icon-btn {
    color: var(--color-text-main);
    opacity: 0.8;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.icon-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    max-width: 100%;
    padding: 0 var(--container-padding);
    height: 60vh;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-carousel-items);
    margin-top: calc(var(--navbar-height) / 2);
}

.nav-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    z-index: calc(var(--z-carousel-items) + 10);
}

.nav-btn:hover {
    color: #fff;
    border-color: #fff;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.nav-btn.prev-btn {
    margin-left: var(--container-padding);
}

.nav-btn.next-btn {
    margin-right: var(--container-padding);
}

/* Carousel Track & Slides */
.carousel-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: visibility 0s linear 0.8s;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    z-index: 5;
}

.slide.visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.sneaker-wrap {
    position: relative;
    width: 70%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sneaker-img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
    /* Float animation is added via JS/GSAP or CSS class, but we use strict CSS animation here */
    animation: float 4s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
        filter: drop-shadow(0 45px 45px rgba(0, 0, 0, 0.4));
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.sneaker-shadow {
    content: '';
    width: 60%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse-shadow 4s ease-in-out infinite;
}

@keyframes pulse-shadow {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateX(-50%) scale(0.7);
        opacity: 0.4;
    }

    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.8;
    }
}

/* Ocultar sombras dos tênis inativos nas laterais do carrossel */
.slide.inactive .sneaker-img {
    filter: none !important;
}

.slide.inactive .sneaker-shadow {
    opacity: 0 !important;
    animation: none !important;
}

/* Sneaker Info under Carousel */
.sneaker-info-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
    z-index: var(--z-ui);
    padding: 0 var(--container-padding);
    margin-top: 1rem;
    min-height: 140px;
    position: relative;
}

.info-content {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

.sneaker-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sneaker-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.price-cta-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.sneaker-price {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--color-brand-active);
    color: var(--color-btn-text);
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -10px var(--color-brand-active);
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 15px 25px -10px var(--color-brand-active);
}

/* Wave Transition */
.wave-transition {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 5;
    pointer-events: none;
}

.wave-transition svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .carousel-container {
        height: 50vh;
    }

    .sneaker-wrap {
        width: 100%;
        max-width: 320px;
    }

    .info-content {
        margin-top: 1rem;
    }

    .sneaker-title {
        font-size: 1.8rem;
    }

    .nav-btn {
        width: 48px;
        height: 48px;
    }

    .nav-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Catalog Section */
.catalog-section {
    padding: 6rem 0;
    background-color: var(--color-bg-base);
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--color-text-main);
    letter-spacing: -1px;
}

.view-all {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--color-text-main);
}

.catalog-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-btn {
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn:hover {
    color: var(--color-text-main);
    border-color: rgba(255,255,255,0.3);
}

.filter-btn.active {
    background: var(--color-text-main);
    color: var(--color-bg-base);
    border-color: var(--color-text-main);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-img-box {
    background: var(--color-bg-alt);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.card-img {
    width: 90%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-img-box:hover .card-img {
    transform: scale(1.1) rotate(-5deg);
}

.quick-actions {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-img-box:hover .quick-actions {
    bottom: 20px;
}

.action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--color-brand-active);
    border-color: var(--color-brand-active);
    transform: translateY(-2px);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-category {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.product-price {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-main);
    margin-top: 0.25rem;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .product-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 2rem;
        gap: 1rem;
        scrollbar-width: none; 
    }
    
    .product-grid::-webkit-scrollbar {
        display: none;
    }

    .product-card {
        min-width: 70vw;
        scroll-snap-align: start;
    }
    
    .quick-actions {
        bottom: 20px;
    }
}

/* --- CART UI --- */

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-brand-active);
    color: var(--color-btn-text, #fff);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none; /* Flex when active */
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg-base);
    transition: background 0.3s, color 0.3s;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    height: 100dvh;
    background: rgba(17, 17, 22, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--color-text-main);
    transform: scale(1.1);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}
.cart-items::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.empty-cart-message {
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.cart-item-info h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.cart-item-info span {
    font-size: 0.85rem;
    color: var(--color-brand-active);
    font-weight: 500;
    font-family: var(--font-heading);
}

.remove-item-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.remove-item-btn:hover {
    color: #ff4d4d;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.whatsapp-checkout-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: #25D366; /* WhatsApp Green */
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.whatsapp-checkout-btn:hover:not(:disabled) {
    background: #20BA5C;
    transform: translateY(-2px);
}

.whatsapp-checkout-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .cart-header,
    .cart-items,
    .cart-footer {
        padding: 1.5rem;
    }
    
    .cart-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .cart-item-img {
        width: 50px;
        height: 50px;
    }
}