/* Shop pages: index, product, artist, cart (FLO-980). Source: docs/design/shop.css, tokens from theme.json. */

.st-shop {
	--st-card: var(--wp--custom--radius--card);
	--st-media: var(--wp--custom--radius--media);
	--st-pill: var(--wp--custom--radius--pill);
	--st-mono: var(--wp--preset--font-family--mono);
	--st-canvas: var(--wp--preset--color--canvas);
	padding-bottom: 72px;
}
.st-shop h1, .st-shop h2, .st-shop h3 { margin: 0; }
.st-shop .eyebrow { font-size: var(--wp--preset--font-size--xs); font-weight: 600; letter-spacing: 0.02em; color: var(--st-ink-2); margin: 0; }
.st-shop .small { font-size: var(--wp--preset--font-size--small); color: var(--st-ink-2); }
.st-shop .price, .st-shop .wc-block-components-product-price { font-family: var(--st-mono); font-weight: 700; }

/* Page head and crumbs */
.pagehead { padding-bottom: clamp(8px, 2vw, 16px); }
.pagehead--tight { padding-bottom: 16px; }
.pagehead h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); letter-spacing: -0.025em; line-height: 1.05; margin: 8px 0 12px; }
.pagehead .lead { font-size: 1.125rem; color: var(--st-ink-2); max-width: 40rem; margin: 0; }
.crumbs { font-size: var(--wp--preset--font-size--xs); color: var(--st-ink-2); display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .crumb-current { display: inline; margin: 0; font-size: inherit; font-weight: 400; letter-spacing: 0; }
.crumbs .stc-title { font: inherit; }

/* Artist bar and filters */
.artistbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 20px; }
.artistbar .eyebrow { margin-right: 4px; }
.artistbar a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--st-pill); border: 1px solid var(--st-hairline-dark); font-size: var(--wp--preset--font-size--small); font-weight: 600; text-decoration: none; transition: border-color var(--st-ease), background var(--st-ease), color var(--st-ease); }
.artistbar a:hover, .artistbar a[aria-current="true"] { background: var(--st-ink); color: var(--wp--preset--color--canvas); border-color: var(--st-ink); text-decoration: none; }
.toolbar { display: flex; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.toolbar[hidden] { display: none; }
.toolbar .filters { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar .shop-artistlink { margin-left: auto; }
.toolbar .count { font-size: var(--wp--preset--font-size--small); color: var(--st-ink-2); }
.pill { padding: 6px 14px; border-radius: var(--st-pill); border: 1px solid var(--st-hairline-dark); background: var(--st-canvas); color: var(--st-ink); font: 600 var(--wp--preset--font-size--xs)/1 var(--wp--preset--font-family--inter); cursor: pointer; min-height: 32px; transition: background var(--st-ease), color var(--st-ease), border-color var(--st-ease); }
.pill:hover { border-color: var(--st-ink); }
.pill[aria-pressed="true"] { background: var(--st-ink); color: var(--wp--preset--color--canvas); border-color: var(--st-ink); }

/* Grid and product card */
.st-shop .pgrid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .st-shop .pgrid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .st-shop .pgrid { grid-template-columns: repeat(4, 1fr); } }
.st-shop .pgrid > li { display: flex; margin: 0; padding: 0; min-width: 0; }
.st-shop .pgrid > li[hidden] { display: none; }
.pcard { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; background: var(--st-canvas); border: 1px solid var(--st-hairline); border-radius: var(--st-card); overflow: hidden; transition: border-color var(--st-ease); }
.pcard:hover { border-color: var(--st-ink); }
.pcard__media { aspect-ratio: 1; background: transparent; display: grid; place-items: center; padding: var(--st-pcard-air); overflow: hidden; }
.pcard__media .wp-block-post-featured-image { margin: 0; width: 100%; height: 100%; display: grid; place-items: center; }
.pcard__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 0; mix-blend-mode: normal; transition: transform 300ms ease; }
/* Märkused, 16 Nov 2026: no tile behind the picture, so the card's own ground shows in light and dark. Every picture (print, sticker, pack) fills the same padded square whole (contain), so the air is even and the rows stay level. Blend is normal: multiply would turn pictures black on the dark card. */
.pcard__media .wp-block-post-featured-image img { width: 100%; height: 100%; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.badge { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--wp--preset--color--canvas); border: 1px solid var(--st-hairline-dark); border-radius: var(--st-pill); font-size: 11px; font-weight: 700; padding: 4px 10px; line-height: 1.3; }
.badge--sold { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--canvas); border-color: var(--wp--preset--color--ink); }
.pcard__body { padding: 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pcard__body > * { margin: 0; }
.pcard__artists { display: flex; flex-wrap: wrap; column-gap: 0; }
/* One artist line high even when empty, so a card without an artist keeps its title level with its row (19px higher before, shop review 15 Nov 2026). */
.pcard__artists { font-size: var(--wp--preset--font-size--xs); min-height: 1.6em; min-height: 1lh; }
.st-shop .wp-block-query.edblock { margin-block-start: 0; }
.pcard__artists > * { margin: 0; }
.pcard .artistlink { position: relative; z-index: 1; font-size: var(--wp--preset--font-size--xs); color: var(--st-ink-2); font-weight: 600; text-decoration: none; }
.pcard .artistlink:hover { color: var(--st-ink); text-decoration: underline; }
.pcard .artistlink:has(+ .artistlink)::after { content: ","; margin-right: 4px; }
.pcard__title { font-size: var(--wp--preset--font-size--small); font-weight: 700; line-height: 1.3; letter-spacing: 0; margin: 0; }
.pcard__title a { text-decoration: none; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; }
/* The foot wraps on narrow cards, price above the button; the button ran past the card on phones (shop review, 15 Nov 2026). The group is a flow layout, so WordPress adds its block gap above the second child; zeroed here, price and button share one centre line (16 Nov 2026). */
.pcard__foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pcard .pcard__foot > * { margin: 0; }
.pcard__foot .st-btn-small { position: relative; z-index: 1; padding: 7px 14px; font-size: var(--wp--preset--font-size--xs); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--wp--custom--radius--pill); background: var(--st-ink); color: var(--wp--preset--color--canvas); font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: background var(--st-ease); }
.pcard__foot .st-btn-small:hover { background: var(--st-ink-hover); color: var(--wp--preset--color--canvas); text-decoration: none; }
.pcard__foot .st-btn-small.added { background: var(--wp--preset--color--success); }
.pcard__foot .st-btn-small.loading { opacity: 0.6; }
.pcard__foot .added_to_cart { display: none; }
.pcard__foot .wc-block-components-product-price { font-size: var(--wp--preset--font-size--small); margin: 0; }
.pcard__foot .price { margin: 0; }
.outofstock .pcard__media img { opacity: .5; }
.pcard__body .chips { margin: 2px 0 0; }
.pcard__body > .artistlink { display: block; }
.st-shop .empty { background: var(--st-subtle); border-radius: var(--st-card); padding: clamp(24px, 4vw, 40px); display: grid; gap: 8px; margin-top: 8px; }
.st-shop .empty[hidden] { display: none; }
.st-shop .empty h3 { font-size: 1.25rem; }
.st-shop .empty p { margin: 0; }

