/* Loja editorial — composição fiel à referência, adaptada à paleta Nicole S. */
:root {
    --shop-paper: #fff9d9;
    --shop-paper-2: #f6f0c4;
    --shop-ink: #3f4a30;
    --shop-ink-soft: #6d7158;
    --shop-earth: #83521a;
    --shop-gold: #b17a20;
    --shop-line: rgba(63, 74, 48, .19);
    --shop-ease: cubic-bezier(.22, .75, .18, 1);
}

body.catalog-page {
    background:
        radial-gradient(circle at 12% 0%, rgba(240, 235, 179, .72), transparent 30rem),
        var(--shop-paper);
}

.store-catalog-editorial.catalog-section {
    width: min(1480px, calc(100% - clamp(52px, 6vw, 108px)));
    margin: 0 auto;
    padding: clamp(68px, 6.3vw, 102px) 0 clamp(100px, 10vw, 160px);
}

.loja-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(48px, 5vw, 72px);
}

.loja-heading-copy {
    min-width: 0;
}

.loja-kicker {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 16px;
    color: var(--shop-earth);
    font: 700 .62rem/1 var(--font-sans);
    letter-spacing: .24em;
    text-transform: uppercase;
}

.loja-kicker::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--shop-gold);
}

.loja-head h1 {
    margin: 0;
    color: var(--shop-ink);
    font: 500 clamp(3.55rem, 6.2vw, 6.6rem)/.82 var(--font-serif);
    letter-spacing: -.055em;
}

.loja-head h1 em {
    color: var(--shop-earth);
    font-weight: 400;
}

.loja-note {
    width: min(100%, 320px);
    margin: 0 0 5px;
    padding-top: 16px;
    border-top: 1px solid var(--shop-line);
    color: var(--shop-ink-soft);
    font: 500 .74rem/1.75 var(--font-sans);
    letter-spacing: .025em;
}

.store-catalog-editorial .catalog-toolbar {
    margin-bottom: clamp(34px, 3.6vw, 54px);
    padding: 0 0 18px;
    border-bottom: 1px solid var(--shop-line);
    color: var(--shop-earth);
}

.store-catalog-editorial .catalog-filter-toggle,
.store-catalog-editorial .catalog-sort {
    color: var(--shop-earth);
    font-size: .72rem;
}

.store-catalog-editorial .catalog-result-count {
    color: var(--shop-gold);
    font-size: .62rem;
}

.store-catalog-editorial .catalog-filter-panel {
    margin-top: -24px;
}

.store-catalog-editorial .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: clamp(54px, 5.2vw, 78px) clamp(24px, 2.5vw, 38px);
}

.store-catalog-editorial .product-card.prod {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: translateZ(0);
    transition: transform .5s var(--shop-ease);
}

.store-catalog-editorial .product-card.prod:hover,
.store-catalog-editorial .product-card.prod:focus-within {
    transform: translate3d(0, -6px, 0);
    box-shadow: none;
}

.store-catalog-editorial .product-card .prod-ph {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(63, 74, 48, .12);
    border-radius: 0;
    background: var(--shop-paper-2);
    box-shadow: none;
}

.store-catalog-editorial .product-card .prod-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    transform: scale(1.001);
    transition: transform 1.1s var(--shop-ease), filter .55s ease;
}

.store-catalog-editorial .product-card:hover .prod-ph img,
.store-catalog-editorial .product-card:focus-within .prod-ph img {
    filter: saturate(1.035) contrast(1.015);
    transform: scale(1.055);
}

.store-catalog-editorial .product-card .prod-meta {
    min-height: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 19px 0 0;
    text-align: left;
}

.store-catalog-editorial .product-card .prod-cat {
    margin: 0;
    color: var(--shop-earth);
    font: 700 .57rem/1.45 var(--font-sans);
    letter-spacing: .19em;
    text-transform: uppercase;
}

.store-catalog-editorial .product-card .prod-meta h2 {
    margin: 8px 0 15px;
    color: var(--shop-ink);
    font: italic 500 clamp(1.42rem, 1.8vw, 1.72rem)/1.08 var(--font-serif);
    letter-spacing: -.02em;
    text-transform: none;
}

