/* catalog/public base (sempre) — <style> 1. */
:root {
    --accent: #087f6f;
    --soft: color-mix(in srgb, var(--accent) 12%, white);
    --ink: #17211f;
    --muted: #66736f;
    --line: #e4ebe8;
    --surface: #fff;
    --page: #f7f9f8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font:
        500 15px/1.5 Manrope,
        system-ui,
        sans-serif;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.shell {
    width: 100%;
    margin: 0;
    min-height: initial;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    background: #fffffff2;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    max-width: 1200px;
    height: 64px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    min-width: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: var(--accent);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 30%, transparent);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-copy {
    min-width: 0;
}

.brand-copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.7rem;
}

.top-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
}

.hero {
    padding: 32px clamp(18px, 5vw, 52px) 38px;
    background: linear-gradient(135deg, var(--soft), #fff);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 25px;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: 18px;
    margin: 18px auto 0;
}

.open {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
}

.open:before {
    content: "";
    width: 8px;
    height: 8px;
    background: #32b578;
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
    margin: 10px 0;
}

.hero p {
    color: var(--muted);
    margin: 0;
    max-width: 680px;
}

.hero-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.hero-social {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--accent);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.hero-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 18%, transparent);
}

.hero-social svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.hero-art {
    width: clamp(100px, 20vw, 170px);
    aspect-ratio: 1;
    border-radius: 35%;
    background: var(--accent);
    display: grid;
    place-items: center;
    font-size: clamp(3.5rem, 9vw, 6rem);
    transform: rotate(5deg);
    box-shadow: 0 22px 50px color-mix(in srgb, var(--accent) 28%, transparent);
}

.catalog {
    padding: 20px clamp(16px, 4vw, 34px) 120px;
}

.tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 6px 0 18px;
}

.tools h2 {
    font-size: 1.45rem;
    margin: 0;
}

.search {
    position: relative;
    max-width: 330px;
    flex: 1;
}

.search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px 12px 38px;
    outline: none;
    background: #fff;
}

.search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.search:before {
    content: "⌕";
    position: absolute;
    left: 14px;
    top: 7px;
    font-size: 1.35rem;
    color: var(--muted);
}

.categories {
    display: flex;
    gap: 9px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    padding: 0 0 20px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.categories::-webkit-scrollbar {
    height: 6px;
}

.categories::-webkit-scrollbar-thumb {
    background: #b8c5c1;
    border-radius: 99px;
}

.category-menu {
    position: relative;
}

.category-toggle {
    display: none;
}

.category-drawer {
    display: none;
}

@media (max-width: 680px) {
    .category-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        border: 1px solid var(--line);
        background: #fff;
        border-radius: 10px;
        padding: 10px 13px;
        font-weight: 700;
        color: var(--ink);
        margin-bottom: 12px;
    }

    .category-drawer {
        position: fixed;
        z-index: 30;
        inset: 0 auto 0 0;
        width: min(86vw, 320px);
        padding: 24px 20px;
        background: #fff;
        box-shadow: 12px 0 30px #0002;
        overflow: auto;
        transform: translateX(-105%);
        transition: transform 0.25s;
        display: block;
    }

    .category-drawer.open {
        transform: translateX(0);
    }

    .category-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .category-drawer-close {
        border: 0;
        background: #eef2f1;
        border-radius: 50%;
        width: 34px;
        height: 34px;
        color: var(--ink);
        font-size: 1.2rem;
        line-height: 1;
    }

    .category-drawer input {
        width: 100%;
        padding: 11px;
        border: 1px solid var(--line);
        border-radius: 9px;
        margin: 12px 0;
    }

    .category-drawer a {
        display: block;
        padding: 12px 8px;
        color: var(--ink);
        text-decoration: none;
        border-bottom: 1px solid var(--line);
    }

    .category-drawer a.active {
        color: var(--accent);
        font-weight: 800;
    }

    .category-menu:after {
        content: "";
        display: none;
        position: fixed;
        z-index: 29;
        inset: 0;
        background: #0005;
    }

    .category-menu:has(.category-drawer.open):after {
        display: block;
    }
}

.chip {
    flex: 0 0 auto;
    white-space: nowrap;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 99px;
    padding: 10px 15px;
    font-weight: 700;
    color: var(--muted);
}

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

.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.2s;
    min-width: 0;
}

.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px #29443e12;
}

.visual {
    display: block;
    position: relative;
    aspect-ratio: 1.2;
    background: var(--soft);
    overflow: hidden;
    text-decoration: none;
}

.photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 3rem;
}

