/* Analogue shop + side cart */

body.woocommerce-page,
body.analogue-shop {
    --shop-bg: var(--body-background, #fff);
    --shop-text: var(--body-color, #000);
    --shop-line: color-mix(in srgb, var(--shop-text) 14%, transparent);
    --shop-x-padding: clamp(1rem, 3vw, 2.5rem);
    --cart-background-color: var(--shop-bg);
    --cart-text-color: var(--shop-text);
    --cart-feature-color: var(--shop-text);
    --cart-x-padding: var(--shop-x-padding);
}

.analogue-header-cart {
    display: inline-flex;
    align-items: center;
    margin-right: 0;
}

.analogue-header-cart__button {
    position: relative;
    display: grid;
    place-items: center;
    width: auto;
    height: auto;
    padding: 10px;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    line-height: 0;
}

.analogue-header-cart__icon {
    display: block;
    width: 22px;
    height: 22px;
}

.analogue-cart-count {
    position: absolute;
    top: 3px;
    right: 0px;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    padding: 0 3px;
    background: var(--body-color, #000);
    color: var(--body-background, #fff);
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    font-weight: 600;
}

.analogue-cart-count:not(.analogue-cart-count--visible) {
    display: none;
}

.mobile--menu .analogue-header-cart {
    justify-content: center;
    margin-right: 0;
}

.analogue-cart-drawer__panel {
    width: 100%;
    max-width: 420px;
    height: 100%;
    max-height: calc(100svh - 30px);
    background: var(--cart-background-color, var(--body-background, #fff));
    color: var(--cart-text-color, var(--body-color, #000));
    border: 1px solid #000;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    transform: translateX(calc(100% + 15px));
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    pointer-events: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.analogue-cart-drawer__inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.analogue-cart-drawer__inner .cart-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.analogue-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 2500;
    pointer-events: none;
}

.analogue-cart-drawer.is-open {
    pointer-events: auto;
}

.analogue-cart-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.analogue-cart-drawer.is-open .analogue-cart-drawer__overlay {
    opacity: 1;
}

.analogue-cart-drawer__panel-wrap {
    position: absolute;
    inset: 15px;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}

.analogue-cart-drawer.is-open .analogue-cart-drawer__panel-wrap {
    pointer-events: auto;
}

.analogue-cart-drawer.is-open .analogue-cart-drawer__panel {
    transform: translateX(0);
    opacity: 1;
}

/* Site-wide `header { position:fixed }` must not apply inside the drawer. */
.analogue-cart-drawer header,
.analogue-cart-drawer .cart-panel__header,
.cart-panel__header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    z-index: 2 !important;
    transform: none !important;
}

body.cart-drawer--active {
    overflow: hidden;
}

.cart-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.cart-panel__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--cart-x-padding, 24px) 14px;
    border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    background: var(--cart-background-color, var(--body-background, #fff));
}

.cart-panel__title {
    margin: 0;
}

.cart-panel__close {
    width: 32px;
    height: 32px;
    border: 0;
    background: color-mix(in srgb, currentColor 8%, transparent);
    color: inherit;
    cursor: pointer;
}

.cart-panel__empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 24px;
    color: color-mix(in srgb, currentColor 58%, transparent);
}

.cart-panel__shop-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.cart-panel__items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 8px var(--cart-x-padding, 24px);
    -webkit-overflow-scrolling: touch;
}

.cart-panel__item {
    border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}

.cart-panel__item-inner {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
}

.cart-panel__thumb img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
}

.cart-panel__item-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.cart-panel__item-price {
    margin: 0.35rem 0 0;
    font-size: 12px;
}

.cart-panel__item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.cart-panel__qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    min-height: 30px;
}

.cart-panel__qty-btn {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.cart-panel__qty-btn:hover {
    background: color-mix(in srgb, currentColor 6%, transparent);
}

.cart-panel__qty-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.cart-panel__qty-btn svg {
    display: block;
    width: 11px;
    height: 11px;
}

.cart-panel__qty-value {
    min-width: 1.75rem;
    padding: 0 2px;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.cart-panel__remove {
    margin-left: auto;
    font-size: 12px;
    text-decoration: underline;
    color: inherit;
}

.cart-panel__line-total {
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
}

.cart-panel__footer {
    flex: 0 0 auto;
    padding: 16px var(--cart-x-padding, 24px) 24px;
    border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    background: var(--cart-background-color, var(--body-background, #fff));
}

.cart-panel__subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.cart-panel__note {
    margin: 0 0 20px;
    font-size: 12px;
}

.cart-panel__checkout,
.cart-panel__continue {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.cart-panel__checkout {
    background: var(--cart-feature-color, var(--body-color, #000));
    color: var(--cart-background-color, var(--body-background, #fff));
}

.cart-panel__continue {
    margin-top: 10px;
    background: color-mix(in srgb, var(--cart-feature-color, #000) 10%, #fff);
    color: #000;
}

.cart-panel__items .quantity {
    display: none;
}

/* Shop archive */
.shop-page__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50vh;
    max-height: 700px;
    padding: clamp(1.5rem, 4vw, 3rem) var(--shop-x-padding);
    text-align: center;
    box-sizing: border-box;
}

.shop-page__title {
    margin: 0;
}

.shop-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    min-height: 52px;
    padding: 0.85rem var(--shop-x-padding);
    border-bottom: 1px solid var(--shop-line);
}

.shop-filters {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.shop-views {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.shop-filter {
    color: inherit;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    opacity: 0.55;
}

.shop-filter.is-active {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

@media (max-width: 699px) {
    .shop-toolbar {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .shop-filters {
        grid-column: 1;
    }

    .shop-views {
        grid-column: 1;
        justify-self: center;
    }
}

.shop-views__btn {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.4;
    cursor: pointer;
}

.shop-views__btn svg {
    display: block;
    width: 11px;
    height: 11px;
}

.shop-views__btn:hover {
    opacity: 1;
}

html[data-shop-grid-pref="2"] .shop-views__btn--2,
html[data-shop-grid-pref="3"] .shop-views__btn--3,
html[data-shop-grid-pref="4"] .shop-views__btn--4,
.shop-views__btn.is-active {
    opacity: 1;
}

.shop-collection {
    padding-bottom: clamp(3rem, 8vw, 6rem);
}

.shop-grid {
    display: grid;
    gap: 0;
    background: transparent;
}

.shop-grid--desktop-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-grid--desktop-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-grid--desktop-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

html[data-shop-grid-pref="2"] .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-shop-grid-pref="3"] .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-shop-grid-pref="4"] .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 700px) {
    .shop-grid--desktop-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shop-grid--desktop-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    html[data-shop-grid-pref="3"] .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    html[data-shop-grid-pref="4"] .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
    .shop-grid--desktop-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-grid--desktop-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shop-grid--desktop-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    html[data-shop-grid-pref="2"] .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html[data-shop-grid-pref="3"] .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    html[data-shop-grid-pref="4"] .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.shop-cell {
    aspect-ratio: auto;
}

.shop-grid > .shop-cell {
    opacity: 0;
    transform: translateY(14px);
    animation: analogue-shop-cell-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.06s + (min(var(--shop-stagger, 0), 15) * 0.04s));
}

.shop-grid > .shop-cell:nth-child(1) { --shop-stagger: 0; }
.shop-grid > .shop-cell:nth-child(2) { --shop-stagger: 1; }
.shop-grid > .shop-cell:nth-child(3) { --shop-stagger: 2; }
.shop-grid > .shop-cell:nth-child(4) { --shop-stagger: 3; }
.shop-grid > .shop-cell:nth-child(5) { --shop-stagger: 4; }
.shop-grid > .shop-cell:nth-child(6) { --shop-stagger: 5; }
.shop-grid > .shop-cell:nth-child(7) { --shop-stagger: 6; }
.shop-grid > .shop-cell:nth-child(8) { --shop-stagger: 7; }
.shop-grid > .shop-cell:nth-child(9) { --shop-stagger: 8; }
.shop-grid > .shop-cell:nth-child(10) { --shop-stagger: 9; }
.shop-grid > .shop-cell:nth-child(11) { --shop-stagger: 10; }
.shop-grid > .shop-cell:nth-child(12) { --shop-stagger: 11; }
.shop-grid > .shop-cell:nth-child(13) { --shop-stagger: 12; }
.shop-grid > .shop-cell:nth-child(14) { --shop-stagger: 13; }
.shop-grid > .shop-cell:nth-child(15) { --shop-stagger: 14; }
.shop-grid > .shop-cell:nth-child(16) { --shop-stagger: 15; }

@keyframes analogue-shop-cell-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-grid > .shop-cell {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

.shop-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: auto;
    min-height: 0;
    background: var(--shop-bg);
}

.shop-product-card__link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: auto;
    min-height: 0;
    color: inherit;
    text-decoration: none;
}

.shop-product-card__media {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    background: color-mix(in srgb, var(--shop-text) 3%, var(--shop-bg));
}

.shop-product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 8px;
    background: currentColor;
    color: var(--shop-bg);
    font-size: 10px;
    text-transform: uppercase;
}

.shop-product-card__image-stack {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-product-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.shop-product-card__meta {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.75rem;
    text-align: center;
}

.shop-product-card__title,
.shop-product-card__price {
    font-size: clamp(11px, 1vw, 14px);
    line-height: 1.2;
}

.shop-product-card__price .amount {
    opacity: 0.72;
}

.shop-product-card__price ins {
    text-decoration: none;
    color: #d40000;
    opacity: 1;
}

.shop-product-card__price del {
    opacity: 0.55;
}

/* PDP */
.shop-page--product {
    padding-bottom: 0;
}

.shop-product-hero {
    position: relative;
    min-height: min(100dvh, 900px);
    padding-bottom: clamp(2rem, 5vw, 4rem);
    border-bottom: 1px solid var(--shop-line);
    box-sizing: border-box;
}

.shop-product-hero__back-row {
    padding: 1rem var(--shop-x-padding) 0;
}

.shop-product-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 0.65em;
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
    transition: gap 0.25s ease, opacity 0.25s ease;
}

.shop-product-hero__back:hover {
    gap: 0.95em;
    opacity: 1;
}

.shop-product-hero__back-arrow {
    display: inline-flex;
    width: 0.75em;
    flex-shrink: 0;
}

.shop-product-hero__back-arrow svg {
    display: block;
    width: 100%;
    height: auto;
}

.shop-product-hero__back-arrow path {
    stroke-width: 1;
}

.shop-product-hero__back-label {
    font-size: clamp(14px, 1.2vw, 18px);
    letter-spacing: 0.04em;
    text-transform: capitalize;
}

.shop-product-hero__grid {
    display: grid;
    gap: 2rem;
    padding: 1.5rem var(--shop-x-padding) 0;
}

@media (min-width: 1000px) {
    .shop-product-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.55fr);
        align-items: stretch;
        gap: 2.5rem;
        min-height: calc(min(100dvh, 900px) - 6rem);
    }
}

.shop-product-hero__info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.shop-product-hero__copy {
    display: grid;
    gap: 1rem;
    max-width: 28rem;
}

.shop-product-hero__type {
    display: inline-block;
    width: fit-content;
    color: inherit;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    opacity: 0.6;
}

.shop-product-hero__type:hover {
    opacity: 1;
}

.shop-product-hero__title {
    margin: 0;
    line-height: 0.95;
}

.shop-product-hero__description {
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.5;
    opacity: 0.82;
}

.shop-product-hero__description > *:first-child {
    margin-top: 0;
}

.shop-product-hero__description > *:last-child {
    margin-bottom: 0;
}

.shop-product-hero__center {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.shop-product-hero__gallery {
    position: relative;
    display: grid;
    gap: 0.75rem;
}

.shop-product-hero__frame {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    max-width: min(100%, 560px);
    margin: 0 auto;
    overflow: hidden;
    background: color-mix(in srgb, currentColor 4%, transparent);
}

.shop-product-hero__frame--empty {
    display: grid;
    place-items: center;
}

.shop-product-hero__image,
.shop-product-hero__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-product-hero__thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.shop-product-hero__thumb {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    opacity: 0.55;
}

.shop-product-hero__thumb.is-active,
.shop-product-hero__thumb:hover {
    opacity: 1;
    border-color: color-mix(in srgb, currentColor 35%, transparent);
}

.shop-product-hero__thumb-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-product-hero__actions {
    display: grid;
    gap: 0.85rem;
    max-width: min(100%, 560px);
    margin: 0 auto;
    width: 100%;
}

.shop-product-hero__actions .cart {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    margin: 0;
    align-items: stretch;
}

.shop-product-hero__actions .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    min-height: 48px;
}

.shop-product-hero__actions .quantity .qty {
    width: 56px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: center;
    font-size: 14px;
}

.shop-product-hero__actions .single_add_to_cart_button,
.shop-product-hero__actions button.single_add_to_cart_button {
    width: 100%;
    border: 0;
    min-height: 48px;
    padding: 14px 20px;
    background: var(--body-color, #000);
    color: var(--body-background, #fff);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.shop-product-hero__actions .variations {
    width: 100%;
    margin: 0;
}

.shop-product-hero__actions .variations select {
    width: 100%;
    min-height: 48px;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    padding: 0 12px;
    background: transparent;
    color: inherit;
}

.shop-product-hero__price {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    line-height: 1.1;
}

.shop-product-hero__price .amount {
    opacity: 0.85;
}

.shop-product-hero__aside {
    display: none;
}

@media (min-width: 1000px) {
    .shop-product-hero__aside {
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        padding-bottom: 0.5rem;
    }

    .shop-product-hero__actions .cart {
        grid-template-columns: auto 1fr;
    }
}

.hide-md {
    display: block;
}

@media (min-width: 1000px) {
    .hide-md {
        display: none !important;
    }
}

/* Related products carousel */
.shop-products-section {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 6rem);
    background: var(--shop-bg);
    color: var(--shop-text);
}

.shop-product-carousel {
    --shop-carousel-slides-visible: 1.5;
    --shop-carousel-visible-gaps: 1;
    --shop-carousel-gap: 0px;
    --shop-carousel-slides-desktop: 2.5;
    --shop-carousel-visible-gaps-desktop: 2;
    --shop-carousel-slide-size: calc(
        (100% - (var(--shop-carousel-gap) * var(--shop-carousel-visible-gaps)))
        / var(--shop-carousel-slides-visible)
    );
}

.shop-product-carousel--related {
    --shop-carousel-slides-visible: 2;
    --shop-carousel-visible-gaps: 1;
}

@media (min-width: 700px) {
    .shop-product-carousel--related {
        --shop-carousel-slides-visible: 2.5;
        --shop-carousel-visible-gaps: 2;
    }
}

@media (min-width: 1000px) {
    .shop-product-carousel--related {
        --shop-carousel-slides-visible: var(--shop-carousel-slides-desktop, 2.5);
        --shop-carousel-visible-gaps: var(--shop-carousel-visible-gaps-desktop, 2);
    }
}

.shop-product-carousel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: clamp(2.5rem, 6vw, 3.25rem);
    margin-bottom: 1.5rem;
    padding: 0 var(--shop-x-padding);
}

.shop-product-carousel__header-start {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

.shop-products-section__title {
    margin: 0;
    padding: 0;
}

.shop-product-carousel__controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;
}

.shop-product-carousel__viewport {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--shop-x-padding);
    touch-action: pan-x;
    padding: 0 var(--shop-x-padding);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.shop-product-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.shop-product-carousel__track {
    display: flex;
    align-items: flex-start;
    gap: var(--shop-carousel-gap);
    /* Definite width so slide % basis resolves against the viewport, not content. */
    width: 100%;
    background: transparent;
}

.shop-product-carousel__slide {
    box-sizing: border-box;
    flex: 0 0 var(--shop-carousel-slide-size);
    width: var(--shop-carousel-slide-size);
    max-width: var(--shop-carousel-slide-size);
    min-width: 0;
    aspect-ratio: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.shop-product-carousel__slide .shop-cell,
.shop-product-carousel__slide .shop-product-card {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
}

.shop-product-carousel__arrow {
    display: grid;
    place-items: center;
    width: clamp(2.5rem, 6vw, 3.25rem);
    height: clamp(2.5rem, 6vw, 3.25rem);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.shop-product-carousel__arrow svg {
    width: clamp(1rem, 1.4vw, 1.35rem);
    height: auto;
}

.shop-product-carousel__arrow--prev svg {
    transform: scaleX(-1);
}

.shop-product-carousel__arrow:hover {
    opacity: 0.65;
}

.shop-product-carousel__arrow:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

/* Cart + checkout pages */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
    max-width: 1120px;
    margin: 0 auto;
}

.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 16px 0;
    border-bottom: 1px solid var(--shop-line);
    vertical-align: top;
}

.woocommerce-cart .cart-collaterals {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--shop-line);
}

.woocommerce .checkout-button,
.woocommerce #place_order,
.woocommerce .button.alt {
    display: inline-block;
    border: 0;
    padding: 14px 24px;
    background: var(--body-color, #000);
    color: var(--body-background, #fff);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    cursor: pointer;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    padding: 12px 14px;
    background: transparent;
    color: inherit;
}

.woocommerce-checkout .col2-set {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .woocommerce-checkout .col2-set {
        grid-template-columns: 1fr 1fr;
    }
}

.woocommerce-notices-wrapper {
    margin-bottom: 1.5rem;
}