/* Product */
.playout { display: grid; gap: 32px; padding: 8px 0 24px; }
@media (min-width: 960px) { .playout { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; } }
.playout > * { margin: 0; min-width: 0; }
.gallery { display: grid; gap: 12px; }
@media (min-width: 960px) { .gallery { position: sticky; top: 84px; } }
/* Märkused round 2, Nov 2026: the big picture shows whole and uncropped. Shop review, 15 Nov 2026: the box takes the first photo's proportions (inline aspect-ratio from the server, square if unknown) and keeps them for every photo, so switching thumbs never moves the page; another shape sits inside it whole, with transparent space beside it. A very tall box is capped in height; on desktop the cap leaves room for the sticky offset and one row of thumbnails, so they stay on screen. Thumbnails are cropped to fill, edge to edge. */
.gallery__main { position: relative; width: 100%; aspect-ratio: 1; max-height: min(80vh, 46rem); background: transparent; border-radius: var(--st-media); padding: 0; overflow: hidden; cursor: zoom-in; }
.gallery__main img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; border-radius: 0; }
@media (min-width: 960px) { .gallery__main { max-height: min(calc(100vh - 196px), 46rem); } } /* 84 sticky top + 12 gap + 76 thumbs + 24 air */
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs button { width: 76px; height: 76px; padding: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--st-hairline-dark); background: transparent; cursor: pointer; display: block; }
.thumbs button[aria-current="true"] { border-color: var(--st-ink); box-shadow: inset 0 0 0 1px var(--st-ink); }
.thumbs img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; border-radius: 0; }
.pinfo > * { margin-block: 0; }
.pinfo h1 { font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 6px 0 12px; }
.pinfo .artistlink { font-weight: 700; text-decoration: none; font-size: 1.25rem; letter-spacing: -0.01em; }
.pinfo .artistlink:hover { text-decoration: underline; }
.pinfo .artistlink:has(+ .artistlink)::after { content: ","; margin-right: 4px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; background: var(--st-subtle); border: 1px solid var(--st-hairline); border-radius: var(--st-pill); font-size: var(--wp--preset--font-size--xs); color: var(--st-ink-2); text-decoration: none; }
a.chip:hover { border-color: var(--st-ink); color: var(--st-ink); }
.bigprice { margin: 0 0 20px; }
.bigprice, .bigprice .wc-block-components-product-price { font-family: var(--st-mono); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.02em; }
.bigprice del { opacity: .5; font-weight: 400; }