.store-catalog-editorial .product-card .prod-meta h2 a {
    background-image: linear-gradient(var(--shop-gold), var(--shop-gold));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size .4s var(--shop-ease), color .3s ease;
}

.store-catalog-editorial .product-card:hover .prod-meta h2 a,
.store-catalog-editorial .product-card:focus-within .prod-meta h2 a {
    color: var(--shop-earth);
    background-size: 100% 1px;
}

.store-catalog-editorial .product-card .prod-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
}

.store-catalog-editorial .product-card .price {
    color: var(--shop-ink);
    font: 500 1.18rem/1 var(--font-serif);
}

.store-catalog-editorial .product-card .price.dim {
    color: var(--shop-ink-soft);
}

.product-quick-add {
    margin: 0;
}

.product-quick-add input[type="hidden"] {
    display: none;
}

.prod-add {
    position: relative;
    min-height: 39px;
    padding: 0 17px;
    overflow: hidden;
    border: 1px solid var(--shop-ink);
    border-radius: 0;
    color: var(--shop-ink);
    background: transparent;
    font: 700 .57rem/1 var(--font-sans);
    letter-spacing: .13em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .35s ease, border-color .35s ease, transform .25s ease;
}

.prod-add::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--shop-ink);
    transform: translateY(103%);
    transition: transform .42s var(--shop-ease);
}

.prod-add span {
    position: relative;
    z-index: 1;
}

.prod-add:hover,
.prod-add:focus-visible {
    color: var(--shop-paper);
    transform: translateY(-1px);
}

.prod-add:hover::before,
.prod-add:focus-visible::before {
    transform: none;
}

.prod-add:disabled {
    border-color: var(--shop-line);
    color: var(--shop-ink-soft);
    cursor: not-allowed;
    opacity: .72;
}

.prod-add:disabled::before {
    display: none;
}

.store-catalog-editorial .product-card.will-reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity .72s ease, transform .72s var(--shop-ease);
    transition-delay: var(--product-delay, 0ms);
}

.store-catalog-editorial .product-card.will-reveal.is-revealed {
    opacity: 1;
    transform: translateZ(0);
}

/* Carrinho lateral */
body.store-cart-open {
    overflow: hidden;
}

.store-cart-scrim {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: block;
    border: 0;
    background: rgba(29, 31, 22, .52);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
}

.store-cart-scrim[hidden] {
    display: block;
}

body.store-cart-open .store-cart-scrim {
    opacity: 1;
    visibility: visible;
}

.store-cart-drawer {
    position: fixed;
    z-index: 1250;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(430px, 100vw);
    display: flex;
    flex-direction: column;
    color: var(--shop-ink);
    background: var(--shop-paper);
    border-left: 1px solid var(--shop-line);
    box-shadow: -28px 0 70px rgba(27, 31, 20, .13);
    transform: translate3d(102%, 0, 0);
    visibility: hidden;
    transition: transform .62s var(--shop-ease), visibility .62s;
}

body.store-cart-open .store-cart-drawer {
    transform: translateZ(0);
    visibility: visible;
}

.store-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 28px;
    border-bottom: 1px solid var(--shop-line);
}

.store-cart-head h2 {
    margin: 0;
    font: italic 500 1.8rem/1 var(--font-serif);
}

.store-cart-close {
    padding: 2px 9px 5px;
    border: 0;
    color: var(--shop-ink);
    background: transparent;
    font: 300 2rem/1 var(--font-serif);
    cursor: pointer;
    transition: transform .3s ease;
}

.store-cart-close:hover,
.store-cart-close:focus-visible {
    transform: rotate(90deg);
}

.store-cart-list {
    flex: 1;
    margin: 0;
    padding: 9px 28px;
    overflow-y: auto;
    list-style: none;
}

.store-cart-drawer-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--shop-line);
    animation: storeCartItemIn .48s var(--shop-ease) both;
}

@keyframes storeCartItemIn {
    from { opacity: 0; transform: translate3d(22px, 0, 0); }
}

