/* Editorial store redesign inspired by a contemporary artist catalogue. */
:root {
    --gallery-canvas: #f0ebb3;
    --gallery-paper: #fff9d9;
    --gallery-blue: #83521a;
    --gallery-blue-deep: #3f4a30;
    --gallery-yellow: #b17a20;
    --gallery-yellow-soft: #ead589;
    --gallery-ink: #3f4a30;
    --gallery-muted: #6d7158;
    --gallery-image: #eee8bc;
    --gallery-line: rgba(131, 82, 26, .18);
}

body.store-body {
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 249, 217, .86), transparent 38rem),
        linear-gradient(180deg, var(--gallery-canvas) 0%, #e8df9a 58%, #c7d0aa 100%);
    color: var(--gallery-ink);
}

body.store-body::before {
    content: none;
}

/* Header */
.store-header {
    position: sticky;
    top: 0;
    z-index: 80;
    padding: 0 clamp(24px, 2.8vw, 46px);
    color: var(--gallery-blue);
    background: rgba(240, 235, 179, .96);
    border: 0;
    border-top: 2px solid var(--gallery-blue);
    box-shadow: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.store-navigation {
    width: 100%;
    max-width: 1540px;
    min-height: 88px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 28px;
}

.store-main-links,
.store-nav-actions {
    display: flex;
    align-items: center;
}

.store-main-links {
    min-width: 0;
    gap: clamp(18px, 2vw, 31px);
}

.store-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 0;
    color: var(--gallery-blue);
    font: 500 clamp(.65rem, .72vw, .75rem)/1.2 var(--font-sans);
    letter-spacing: -.018em;
    text-transform: none;
    white-space: nowrap;
}

.store-nav-link::after {
    left: 0;
    right: 0;
    bottom: 5px;
    height: 1px;
    background: var(--gallery-yellow);
    transform-origin: left;
}

.store-nav-link.is-active::after,
.store-nav-link:hover::after,
.store-nav-link:focus-visible::after {
    transform: scaleX(1);
}

.store-nav-chevron,
.filter-chevron {
    width: 9px;
    height: 6px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.store-nav-brand {
    justify-self: center;
    display: inline-flex;
    align-items: baseline;
    gap: .2em;
    padding: 9px 12px;
    color: var(--gallery-blue);
    white-space: nowrap;
}

.store-nav-brand span {
    font: 650 clamp(1.45rem, 2vw, 1.85rem)/1 var(--font-serif);
    letter-spacing: .105em;
    text-transform: uppercase;
}

.store-nav-brand em {
    font: 400 clamp(1.45rem, 2vw, 1.85rem)/1 var(--font-serif);
    letter-spacing: .02em;
}

.store-nav-actions {
    justify-self: end;
    justify-content: flex-end;
    gap: clamp(12px, 1.35vw, 21px);
}

.store-icon-button,
.store-cart-link.store-icon-button {
    position: relative;
    width: 27px;
    height: 34px;
    min-width: 27px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--gallery-blue);
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
}

.store-icon-button:hover,
.store-icon-button:focus-visible,
.store-cart-link.store-icon-button:hover,
.store-cart-link.store-icon-button:focus-visible {
    color: var(--gallery-yellow);
    background: transparent;
    transform: translateY(-1px);
}

.store-icon-button svg,
.store-cart-link.store-icon-button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.store-cart-link.store-icon-button b {
    position: absolute;
    right: -8px;
    top: 0;
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--gallery-yellow);
    color: var(--gallery-blue-deep);
    font: 700 8px/1 var(--font-sans);
}

.store-menu-toggle {
    display: none;
}

.store-search {
    width: min(760px, calc(100% - 48px));
    margin: 0 auto;
    padding: 8px 0 24px;
}

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

.store-search > label {
    display: block;
    margin-bottom: 8px;
    color: var(--gallery-muted);
    font: 600 8px/1 var(--font-sans);
    letter-spacing: .15em;
    text-transform: uppercase;
}