/* Add to cart form: WooCommerce's own, dressed in the design's sizes and button */
.pinfo .wc-block-add-to-cart-form, .pinfo form.cart { margin: 0; }
.pinfo form.cart { display: flex; flex-direction: column; gap: 18px; }
.pinfo form.cart > .single_add_to_cart_button, .pinfo .variations_button > .single_add_to_cart_button { align-self: stretch; grid-column: auto !important; }
.pinfo .quantity, .pinfo .wc-block-components-quantity-selector, .pinfo input.qty { display: none !important; }
.pinfo table.variations { border: 0; margin: 0; width: 100%; border-collapse: collapse; }
.pinfo table.variations tr { display: grid; gap: 8px; margin-bottom: 14px; }
.pinfo table.variations th, .pinfo table.variations td { display: block; padding: 0; border: 0; text-align: left; background: none; }
.pinfo table.variations th label { font-size: var(--wp--preset--font-size--small); font-weight: 700; }
.pinfo .reset_variations { display: none !important; }
.pinfo .woocommerce-variation-price, .pinfo .woocommerce-variation-availability, .pinfo .woocommerce-variation-description { display: none; }
.pinfo .single_variation_wrap, .pinfo .woocommerce-variation-add-to-cart { display: grid; gap: 8px; }
.pinfo .woocommerce-variation-add-to-cart { display: flex; }
.pinfo form.cart .stock, .pinfo .wc-block-add-to-cart-form .stock { display: none; }
.pinfo table.variations select[hidden] { display: none !important; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sizes span { display: inline-grid; place-items: center; min-width: 48px; height: 44px; padding: 0 12px; border: 1px solid var(--st-hairline-dark); border-radius: 12px; font-size: var(--wp--preset--font-size--small); font-weight: 600; cursor: pointer; }
.sizes span:hover { border-color: var(--st-ink); }
.sizes input:checked + span { background: var(--st-ink); color: var(--wp--preset--color--canvas); border-color: var(--st-ink); }
.sizes input:focus-visible + span { outline: 2px solid var(--st-ink); outline-offset: 3px; }
.sizes input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.buyrow { display: flex; gap: 12px; align-items: center; margin: 22px 0 8px; }
.pinfo .single_add_to_cart_button, .buyrow .btn, .pinfo .wp-element-button.single_add_to_cart_button { flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 15px 24px; border-radius: var(--st-pill); border: 1px solid transparent; background: var(--st-ink); color: var(--wp--preset--color--canvas); font: 600 var(--wp--preset--font-size--small)/1 var(--wp--preset--font-family--inter); cursor: pointer; width: 100%; text-decoration: none; transition: background var(--st-ease); }
.pinfo .single_add_to_cart_button:hover:not(:disabled):not(.disabled) { background: var(--st-ink-hover); }
/* Before a size is picked: an outline, so it reads as not ready yet while its text stays readable. Grey on grey at WooCommerce's half opacity
   was 1.56:1 (shop review, 15 Nov 2026); its opacity rule (.woocommerce button.button.disabled) outranks this one, hence !important. */
.pinfo .single_add_to_cart_button.disabled, .pinfo .single_add_to_cart_button:disabled, .buyrow .btn[disabled] { background: transparent; border-color: var(--st-hairline-dark); color: var(--st-ink-2); opacity: 1 !important; cursor: not-allowed; }
.pinfo .added_to_cart { display: block; margin-top: 10px; font-size: var(--wp--preset--font-size--small); }
.stock { font-size: var(--wp--preset--font-size--xs); font-weight: 600; color: var(--st-ink-2); margin: 0; }
.speclist { margin: 28px 0 0; padding: 0; list-style: none; border: 1px solid var(--st-hairline); border-radius: var(--st-card); overflow: hidden; }
.speclist li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: var(--wp--preset--font-size--small); }
.speclist li + li { border-top: 1px solid var(--st-hairline); }
.speclist li > span { text-align: right; font-weight: 600; }
.speclist li > b { font-weight: 400; color: var(--st-ink-2); }
.story { max-width: 38rem; margin-top: 32px; }
.story h2 { font-size: 1.25rem; margin-bottom: 12px; }
.story p { margin: 0 0 14px; }
.story--media { max-width: 38rem; }
/* "In the media" rows: the archive's .newslist / .nrow look (editions.css does not load on product pages). */
.story--media .newslist { border-top: 1px solid var(--st-hairline); }
.story--media .nrow { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid var(--st-hairline); text-decoration: none; color: inherit; transition: background var(--st-ease); }
.story--media a.nrow:hover { background: var(--st-subtle); }
.story--media .nrow--bare { grid-template-columns: 1fr; }
.story--media .nrow--nodate { grid-template-columns: 1fr auto; }
.story--media .nd { font-family: var(--st-mono); font-size: var(--wp--preset--font-size--xs); color: var(--st-ink-2); }
.story--media .nt { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.story--media .ntag { font-size: var(--wp--preset--font-size--xs); font-weight: 600; padding: 4px 10px; border: 1px solid var(--st-hairline-dark); border-radius: var(--st-pill); }
.story--media .ntag:empty { display: none; }
@media (max-width: 640px) { .story--media .nrow { grid-template-columns: 1fr; gap: 4px; } .story--media .ntag { justify-self: start; } }
/* Artist page "In the media": a little wider than the product page. */
.st-shop--artist .story--media { max-width: 48rem; }

/* Artist page */
.st-shop .ahead { padding: 24px 0 8px; }
.ahead > div { max-width: 48rem; }
.ahead__name { font-size: clamp(2.5rem, 5vw + 0.5rem, 4.5rem); letter-spacing: -0.025em; line-height: 1.02; margin: 6px 0 0; }
.ahead p { font-size: 1.0625rem; }
.ameta { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 20px; }
.ahead__sub { font-size: 1.0625rem; margin: 28px 0 10px; }
.yearlinks { display: flex; gap: 6px; flex-wrap: wrap; }
.yearlinks span { font-family: var(--st-mono); font-size: var(--wp--preset--font-size--xs); font-weight: 600; padding: 5px 10px; border: 1px solid var(--st-hairline-dark); border-radius: 8px; }
.edblock { padding: clamp(36px, 5vw, 64px) 0 0; }
.st-shop .block-head { margin: 0 0 24px; font-size: var(--wp--preset--font-size--h-2); }

/* Cart: WooCommerce's cart block, dressed to match docs/design/cart.html */
.st-shop--cart .wp-block-post-content { padding-bottom: 8px; }
.st-shop--cart .wc-block-cart { margin: 0; }
.st-shop--cart .wc-block-cart__main { padding-right: 0; }
@media (min-width: 960px) { .st-shop--cart .wc-block-components-sidebar-layout { gap: 56px; } .st-shop--cart .wc-block-components-sidebar-layout .wc-block-components-main { width: auto; flex: 1; padding-right: 0; } .st-shop--cart .wc-block-components-sidebar-layout .wc-block-components-sidebar { width: 380px; padding-left: 0; } }
.st-shop--cart table.wc-block-cart-items { border-top: 1px solid var(--st-hairline); border-collapse: collapse; }
.st-shop--cart .wc-block-cart-items__header { display: none; }
.st-shop--cart .wc-block-cart-items__row { border-bottom: 1px solid var(--st-hairline); }
.st-shop--cart .wc-block-cart-item__image img { border-radius: 14px; background: var(--st-tile); padding: 6px; object-fit: contain; mix-blend-mode: multiply; }
.st-shop--cart .wc-block-components-product-name { font-size: var(--wp--preset--font-size--small); font-weight: 700; text-decoration: none; }
.st-shop--cart .wc-block-components-product-metadata, .st-shop--cart .wc-block-components-product-details { font-size: var(--wp--preset--font-size--xs); color: var(--st-ink-2); }
.st-shop--cart .wc-block-components-product-price, .st-shop--cart .wc-block-formatted-money-amount { font-family: var(--st-mono); font-weight: 700; }
.st-shop--cart .wc-block-components-quantity-selector { border-radius: var(--st-pill); border: 1px solid var(--st-hairline-dark); background: var(--st-canvas); }
.st-shop--cart .wc-block-components-quantity-selector::after { display: none; }
.st-shop--cart .wc-block-components-quantity-selector__input { font-family: var(--st-mono); font-weight: 600; }
.st-shop--cart .wc-block-cart-item__remove-link { font-size: var(--wp--preset--font-size--xs); color: var(--st-ink-2); }
.st-shop--cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block,
.st-shop--cart .wc-block-cart__sidebar { border: 1px solid var(--st-hairline-dark); border-radius: var(--st-card); padding: 22px; background: var(--st-canvas); align-self: start; }
.st-shop--cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block { border: 0; padding: 0; }
@media (min-width: 960px) { .st-shop--cart .wc-block-cart__sidebar { position: sticky; top: 84px; } }
.st-shop--cart .wc-block-components-totals-wrapper { border-color: var(--st-hairline); padding-inline: 0; }
.st-shop--cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 1.5rem; letter-spacing: -0.02em; }
.st-shop--cart .wc-block-cart__submit-button, .st-shop--cart .wc-block-components-button:not(.is-link) { border-radius: var(--st-pill); background: var(--st-ink); color: var(--wp--preset--color--canvas); font-weight: 600; font-size: var(--wp--preset--font-size--small); padding: 14px 24px; width: 100%; border: 0; }
.st-shop--cart .wc-block-cart__submit-button:hover { background: var(--st-ink-hover); }
.st-shop--cart .wc-block-components-product-badge, .st-shop--cart .wc-block-components-sale-badge { border-radius: var(--st-pill); }
.st-shop--cart .wp-block-woocommerce-empty-cart-block { background: var(--st-subtle); border-radius: var(--st-card); padding: clamp(24px, 4vw, 40px); }
.st-shop--cart .wp-block-woocommerce-empty-cart-block .wp-block-heading { font-size: 1.25rem; }