.store-cart-drawer-item > a img {
    width: 70px;
    height: 88px;
    object-fit: cover;
    border: 1px solid var(--shop-line);
}

.store-cart-item-copy {
    min-width: 0;
}

.store-cart-item-copy h3 {
    margin: 0;
    font: italic 500 1.05rem/1.22 var(--font-serif);
}

.store-cart-item-copy p {
    margin: 5px 0 0;
    color: var(--shop-ink-soft);
    font: 600 .57rem/1.35 var(--font-sans);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.store-cart-qty {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    border: 1px solid var(--shop-line);
}

.store-cart-qty button {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    color: var(--shop-ink);
    background: transparent;
    cursor: pointer;
    transition: background .22s ease;
}

.store-cart-qty button:hover,
.store-cart-qty button:focus-visible {
    background: var(--shop-paper-2);
}

.store-cart-qty button:disabled {
    cursor: default;
    opacity: .35;
}

.store-cart-qty span {
    width: 30px;
    text-align: center;
    font: 600 .72rem/1 var(--font-sans);
}

.store-cart-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.store-cart-item-side strong {
    white-space: nowrap;
    font: 500 .92rem/1 var(--font-serif);
}

.store-cart-remove {
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid transparent;
    color: var(--shop-ink-soft);
    background: transparent;
    font: 600 .55rem/1 var(--font-sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
}

.store-cart-remove:hover,
.store-cart-remove:focus-visible {
    color: var(--shop-earth);
    border-color: var(--shop-earth);
}

.store-cart-empty {
    flex: 1;
    padding: 72px 28px;
    text-align: center;
}

.store-cart-empty[hidden] {
    display: none;
}

.store-cart-empty > span {
    display: inline-block;
    color: var(--shop-gold);
    font-size: 2.7rem;
    animation: storeCartStar 14s linear infinite;
}

@keyframes storeCartStar { to { transform: rotate(360deg); } }

.store-cart-empty p {
    margin: 18px 0 0;
    font: italic 500 1.3rem/1.2 var(--font-serif);
}

.store-cart-empty small {
    display: block;
    margin-top: 8px;
    color: var(--shop-ink-soft);
    font: 500 .68rem/1.55 var(--font-sans);
}

.store-cart-foot {
    padding: 23px 28px 27px;
    border-top: 1px solid var(--shop-line);
    background: var(--shop-paper-2);
}

.store-cart-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 9px;
}

.store-cart-total span {
    font: 700 .61rem/1 var(--font-sans);
    letter-spacing: .22em;
    text-transform: uppercase;
}

.store-cart-total strong {
    font: 500 1.75rem/1 var(--font-serif);
}

.store-cart-foot > small {
    display: block;
    margin-bottom: 18px;
    color: var(--shop-ink-soft);
    font: 500 .65rem/1.55 var(--font-sans);
}

.store-cart-checkout {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--shop-ink);
    color: var(--shop-paper);
    background: var(--shop-ink);
    font: 700 .62rem/1 var(--font-sans);
    letter-spacing: .17em;
    text-transform: uppercase;
    transition: color .25s ease, background .25s ease;
}

.store-cart-checkout:hover,
.store-cart-checkout:focus-visible {
    color: var(--shop-ink);
    background: transparent;
}

.store-cart-checkout.is-disabled {
    pointer-events: none;
    opacity: .42;
}

@media (max-width: 1180px) {
    .store-catalog-editorial .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body.catalog-page {
        background-attachment: scroll;
    }

    .store-catalog-editorial.catalog-section {
        width: calc(100% - 36px);
        padding-top: 58px;
    }

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

    .loja-note {
        width: min(100%, 460px);
    }

    .store-catalog-editorial .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 54px 20px;
    }
}

