/* =========================================================
   CATÁLOGO PÚBLICO — GALERIA DA TOCA
   Arquivo canônico da página /catalogo.
   Sem camadas V2/V3: este arquivo representa o estado final.
   ========================================================= */

.catalogo-publico {
    background: var(--cream-light);
    color: var(--dark);
}

.catalogo-main {
    min-height: 72vh;
}

.catalogo-vitrine {
    padding: clamp(46px, 5vw, 76px) 0 clamp(78px, 8vw, 124px);
    background:
        radial-gradient(circle at 92% 2%, rgba(217, 104, 18, .055), transparent 25rem),
        var(--cream-light);
}

/* =========================================================
   HERO
   ========================================================= */

.catalogo-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: clamp(28px, 5vw, 80px);
    margin-bottom: clamp(32px, 4.5vw, 54px);
}

.catalogo-hero-copy {
    max-width: 900px;
}

.catalogo-hero .section-label {
    margin-bottom: 14px;
}

.catalogo-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--dark);
    font-size: clamp(3rem, 6.2vw, 6.4rem);
    font-weight: 900;
    line-height: .92;
    letter-spacing: -.06em;
}

.catalogo-hero p {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--text-muted);
    font-size: clamp(.98rem, 1.2vw, 1.1rem);
    line-height: 1.7;
}

.catalogo-hero-signature {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 8px;
}

.catalogo-hero-signature > div {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.catalogo-hero-signature strong {
    color: var(--dark);
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.catalogo-hero-signature span {
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 750;
}

.catalogo-hero-signature > span {
    width: 22px;
    height: 1px;
    background: rgba(26, 26, 23, .18);
}

/* =========================================================
   DESCOBERTA
   ========================================================= */

.catalogo-discovery {
    margin-bottom: clamp(38px, 5vw, 64px);
    padding: 16px 0 14px;
    border-top: 1px solid rgba(26, 26, 23, .065);
    border-bottom: 1px solid rgba(26, 26, 23, .065);
}

.catalogo-discovery-top {
    display: grid;
    grid-template-columns: minmax(0, 760px) auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.catalogo-search-field {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding-left: 17px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .64);
    box-shadow: inset 0 0 0 1px rgba(26, 26, 23, .065);
    transition: box-shadow .18s ease, background .18s ease;
}

.catalogo-search-field:focus-within {
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(217, 104, 18, .35), 0 0 0 3px rgba(217, 104, 18, .065);
}

.catalogo-search-field svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #85857b;
    stroke-width: 1.8;
}

.catalogo-search-field input {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dark);
    font: inherit;
    font-size: .92rem;
}

.catalogo-search-field input::placeholder {
    color: #929187;
}

.catalogo-search-field button {
    align-self: stretch;
    min-width: 88px;
    padding: 0 18px;
    border: 0;
    border-radius: 13px;
    background: var(--dark);
    color: #fff;
    font: inherit;
    font-size: .76rem;
    font-weight: 850;
    cursor: pointer;
    transition: background .18s ease;
}

.catalogo-search-field button:hover {
    background: var(--orange);
}

.catalogo-order-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalogo-order-form label {
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 800;
}

.catalogo-order-form select {
    min-width: 166px;
    min-height: 46px;
    padding: 0 38px 0 14px;
    border: 0;
    border-radius: 14px;
    outline: 0;
    background-color: rgba(255, 255, 255, .64);
    box-shadow: inset 0 0 0 1px rgba(26, 26, 23, .065);
    color: var(--dark);
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
}

.catalogo-order-form select:focus {
    box-shadow: inset 0 0 0 1px rgba(217, 104, 18, .35), 0 0 0 3px rgba(217, 104, 18, .065);
}

.catalogo-categories {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    margin-top: 14px;
    padding: 2px 0 8px;
    scrollbar-width: thin;
}