/* Cart lines as in the design: image | name and meta | price, stepper, remove */
.st-shop--cart .wc-block-cart.wc-block-cart table.wc-block-cart-items, .st-shop--cart .wc-block-cart.wc-block-cart table.wc-block-cart-items tbody { display: block; width: 100%; }
.st-shop--cart .wc-block-cart.wc-block-cart table.wc-block-cart-items thead, .st-shop--cart .wc-block-cart.wc-block-cart table.wc-block-cart-items caption { display: none; }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-cart-items__row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 0; }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-cart-items__row > td { display: block; padding: 0; border: 0; }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-cart-item__image { width: 84px; height: 84px; }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-cart-item__image a { display: grid; place-items: center; width: 84px; height: 84px; background: var(--st-tile); border-radius: 14px; padding: 6px; box-sizing: border-box; }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-cart-item__image img { width: 100%; height: 100%; padding: 0; background: none; }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-cart-items__row > td.wc-block-cart-item__total { display: none; }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-cart-item__wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name prices" "meta qty"; gap: 2px 16px; align-items: center; }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-cart-item__wrap > .wc-block-components-product-name { grid-area: name; margin: 0; }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-cart-item__wrap > .wc-block-components-product-metadata { grid-area: meta; margin: 0; }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-components-product-metadata__description { display: none; }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-cart-item__wrap > .wc-block-cart-item__prices { grid-area: prices; justify-self: end; margin: 0; }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-cart-item__wrap > .wc-block-cart-item__quantity { grid-area: qty; justify-self: end; display: grid; gap: 8px; justify-items: end; margin: 8px 0 0; }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link { width: auto; height: auto; min-width: 0; background: none; border: 0; padding: 0; font: inherit; font-size: var(--wp--preset--font-size--xs); color: var(--st-ink-2); text-decoration: underline; cursor: pointer; }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-cart__sidebar .wc-block-components-totals-coupon-link, .st-shop--cart .wc-block-cart.wc-block-cart .wc-block-components-panel__button { font-size: var(--wp--preset--font-size--small); }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-cart__totals-title { font-size: 1.125rem; text-transform: none; letter-spacing: 0; padding: 0 0 12px; text-align: left; }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link svg { display: none; }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link::after { content: var(--st-cart-remove, "\00d7"); }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-cart__sidebar { padding: 22px; }
.st-shop--cart .wc-block-cart.wc-block-cart .wc-block-components-totals-wrapper:has(.wc-block-components-totals-footer-item)::before { content: var(--st-cart-delivery, ""); display: block; padding-bottom: 14px; font-size: var(--wp--preset--font-size--small); color: var(--st-ink-2); }
/* Empty cart as in the design: heading and a button back to the shop, no icon and no product grid */
.st-shop--cart .wp-block-woocommerce-empty-cart-block { display: grid; gap: 8px; justify-items: start; margin-bottom: 72px; }
.st-shop--cart .wp-block-woocommerce-empty-cart-block > * { margin: 0; text-align: left; }
.st-shop--cart .wp-block-woocommerce-empty-cart-block > hr, .st-shop--cart .wp-block-woocommerce-empty-cart-block > .wp-block-heading:not(:first-child), .st-shop--cart .wp-block-woocommerce-empty-cart-block > .wp-block-woocommerce-product-new { display: none; }
.st-shop--cart .wp-block-woocommerce-empty-cart-block .with-empty-cart-icon::before { display: none; }
.st-shop--cart .wp-block-woocommerce-empty-cart-block > p { margin-top: 12px; }
.st-shop--cart .wp-block-woocommerce-empty-cart-block > p a { display: inline-block; padding: 10px 20px; border-radius: var(--st-pill); background: var(--st-ink); color: var(--wp--preset--color--canvas); font-size: var(--wp--preset--font-size--small); font-weight: 600; text-decoration: none; }