.store-search > div {
    display: grid;
    grid-template-columns: 25px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--gallery-blue);
}

.store-search svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
}

.store-search input {
    min-width: 0;
    padding: 3px 0;
    border: 0;
    color: var(--gallery-ink);
    background: transparent;
    font: 400 18px/1.3 var(--font-serif);
}

.store-search input::placeholder {
    color: rgba(63, 74, 48, .46);
}

.store-search button {
    padding: 7px 0 7px 12px;
    border: 0;
    color: var(--gallery-blue);
    background: transparent;
    font: 600 9px/1 var(--font-sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

/* Catalogue */
.catalog-page #conteudo-loja {
    min-height: 72vh;
}

.store-catalog-editorial.catalog-section {
    width: min(1540px, calc(100% - clamp(48px, 5.5vw, 92px)));
    margin: 0 auto;
    padding: clamp(58px, 5vw, 74px) 0 clamp(88px, 9vw, 145px);
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: clamp(30px, 3.2vw, 49px);
    color: var(--gallery-blue);
}

.catalog-toolbar-start,
.catalog-filter-toggle,
.catalog-sort {
    display: flex;
    align-items: center;
}

.catalog-toolbar-start {
    gap: 20px;
}

.catalog-filter-toggle {
    gap: 10px;
    min-height: 38px;
    padding: 5px 0;
    border: 0;
    color: var(--gallery-blue);
    background: transparent;
    font: 500 12px/1 var(--font-sans);
    cursor: pointer;
}

.filter-icon {
    width: 24px;
    height: 24px;
    fill: var(--gallery-paper);
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
}

.catalog-filter-toggle[aria-expanded="true"] .filter-chevron {
    transform: rotate(180deg);
}

.catalog-result-count {
    color: var(--gallery-yellow);
    font: 500 10px/1 var(--font-sans);
}

.catalog-sort {
    gap: 5px;
    margin: 0;
    color: var(--gallery-blue);
    font: 500 12px/1 var(--font-sans);
}

.catalog-sort label {
    white-space: nowrap;
}

.catalog-sort select {
    max-width: 205px;
    min-height: 38px;
    padding: 3px 21px 3px 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.catalog-filter-panel {
    margin: -10px 0 46px;
    padding: clamp(24px, 3vw, 42px) 0;
    border-top: 1px solid var(--gallery-line);
    border-bottom: 1px solid var(--gallery-line);
}

.catalog-filter-panel[hidden] {
    display: none;
}

.catalog-filter-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.catalog-filter-heading span {
    display: block;
    margin-bottom: 6px;
    color: var(--gallery-yellow);
    font: 650 8px/1 var(--font-sans);
    letter-spacing: .18em;
    text-transform: uppercase;
}

.catalog-filter-heading h2 {
    margin: 0;
    color: var(--gallery-ink);
    font: 500 clamp(27px, 2.6vw, 40px)/1 var(--font-serif);
}

.catalog-filter-heading button {
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid var(--gallery-yellow);
    color: var(--gallery-blue);
    background: transparent;
    font: 600 9px/1 var(--font-sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.catalog-category-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 clamp(24px, 4vw, 64px);
}

.catalog-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 47px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(131, 82, 26, .12);
    color: var(--gallery-blue);
    font: 500 12px/1.25 var(--font-sans);
    transition: color .2s ease, padding-left .2s ease;
}

.catalog-category-list a:hover,
.catalog-category-list a:focus-visible,
.catalog-category-list a[aria-current="page"] {
    padding-left: 8px;
    color: var(--gallery-yellow);
}

.catalog-category-list b {
    font: 500 9px/1 var(--font-sans);
}

.store-catalog-editorial .product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(48px, 5vw, 76px) clamp(18px, 2.25vw, 36px);
}

.store-catalog-editorial .product-card {
    min-width: 0;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.store-catalog-editorial .product-card:hover {
    transform: none;
    box-shadow: none;
}

.store-catalog-editorial .product-card-media {
    position: relative;
    display: block;
    aspect-ratio: .71;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--gallery-image);
    box-shadow: none;
}

.store-catalog-editorial .product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    transform: scale(1.001);
    transition: transform .65s cubic-bezier(.2, .72, .18, 1), filter .4s ease;
}

