/* =========================================================
    RESET
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    color: #333;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================================
    CONTAINER
========================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================
    TOP BAR
========================================================= */
.top-bar {
    background: #000;
    color: #c19a5b;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* =========================================================
    HEADER
========================================================= */
.main-header {
    background: #000;
    padding: 10px 0;
    border-bottom: 1px solid #111;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
}

.nav-menu ul li a:hover {
    color: #c19a5b;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 18px;
    color: #c19a5b;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-icon span {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #c19a5b;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* =========================================================
    SEARCH
========================================================= */
.search-box {
    position: relative;
}

.search-toggle {
    cursor: pointer;
}

.search-dropdown {
    position: absolute;
    top: 35px;
    right: 0;
    width: 260px;
    background: #fff;
    border: 1px solid #eee;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: .3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    z-index: 999;
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-dropdown input {
    width: 100%;
    height: 42px;
    border: 1px solid #ddd;
    padding: 0 12px;
    outline: none;
}

.search-dropdown input:focus {
    border-color: #c19a5b;
}

/* =========================================================
    HERO
========================================================= */
.hero-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-bg {
    width: 100%;
    height: auto;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding-left: 3%;
    line-height: normal;
}

.hero-text-box {
    max-width: 500px;
    color: #fff;
}

.subtitle {
    color: #c19a5b;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.title {
    font-size: 45px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
}

.divider {
    width: 50px;
    height: 2px;
    background: #c19a5b;
    margin-bottom: 20px;
}

.description {
    font-size: 16px;
    opacity: .9;
    margin-bottom: 30px;
}

.btn-buy {
    display: inline-block;
    background: #c19a5b;
    color: #fff;
    text-decoration: none;
    padding: 20px 40px;
    font-weight: bold;
    transition: .3s;
}

.btn-buy:hover {
    background: #a6834d;
    transform: scale(1.05);
}

/* =========================================================
    BENEFITS
========================================================= */
.benefits-bar {
    display: flex;
    justify-content: space-around;
    background: #f9f9f9;
    padding: 20px 5%;
    border-bottom: 1px solid #eee;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
}

.benefit-item i {
    font-size: 20px;
    color: #c19a5b;
}

/* =========================================================
    SECTION TITLE
========================================================= */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5%;
    text-align: center;
}

.main-title {
    position: relative;
    display: inline-block;
    font-size: 20px;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.main-title::after {
    content: '';
    position: absolute;
    left: 25%;
    bottom: -10px;
    width: 50%;
    height: 2px;
    background: #c19a5b;
}

/* =========================================================
    CATEGORIES
========================================================= */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1.2;
    border-radius: 18px;
    text-decoration: none;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, .1));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 30px;
    color: #fff;
}

.category-overlay span {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.category-overlay button {
    width: 140px;
    height: 45px;
    border: none;
    background: #c19a5b;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    border-radius: 30px;
    transition: .3s;
}

.category-overlay button:hover {
    transform: translateY(-3px);
    background: #a6834d;
}

/* =========================================================
    PRODUCTS
========================================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.product-item {
    border: 2px solid transparent;
    transition: .3s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.product-img {
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
}

/* Imagem de produto na vitrine — contain para não cortar */
.product-img img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #f5f5f5;
}

.product-info {
    padding-top: 15px;
    text-align: left;
}

.product-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.price {
    font-size: 22px;
    font-weight: bold;
    color: #000;
}

/* =========================================================
    BUTTON OUTLINE
========================================================= */
.center-btn {
    margin-top: 40px;
}

.btn-outline {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid #c19a5b;
    color: #c19a5b;
    text-decoration: none;
    font-weight: bold;
    transition: .3s;
    cursor: pointer;
    background: transparent;
}

.btn-outline:hover {
    background: #c19a5b;
    color: #fff;
}

/* =========================================================
    CART SIDEBAR
========================================================= */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9998;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: .35s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, .15);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.cart-header h2 {
    font-size: 20px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

/* Área de itens — scroll */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
    min-height: 0;
}

