/* Shop storefront widgets. Plain on purpose: the theme's fonts, colours and
   buttons carry through; this only lays things out. */
.shop-w { margin: 0 0 1rem; }
.shop-w [hidden] { display: none !important; }
.shop-w :where(h2, h3) { margin: 0 0 .4rem; }
.shop-placeholder { padding: .75rem 1rem; border: 1px dashed color-mix(in srgb, currentColor 35%, transparent); border-radius: 8px; opacity: .75; font-size: .9rem; }

/* Pictures */
.shop-img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--gsy-radius-md, 8px); background: color-mix(in srgb, currentColor 7%, transparent); }
.shop-img-empty { min-height: 6rem; }
.shop-gallery-main { margin-bottom: .6rem; }
.shop-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: .5rem; }
.shop-thumbs a { display: block; border-radius: 8px; outline-offset: 2px; }

/* Grids and cards */
.shop-grid { display: grid; grid-template-columns: repeat(var(--shop-cols, 3), minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .shop-grid:not(.shop-cols-1) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shop-grid-heading { margin-bottom: .8rem; }
.shop-card { position: relative; display: flex; flex-direction: column; gap: .5rem; }
.shop-card-link { color: inherit; text-decoration: none; display: grid; gap: .45rem; }
.shop-card-link:hover .shop-card-title { text-decoration: underline; }
.shop-card-title { font-size: 1rem; margin: 0; }
.shop-card-price { margin: 0; font-weight: 600; }
.shop-card .shop-badge { position: absolute; top: .5rem; left: .5rem; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; background: color-mix(in srgb, Canvas 85%, transparent); color: CanvasText; }
.shop-was { opacity: .6; font-weight: 400; margin-inline-start: .3rem; }
.shop-empty { opacity: .75; }
.shop-pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }

/* Featured */
.shop-featured-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; }
@media (max-width: 700px) { .shop-featured-in { grid-template-columns: minmax(0, 1fr); } }
.shop-button:not(.gsy-button) { display: inline-block; padding: .55rem 1.1rem; border-radius: 6px; text-decoration: none; color: inherit; border: 1px solid currentColor; background: transparent; }

/* Product page */
.shop-price-line { font-size: 1.35rem; font-weight: 650; margin: 0; }
.shop-price-per { font-weight: 400; font-size: .85em; }
.shop-price-renews { margin: .2rem 0 0; font-size: .9rem; opacity: .7; }
p.shop-summary { font-size: 1.05rem; }
.shop-stock { margin: 0; font-size: .9rem; }
.shop-stock-low { color: #a35a00; }
.shop-stock-out { color: #b3261e; }
.shop-out { font-weight: 600; color: #b3261e; }
.shop-field { display: grid; gap: .25rem; margin: 0 0 .75rem; max-width: 22rem; }
.shop-field > span { font-weight: 600; font-size: .9rem; }
.shop-field select, .shop-field input { font: inherit; padding: .6rem .75rem; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: var(--gsy-button-radius, 6px); background: Field; color: FieldText; }
.shop-qty { max-width: 7rem; }
.shop-options { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.shop-addon-group { border: 0; padding: 0; margin: 0 0 .75rem; }
.shop-addon-group legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: .3rem; }
.shop-tick { display: flex; gap: .45rem; align-items: center; margin: .2rem 0; }
.shop-addon-price { opacity: .7; }
.shop-buy { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.shop-buy .shop-field { margin: 0; }
.shop-buy button, .shop-w-buy-now button, .shop-search button, .shop-card-add button { cursor: pointer; }
.shop-buy button:disabled, .shop-w-buy-now button:disabled { opacity: .5; cursor: not-allowed; }
/* Buy now (EP): space between Add to basket, Buy now and the payment providers' buttons. */
.shop-w-buy-now { margin-top: .75rem; }
.shop-express { margin-top: 1.25rem; max-width: 26rem; }
.shop-express-or { margin: 0 0 .6rem; }
.shop-express-box + .shop-express-box { margin-top: 1rem; }
.shop-express-error { margin: .6rem 0 0; }
.shop-totals .shop-express { margin-top: 1rem; }
.shop-msg { flex-basis: 100%; margin: 0; font-size: .95rem; }
.shop-msg-bad { color: #b3261e; }
.shop-description > :first-child { margin-top: 0; }

/* Lists and navigation */
.shop-cats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.shop-cats a { display: inline-block; padding: .3rem .8rem; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 999px; text-decoration: none; color: inherit; }
.shop-cats a[aria-current="page"] { background: color-mix(in srgb, currentColor 12%, transparent); }
.shop-cats-down { display: grid; gap: .25rem; }
.shop-cats-down a { border: 0; padding: .15rem 0; border-radius: 0; }
.shop-crumbs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .9rem; }
.shop-crumbs li + li::before { content: "›"; margin-inline-end: .35rem; opacity: .6; }
.shop-search { display: flex; gap: .5rem; }
.shop-search input { flex: 1; min-width: 0; font: inherit; padding: .6rem .75rem; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: var(--gsy-button-radius, 6px); }
.shop-cart-link { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; color: inherit; font-weight: 600; }
.shop-count { display: inline-grid; place-items: center; min-width: 1.4em; padding: 0 .35em; border-radius: 999px; font-size: .8rem; background: color-mix(in srgb, currentColor 15%, transparent); }
.shop-count[hidden] { display: none; }

/* How often a subscription renews (SP): a choice of periods on the product
   page and in the basket. */
.shop-periods .shop-period { align-items: baseline; flex-wrap: wrap; }
.shop-period-name { font-weight: 600; }
.shop-period-note { font-size: .85em; padding: .05rem .45rem; border-radius: 999px; background: color-mix(in srgb, currentColor 10%, transparent); }
/* Cards lift a little under the pointer; the price line reads as a price. */
.shop-card .shop-img { transition: transform .25s ease, box-shadow .25s ease; }
.shop-card-link:hover .shop-img { transform: translateY(-2px); box-shadow: var(--gsy-shadow-md, 0 4px 12px -2px rgb(0 0 0 / .12)); }
.shop-card-add { margin-top: auto; }
.shop-card-add button { width: 100%; }
.shop-price-line { letter-spacing: -.01em; }
.shop-buy .gsy-button { min-height: 2.9rem; }
.shop-w-buy-now .gsy-button { width: 100%; max-width: 26rem; }
.shop-field select:focus, .shop-field input:focus, .shop-search input:focus { outline: 0; border-color: var(--gsy-color-primary, #2b59c3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gsy-color-primary, #2b59c3) 30%, transparent); }
@media (prefers-reduced-motion: reduce) { .shop-card .shop-img { transition: none; } .shop-card-link:hover .shop-img { transform: none; } }