.catalogo-category {
    flex: 0 0 auto;
    padding: 8px 13px;
    border-radius: 999px;
    color: #77776d;
    font-size: .75rem;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.catalogo-category:hover {
    background: rgba(104, 112, 74, .08);
    color: var(--dark);
}

.catalogo-category.is-active {
    background: var(--dark);
    color: #fff;
}

.catalogo-results-line {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
    margin-top: 7px;
    color: #84847a;
    font-size: .7rem;
}

.catalogo-results-line > span:first-child strong,
.catalogo-active-filter strong {
    color: var(--dark);
}

.catalogo-active-filter {
    padding-left: 13px;
    border-left: 1px solid rgba(26, 26, 23, .09);
}

.catalogo-clear {
    margin-left: auto;
    color: var(--orange-dark);
    font-weight: 850;
    text-decoration: none;
}

.catalogo-clear:hover {
    color: var(--dark);
}

/* =========================================================
   CABEÇALHO DE SEÇÕES
   ========================================================= */

.catalogo-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.catalogo-section-heading .section-label {
    display: block;
    margin-bottom: 6px;
}

.catalogo-section-heading h2 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.catalogo-section-count {
    padding-bottom: 4px;
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 750;
}

/* =========================================================
   DESTAQUE
   ========================================================= */

.catalogo-featured {
    margin-bottom: clamp(58px, 7vw, 94px);
}

.catalogo-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
    min-height: clamp(470px, 55vw, 680px);
    overflow: hidden;
    border-radius: 32px;
    background: #252a20;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 18px 44px rgba(26, 26, 23, .11);
}

.catalogo-featured-media {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 55% 28%, rgba(255, 255, 255, .95), transparent 48%),
        #e8e2d3;
}

.catalogo-featured-media > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
}

.catalogo-featured-card:hover .catalogo-featured-media > img {
    transform: scale(1.025);
}

.catalogo-featured-fallback {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #77766d;
}

.catalogo-featured-fallback img {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    opacity: .75;
}

.catalogo-featured-fallback span {
    font-size: .78rem;
    font-weight: 800;
}

.catalogo-featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(34px, 4vw, 58px);
    background:
        radial-gradient(circle at 100% 0, rgba(217, 104, 18, .18), transparent 48%),
        linear-gradient(145deg, #2b3025, #1f231c 72%);
}

.catalogo-featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.catalogo-featured-meta span {
    color: rgba(255, 250, 240, .62);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.catalogo-featured-meta span + span {
    color: #f4a35d;
}

.catalogo-featured-copy h2 {
    margin: 0;
    color: #fffaf0;
    font-size: clamp(2.2rem, 4.4vw, 4.8rem);
    font-weight: 900;
    line-height: .96;
    letter-spacing: -.055em;
}

.catalogo-featured-copy p {
    max-width: 440px;
    margin: 20px 0 0;
    color: rgba(255, 250, 240, .61);
    font-size: .93rem;
    line-height: 1.65;
}

.catalogo-featured-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.catalogo-featured-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.catalogo-featured-price > strong {
    color: #fffaf0;
    font-size: clamp(1.5rem, 2.6vw, 2.3rem);
    font-weight: 900;
    letter-spacing: -.035em;
}

.catalogo-featured-price > strong.is-consult {
    font-size: 1.05rem;
}

.catalogo-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fffaf0;
    font-size: .78rem;
    font-weight: 900;
    transition: gap .18s ease, color .18s ease;
}

.catalogo-featured-card:hover .catalogo-featured-link {
    gap: 14px;
    color: #f2aa69;
}

/* =========================================================
   GRID DE GALERIA
   ========================================================= */

.catalogo-products-section {
    margin-top: 0;
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(44px, 5vw, 72px) clamp(24px, 3vw, 46px);
}

.catalogo-product {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.catalogo-product article {
    height: 100%;
}

.catalogo-product-media {
    position: relative;
    aspect-ratio: 1 / 1.04;
    overflow: hidden;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 24%, rgba(255,255,255,.95), transparent 50%),
        #e9e4d8;
    box-shadow: 0 9px 22px rgba(26, 26, 23, .038);
    transition: transform .28s ease, box-shadow .28s ease;
}

.catalogo-product:hover .catalogo-product-media {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(26, 26, 23, .075);
}

.catalogo-product-media > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: opacity .2s ease, transform .38s cubic-bezier(.2,.7,.2,1);
}

/*
 * Estado de carregamento: em vez de um card simplesmente vazio,
 * mostramos uma passagem de luz discreta até a foto terminar.
 */
.catalogo-product-media.has-image::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 28%,
        rgba(255, 255, 255, .44) 43%,
        transparent 58%
    );
    transform: translateX(-115%);
    animation: catalogo-image-loading 1.15s ease-in-out infinite;
    transition: opacity .18s ease;
}

