@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@300;400;600;700&family=Work+Sans:wght@300;400;600&display=swap');

:root {
    --bg: #fbfaf7;
    --ink: #2b2723;
    --muted: #6f675f;
    --accent: #b8860b;
    --accent-2: #d4af37;
    --card: #ffffff;
    --stroke: rgba(184, 134, 11, 0.18);
    --shadow: 0 18px 40px rgba(184, 134, 11, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Work Sans', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 20% 10%, rgba(212, 175, 55, 0.18), transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(184, 134, 11, 0.12), transparent 40%),
        linear-gradient(160deg, #ffffff 0%, #fbfaf7 55%, #f6f2e8 100%);
    min-height: 100vh;
}

h1, h2, h3, .brand {
    font-family: 'Spectral', serif;
    letter-spacing: 0.2px;
}

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

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 18px 60px 18px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 24px 0;
    border-bottom: none;
}

.brand {
    font-size: 30px;
    font-weight: 700;
}

.tagline {
    color: var(--muted);
    font-size: 14px;
    margin-top: 6px;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mobile-menu-bar {
    display: none;
}

.hamburger-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: #fff;
    padding: 10px 9px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
}

.nav-link {
    padding: 8px 14px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: var(--card);
    font-size: 13px;
    color: var(--ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.menu-bar {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 18px auto 22px auto;
    width: 100%;
    max-width: 1200px;
    padding: 12px 20px;
    background: #ffffff;
    border: none;
    border-radius: 999px;
}

.menu-item {
    position: relative;
}

.menu-trigger {
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.menu-trigger:hover {
    background: rgba(184, 134, 11, 0.22);
    color: #1f1a14;
    box-shadow: 0 10px 22px rgba(184, 134, 11, 0.25);
}

.menu-trigger::after {
    content: '\25BE';
    font-size: 12px;
}

.menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: none;
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
    display: none;
    max-height: 260px;
    overflow: auto;
    z-index: 20;
}

.menu-dropdown a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.menu-dropdown a:hover {
    background: rgba(184, 134, 11, 0.22);
    color: #1f1a14;
}

.menu-dropdown a.active {
    background: var(--accent);
    color: #fff;
}

.menu-dropdown.open {
    display: block;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 26px 0 18px 0;
}

.filter-block {
    background: var(--card);
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

.filter-block h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--muted);
}

.filter-list {
    display: grid;
    gap: 6px;
    max-height: 170px;
    overflow: auto;
    padding-right: 4px;
}

.filter-list a {
    font-size: 14px;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 10px;
    background: #f6f1e7;
}

.filter-list a.active {
    background: var(--accent);
    color: #fff;
}

.filter-toggle {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    position: relative;
}

.filter-toggle::after {
    content: '\25BE';
    position: absolute;
    right: 12px;
}

.filter-list.is-collapsed {
    max-height: 0;
    overflow: hidden;
    padding-right: 0;
}

.hero {
    display: grid;
    gap: 18px;
    background: linear-gradient(135deg, rgba(217, 185, 119, 0.22), rgba(255, 255, 255, 0.8));
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    align-items: start;
    text-align: left;
    overflow: hidden;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.sidebar-filters {
    position: sticky;
    top: 16px;
    display: grid;
    gap: 14px;
}

.filter-panel {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.filter-panel h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
}

.check-list {
    display: grid;
    gap: 8px;
    max-height: 210px;
    overflow: auto;
}

.check-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 14px;
}

.check-list input[type='checkbox'] {
    accent-color: var(--accent);
}

.muted-small {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.filter-actions {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.hero h1 {
    margin: 0;
    font-size: 34px;
}

.hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.hero-image {
    width: 100%;
    height: clamp(320px, 46vw, 560px);
    object-fit: contain;
    object-position: center top;
    background: linear-gradient(135deg, #f7f1e5, #fefcf7);
    border-radius: 14px;
    margin-top: 2px;
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form input {
    flex: 1;
    min-width: 220px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    font-size: 14px;
    background: #fff;
    color: var(--ink);
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
}

.btn.secondary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--stroke);
}

.products {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 100%;
}

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

.card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 16px;
    background: #f3eee5;
}

.card .meta {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 1.35;
    min-height: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    min-height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    font-weight: 700;
    color: var(--accent);
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
    width: 100%;
}

.card.out {
    filter: grayscale(100%);
    background: #f2efe9;
    border-style: dashed;
    opacity: 0.85;
}

.card.out::after {
    content: 'ESGOTADO';
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 1px;
}

.footer {
    margin-top: 50px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.empty {
    margin: 28px 0;
    padding: 20px;
    background: var(--card);
    border-radius: 16px;
    border: 1px dashed var(--stroke);
    color: var(--muted);
}

.contact-card {
    background: var(--card);
    border-radius: 18px;
    border: 1px solid var(--stroke);
    padding: 24px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 16px;
    max-width: 620px;
}

.contact-card input,
.contact-card textarea {
    padding: 12px 14px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    font-size: 14px;
    width: 100%;
    background: #fff;
    color: var(--ink);
}

.product-page {
    margin-top: 26px;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 1fr);
    align-items: start;
}

.product-page.out {
    filter: grayscale(100%);
    opacity: 0.85;
}

.gallery-main {
    background: var(--card);
    border-radius: 18px;
    padding: 14px;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 14px;
    background: #f4efe8;
}

.gallery-nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    pointer-events: none;
}

.gallery-btn {
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 22px;
    cursor: pointer;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease;
}

.gallery-btn:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.7);
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-top: 10px;
}