/* Dark theme: the cart's coupon field is WooCommerce's white input with a fixed dark text colour. */
html[data-theme="dark"] .st-shop--cart :is(input[type="text"], input[type="email"], input[type="number"], input[type="search"]):not(.wc-block-components-quantity-selector__input) {
	background-color: var(--wp--preset--color--canvas-subtle);
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--hairline-dark);
}
html[data-theme="dark"] .st-shop--cart input::placeholder { color: var(--wp--preset--color--ink-3); }
/* Dark theme: the coupon error is WooCommerce's fixed red, 3.05:1 on the dark canvas (shop review, 15 Nov 2026). Same colours as the
   checkout errors in checkout.css, which does not load on the cart. */
html[data-theme="dark"] .st-shop--cart .has-error label,
html[data-theme="dark"] .st-shop--cart .wc-block-components-validation-error,
html[data-theme="dark"] .st-shop--cart .wc-block-components-validation-error :is(p, span) { color: var(--st-error-text); }
html[data-theme="dark"] .st-shop--cart .wc-block-components-validation-error svg { fill: var(--st-error-text); }
html[data-theme="dark"] .st-shop--cart .has-error input:not(.wc-block-components-quantity-selector__input) { border-color: var(--st-error-line); }

.story--artist { margin-top: 40px; }
.btn-round { display: inline-flex; align-items: center; padding: 12px 22px; border-radius: var(--wp--custom--radius--pill); border: 1px solid var(--st-hairline-dark); font-size: var(--wp--preset--font-size--small); font-weight: 600; text-decoration: none; color: var(--st-ink); }
.btn-round:hover { background: var(--st-ink); color: var(--wp--preset--color--canvas); border-color: var(--st-ink); text-decoration: none; }
.specname { font-size: 1rem; margin: 20px 0 8px; }

