/* Shop pages. Phone first. Loaded after inner.css (and account.css where used) */
.sh-nav { position: static; }
.sh-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.sh-tools { display: flex; gap: 8px; margin: 0; flex: 1 1 260px; max-width: 420px; }
.sh-filter { position: relative; flex: 1; }
.sh-filter summary, .sh-sort select { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; padding: 0 14px; border: 1px solid rgba(26, 26, 26, .38); border-radius: 0; background: var(--as-white); color: var(--as-ink); font: 500 .9375rem/1 var(--as-text); cursor: pointer; list-style: none; }
.sh-filter summary::-webkit-details-marker { display: none; }
.sh-filter[open] summary { background: var(--as-ink); color: var(--as-white); }
.sh-sort { flex: 1.3; }
.sh-filter__box { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; width: min(320px, calc(100vw - 40px)); padding: 20px; background: var(--as-white); border: 1px solid var(--as-ink); }
.sh-filter fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.sh-filter legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.sh-filter fieldset label { font-size: .875rem; }
.sh-filter input[type="number"] { display: block; width: 100%; height: 46px; padding: 0 12px; border: 1px solid rgba(26, 26, 26, .38); border-radius: 0; font: 400 1rem/1 var(--as-text); }
.sh-check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.sh-check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--as-ink); }
.sh-check a, .sh-u, .sh-clear a, .co-login a, .pd-msg a { color: var(--as-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.in .sh-clear { margin-bottom: 18px; font-size: .9375rem; }
.sh-clear a { display: inline-block; padding-block: 8px; }

.sh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
.sh-card { position: relative; min-width: 0; }
.sh-card__img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #F4F3F1; }
.sh-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .4s; }
.sh-card.is-out .sh-card__img img { opacity: .5; }
.in .sh-card h3 { margin-top: 12px; font-size: .9375rem; overflow-wrap: anywhere; }
.sh-card h3 a { color: var(--as-ink); }
.sh-card p { font-size: .875rem; color: var(--as-on-light); }
.in .sh-card .sh-price { margin-top: 4px; color: var(--as-ink); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.sh-heart { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--as-ink); font-size: 1.0625rem; cursor: pointer; }
.sh-heart[aria-pressed="true"] { background: var(--as-ink); color: var(--as-white); }
.sh-tag { position: absolute; left: 0; bottom: 0; padding: 4px 10px; background: var(--as-ink); color: var(--as-white); font-size: .8125rem; font-weight: 600; }
.in .sh-tag--in { position: static; display: table; margin-bottom: 16px; padding: 5px 12px; }
.in .sh-more { margin-top: 40px; text-align: center; }
.sh-empty { padding: 40px 20px; background: #F4F3F1; text-align: center; }
.sh-empty .as-btn { margin-top: 18px; }
.sh-cats { display: grid; gap: 36px; }
.sh-cats a { display: block; color: var(--as-ink); }
.sh-cats__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #F4F3F1; }
.sh-cats img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.in .sh-cats h2 { margin-top: 16px; font: 600 1.25rem/1.35 var(--as-text); }
.in .sh-cats p { margin-top: 4px; color: var(--as-on-light); }
.sh-cats small { display: block; margin-top: 6px; font-size: .9375rem; font-weight: 600; }

/* Quantity */
.sh-qty { display: inline-flex; border: 1px solid rgba(26, 26, 26, .38); }
.sh-qty button { width: 44px; height: 48px; border: 0; background: none; color: var(--as-ink); cursor: pointer; font-size: .8125rem; }
.sh-qty input { width: 44px; height: 48px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--as-ink); font: 600 1rem/1 var(--as-text); text-align: center; -moz-appearance: textfield; appearance: textfield; }
.sh-qty input::-webkit-inner-spin-button, .sh-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Product page */
.pd { padding-top: 18px; }
.pd-path { margin-bottom: 14px; font-size: .9375rem; color: var(--as-on-light); }
.pd-path a { display: inline-block; padding-block: 8px; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.pd-grid { display: grid; gap: 28px; }
.pd-photos { min-width: 0; }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #F4F3F1; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-track li { flex: 0 0 100%; scroll-snap-align: start; }
.pd-track img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.pd-thumbs button { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; background: #F4F3F1; cursor: pointer; }
.pd-thumbs button[aria-current] { border-color: var(--as-ink); }
.pd-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pd-info { min-width: 0; overflow-wrap: anywhere; }
.pd-brand a { display: inline-block; padding-block: 4px; color: var(--as-on-light); font-weight: 500; }
.in .pd-info h1 { font: 600 clamp(1.5rem, 3vw, 2.125rem)/1.25 var(--as-text); }
.in .pd-price { margin-top: 10px; font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pd-form { margin: 22px 0 0; }
.pd-variants { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.pd-variants legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.pd-variants input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pd-variants label { position: relative; cursor: pointer; }
.pd-variants span { display: block; min-width: 84px; padding: 9px 14px; border: 1px solid rgba(26, 26, 26, .38); font-weight: 500; line-height: 1.4; }
.pd-variants small { display: block; font-size: .8125rem; color: var(--as-on-light); }
.pd-variants input:checked + span { background: var(--as-ink); border-color: var(--as-ink); color: var(--as-white); }
.pd-variants input:checked + span small { color: var(--as-sand); }
.pd-variants input:disabled + span { background: #F1EFEC; color: #756e65; border-color: transparent; cursor: not-allowed; }
.pd-variants input:focus-visible + span { outline: 2px solid var(--as-ink); outline-offset: 2px; }
.pd-buy { display: flex; gap: 8px; }
.pd-buy .as-btn { flex: 1; padding-inline: 12px; }
.pd-buy .sh-qty button, .pd-buy .sh-qty input { height: 50px; }
.pd-heart { flex: none; width: 52px; border: 1px solid rgba(26, 26, 26, .38); background: none; color: var(--as-ink); font-size: 1.0625rem; cursor: pointer; }
.pd-heart[aria-pressed="true"] { background: var(--as-ink); color: var(--as-white); }
.in .pd-msg { margin-top: 10px; min-height: 1.6em; font-weight: 500; color: #2C5A22; }
.in .pd-msg.is-error, .ct-warn { color: #9B2C2C; }
.in .pd-fact { margin-top: 10px; padding-block: 14px; border-block: 1px solid var(--as-line-light); font-size: .9375rem; }
.pd-fact i { width: 26px; }
.in .pd-text h2 { margin: 24px 0 8px; font: 600 1.125rem/1.4 var(--as-text); }
.pd-text p { max-width: 65ch; color: var(--as-on-light); }
.pd-similar { margin-top: clamp(56px, 7vw, 96px); }
.in .pd-similar h2 { margin-bottom: 24px; }

/* Cart, checkout, reviews */
.sh-two { display: grid; gap: 32px; }
.sh-two > * { min-width: 0; }
.sh-two[aria-busy] { opacity: .65; pointer-events: none; }
.sh-sum { padding: 24px 20px; background: #F4F3F1; scroll-margin-top: 24px; }
.in .sh-sum h2 { margin-bottom: 12px; font: 600 1.25rem/1.4 var(--as-text); }
.sh-sum dl { padding: 8px 0 16px; border-top: 1px solid var(--as-line-light); }
.sh-sum dl div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.sh-sum dt { font-weight: 400; color: var(--as-on-light); }
.sh-sum dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.sh-sum .is-total dt, .sh-sum .is-total dd { color: var(--as-ink); font-size: 1.1875rem; font-weight: 600; }
.sh-sum .ct-warn { margin-bottom: 12px; font-weight: 500; }
.sh-sum .ac-items img { background: var(--as-white); }
.as-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.ct-list { border-bottom: 1px solid var(--as-line-light); }
.ct-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 10px 14px; padding: 18px 0; border-top: 1px solid var(--as-line-light); align-items: start; }
.ct-item__img { grid-row: 1 / 3; display: block; background: #F4F3F1; }
.ct-item__img img { display: block; width: 84px; height: 84px; object-fit: cover; mix-blend-mode: multiply; }
.ct-item__text a { color: var(--as-ink); font-weight: 600; overflow-wrap: anywhere; }
.ct-item small { display: block; font-size: .875rem; color: var(--as-on-light); }
.ct-item small:empty { display: none; }
.ct-item small.ct-warn { color: #9B2C2C; font-weight: 600; }
.ct-item b { justify-self: end; font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-item .sh-qty { grid-column: 2; justify-self: start; }
.ct-remove, .ct-links button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--as-ink); font: 500 .9375rem/1 var(--as-text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ct-item .ct-remove { grid-column: 3; justify-self: end; }
.in .ct-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 14px; }
.ct-links a { padding-block: 10px; color: var(--as-ink); font-size: .9375rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.co-sec { margin-bottom: 34px; }
.in .co-sec h2 { margin-bottom: 16px; font: 600 1.25rem/1.4 var(--as-text); }
.co-sec h2 small { font-size: .9375rem; font-weight: 400; color: var(--as-on-light); }
.co-me b { display: block; }
.co-me + .ac-field { margin-top: 18px; }
.in .co-login { margin-bottom: 18px; }
.co-addr { display: grid; gap: 8px; margin-bottom: 20px; }
.co-addr label { position: relative; display: block; cursor: pointer; }
.co-addr input { position: absolute; top: 20px; left: 16px; width: 20px; height: 20px; margin: 0; accent-color: var(--as-ink); }
.co-addr span { display: block; padding: 16px 16px 16px 50px; border: 1px solid rgba(26, 26, 26, .3); overflow-wrap: anywhere; }
.co-addr b { display: block; font-weight: 600; }
.co-addr input:checked + span { border-color: var(--as-ink); box-shadow: 0 0 0 1px var(--as-ink); }
.co-notes { display: block; width: 100%; padding: 12px 14px; border: 1px solid rgba(26, 26, 26, .38); border-radius: 0; background: var(--as-white); color: var(--as-ink); font: 400 1rem/1.5 var(--as-text); resize: vertical; }
.co-notes:focus { outline: 2px solid var(--as-ink); outline-offset: -1px; }
.co-notes[aria-invalid="true"] { border-color: #9B2C2C; }
.in .co-pay { padding: 16px; border: 1px solid var(--as-ink); font-weight: 600; }
.co-pay i { width: 30px; }
.in .ct-pay { margin-bottom: 14px; font-size: .9375rem; color: var(--as-on-light); }
.co-send { margin-top: 16px; }
.rv-list li { padding: 22px 0; border-top: 1px solid var(--as-line-light); }
.rv-list li:last-child { border-bottom: 1px solid var(--as-line-light); }
.rv-list.is-cut .is-more { display: none; }
.rv-list blockquote { margin: 0 0 12px; font-size: 1.125rem; line-height: 1.55; overflow-wrap: anywhere; }
.rv-list p { font-size: .9375rem; color: var(--as-on-light); }
.rv-list strong { display: block; color: var(--as-ink); font-weight: 600; }
.rv-list + .as-btn { margin-top: 20px; }
.rv-trap { position: absolute; left: -9999px; height: 1px; overflow: hidden; }

@media (min-width: 681px) { .sh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; } .sh-cats { grid-template-columns: 1fr 1fr; gap: 44px 24px; } }
@media (min-width: 861px) {
    .sh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sh-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sh-filter__box { left: auto; right: 0; }
    .pd-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
    .pd-photos { position: sticky; top: 96px; }
    .sh-two { grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 5vw, 80px); align-items: start; }
    .sh-sum { position: sticky; top: 96px; padding: 28px; }
    .ct-item { grid-template-columns: 104px minmax(0, 1fr) auto 90px; align-items: center; }
    .ct-item__img img { width: 104px; height: 104px; }
    .ct-item__text { grid-row: 1 / 3; align-self: center; }
    .ct-item .sh-qty { grid-column: 3; grid-row: 1; align-self: end; }
    .ct-item b { grid-column: 4; grid-row: 1 / 3; text-align: right; align-self: center; }
    .ct-item .ct-remove { grid-column: 3; grid-row: 2; align-self: start; justify-self: start; }
}
@media (max-width: 860px) { .rv-two .sh-sum { order: -1; } }
@media (hover: hover) {
    .sh-card:hover .sh-card__img img, .sh-cats a:hover img { transform: scale(1.03); }
    .sh-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
    .sh-heart:hover, .pd-heart:hover { background: var(--as-ink); color: var(--as-white); }
    .sh-qty button:hover { background: #F1EFEC; }
}
