@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary: #FF6B6B;
    /* Pink/Coral */
    --secondary: #FF9F43;
    /* Orange */
    --accent: #FFEA00;
    /* Bright Yellow */
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #fdfdfd;
    --white: #ffffff;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
.main-header {
    background: var(--primary);
    /* Pink Background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 0;
    /* Remove espaço abaixo do header */
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: 'Lobster', cursive;
    /* Beachy font */
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--accent);
    /* Yellow */
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
    z-index: 1001;
    white-space: nowrap;
}

.logo img {
    height: 45px;
    width: auto;
}

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

.nav-links a {
    font-weight: 600;
    color: var(--accent);
    /* Yellow */
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.05);
}

.nav-links a:hover {
    color: white;
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
    color: var(--accent) !important;
}

.cart-count {
    background: white;
    color: var(--primary);
    border-radius: 50%;
    padding: 0.1rem 0.4rem;
    font-size: 0.8rem;
    position: absolute;
    top: -10px;
    right: -10px;
    font-weight: bold;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    transition: all 0.3s;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}



/* Hero Section (Legacy - kept for fallback or removed if full replacement) */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-cta {
    background: var(--accent);
    color: var(--text-dark);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.2s;
    display: inline-block;
}

.btn-cta:hover {
    transform: scale(1.05);
}

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

/* Product Grid */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

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

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

.product-info {
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.product-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.btn-shop {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-shop:hover {
    background: var(--primary);
    color: white;
}

/* Filters (Simple) */
.filters {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-btn {
    border: none;
    background: white;
    padding: 0.5rem 1.5rem;
    margin: 0.5rem;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
    }

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

    .logo {
        font-size: 1.5rem;
    }

    .logo img {
        height: 35px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    /* Overlay quando menu está aberto */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .menu-overlay.active {
        display: block;
    }
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* Promo pricing (price riscado + promo + %OFF) */
.cbw-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.cbw-price-old {
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
    font-size: 0.85rem;
}

.cbw-price-new {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
}

.cbw-price-off {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1.2;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Badge na imagem do produto */
.product-img-carousel .cbw-price-off,
.gallery-main .cbw-price-off {
    position: absolute;
    bottom: 8px;
    right: 8px;
}

/* Forms */
.auth-box {
    max-width: 400px;
    margin: 4rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 1rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* Product Details */
.product-details {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.product-details img {
    max-width: 100%;
    border-radius: 10px;
    width: 500px;
    height: auto;
    object-fit: cover;
}

.details-info {
    flex: 1;
}

.details-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.details-info .price {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.attribute-select {
    margin-bottom: 1.5rem;
}

.attribute-select label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.attribute-select select {
    padding: 0.5rem;
    width: 200px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    /* Large height for big photos as requested */
    height: 85vh;
    overflow: hidden;
    background: #f0f0f0;
    margin-top: 0;
    /* Encosta no header */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile: altura automática para ver a imagem completa */
@media (max-width: 768px) {
    .carousel {
        height: auto;
        /* Altura se adapta à imagem */
        background: transparent;
        min-height: 0;
    }

    .carousel-track {
        height: auto;
    }

    .carousel-slide {
        height: auto;
        display: block;
    }

    .carousel-slide img {
        width: 100%;
        height: auto;
        display: block;
        /* Mostra a imagem completa, sem “container” sobrando */
        background: transparent;
    }

    .carousel-nav {
        bottom: 10px;
        padding: 6px 12px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }
}

.carousel-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.carousel-content h2 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    /* Minimalist */
    text-transform: uppercase;
    letter-spacing: 5px;
}

.carousel-content p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Dots - dentro da imagem */
.carousel-nav {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 20px;
    /* Mais próximo da borda inferior */
    left: 50%;
    transform: translateX(-50%);
    gap: 10px;
    z-index: 20;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    /* Fundo semi-transparente para destacar */
    border-radius: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Click area to redirect */
.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}