.product-body {
    padding: 16px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.category {
    color: var(--accent);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 800;
}

.product h2 {
    font-size: 1rem;
    line-height: 1.3;
    margin: 7px 0;
}

.product h2 a {
    color: inherit;
    text-decoration: none;
}

.desc {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.price {
    font-size: 1.05rem;
    font-weight: 800;
}

.old {
    display: block;
    color: #89918d;
    font-size: 0.7rem;
    font-weight: 600;
}

.add {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 1.35rem;
}

.detail-link {
    width: auto;
    padding: 0 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    display: grid;
    place-items: center;
}

.empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px;
    color: var(--muted);
}

.floating-cart {
    position: fixed;
    z-index: 25;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(550px, calc(100% - 28px));
    border: 0;
    border-radius: 17px;
    background: #17211f;
    color: #fff;
    padding: 14px 18px;
    display: none;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 18px 48px #10211e50;
}

.floating-cart.show {
    display: flex;
}

@media (min-width: 761px) {
    .floating-cart {
        display: none !important;
    }
}

.floating-cart span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.count {
    background: var(--accent);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: grid !important;
    place-items: center;
    font-size: 0.75rem;
}

.overlay {
    position: fixed;
    inset: 0;
    background: #10211e80;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
}

.overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.sheet {
    position: fixed;
    z-index: 41;
    background: #fff;
    right: 0;
    top: 0;
    height: 100%;
    width: min(480px, 100%);
    transform: translateX(100%);
    transition: 0.28s;
    display: flex;
    flex-direction: column;
    box-shadow: -25px 0 60px #0002;
}

.overlay.open .sheet {
    transform: none;
}

.sheet-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sheet-head h2 {
    margin: 0;
    font-size: 1.25rem;
}

.close {
    border: 0;
    background: #eef2f0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
}

.sheet-content {
    overflow: auto;
    padding: 20px;
    flex: 1;
}

.choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    margin: 8px 0;
}

.choice:has(input:checked) {
    border-color: var(--accent);
    background: var(--soft);
}

.choice input {
    accent-color: var(--accent);
}

.group-title {
    margin: 20px 0 9px;
}

.primary {
    width: 100%;
    border: 0;
    background: var(--accent);
    color: #fff;
    padding: 15px;
    border-radius: 13px;
    font-weight: 800;
}

.cart-row {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.cart-row small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.remove {
    float: right;
    border: 0;
    background: none;
    color: #c44640;
}

.field {
    display: block;
    margin: 14px 0;
    font-weight: 700;
}

.field input,
.field textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    outline: none;
}

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

@media (max-width: 680px) {
    .topbar {
        height: 58px;
    }

    .brand-copy small {
        display: none;
    }

    .hero {
        padding: 22px 18px 28px;
    }

    .hero-art {
        width: 90px;
        border-radius: 28px;
    }

    .catalog {
        padding-left: 14px;
        padding-right: 14px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .product-body {
        padding: 12px;
    }

    .product h2 {
        font-size: 0.9rem;
    }

    .desc {
        font-size: 0.72rem;
    }

    .price {
        font-size: 0.9rem;
    }

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

    .search {
        max-width: none;
        width: 100%;
    }

    .sheet {
        top: auto;
        bottom: 0;
        height: auto;
        max-height: 92%;
        width: 100%;
        transform: translateY(100%);
        border-radius: 24px 24px 0 0;
    }

    .overlay.open .sheet {
        transform: none;
    }

    .sheet-head {
        padding-top: 24px;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 370px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .visual {
        aspect-ratio: 1.7;
    }
}

.shell {
    width: 100%;
    max-width: none;
}

.brand {
    gap: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
}

.brand-copy {
    display: none;
}

.icon-btn {
    position: relative;
    width: 42px;
    min-width: 42px;
    padding: 0;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-badge {
    position: absolute;
    right: -5px;
    top: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 99px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    display: none;
    place-items: center;
}

.cart-badge.show {
    display: grid;
}

.search {
    display: flex;
}

.search button {
    border: 0;
    border-radius: 0 12px 12px 0;
    background: var(--accent);
    color: #fff;
    padding: 0 16px;
    font-weight: 800;
}

.search input {
    border-radius: 12px 0 0 12px;
}

.result-summary {
    margin: 2px 0 18px;
    color: var(--muted);
    font-size: 0.82rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 34px;
}

.page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
    font-weight: 700;
}

.page-link:hover,
.page-link.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.page-link.disabled {
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 680px) {
    .search button {
        padding: 0 12px;
    }

    .pagination {
        gap: 5px;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 9px;
    }
}

.categories .chip {
    display: block;
    text-decoration: none;
}

.checkout-step[hidden] {
    display: none;
}

.step-label {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.step-actions {
    display: flex;
    gap: 9px;
    margin-top: 18px;
}

.step-actions .primary {
    flex: 1;
}

.secondary {
    border: 1px solid var(--line);
    background: #fff;
    padding: 13px;
    border-radius: 13px;
    font-weight: 800;
}

.payment-choice {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    margin: 9px 0;
}

.payment-choice:has(input:checked) {
    border-color: var(--accent);
    background: var(--soft);
}

.fulfillment-choice {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 18px;
}

.fulfillment-choice .payment-choice {
    border: 1px solid var(--line);
    background: var(--bg, #fff);
}

.fulfillment-choice .payment-choice:has(input:checked) {
    border-color: var(--accent);
    background: var(--soft);
}

.fulfillment-question {
    font-weight: 700;
    margin: 0 0 10px;
}

.fulfillment-note,
.fulfillment-fee {
    font-size: 0.9rem;
    color: var(--muted, #55605d);
    margin: 0 0 14px;
}

.fulfillment-fee:empty {
    display: none;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 24px clamp(16px, 4vw, 34px);
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 0.78rem;
}

.site-footer a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 560px) {
    .site-footer {
        flex-direction: column;
        text-align: center;
    }
}