/* Size chart pop-up on T-shirt pages. The picture is black line art on white, so it keeps a white panel in the dark theme too. */
.sizechart { margin: 0 0 16px; }
.sizechart__open { font-size: var(--wp--preset--font-size--small); font-weight: 600; color: var(--st-ink); text-decoration: underline; text-underline-offset: 3px; }
.sizechart__open:hover { text-decoration-thickness: 2px; }
.sizechart__dialog { width: min(52rem, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--st-hairline-dark); border-radius: var(--st-card); background: #fff; color: #111; overflow: auto; }
.sizechart__dialog::backdrop { background: rgba(0, 0, 0, .6); }
.sizechart__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 0 20px; }
.sizechart__bar h2 { font-size: 1.125rem; margin: 0; }
.sizechart__close { width: 44px; height: 44px; border: 0; border-radius: var(--st-pill); background: transparent; color: inherit; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.sizechart__close:hover { background: #eee; }
.sizechart__dialog img { display: block; width: 100%; height: auto; }
/* On a phone the 820px chart shrank to about 350px and its numbers to about 4px (shop review, 15 Nov 2026). It keeps its own width and
   the pop-up scrolls sideways; the title bar stays put, as wide as the pop-up, so the close button never scrolls away. */
@media (max-width: 600px) {
	.sizechart__dialog { --sizechart-w: calc(100vw - 32px); width: var(--sizechart-w); max-width: var(--sizechart-w); }
	.sizechart__dialog[open] { display: grid; grid-template-columns: max-content; }
	.sizechart__dialog img { width: 820px; max-width: none; }
	.sizechart__bar { position: sticky; left: 0; width: calc(var(--sizechart-w) - 2px); box-sizing: border-box; background: #fff; }
}
html:has(.sizechart__dialog[open]) { overflow: hidden; }