.catalogo-product-media.has-image:not(.is-loaded) > img {
    opacity: 0;
}

.catalogo-product-media.has-image.is-loaded::after {
    opacity: 0;
    animation: none;
}

.catalogo-product-media.has-image.is-loaded > img {
    opacity: 1;
}

@keyframes catalogo-image-loading {
    to {
        transform: translateX(115%);
    }
}

.catalogo-product:hover .catalogo-product-media > img {
    transform: scale(1.025);
}

.catalogo-product-fallback {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #77766d;
    text-align: center;
}

.catalogo-product-fallback.is-visible {
    display: flex;
}

.catalogo-product-fallback img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    opacity: .72;
}

.catalogo-product-fallback span {
    font-size: .74rem;
    font-weight: 800;
}

.catalogo-new {
    position: absolute;
    z-index: 3;
    top: 13px;
    right: 13px;
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(217, 104, 18, .94);
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 26, 23, .06);
    font-size: .61rem;
    font-weight: 900;
}

.catalogo-product-hover {
    position: absolute;
    inset: auto 14px 14px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    padding: 0 15px;
    border-radius: 999px;
    background: rgba(29, 31, 26, .89);
    color: #fff;
    opacity: 0;
    transform: translateY(7px);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: .7rem;
    font-weight: 900;
    transition: opacity .2s ease, transform .2s ease;
}

.catalogo-product:hover .catalogo-product-hover,
.catalogo-product:focus-visible .catalogo-product-hover {
    opacity: 1;
    transform: translateY(0);
}

.catalogo-product-copy {
    padding: 14px 2px 0;
}

.catalogo-product-category {
    display: block;
    margin-bottom: 5px;
    color: var(--orange-dark);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.catalogo-product-copy h3 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(1.05rem, 1.35vw, 1.3rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.024em;
}

.catalogo-product-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.catalogo-product-price {
    flex: 0 0 auto;
    color: var(--dark);
    font-size: .94rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.catalogo-product-price.is-consult {
    color: #5e6153;
    font-size: .78rem;
}

.catalogo-availability {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #75756c;
    font-size: .67rem;
    font-weight: 750;
    white-space: nowrap;
}

.catalogo-availability i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #8b8b82;
}

.catalogo-availability.is-ready i {
    background: #6f814d;
}

.catalogo-availability.is-order i {
    background: #c87831;
}

.catalogo-availability.is-unavailable i {
    background: #9d6a5f;
}

.catalogo-availability.is-coming i {
    background: #777184;
}

.catalogo-product:focus-visible {
    outline: 3px solid rgba(217, 104, 18, .22);
    outline-offset: 5px;
    border-radius: 22px;
}

/* =========================================================
   PAUSA DE MARCA
   ========================================================= */

.catalogo-brand-break {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto auto;
    align-items: center;
    gap: clamp(26px, 5vw, 72px);
    margin: 4px 0 8px;
    padding: clamp(30px, 4vw, 48px) clamp(24px, 4vw, 50px);
    border-radius: 26px;
    background:
        radial-gradient(circle at 92% 15%, rgba(217,104,18,.13), transparent 22rem),
        #292e24;
    color: #fffaf0;
}

.catalogo-brand-break .section-label {
    display: block;
    margin-bottom: 8px;
    color: #efad70;
}

.catalogo-brand-break h3 {
    max-width: 660px;
    margin: 0;
    color: #fffaf0;
    font-size: clamp(1.45rem, 2.4vw, 2.2rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.03em;
}

.catalogo-brand-break p {
    max-width: 660px;
    margin: 10px 0 0;
    color: rgba(255,250,240,.62);
    font-size: .82rem;
    line-height: 1.58;
}

.catalogo-brand-process {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255,250,240,.76);
    font-size: .68rem;
    font-weight: 800;
    white-space: nowrap;
}

.catalogo-brand-process i {
    width: 20px;
    height: 1px;
    background: rgba(255,250,240,.22);
}

.catalogo-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fffaf0;
    font-size: .72rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: gap .18s ease, color .18s ease;
}

.catalogo-brand-link:hover {
    gap: 12px;
    color: #efad70;
}

/* =========================================================
   VAZIO
   ========================================================= */