.store-catalog-editorial .product-card:hover .product-card-media img,
.store-catalog-editorial .product-card:focus-within .product-card-media img {
    transform: scale(1.028);
    filter: saturate(1.03);
}

.store-catalog-editorial .product-state {
    left: auto;
    right: 9px;
    top: 9px;
    min-height: 20px;
    padding: 5px 7px;
    border: 0;
    border-radius: 0;
    color: var(--gallery-paper);
    background: var(--gallery-blue);
    box-shadow: none;
    backdrop-filter: none;
    font: 500 8px/1 var(--font-sans);
    letter-spacing: 0;
    text-transform: none;
}

.store-catalog-editorial .product-state::before {
    content: none;
}

.store-catalog-editorial .product-card-copy {
    min-height: 0;
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 15px 8px 0;
    text-align: center;
}

.store-catalog-editorial .product-card-copy h2 {
    margin: 0;
    color: var(--gallery-blue);
    font: 500 clamp(.63rem, .75vw, .76rem)/1.55 var(--font-sans);
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.store-catalog-editorial .product-card-copy strong {
    color: var(--gallery-blue);
    font: 500 clamp(.71rem, .86vw, .86rem)/1.2 var(--font-sans);
}

.store-catalog-editorial .product-card.will-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .55s ease, transform .55s ease;
}

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

.catalog-search-empty {
    margin: 0 0 38px;
    padding: 26px 0;
    border-top: 1px solid var(--gallery-line);
    border-bottom: 1px solid var(--gallery-line);
    text-align: center;
}

.catalog-search-empty[hidden] {
    display: none;
}

.catalog-search-empty p {
    margin: 0 0 10px;
    font: 500 24px/1.2 var(--font-serif);
}