/* Checkout form — não cresce, mas mostra scroll se precisar */
.cart-checkout-form {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    overflow-y: auto;
    max-height: 45vh;
}

.cart-checkout-form h3 {
    color: #c19a5b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    margin-top: 12px;
}

.cart-checkout-form h3:first-child {
    margin-top: 0;
}

.cart-checkout-form input,
.cart-checkout-form select {
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid #d1d1d1;
    color: #111;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 13px;
}

.cart-checkout-form input::placeholder {
    color: #999;
}

/* Botões de região */
#btn-regiao-tupi,
#btn-regiao-outras {
    font-size: 12px;
    transition: .3s;
}

#btn-regiao-tupi:hover,
#btn-regiao-outras:hover {
    opacity: .85;
}

.cart-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}

#cart-total-display {
    margin-bottom: 12px;
    text-align: center;
    font-size: 18px;
}

.finish-order {
    width: 100%;
    height: 50px;
    border: none;
    background: #c19a5b;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: .3s;
    font-size: 14px;
}

.finish-order:hover {
    background: #a6834d;
}

.empty-cart-message {
    text-align: center;
    color: #999;
    margin-top: 30px;
    font-size: 14px;
}

/* =========================================================
    FOOTER
========================================================= */
.footer-container {
    background: #000;
    color: #fff;
    padding: 60px 5% 20px;
    border-top: 1px solid #222;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.footer-logo {
    width: 160px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #c19a5b;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #ccc;
    font-size: 12px;
    transition: .3s;
}

.footer-col ul li a:hover {
    color: #c19a5b;
}

.footer-col p {
    font-size: 12px;
    color: #aaa;
    line-height: 1.8;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.payment-icons i {
    font-size: 32px;
    color: #fff;
}

.payment-icons img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-col.payment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-col.payment h4 {
    text-align: center;
    width: 100%;
}

.contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 50px;
    padding-top: 20px;
    font-size: 10px;
    color: #444;
    letter-spacing: 1px;
}

/* =========================================================
    MOBILE NAV
========================================================= */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #333;
    z-index: 999;
}

.mobile-nav-item {
    text-decoration: none;
    color: #fff;
    text-align: center;
    font-size: 10px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
}

.mobile-nav-item i {
    font-size: 18px;
    color: #c19a5b;
}
/* Impedir zoom automático no iOS */
input, select, textarea {
    font-size: 16px !important;
}

input:focus, select:focus, textarea:focus {
    font-size: 16px !important;
}
/* =========================================================
    TABLET
========================================================= */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================================
    MOBILE
========================================================= */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .main-header .container {
        padding: 10px 15px;
    }

    .hero-container {
        min-height: 251px;
    }

    .hero-bg {
        height: 251px;
        object-fit: cover;
        object-position: 70% center;
    }

    .hero-overlay {
        padding: 10px;
        justify-content: flex-start;
        align-items: center;
        background: linear-gradient(to right, rgba(0, 0, 0, .7) 30%, transparent 100%);
    }

    .hero-text-box {
        max-width: 60%;
    }

    .title {
        font-size: 24px;
    }

    .description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .btn-buy {
        padding: 12px 25px;
        font-size: 13px;
    }

    .benefits-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 15px 5%;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .category-overlay span {
        font-size: 15px;
    }

    .category-overlay button {
        width: 110px;
        height: 38px;
        font-size: 11px;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .product-img img {
        height: 200px;
    }

    .product-info h3 {
        font-size: 13px;
    }

    .price {
        font-size: 16px;
    }

    .footer-container {
        padding: 20px 5% 90px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-col.brand {
        display: none;
    }

    .footer-col.payment {
        grid-column: span 2;
    }

    .payment-icons {
        justify-content: center;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-checkout-form {
        max-height: 40vh;
    }

    .search-dropdown {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: 90%;
        max-width: 340px;
        border-radius: 12px;
        z-index: 9999;
    }

    .search-dropdown.active {
        transform: translateX(-50%) translateY(0);
    }
}

/* =========================================================
    DESKTOP ONLY
========================================================= */
@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}