/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f9f7f6;
    color: #2a2522;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: 1264px;
    margin: 0 auto;
    padding: 0 16px;
}

.flex-col {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: #2d2d2d;
    height: 30px;
    display: none;
}

@media (min-width: 768px) {
    .top-bar {
        display: block;
    }
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.top-bar-links {
    display: flex;
    align-items: center;
    height: 100%;
}

.top-bar-links a {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 100%;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.85);
    padding: 0 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    transition: color 0.2s;
}

.top-bar-links a:last-child {
    border-right: none;
}

.top-bar-links a:hover {
    color: #fff;
    opacity: 1;
}

.top-bar-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.top-bar-link-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.85);
    padding: 0 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    transition: color 0.2s;
}

.top-bar-link-icon:hover {
    color: #fff;
    opacity: 1;
}

/* ===== HEADER ===== */
.main-header {
    background-color: #4a2c2a;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-link {
    flex-shrink: 0;
}

.logo-white {
    height: 32px;
    width: auto;
}

.logo-color {
    display: none;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 25px;
    padding: 0 45px 0 20px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    background: #fff;
    color: #333;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a2c2a;
    border-radius: 50%;
    transition: background 0.2s;
}

.search-btn:hover {
    background: rgba(0,0,0,0.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.location-info {
    display: none;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
}

@media (min-width: 768px) {
    .location-info {
        display: flex;
    }
}

.btn-alterar {
    background: transparent;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    padding: 2px 8px;
    margin-left: 4px;
    transition: background 0.2s;
}

.btn-alterar:hover {
    background: rgba(255,255,255,0.1);
}

.cart-icon {
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== CATEGORY NAV ===== */
.category-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0;
    overflow-x: auto;
}

.category-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

.category-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.cat-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
    height: 48px;
    font-size: 14px;
    font-weight: 600;
    color: #4a2c2a;
    white-space: nowrap;
    transition: background 0.2s;
}

.cat-link:hover {
    background: #f5f0ed;
    opacity: 1;
}

.category-right {
    display: none;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .category-right {
        display: flex;
    }
}

.lacreme-link {
    font-style: italic;
    gap: 6px;
}

.cacau-lovers-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #4a2c2a;
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.cacau-lovers-btn:hover {
    background: #5d3a38;
    opacity: 1;
}

.cacau-lovers-btn svg {
    color: #e53935;
}

/* ===== HERO SLIDER ===== */
.hero-slider, .bottom-slider {
    position: relative;
    overflow: hidden;
    max-width: 1264px;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    width: 100%;
}

.slides {
    position: relative;
    width: 100%;
}

.slide {
    width: 100%;
    display: none;
}

.slide.active {
    display: block;
}

.slide.fade-transition {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.slide-img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s;
}

.slider-btn:hover {
    background: #fff;
}

.slider-btn.prev {
    left: 12px;
}

.slider-btn.next {
    right: 12px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

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

.slider-dot.active {
    background: #fff;
}

/* ===== SECTIONS ===== */
.section-products {
    padding: 32px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #2a2522;
    margin-bottom: 24px;
}

.section-title-fancy {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #2a2522;
    text-align: center;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 24px;
}

/* ===== PRODUCT CAROUSEL ===== */
.products-carousel {
    position: relative;
    overflow: hidden;
}

.products-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.products-track::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s;
}

.carousel-btn:hover {
    background: #fff;
}

.carousel-next {
    right: 4px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    flex: 0 0 170px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e2de;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.product-img-wrap {
    position: relative;
    padding: 12px;
    background: #fff;
}

.product-img-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    transition: color 0.2s;
}

.fav-btn:hover {
    color: #e53935;
}

.product-info {
    padding: 0 12px 12px;
}

.product-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2a2522;
    line-height: 1.3;
    margin-bottom: 4px;
    min-height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cacaus {
    display: inline-block;
    font-size: 11px;
    color: #8B6914;
    font-weight: 600;
    margin-bottom: 4px;
}

.promo-tag {
    display: block;
    font-size: 11px;
    color: #4a2c2a;
    font-weight: 600;
    background: #f5ede6;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    min-width: 32px;
}

.new-price {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #2a2522;
    margin-bottom: 8px;
}

.new-price small {
    font-size: 12px;
    font-weight: 400;
    color: #888;
}

.btn-add-cart {
    width: 100%;
    padding: 10px 0;
    background: #4a2c2a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-add-cart:hover {
    background: #5d3a38;
}

/* ===== MOMENTS SECTION ===== */
.section-moments {
    padding: 32px 0;
    background: #f5f0ed;
}

.moments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .moments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.moment-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
}

.moment-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.moment-card:hover img {
    transform: scale(1.05);
}

.moment-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

/* ===== BRANDS SECTION ===== */
.section-brands {
    padding: 32px 0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.brand-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
}

.brand-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s;
}

.brand-card:hover img {
    transform: scale(1.05);
}

.brand-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

/* ===== ABOUT SECTION ===== */
.section-about {
    padding: 40px 0;
    background: #fff;
}

.section-about p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
    max-width: 900px;
}

.btn-more-info {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 28px;
    background: #4a2c2a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-more-info:hover {
    background: #5d3a38;
}

/* ===== NEWSLETTER ===== */
.newsletter {
    background: #3e2723;
    padding: 32px 0;
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.newsletter-text h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.newsletter-text p {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    width: 280px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    background: transparent;
    color: #fff;
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-input:focus {
    border-color: rgba(255,255,255,0.6);
}

.btn-cadastrar {
    height: 44px;
    padding: 0 24px;
    background: #8B6914;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-cadastrar:hover {
    background: #a07a1a;
}

/* ===== FOOTER ===== */
.main-footer {
    background: #f5f0ed;
    padding-top: 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 32px;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #2a2522;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #4a2c2a;
    opacity: 1;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8e2de;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a2c2a;
    transition: background 0.2s;
}

.social-links a:hover {
    background: #4a2c2a;
    color: #fff;
    opacity: 1;
}

.payment-methods h4 {
    font-size: 13px;
    font-weight: 700;
    color: #2a2522;
    margin-bottom: 8px;
}

.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
}

.footer-bottom {
    border-top: 1px solid #e0d8d2;
    padding: 16px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 12px;
    color: #999;
}

/* ===== BOTTOM SLIDER ===== */
.bottom-slider {
    margin: 0 auto 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    
    .section-title, .section-title-fancy {
        font-size: 22px;
    }
    
    .product-card {
        flex: 0 0 150px;
    }
    
    .newsletter-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }
    
    .newsletter-input {
        width: 100%;
    }
    
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .product-card {
        flex: 0 0 190px;
    }
}
