/* Gallery presentation. Keep WooCommerce blocks, controls and order data native. */
.hw-theme .hw-store-page {
    max-width: 1160px;
    padding-block: clamp(24px, 5vw, 54px);
    min-height: 48vh;
}
.hw-theme .hw-store-intro { margin-bottom: 24px; }
.hw-theme .hw-store-kicker {
    color: var(--hw-sage);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    margin: 0 0 6px;
    text-transform: uppercase;
}
.hw-theme .hw-store-back {
    display: inline-block;
    color: var(--hw-sage);
    margin-bottom: 14px;
}
.hw-theme .hw-store-intro h1,
.hw-theme .hw-shop-page h1.woocommerce-products-header__title {
    color: var(--hw-ink);
    font: 400 clamp(32px, 5vw, 56px)/1.1 Georgia, serif;
    margin: 0 0 12px;
}
.hw-theme .hw-store-content > .alignwide,
.hw-theme .hw-store-content > .alignfull {
    margin-inline: 0;
    max-width: 100%;
    width: 100%;
}
.hw-theme .hw-store-shop-intro { color: var(--hw-muted); margin: 0 0 22px; }
.hw-theme .hw-shop-page :where(.woocommerce-result-count,.woocommerce-ordering) { margin-bottom: 24px; }
.hw-theme .hw-shop-page .woocommerce-ordering select {
    border: 1px solid var(--hw-line);
    border-radius: 5px;
    color: var(--hw-ink);
    background: #fff;
    max-width: 100%;
    padding: 8px;
}
/* The shop is for browsing; product pages still show the full artwork. */
.hw-theme.woocommerce #content.hw-store-catalogue {
    max-width: 1220px;
    padding-block: clamp(18px, 3vw, 34px);
}
.hw-theme.woocommerce #content.hw-store-catalogue ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.6vw, 20px);
}
.hw-theme.woocommerce #content.hw-store-catalogue ul.products::before,
.hw-theme.woocommerce #content.hw-store-catalogue ul.products::after { content: none; }
.hw-theme.woocommerce #content.hw-store-catalogue ul.products li.product {
    background: #fff;
    border: 1px solid var(--hw-line);
    border-radius: 7px;
    float: none;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: clamp(8px, 1vw, 11px);
    width: 100%;
}
.hw-theme.woocommerce #content.hw-store-catalogue li.product a img {
    background: var(--hw-soft);
    display: block;
    height: clamp(150px, 32vh, 235px);
    height: clamp(150px, 32svh, 235px);
    margin: 0 0 8px;
    object-fit: contain;
    width: 100%;
}
.hw-theme.woocommerce #content.hw-store-catalogue .woocommerce-loop-product__title {
    color: var(--hw-ink);
    font: 400 clamp(16px, 1.5vw, 21px)/1.2 Georgia, serif;
    margin: 0;
    padding: 3px 0 5px;
}
.hw-theme.woocommerce #content.hw-store-catalogue li.product .price { color: var(--hw-sage); font-size: .9375rem; margin-bottom: 4px; }

