/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: #f2f2f2;
    color: #333;
    line-height: 1.4;
}

/* =========================
   HEADER BASE
========================= */

.header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
}

.logo img {
    height: 60px;
}

.hamburger
 {
    font-size: 22px;
    cursor: pointer;
    display: none;
}


.search-icon {
    font-size: 22px;
    cursor: pointer;
    
}

/* =========================
   DESKTOP NAV
========================= */

.desktop-nav {
        display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
    align-items: center;
}

.desktop-nav a {
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 1px;
    color: #333;
    transition: 0.3s;
    font-weight: 500;
}

.desktop-nav a:hover {
    opacity: 0.6;
}

/* =========================
   MOBILE SEARCH
========================= */

.mobile-search {
    display: none;
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

.mobile-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
}

/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: 0.3s;
    z-index: 999;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-menu-header button {
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu a {
    text-decoration: none;
    font-size: 16px;
    color: #333;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    /* Mostrar hamburguesa y lupa */
    .hamburger,
    .search-icon {
        display: block;
    }

    /* Ocultar nav desktop */
    .desktop-nav {
        display: none;
    }

    /* Ajuste header */
    .header-container {
        padding: 15px 20px;
    }

    .logo img {
        height: 30px;
    }

}

/* =========================
   HERO
========================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 100px;
    background: #ecebe7;
}

.hero-text {
    max-width: 500px;
}

.hero-text h2 {
    font-size: 22px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-text h1 {
    font-size: 2.4em;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 25px;
}

.hero button {
    background: #9c7c53;
    color: #fff;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    font-size: 16px;
    transition: 0.3s;
}

.hero button:hover {
    background: #7f643f;
}

.hero-images img {
    max-width: 550px;
    width: 100%;
}

/* ========================================
   PRODUCTS SECTION (HOME - LANÇAMENTOS)
======================================== */

.products {
    padding: 70px 80px;
    background: #f4f4f4;
}

.products h2 {
    text-align: center;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 50px;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

/* CARD */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* IMAGE */
.product-image {
    position: relative;
    background: #f8f8f8;
}

.product-image img {
    width: 100%;
    display: block;
}

/* BADGE */
.product-badge {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #d9caa2;
    color: #333;
    font-size: 12px;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 500;
}

/* HOVER LAYER */
.product-hover {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: 0.3s ease;
}

.product-card:hover .product-hover {
    opacity: 1;
}

/* QUANTITY SELECTOR */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-selector button {
    background: #fff;
    border: none;
    width: 38px;
    height: 38px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.quantity-selector button:hover {
    background: #f0f0f0;
}

.quantity-selector input {
    width: 55px;
    text-align: center;
    border: none;
    height: 38px;
    font-size: 14px;
    outline: none;
}

/* ADD TO CART BUTTON */
.add-to-cart {
    background: #5aa73c;
    color: #fff;
    border: none;
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.add-to-cart:hover {
    background: #4a9230;
}

/* INFO */
.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 14px;
    margin-bottom: 10px;
    min-height: 42px;
    line-height: 1.4;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-main {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.price-installments {
    font-size: 12px;
    color: #777;
}

/* ========================================
   RESPONSIVE
======================================== */

/* TABLET */
@media (max-width: 1024px) {

    .products {
        padding: 60px 40px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .product-info h3 {
        font-size: 13px;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .products {
        padding: 50px 20px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* En mobile mostramos controles sin depender de hover */
    .product-hover {
        position: static;
        opacity: 1;
        background: transparent;
        padding: 15px 0;
    }

    .product-badge {
        bottom: 10px;
    }

    .quantity-selector {
        width: 100%;
        justify-content: center;
    }

    .add-to-cart {
        width: 100%;
    }
}


/* =========================
   BLACK DIVIDER
========================= */
.black-bar {
    height: 300px;
    background: #000;
}

/* =========================
   NEWSLETTER
========================= */
.newsletter {
    background: #000;
    padding: 60px 20px;
    text-align: center;
}

.newsletter h3 {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: white;
}

.newsletter input {
    padding: 10px 15px;
    width: 280px;
    border: 1px solid #ddd;
    margin-right: 10px;
}

.newsletter button {
    padding: 10px 25px;
    border: none;
    background: #333;
    color: #fff;
    cursor: pointer;
}

/* =========================
   FOOTER
========================= */
footer {
    background: #f2f2f2;
    padding: 60px 100px 30px;
    border-top: 1px solid #ddd;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-grid h4 {
    font-size: 18px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-grid a {
    display: block;
    font-size: 16px;
    text-decoration: none;
    color: #444;
    margin-bottom: 8px;
}

.footer-grid a:hover {
    opacity: 0.6;
}

.footer-grid p {
    font-size: 16px;
    margin-bottom: 6px;
}

footer img {
    margin-top: 10px;
    max-width: 200px;
}

/* COPYRIGHT */
.copyright {
    text-align: center;
    font-size: 12px;
    color: #777;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* =========================
   COOKIE BAR
========================= */
.cookie-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 12px;
}

.cookie-bar button {
    margin-left: 20px;
    padding: 6px 12px;
    border: none;
    cursor: pointer;
}

/* =========================
   RESPONSIVE
========================= */

/* Tablet */
@media (max-width: 1024px) {

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 40px;
    }

    .hero-images {
        margin-top: 40px;
    }

    .products {
        padding: 60px 40px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        padding: 60px 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .top-container {
        flex-direction: column;
        gap: 15px;
    }

    .menu-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .search-box input {
        width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .newsletter input {
        width: 100%;
        margin-bottom: 10px;
    }

    .newsletter button {
        width: 100%;
    }
}

/* =========================
   CART ICON
========================= */

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 22px;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #5aa73c;
    color: #fff;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   OVERLAY
========================= */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 998;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================
   MINI CART PANEL
========================= */

.mini-cart {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: 0.35s ease;
    z-index: 999;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}

.mini-cart.active {
    right: 0;
}

/* HEADER */
.mini-cart-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.mini-cart-header h3 {
    font-size: 16px;
}

.mini-cart-header button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* CONTENT */
.mini-cart-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.mini-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.mini-cart-info p {
    font-size: 13px;
    margin-bottom: 5px;
}

.mini-cart-info span {
    font-weight: bold;
}

.remove-item {
    background: none;
    border: none;
    cursor: pointer;
}

/* FOOTER */
.mini-cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.clear-cart {
    width: 100%;
    padding: 8px;
    margin-bottom: 20px;
    background: #f2f2f2;
    border: none;
    cursor: pointer;
}

.subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: #6fbf63;
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
}

.checkout-btn:hover {
    background: #5aa73c;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .mini-cart {
        width: 100%;
        right: -100%;
    }

    .mini-cart.active {
        right: 0;
    }
}

