* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #166534;
    --primary-dark: #14532d;
    --primary-light: #dcfce7;
    --accent: #f59e0b;
    --text: #172018;
    --muted: #64748b;
    --background: #f8faf9;
    --white: #ffffff;
    --border: #e2e8f0;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

/* HEADER */

.site-header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 22px;
}

.logo-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .5px;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--muted);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 14px;
    font-weight: 600;
}

.navigation a {
    color: #475569;
}

.navigation a:hover,
.navigation a.active {
    color: var(--primary);
}

.nav-whatsapp {
    background: var(--primary);
    color: white !important;
    padding: 10px 17px;
    border-radius: 10px;
}

/* HERO */

.hero {
    background:
        linear-gradient(
            135deg,
            #ecfdf5 0%,
            #f8fafc 55%,
            #fff7ed 100%
        );

    padding: 80px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr .8fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 22px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 13px 20px;
    border-radius: 10px;
    font-weight: 700;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border);
}

.hero-card {
    background: white;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
}

.hero-card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-card h3 {
    font-size: 23px;
    margin-bottom: 10px;
}

.hero-card p {
    font-size: 14px;
    margin: 0;
}

/* STATS */

.stats {
    background: white;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.stat-item {
    padding: 24px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat-item:last-child {
    border-right: 0;
}

.stat-item strong {
    display: block;
    font-size: 28px;
    color: var(--primary);
}

.stat-item span {
    color: var(--muted);
    font-size: 13px;
}

/* SECTIONS */

.categories-section,
.products-section {
    padding: 70px 0;
}

.section-heading span {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

.section-heading h2 {
    margin-top: 7px;
    font-size: 32px;
    letter-spacing: -.8px;
}

/* CATEGORY */

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
}

.category-list a {
    padding: 9px 15px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: #475569;
}

.category-list a:hover,
.category-list a.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* PRODUCT HEADER */

.products-section {
    background: #f1f5f3;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    min-width: 390px;
}

.search-form input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    outline: none;
    background: white;
}

.search-form input:focus {
    border-color: var(--primary);
}

.search-form button {
    padding: 0 18px;
    border: 0;
    background: var(--primary);
    color: white;
    font-weight: 700;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
}

/* FILTER */

.filter-info {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 16px;
    margin-bottom: 25px;
    font-size: 14px;
}

.filter-info a {
    color: var(--primary);
    font-weight: 700;
    margin-left: 15px;
}

/* PRODUCTS */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: .2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .07);
}

.product-image {
    height: 150px;
    background: #f8fafc;
    display: grid;
    place-items: center;
    font-size: 50px;
}

.product-content {
    padding: 17px;
}

.product-category {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
}

.product-card h3 {
    margin: 6px 0;
    font-size: 16px;
    line-height: 1.35;
    min-height: 43px;
}

.product-sku {
    color: #94a3b8;
    font-size: 11px;
}

.product-price {
    margin-top: 12px;
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
}

.product-unit {
    color: var(--muted);
    font-size: 11px;
}

.product-stock {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    font-size: 11px;
}

.stock-available {
    color: #15803d;
    font-weight: 700;
}

.stock-empty {
    color: #dc2626;
    font-weight: 700;
}

.btn-product {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 9px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.btn-product.disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* EMPTY */

.empty-state {
    background: white;
    text-align: center;
    padding: 70px 20px;
    border-radius: 18px;
}

.empty-state > div {
    font-size: 50px;
}

.empty-state h3 {
    margin: 10px 0;
}

/* FOOTER */

.site-footer {
    background: #122018;
    color: white;
    padding-top: 55px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-grid h3,
.footer-grid h4 {
    margin-bottom: 14px;
}

.footer-grid p {
    color: #a7b5ac;
    max-width: 420px;
}

.footer-grid a {
    display: block;
    color: #a7b5ac;
    margin-bottom: 7px;
    font-size: 14px;
}

.footer-grid a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #2c3c31;
    padding: 20px;
    text-align: center;
    color: #94a3a0;
    font-size: 12px;
}

/* RESPONSIVE */

@media (max-width: 950px) {

    .hero-content {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 700px) {

    .navigation {
        display: none;
    }

    .hero {
        padding: 55px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .products-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        min-width: 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}

@media (max-width: 450px) {

    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 40px;
    }

}.catalog-info {
    margin-bottom: 20px;
    color: #64748b;
    font-size: 14px;
}

.catalog-info strong {
    color: #166534;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.page-link {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.page-link:hover {
    border-color: #166534;
    color: #166534;
}

.page-link.active {
    background: #166534;
    border-color: #166534;
    color: #fff;
}

/* =========================================================
   PRODUCT DETAIL
========================================================= */

.product-detail-section {
    padding: 45px 0 80px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    font-size: 13px;
    color: #64748b;
}

.breadcrumb a:hover {
    color: #166534;
}

.breadcrumb strong {
    color: #172018;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 30px;
}

.product-main-image {
    height: 480px;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-placeholder {
    font-size: 100px;
    opacity: .6;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
}

.product-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.detail-category {
    color: #166534;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.product-detail-info h1 {
    margin-top: 8px;
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: -.8px;
}

.detail-sku {
    margin-top: 12px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.8;
}

.detail-price {
    margin-top: 28px;
    color: #166534;
    font-size: 34px;
    font-weight: 800;
}

.detail-unit {
    color: #64748b;
    font-size: 13px;
}

.detail-stock {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 13px 16px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 13px;
}

.detail-description {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.detail-description h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.detail-description p {
    color: #64748b;
    font-size: 14px;
}

.detail-whatsapp {
    display: block;
    margin-top: 28px;
    padding: 15px 20px;
    background: #166534;
    color: white;
    text-align: center;
    border-radius: 10px;
    font-weight: 800;
}

.detail-whatsapp:hover {
    background: #14532d;
}

.detail-whatsapp.disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.back-products {
    display: block;
    margin-top: 18px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.back-products:hover {
    color: #166534;
}


@media (max-width: 800px) {

    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .product-main-image {
        height: 350px;
    }

    .product-detail-info h1 {
        font-size: 28px;
    }

    .detail-price {
        font-size: 28px;
    }

}

.product-image-link {
    display: grid;
    place-items: center;
    color: inherit;
    cursor: pointer;
}

.product-image-link:hover {
    background: #f1f5f3;
}

.product-card h3 a {
    color: inherit;
}

.product-card h3 a:hover {
    color: #166534;
}

.btn-detail {
    background: white;
    color: #166534;
    border: 1px solid #166534;
    margin-bottom: 8px;
}

.btn-detail:hover {
    background: #166534;
    color: white;
}