.catalog-search-empty button {
    padding: 5px 0;
    border: 0;
    border-bottom: 1px solid var(--gallery-yellow);
    color: var(--gallery-blue);
    background: transparent;
    font: 600 9px/1 var(--font-sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.related-products .product-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 24px;
}

.related-products .product-card {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.related-products .product-card:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

.related-products .product-card-media {
    aspect-ratio: .76;
    padding: 0;
    border-radius: 0;
    background: var(--gallery-image);
}

.related-products .product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
}

.related-products .product-card-copy {
    min-height: 0;
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 13px 4px 0;
    text-align: center;
}

.related-products .product-card-copy h2 {
    color: var(--gallery-blue);
    font: 500 .68rem/1.45 var(--font-sans);
    letter-spacing: 0;
    text-transform: uppercase;
}

.related-products .product-card-copy strong {
    color: var(--gallery-blue);
    font: 500 .78rem/1.2 var(--font-sans);
}

/* Shared store pages and footer */
.breadcrumbs,
.product-detail,
.related-products,
.cart-shell,
.checkout-shell,
.public-order-shell,
.legal-shell {
    --paper: var(--gallery-canvas);
    --paper-light: var(--gallery-paper);
    --ink: var(--gallery-ink);
    --teal: var(--gallery-blue);
    --earth: var(--gallery-blue-deep);
    --gold: var(--gallery-yellow);
}

.store-footer {
    padding: 70px max(36px, calc((100vw - 1450px) / 2));
    color: #fff9d9;
    background: var(--gallery-blue-deep);
}

.store-footer .footer-brand span {
    color: var(--gallery-yellow-soft);
}

.store-footer .footer-brand small,
.store-footer h2 {
    color: var(--gallery-yellow-soft);
}

@media (max-width: 1180px) {
    .store-main-links {
        gap: 17px;
    }

    .store-nav-link {
        font-size: .62rem;
    }

    .store-catalog-editorial .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: 74px;
    }

    .store-header {
        position: sticky;
        top: 0;
        height: auto;
        padding: 0 17px;
        color: var(--gallery-blue);
        background: rgba(255, 253, 247, .98);
        border: 0;
        border-top: 2px solid var(--gallery-blue);
        box-shadow: none;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        pointer-events: auto;
    }

    .store-navigation,
    body.store-menu-open .store-navigation {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 70px;
        max-height: none;
        display: grid;
        grid-template-columns: 42px 1fr auto;
        padding: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        pointer-events: auto;
    }

    .store-menu-toggle,
    body.store-menu-open .store-menu-toggle {
        position: relative;
        inset: auto;
        z-index: auto;
        width: 38px;
        height: 38px;
        display: block;
        padding: 0;
        border: 0;
        border-radius: 0;
        color: var(--gallery-blue);
        background: transparent;
        box-shadow: none;
        pointer-events: auto;
    }

    .store-menu-toggle i,
    body.store-menu-open .store-menu-toggle i {
        position: absolute;
        left: 6px;
        width: 24px;
        height: 1px;
        border-radius: 0;
        background: currentColor;
    }

    .store-menu-toggle i:nth-of-type(1) { top: 11px; }
    .store-menu-toggle i:nth-of-type(2) { top: 18px; left: 6px; width: 18px; }
    .store-menu-toggle i:nth-of-type(3) { top: 25px; }
    body.store-menu-open .store-menu-toggle i:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
    body.store-menu-open .store-menu-toggle i:nth-of-type(2) { opacity: 0; }
    body.store-menu-open .store-menu-toggle i:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

    .store-nav-brand,
    body.store-menu-open .store-nav-brand {
        position: static;
        inset: auto;
        z-index: auto;
        justify-self: center;
        min-height: 0;
        padding: 8px;
        color: var(--gallery-blue);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .store-nav-brand span,
    .store-nav-brand em {
        font-size: 1.35rem;
    }

    .store-nav-actions {
        gap: 10px;
    }

    .store-profile-link {
        display: none;
    }

    .store-main-links {
        position: absolute;
        z-index: 90;
        left: -17px;
        right: -17px;
        top: 70px;
        display: grid;
        gap: 0;
        padding: 14px 22px 22px;
        border-top: 1px solid var(--gallery-line);
        border-bottom: 1px solid var(--gallery-line);
        background: var(--gallery-paper);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

    body.store-menu-open .store-main-links {
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .store-main-links .store-nav-link {
        width: 100%;
        min-height: 45px;
        justify-content: space-between;
        padding: 10px 0;
        border: 0;
        border-bottom: 1px solid rgba(131, 82, 26, .11);
        border-radius: 0;
        background: transparent;
        color: var(--gallery-blue);
        font-size: .71rem;
        letter-spacing: .03em;
    }

    .store-main-links .store-nav-link::after {
        display: none;
    }

    .store-search {
        width: 100%;
        padding: 7px 5px 20px;
    }

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

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

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

    .related-products .product-grid.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-catalog-editorial .product-card-copy h2 {
        font-size: .64rem;
    }
}

@media (max-width: 560px) {
    .catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

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

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

    .store-catalog-editorial .product-grid {
        gap: 44px 13px;
    }

    .store-catalog-editorial .product-card-media {
        aspect-ratio: .74;
    }

    .store-catalog-editorial .product-card-copy {
        padding: 12px 2px 0;
    }

    .store-footer {
        padding: 56px 22px;
    }
}

@media (max-width: 420px) {
    .store-catalog-editorial .product-grid {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .store-catalog-editorial .product-card-media {
        aspect-ratio: .78;
    }

    .store-catalog-editorial .product-card-copy h2 {
        font-size: .7rem;
    }

    .store-catalog-editorial .product-card-copy strong {
        font-size: .82rem;
    }
}

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