.thumb {
    border: 2px solid transparent;
    background: var(--card);
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
}

.thumb img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 8px;
}

.thumb.active {
    border-color: var(--accent);
}

.product-info {
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 20px;
}

.product-info .meta {
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
}

.product-info h1 {
    font-size: 30px;
    margin: 10px 0 12px 0;
    line-height: 1.2;
}

.product-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: linear-gradient(145deg, #fffefb, #f8f3e9);
}

.price-block {
    display: grid;
    gap: 4px;
}

.price-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
}

.price-note {
    font-size: 12px;
    color: var(--muted);
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.stock-pill.in {
    color: #106b2f;
    background: #e9f8ef;
    border: 1px solid #b7e7c7;
}

.stock-pill.out {
    color: #8f1d1d;
    background: #fdecec;
    border: 1px solid #f5c7c7;
}

.product-info p {
    color: var(--muted);
    line-height: 1.6;
    margin: 14px 0 0 0;
}

.product-desc {
    min-height: 44px;
}

.size-wrap {
    margin: 16px 0 16px 0;
}

.size-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--muted);
    margin-bottom: 8px;
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-btn {
    border: 1px solid var(--stroke);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-btn:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.size-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.purchase-panel {
    margin-top: 18px;
}

.purchase-panel .contact-btn {
    min-width: 240px;
}

.whats-msg {
    width: 100%;
    margin: 8px 0 12px 0;
    padding: 12px 14px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Work Sans', sans-serif;
    background: #fff;
    color: var(--ink);
}

@media (max-width: 860px) {
    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-page {
        grid-template-columns: 1fr;
    }

    .gallery-main img {
        height: 320px;
    }

    .product-info {
        padding: 16px;
    }

    .product-summary {
        flex-direction: column;
    }

    .purchase-panel .contact-btn {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .page {
        padding-top: 72px;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .sidebar-filters {
        display: none;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-menu-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 56px;
        padding: 6px 12px;
        background: #fff;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        z-index: 70;
    }

    .mobile-menu-title {
        font-family: 'Spectral', serif;
        font-size: 20px;
        font-weight: 600;
        color: var(--ink);
        line-height: 1;
    }

    .topbar {
        display: none;
    }

    .menu-bar {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        z-index: 60;
        margin-top: 0;
        background: #fff;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        border-radius: 0;
    }

    .menu-bar.open {
        display: flex;
    }

    .hamburger-btn {
        display: inline-flex;
    }

    .menu-dropdown {
        position: static;
        display: none;
        margin-top: 8px;
    }

    .search-form input::placeholder {
        color: transparent;
    }

    .hero h1,
    .hero p {
        display: none;
    }

    .hero {
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        gap: 12px;
    }

    .hero-image {
        display: block;
        width: 100vw;
        max-width: none;
        height: auto;
        min-height: 0;
        object-fit: cover;
        object-position: center top;
        margin-top: 0;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border-radius: 0;
        background: transparent;
    }

    .search-form {
        padding: 0 16px 16px 16px;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-filters {
        position: static;
    }

    .hero h1 {
        font-size: 28px;
    }
}