.catalogo-empty {
    max-width: 760px;
    margin: 42px auto 0;
    padding: 54px 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .54);
    box-shadow: 0 10px 26px rgba(26, 26, 23, .03);
    text-align: center;
}

.catalogo-empty-mark {
    margin-bottom: 12px;
    font-size: 2.5rem;
}

.catalogo-empty h2 {
    margin: 0 0 9px;
    color: var(--dark);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.catalogo-empty p {
    max-width: 520px;
    margin: 0 auto 22px;
    color: var(--text-muted);
}

/* =========================================================
   PAGINAÇÃO
   ========================================================= */

.catalogo-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: clamp(52px, 7vw, 86px);
}

.catalogo-page-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.catalogo-page-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #6c6c63;
    font-size: .75rem;
    font-weight: 850;
    text-decoration: none;
}

.catalogo-page-number:hover {
    background: rgba(104, 112, 74, .09);
    color: var(--dark);
}

.catalogo-page-number.is-active {
    background: var(--dark);
    color: #fff;
}

.catalogo-page-arrow {
    color: var(--dark);
    font-size: .75rem;
    font-weight: 850;
    text-decoration: none;
}

.catalogo-page-arrow:hover {
    color: var(--orange-dark);
}

.catalogo-page-arrow.is-disabled {
    color: #b2b0a7;
    pointer-events: none;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1199.98px) {
    .catalogo-featured-card {
        grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
    }

    .catalogo-brand-break {
        grid-template-columns: 1fr auto;
    }

    .catalogo-brand-process {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 991.98px) {
    .catalogo-hero {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .catalogo-hero-signature {
        padding-bottom: 0;
    }

    .catalogo-discovery-top {
        grid-template-columns: 1fr;
    }

    .catalogo-order-form {
        justify-content: flex-end;
    }

    .catalogo-featured-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .catalogo-featured-media {
        min-height: 460px;
    }

    .catalogo-featured-copy {
        min-height: 320px;
    }

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

@media (max-width: 767.98px) {
    .catalogo-vitrine {
        padding-top: 34px;
    }

    .catalogo-featured-card {
        border-radius: 22px;
    }

    .catalogo-featured-media {
        min-height: 350px;
    }

    .catalogo-featured-copy {
        min-height: 0;
        padding: 28px 24px;
    }

    .catalogo-product-media {
        border-radius: 18px;
    }

    .catalogo-product-info {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .catalogo-product-hover {
        display: none;
    }

    .catalogo-brand-break {
        grid-template-columns: 1fr;
        gap: 20px;
        border-radius: 22px;
    }

    .catalogo-brand-process,
    .catalogo-brand-link {
        grid-column: auto;
        grid-row: auto;
    }

    .catalogo-brand-process {
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .catalogo-hero h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .catalogo-hero-signature {
        gap: 12px;
    }

    .catalogo-search-field {
        grid-template-columns: 20px minmax(0, 1fr);
        padding-right: 14px;
    }

    .catalogo-search-field button {
        grid-column: 1 / -1;
        min-height: 43px;
        margin: 0 -14px 0 -17px;
        border-radius: 0 0 14px 14px;
    }

    .catalogo-order-form {
        justify-content: space-between;
    }

    .catalogo-order-form select {
        min-width: 0;
        width: min(200px, 65vw);
    }

    .catalogo-active-filter {
        width: 100%;
        padding-left: 0;
        border-left: 0;
    }

    .catalogo-clear {
        margin-left: 0;
    }

    .catalogo-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .catalogo-section-count {
        padding-bottom: 0;
    }

    .catalogo-featured-media {
        min-height: 310px;
    }

    .catalogo-featured-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .catalogo-pagination {
        justify-content: space-between;
        gap: 10px;
    }

    .catalogo-page-numbers {
        gap: 2px;
    }

    .catalogo-page-number {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 430px) {
    .catalogo-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .catalogo-product-media {
        aspect-ratio: 1 / .96;
    }

    .catalogo-product-info {
        flex-direction: row;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalogo-featured-media > img,
    .catalogo-featured-link,
    .catalogo-product-media,
    .catalogo-product-media > img,
    .catalogo-product-hover,
    .catalogo-brand-link,
    .catalogo-search-field button {
        transition: none !important;
    }

    .catalogo-product-media.has-image::after {
        animation: none !important;
    }
}