.hw-theme .hw-store-content :is(.wc-block-cart__sidebar,.wc-block-checkout__sidebar) {
    background: #f6f1e7;
    background: color-mix(in srgb, var(--hw-cream) 35%, white);
    border: 1px solid var(--hw-line);
    border-radius: 7px;
    min-width: 0;
    padding: clamp(12px, 2vw, 21px);
}
.hw-theme .hw-store-content :where(.wc-block-cart__totals-title,.wc-block-components-checkout-step__title,.wc-block-components-title) {
    color: var(--hw-ink);
    font-family: Georgia, serif;
    font-weight: 400;
    text-transform: none;
}
.hw-theme .hw-store-content .wc-block-cart-items {
    border: 1px solid var(--hw-line);
    border-radius: 7px;
    border-collapse: separate;
}
.hw-theme .hw-store-content .wc-block-cart-item__image img {
    aspect-ratio: 4/5;
    background: var(--hw-soft);
    border-radius: 4px;
    height: auto;
    object-fit: contain;
    width: clamp(60px, 9vw, 110px);
}
.hw-theme .hw-store-content .wc-block-components-product-name {
    color: var(--hw-ink);
    overflow-wrap: anywhere;
}
.hw-theme .hw-store-content .wc-block-cart .wc-block-components-product-name {
    font-family: Georgia, serif;
    font-size: clamp(17px, 2.2vw, 25px);
    text-decoration: none;
}
.hw-theme .hw-store-content .wc-block-components-product-name:hover { text-decoration: underline; }
.hw-theme .hw-store-content :is(.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button),
.hw-theme .hw-store-account .woocommerce button.button,
.hw-theme.woocommerce #content.hw-store-catalogue li.product .button {
    background: var(--hw-sage);
    border: 1px solid var(--hw-sage);
    border-radius: 5px;
    color: #fff;
    min-height: 44px;
    text-decoration: none;
}
.hw-theme .hw-store-content :is(.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button):not(:disabled):hover,
.hw-theme .hw-store-account .woocommerce button.button:hover,
.hw-theme.woocommerce #content.hw-store-catalogue li.product .button:hover { filter: brightness(.88); }
.hw-theme .hw-store-content .wc-block-cart__submit-container {
    position: static;
    width: auto;
    background: transparent;
}
.hw-theme .hw-store-content .wc-block-cart__submit-container::before { content: none; }
.hw-theme .hw-store-content .wc-block-components-order-summary-item__image img {
    aspect-ratio: 1;
    border-radius: 3px;
    height: auto;
    object-fit: contain;
    width: 54px;
}
.hw-theme .hw-store-content .wc-block-components-order-summary-item__quantity {
    background: #fff;
    border-color: var(--hw-sage);
    color: var(--hw-ink);
}
/* Artwork first; leave the name in the accessibility tree and keep the native price and quantity. */
.hw-theme .hw-store-checkout .wc-block-components-order-summary-item:has(.wc-block-components-order-summary-item__image img[src])
    .wc-block-components-product-name {
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
.hw-theme .hw-store-checkout .wc-block-components-order-summary-item:has(.wc-block-components-order-summary-item__image img[src])
    .wc-block-components-product-metadata { display: none; }
.hw-theme .hw-store-checkout .wc-block-components-order-summary-item .wc-block-components-product-name:focus {
    clip-path: none;
    height: auto;
    position: static;
    white-space: normal;
    width: auto;
}
.hw-theme .hw-store-pickup {
    background: var(--hw-soft);
    border-inline-start: 3px solid var(--hw-sage);
    padding: 10px 13px;
    margin-block: 12px;
    font-size: .875rem;
}
.hw-theme .hw-store-pickup a { color: var(--hw-sage); }
.hw-theme .hw-store-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 16px; }
.hw-theme .hw-store-account .woocommerce-MyAccount-navigation a { display: block; padding: 9px 12px; text-decoration: none; border-bottom: 1px solid var(--hw-line); }
.hw-theme .hw-store-account .woocommerce-MyAccount-navigation .is-active a { background: var(--hw-soft); color: var(--hw-sage); font-weight: 650; }
.hw-theme .hw-store-account :where(form.login,form.register,.woocommerce-MyAccount-content) { border: 1px solid var(--hw-line); border-radius: 7px; padding: clamp(12px, 3vw, 23px); }
.hw-theme .hw-store-account .woocommerce form .input-text { border: 1px solid #a8ada2; border-radius: 4px; min-height: 42px; padding: 8px; }
.hw-theme .hw-store-confirmation :where(.woocommerce-order-overview,.woocommerce-order-details,.woocommerce-customer-details) {
    background: var(--hw-soft);
    border: 1px solid var(--hw-line);
    border-radius: 7px;
    padding: clamp(14px, 3vw, 24px);
}
.hw-theme .hw-art-share { border-top: 1px solid var(--hw-line); margin-top: 18px; padding-top: 13px; }
.hw-theme .hw-art-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hw-theme .hw-art-share .hw-icon-button { border: 1px solid var(--hw-line); border-radius: 5px; }
.hw-theme .hw-art-share .hw-share-whatsapp { color: #18794e; }
.hw-theme .hw-art-share .hw-share-instagram { color: #a02868; }
.hw-theme .hw-art-share-status { margin: 8px 0 0; color: var(--hw-muted); font-size: .875rem; }
.hw-theme .hw-art-share-status:empty { display: none; }
.hw-theme .hw-art-share-url { width: 100%; padding: 8px; }
@media (max-width: 1059px) {
    .hw-theme.woocommerce #content.hw-store-catalogue ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
    .hw-theme.woocommerce #content.hw-store-catalogue li.product a img { height: clamp(118px, 36vw, 200px); }
    .hw-theme.woocommerce #content.hw-store-catalogue ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hw-theme .hw-store-intro { margin-bottom: 14px; }
    .hw-theme .hw-store-content .wc-block-components-sidebar { padding-inline: 12px; }
    .hw-theme .hw-store-content .wc-block-cart__submit-container { margin: 0; padding-inline: 0; }
}
@media (max-width: 309px) {
    .hw-theme.woocommerce #content.hw-store-catalogue ul.products { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the native purchase action and add an obvious secondary link. */
.hw-theme.woocommerce #content.hw-store-catalogue li.product .hw-view-artwork {
    align-items: center;
    background: #fff;
    border: 1px solid var(--hw-sage);
    border-radius: 5px;
    color: var(--hw-sage);
    display: inline-flex;
    font-size: .875rem;
    font-weight: 650;
    justify-content: center;
    line-height: 1.3;
    margin: 8px 0 0;
    max-width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
}
.hw-theme.woocommerce #content.hw-store-catalogue li.product .button {
    align-content: center;
    display: inline-block;
    margin: 8px 6px 0 0;
    max-width: 100%;
    vertical-align: middle;
}
.hw-theme.woocommerce #content.hw-store-catalogue li.product .hw-view-artwork:hover {
    background: var(--hw-soft);
    text-decoration: underline;
}
@media (max-width: 520px) {
    .hw-theme.woocommerce #content.hw-store-catalogue li.product :is(.hw-view-artwork,.button) {
        margin-inline: 0;
        text-align: center;
        width: 100%;
    }
}