@media (max-width: 560px) {
    .loja-head {
        margin-bottom: 42px;
    }

    .loja-head h1 {
        font-size: clamp(3.1rem, 16vw, 4.6rem);
    }

    .store-catalog-editorial .catalog-toolbar {
        align-items: stretch;
    }

    .store-catalog-editorial .catalog-sort {
        align-self: flex-end;
    }

    .store-catalog-editorial .product-grid {
        grid-template-columns: 1fr;
        gap: 58px;
    }

    .store-catalog-editorial .product-card .prod-ph {
        aspect-ratio: 4 / 5;
    }

    .store-catalog-editorial .product-card .prod-meta h2 {
        font-size: 1.65rem;
    }

    .store-cart-drawer-item {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .store-cart-drawer-item > a img {
        width: 62px;
        height: 79px;
    }

    .store-cart-item-side {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-catalog-editorial .product-card.will-reveal,
    .store-catalog-editorial .product-card.will-reveal.is-revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .store-cart-empty > span {
        animation: none;
    }
}

/* Catálogo minimal — direção visual inspirada na referência de 30/08. */
body.catalog-page {
    background-color: #fbf8e8;
    background-image:
        radial-gradient(circle at 10% 8%, rgba(240, 235, 179, .56), transparent 31rem),
        radial-gradient(circle at 92% 72%, rgba(18, 76, 91, .055), transparent 34rem),
        linear-gradient(145deg, rgba(255, 255, 255, .4), transparent 44%);
    background-attachment: fixed;
}

.store-catalog-editorial.catalog-section {
    position: relative;
    width: min(1060px, calc(100% - clamp(44px, 8vw, 120px)));
    min-height: 72vh;
    margin: 0 auto;
    padding: clamp(72px, 6.5vw, 94px) 0 clamp(88px, 8vw, 112px);
}

.store-catalog-editorial .product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(68px, 6vw, 88px) clamp(48px, 5.6vw, 82px);
}

.store-catalog-editorial .product-card.prod,
.store-catalog-editorial .product-card.prod:hover,
.store-catalog-editorial .product-card.prod:focus-within {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

/* A escala editorial sugere a dimensão relativa das obras sem alterar a ordem
   do catálogo nem apresentar uma escala física enganadora. */
.store-catalog-editorial .product-card--passaros-ao-entardecer {
    grid-column: span 2;
}

.store-catalog-editorial .product-card--danca-dos-ventos {
    grid-column: 1 / -1;
}

.store-catalog-editorial .product-card.product-card--passaros-ao-entardecer .prod-ph {
    height: clamp(320px, 27vw, 380px);
}

.store-catalog-editorial .product-card.product-card--danca-dos-ventos .prod-ph {
    height: clamp(360px, 34vw, 460px);
}

.store-catalog-editorial .product-card .prod-ph {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: clamp(250px, 23.7vw, 305px);
    aspect-ratio: auto;
    padding: 0 3%;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.store-catalog-editorial .product-card .prod-ph img {
    position: static;
    inset: auto;
    width: auto;
    max-width: 94%;
    height: auto;
    max-height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    background: transparent;
    box-shadow: none;
    filter:
        drop-shadow(0 4px 3px rgba(45, 42, 31, .14))
        drop-shadow(0 17px 22px rgba(45, 42, 31, .24))
        drop-shadow(0 32px 34px rgba(45, 42, 31, .15));
    transform: translateZ(0);
    transition: filter .55s ease;
}

.store-catalog-editorial .product-card:hover .prod-ph img,
.store-catalog-editorial .product-card:focus-within .prod-ph img {
    box-shadow: none;
    filter:
        drop-shadow(0 5px 4px rgba(45, 42, 31, .17))
        drop-shadow(0 20px 26px rgba(45, 42, 31, .28))
        drop-shadow(0 37px 40px rgba(45, 42, 31, .18));
    transform: translateZ(0);
}

.store-catalog-editorial .product-card .prod-meta {
    min-height: 0;
    flex: 0 0 auto;
    display: grid;
    justify-items: center;
    gap: 11px;
    padding: 22px 4px 0;
    text-align: center;
}

.store-catalog-editorial .product-card .prod-meta h2 {
    margin: 0;
    color: var(--shop-ink);
    font: 500 clamp(.61rem, .76vw, .72rem)/1.55 var(--font-sans);
    letter-spacing: .22em;
    text-transform: uppercase;
}

.store-catalog-editorial .product-card .prod-meta h2 a {
    background: none;
    transition: color .3s ease;
}

.store-catalog-editorial .product-card:hover .prod-meta h2 a,
.store-catalog-editorial .product-card:focus-within .prod-meta h2 a {
    color: var(--shop-earth);
    background: none;
}

.store-catalog-editorial .product-card .price {
    color: var(--shop-ink);
    font: 500 clamp(.72rem, .85vw, .82rem)/1 var(--font-sans);
    letter-spacing: .14em;
}

.store-catalog-editorial .product-card .price.is-sold,
.related-products .product-card-copy strong.is-sold,
.product-page .product-price.is-sold {
    color: var(--shop-ink-soft);
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.store-catalog-editorial .product-card .price.is-sold {
    font-size: clamp(.68rem, .79vw, .77rem);
}

.store-catalog-editorial .product-card.will-reveal {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    transition: opacity .8s ease, transform .8s var(--shop-ease);
    transition-delay: var(--product-delay, 0ms);
}

.store-catalog-editorial .product-card.will-reveal.is-revealed {
    opacity: 1;
    transform: none;
}

.store-catalog-editorial .catalog-search-empty {
    margin: 0 auto 60px;
    padding: 38px 0;
    border-color: rgba(63, 74, 48, .12);
}

.store-catalog-editorial .pagination {
    margin-top: 90px;
}

@media (max-width: 900px) {
    .store-catalog-editorial.catalog-section {
        width: min(690px, calc(100% - 42px));
        padding-top: clamp(62px, 8vw, 76px);
    }

    .store-catalog-editorial .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 72px 42px;
    }

    .store-catalog-editorial .product-card .prod-ph {
        height: clamp(250px, 40vw, 320px);
    }

    .store-catalog-editorial .product-card--passaros-ao-entardecer,
    .store-catalog-editorial .product-card--danca-dos-ventos {
        grid-column: 1 / -1;
    }

    .store-catalog-editorial .product-card.product-card--passaros-ao-entardecer .prod-ph {
        height: clamp(300px, 48vw, 370px);
    }

    .store-catalog-editorial .product-card.product-card--danca-dos-ventos .prod-ph {
        height: clamp(300px, 42vw, 360px);
    }
}

@media (max-width: 560px) {
    .store-catalog-editorial.catalog-section {
        width: min(350px, calc(100% - 42px));
        padding: 50px 0 84px;
    }

    .store-catalog-editorial .product-grid {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .store-catalog-editorial .product-card .prod-ph {
        display: block;
        height: auto;
        aspect-ratio: auto;
        padding: 0 4%;
    }

    .store-catalog-editorial .product-card--passaros-ao-entardecer,
    .store-catalog-editorial .product-card--danca-dos-ventos {
        grid-column: auto;
    }

    .store-catalog-editorial .product-card.product-card--passaros-ao-entardecer .prod-ph,
    .store-catalog-editorial .product-card.product-card--danca-dos-ventos .prod-ph {
        display: block;
        height: auto;
        padding: 0;
    }

    .store-catalog-editorial .product-card.product-card--passaros-ao-entardecer .prod-ph {
        width: calc(100% + 8px);
        margin-left: -4px;
    }

    .store-catalog-editorial .product-card.product-card--danca-dos-ventos .prod-ph {
        width: calc(100% + 20px);
        margin-left: -10px;
    }

    .store-catalog-editorial .product-card .prod-ph img {
        position: static;
        inset: auto;
        width: 100%;
        max-width: 100%;
        display: block;
        height: auto;
        max-height: none;
        object-fit: initial;
    }

    .store-catalog-editorial .product-card.product-card--passaros-ao-entardecer .prod-ph img,
    .store-catalog-editorial .product-card.product-card--danca-dos-ventos .prod-ph img {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: none;
    }

    .store-catalog-editorial .product-card .prod-meta {
        padding-top: 20px;
    }

    .store-catalog-editorial .product-card .prod-meta h2 {
        font-size: .66rem;
    }

}
