/*
 * ShopLeaf shop (/shop, /shop/slug). Fonts and text colour come from the site; surfaces are tints of
 * the text colour so light and dark templates both work. --ssh-accent sets the button colour.
 */
.ssh {
    --ssh-accent: var(--primary, #1b810d);
    --ssh-muted: #6b6f76;
    --ssh-line: rgba(128, 128, 128, 0.28);
    --ssh-card: rgba(128, 128, 128, 0.06);
    max-width: 1200px; margin: 0 auto; padding: calc(var(--sl-header-offset, 0px) + 36px) 20px 80px;
    box-sizing: border-box; color: inherit; text-align: left; font-size: 15px; line-height: 1.55;
}
@supports (color: color-mix(in srgb, red 50%, transparent)) {
    .ssh { --ssh-muted: color-mix(in srgb, currentColor 62%, transparent); --ssh-line: color-mix(in srgb, currentColor 16%, transparent); --ssh-card: color-mix(in srgb, currentColor 4%, transparent); }
}
.ssh * { box-sizing: border-box; }
.ssh a { color: inherit; }
.ssh h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; padding: 0; border: 0; text-transform: none; font-weight: 800; }
.ssh h2 { text-transform: none; border: 0; padding: 0; }
.ssh button { all: unset; box-sizing: border-box; cursor: pointer; font: inherit; }
.ssh button:focus-visible { outline: 2px solid var(--ssh-accent); outline-offset: 2px; }
.ssh-empty { color: var(--ssh-muted); padding: 30px 0; }
.ssh-empty a { color: var(--ssh-accent); }
.ssh-flag { background: rgba(255, 179, 0, 0.16); border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; font-size: 14px; }

/* List */
.ssh-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.ssh-search input { width: 260px; font: inherit; color: inherit; background: transparent; border: 1px solid var(--ssh-line); border-radius: 999px; padding: 9px 16px; height: auto; margin: 0; outline: none; }
.ssh-search input:focus { border-color: var(--ssh-accent); }
.ssh-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ssh-cats a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ssh-line); text-decoration: none; font-size: 14px; font-weight: 600; }
.ssh-cats a.on { background: var(--ssh-accent); border-color: var(--ssh-accent); color: #fff; }
.ssh-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 14px; color: var(--ssh-muted); }
.ssh-bar select { font: inherit; font-size: 14px; color: inherit; background: transparent; border: 1px solid var(--ssh-line); border-radius: 8px; padding: 6px 10px; width: auto; height: auto; margin: 0; }
.ssh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px 18px; }
.ssh-card { display: block; text-decoration: none; }
.ssh-card img, .ssh-noimage { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: var(--ssh-card); transition: transform 0.25s; }
.ssh-card:hover img { transform: translateY(-3px); }
.ssh-card h2 { font-size: 16px; font-weight: 700; margin: 10px 0 2px; line-height: 1.35; }
.ssh-price { font-weight: 700; }
.ssh-price s { color: var(--ssh-muted); font-weight: 400; margin-left: 6px; }
.ssh-out { font-size: 13px; color: var(--ssh-muted); }
.ssh-pages { display: flex; justify-content: space-between; margin-top: 30px; font-size: 14px; color: var(--ssh-muted); }
.ssh-pages a { color: var(--ssh-accent); }

/* Collections: a set number of columns, header image, intro, and the collections index */
.ssh-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ssh-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ssh-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ssh-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 14px; }
.ssh-hero { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 22px; background: var(--ssh-card); }
.ssh-hero img { display: block; width: 100%; height: clamp(180px, 32vw, 380px); object-fit: cover; }
.ssh-hero-text { position: absolute; inset: auto 0 0 0; padding: 60px 28px 22px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); color: #fff; }
.ssh-hero-text h1 { color: #fff; margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.ssh-intro { max-width: 760px; margin: 0 0 22px; line-height: 1.65; }
.ssh-intro p { margin: 0 0 10px; }
.ssh-collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.ssh-collection { display: block; text-decoration: none; border-radius: 14px; overflow: hidden; border: 1px solid var(--ssh-line); }
.ssh-collection img, .ssh-collection .ssh-noimage { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; background: var(--ssh-card); transition: transform 0.25s; }
.ssh-collection:hover img { transform: scale(1.03); }
.ssh-collection div { padding: 12px 16px 14px; }
.ssh-collection h2 { font-size: 18px; font-weight: 800; margin: 0 0 2px; }
.ssh-collection span { font-size: 13px; color: var(--ssh-muted); }

/* Brands: logo in the header, the owner's HTML above and below the listing, and the /brands index */
.ssh-brand-head { justify-content: flex-start; }
.ssh-brand-head img { max-height: 72px; max-width: 200px; object-fit: contain; }
.ssh-hero-logo { display: block; max-height: 64px; max-width: 220px; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35)); }
.ssh-html { line-height: 1.65; overflow-wrap: break-word; }
.ssh-html-top { margin: 0 0 26px; }
.ssh-html-bottom { margin: 44px 0 0; padding-top: 30px; border-top: 1px solid var(--ssh-line); }
.ssh-html > :first-child { margin-top: 0; }
.ssh-html img, .ssh-html video, .ssh-html iframe { max-width: 100%; height: auto; }
.ssh-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.ssh-brand { display: block; text-decoration: none; text-align: center; border: 1px solid var(--ssh-line); border-radius: 14px; padding: 16px 14px 14px; transition: border-color 0.2s, transform 0.2s; }
.ssh-brand:hover { border-color: var(--ssh-accent); transform: translateY(-2px); }
.ssh-brand-logo { height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.ssh-brand-logo img { max-width: 100%; max-height: 90px; object-fit: contain; }
.ssh-brand-logo b { width: 76px; height: 76px; border-radius: 50%; background: var(--ssh-card); border: 1px solid var(--ssh-line); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; }
.ssh-brand h2 { font-size: 16px; font-weight: 700; margin: 0 0 2px; }
.ssh-brand > span { font-size: 13px; color: var(--ssh-muted); }

/* Product */
.ssh-crumbs { font-size: 13px; color: var(--ssh-muted); margin-bottom: 14px; }
.ssh-crumbs a { color: var(--ssh-muted); text-decoration: none; }
.ssh-product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.ssh-main-image img, .ssh-noimage.big { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; display: block; background: var(--ssh-card); }
.ssh-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ssh-thumbs button { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; opacity: 0.6; border: 2px solid transparent; }
.ssh-thumbs button.on, .ssh-thumbs button:hover { opacity: 1; border-color: var(--ssh-accent); }
.ssh-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ssh-vendor { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ssh-muted); }
.ssh-price.big { font-size: 24px; margin: 4px 0 6px; }
.ssh-note { font-size: 13px; color: var(--ssh-muted); margin-bottom: 8px; }
.ssh-option { margin: 16px 0 6px; }
.ssh-option label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; text-transform: none; color: inherit; width: auto; }
.ssh-choices { display: flex; gap: 6px; flex-wrap: wrap; }
.ssh-choices button { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--ssh-line); font-size: 14px; font-weight: 600; }
.ssh-choices button.on { border-color: var(--ssh-accent); box-shadow: inset 0 0 0 1px var(--ssh-accent); }
.ssh-choices button.unavailable { opacity: 0.45; text-decoration: line-through; }
.ssh-stock { min-height: 22px; font-size: 14px; font-weight: 700; color: #c0392b; margin-top: 8px; }
.ssh .ssh-buy { display: flex; justify-content: center; width: 100%; padding: 14px 20px; border-radius: 999px; background: var(--ssh-accent); color: #fff; font-weight: 700; font-size: 16px; margin: 8px 0; }
.ssh .ssh-buy[disabled] { opacity: 0.5; cursor: not-allowed; }
.ssh-description { margin-top: 22px; }
.ssh-description p { margin: 0 0 10px; }
.ssh-fields { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--ssh-line); font-size: 14px; }
.ssh-fields dt { color: var(--ssh-muted); font-weight: 600; }
.ssh-fields dd { margin: 0; }

@media (max-width: 760px) {
    .ssh-product { grid-template-columns: 1fr; gap: 20px; }
    .ssh h1 { font-size: 26px; }
    .ssh-search input { width: 100%; }
    .ssh-grid, .ssh-grid.cols-3, .ssh-grid.cols-4, .ssh-grid.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
    .ssh-hero-text { padding: 40px 18px 16px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
    .ssh-grid.cols-4, .ssh-grid.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===========================================================================
   Shop page with filters (/shop: modules/commerce/Shop.js, assets/scripts/shoplist.js)
=========================================================================== */
.ssh.wide { max-width: 1400px; }
.ssh .sr, .sl-drawer .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ssl-head { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.ssl-head h1 { margin: 0; }
.ssl-search { display: flex; align-items: center; border: 1px solid var(--ssh-line); border-radius: 999px; padding: 0 6px 0 16px; min-width: min(340px, 100%); }
.ssl-search:focus-within { border-color: var(--ssh-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ssh-accent) 18%, transparent); }
.ssl-search input { flex: 1; font: inherit; color: inherit; background: transparent; border: 0; outline: 0; padding: 10px 0; height: auto; margin: 0; min-width: 0; }
.ssl-search button { width: 36px; height: 36px; display: grid; place-items: center; font-size: 20px; border-radius: 50%; }
.ssl-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.ssl-filters { position: sticky; top: calc(var(--sl-header-offset, 0px) + 16px); max-height: calc(100vh - var(--sl-header-offset, 0px) - 32px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.ssl-filters-head, .ssl-filters-foot { display: none; }
.ssl-facet { border-bottom: 1px solid var(--ssh-line); padding: 12px 0; }
.ssl-facet summary { cursor: pointer; font-weight: 800; font-size: 14px; letter-spacing: .02em; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.ssl-facet summary::-webkit-details-marker { display: none; }
.ssl-facet summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; color: var(--ssh-muted); }
.ssl-facet[open] summary::after { content: "\2212"; }
.ssl-facet summary b { margin-left: auto; margin-right: 10px; font-size: 11px; background: var(--ssh-accent); color: #fff; border-radius: 999px; padding: 1px 7px; }
.ssl-list { display: grid; gap: 2px; margin-top: 8px; }
.ssl-list.long:not(.expanded) label:nth-child(n+11) { display: none; }
.ssl-list label { display: flex; align-items: center; gap: 9px; padding: 5px 4px; border-radius: 8px; cursor: pointer; font-size: 14px; text-transform: none; margin: 0; width: auto; color: inherit; }
.ssl-list label:hover { background: var(--ssh-card); }
.ssl-list input, .ssl-switch input { width: 17px; height: 17px; margin: 0; accent-color: var(--ssh-accent); flex: none; -webkit-appearance: checkbox; appearance: checkbox; }
.ssl-list .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssl-list .count, .ssl-switch .count { font-size: 12px; color: var(--ssh-muted); }
.ssl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; margin-top: 10px; }
.ssl-grid label { position: relative; display: grid; place-items: center; min-height: 38px; border: 1px solid var(--ssh-line); border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; margin: 0; width: auto; text-transform: none; color: inherit; }
.ssl-grid label:hover { border-color: var(--ssh-accent); }
.ssl-grid label.on { background: var(--ssh-accent); border-color: var(--ssh-accent); color: #fff; }
.ssl-grid input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; width: 100%; height: 100%; }
.ssl-grid label:focus-within { outline: 2px solid var(--ssh-accent); outline-offset: 1px; }
.ssl-more { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--ssh-accent); }
.ssl-tree { list-style: none; margin: 8px 0 0; padding: 0; }
.ssl-tree.sub { margin: 2px 0 4px 12px; padding-left: 8px; border-left: 1px solid var(--ssh-line); }
.ssl-tree a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 6px; border-radius: 8px; font-size: 14px; text-decoration: none; }
.ssl-tree a:hover { background: var(--ssh-card); }
.ssl-tree a.on { font-weight: 800; color: var(--ssh-accent); }
.ssl-tree a span { font-size: 12px; color: var(--ssh-muted); }
.ssl-clear { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--ssh-accent); text-decoration: none; }
.ssl-price { display: flex; align-items: flex-end; gap: 6px; margin-top: 10px; }
.ssl-price label { flex: 1; margin: 0; width: auto; text-transform: none; font-size: 12px; color: var(--ssh-muted); }
.ssl-price input { width: 100%; font: inherit; font-size: 14px; color: inherit; background: transparent; border: 1px solid var(--ssh-line); border-radius: 8px; padding: 7px 8px; height: auto; margin: 2px 0 0; }
.ssl-price i { padding-bottom: 8px; color: var(--ssh-muted); }
.ssl-go { padding: 8px 12px; border-radius: 8px; background: var(--ssh-accent); color: #fff; font-weight: 700; font-size: 13px; }
.ssl-switch { display: flex; align-items: center; gap: 10px; padding: 14px 4px; font-weight: 700; font-size: 14px; cursor: pointer; text-transform: none; margin: 0; width: auto; color: inherit; }
.ssl-switch span:nth-of-type(1) { flex: 1; }
.ssl-main { min-width: 0; transition: opacity .15s; }
.ssl-main.loading { opacity: .45; pointer-events: none; }
.ssl-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 14px; color: var(--ssh-muted); }
.ssl-count { flex: 1; }
.ssl-sort select { font: inherit; font-size: 14px; color: inherit; background: transparent; border: 1px solid var(--ssh-line); border-radius: 999px; padding: 7px 30px 7px 14px; width: auto; height: auto; margin: 0; }
.ssl-open { display: none; padding: 8px 16px; border: 1px solid var(--ssh-line); border-radius: 999px; font-weight: 700; color: inherit; }
.ssl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.ssl-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--ssh-card); border: 1px solid var(--ssh-line); font-size: 13px; font-weight: 600; text-decoration: none; }
.ssl-chips a:hover { border-color: var(--ssh-accent); }
.ssl-chips .ssl-clearall { background: none; border: 0; color: var(--ssh-accent); font-weight: 700; }
.ssl-cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.ssl-img { position: relative; }
.ssl-badge { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #fff; color: #111; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.ssl-badge.sale { background: #c0392b; color: #fff; }
.ssl-badge.out { left: auto; right: 10px; background: rgba(0, 0, 0, .7); color: #fff; }
.ssl-vendor { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ssh-muted); margin-top: 10px; }
.ssl-vendor + h2 { margin-top: 2px; }
.ssl-colors { font-size: 13px; color: var(--ssh-muted); }
.ssh-price .now { color: #c0392b; }
.ssl-none { text-align: center; padding: 60px 20px; border: 1px dashed var(--ssh-line); border-radius: 16px; }
.ssl-none h2 { margin: 0 0 6px; }
.ssl-pages { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 34px; font-size: 14px; }
.ssl-pages a { text-decoration: none; font-weight: 700; color: var(--ssh-accent); }
.ssl-pages .nums { display: flex; gap: 4px; }
.ssl-pages .nums a, .ssl-pages .nums b, .ssl-pages .nums .gap { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: inherit; }
.ssl-pages .nums a:hover { background: var(--ssh-card); }
.ssl-pages .nums b { background: var(--ssh-accent); color: #fff; }
@media (max-width: 900px) {
    .ssl-layout { grid-template-columns: 1fr; }
    .ssl-open { display: inline-flex; }
    .ssl-filters { position: fixed; inset: 0 0 0 auto; width: min(380px, 92vw); max-height: none; z-index: 1000; background: #fff; color: #1f2328; padding: 0 18px;
        transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 50px rgba(0, 0, 0, .25); visibility: hidden; }
    body.ssl-filtering .ssl-filters { transform: none; visibility: visible; }
    body.ssl-filtering::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 999; }
    .ssl-filters-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: inherit; padding: 16px 0 10px; z-index: 1; font-size: 18px; }
    .ssl-filters-head button { font-size: 28px; line-height: 1; }
    .ssl-filters-foot { display: block; position: sticky; bottom: 0; background: inherit; padding: 12px 0 16px; }
    .ssl-done { display: flex; justify-content: center; width: 100%; padding: 13px; border-radius: 999px; background: var(--ssh-accent); color: #fff; font-weight: 700; }
    .ssl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
    .ssl-pages .nums a:not([rel]), .ssl-pages .nums .gap { display: none; }
}

/* Product page: quantity and add to cart */
.ssh-buyrow { display: flex; gap: 10px; align-items: stretch; margin: 8px 0; }
.ssh-buyrow .ssh-buy { margin: 0; flex: 1; }
.ssh-qty input { width: 70px; height: 100%; min-height: 50px; text-align: center; font: inherit; font-weight: 700; color: inherit; background: transparent; border: 1px solid var(--ssh-line); border-radius: 999px; margin: 0; padding: 0 6px; }
.ssh .ssh-buy.soldout { opacity: .5; }
.ssh-cart-msg { min-height: 20px; font-size: 14px; font-weight: 600; color: #c0392b; }
.ssh .ssh-buy.inline { display: inline-flex; width: auto; padding: 12px 26px; text-decoration: none; }

/* ===========================================================================
   Cart drawer and cart page (assets/scripts/cart.js). The drawer sits outside the page's .ssh,
   so it carries its own colours.
=========================================================================== */
.sl-drawer { --sl-accent: var(--primary, #1b810d); position: fixed; inset: 0; z-index: 2000; visibility: hidden; font-size: 15px; line-height: 1.5; color: #1f2328; }
.sl-drawer-open .sl-drawer { visibility: visible; }
.sl-drawer-shade { position: absolute; inset: 0; background: rgba(15, 18, 16, .45); opacity: 0; transition: opacity .25s; }
.sl-drawer-open .sl-drawer-shade { opacity: 1; }
.sl-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: #fff; box-shadow: -20px 0 60px rgba(0, 0, 0, .25); display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); outline: none; }
.sl-drawer-open .sl-drawer-panel { transform: none; }
.sl-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid #eceef1; }
.sl-drawer-head h2 { margin: 0; font-size: 20px; text-transform: none; border: 0; padding: 0; }
.sl-drawer .sl-x { all: unset; cursor: pointer; font-size: 28px; line-height: 1; padding: 0 6px; }
.sl-drawer-body { padding: 16px 20px 24px; overflow-y: auto; flex: 1; }
.sl-drawer button, .sck-cart button { font: inherit; }
.sl-flash { background: color-mix(in srgb, var(--sl-accent, var(--ssh-accent)) 12%, #fff); color: var(--sl-accent, var(--ssh-accent)); font-weight: 700; border-radius: 10px; padding: 9px 12px; margin: 0 0 12px; }
.sl-lines { list-style: none; margin: 0; padding: 0; }
.sl-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(128, 128, 128, .2); transition: opacity .2s; }
.sl-line.leaving { opacity: .3; }
.sl-line.unavailable img, .sl-line.unavailable .sl-thumb { opacity: .5; }
.sl-line img, .sl-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: rgba(128, 128, 128, .1); display: grid; place-items: center; font-size: 26px; }
.sl-line-text a { font-weight: 700; text-decoration: none; color: inherit; display: block; }
.sl-line-text small { display: block; font-size: 12.5px; opacity: .7; }
.sl-issue { display: block; font-style: normal; font-size: 13px; font-weight: 700; color: #c0392b; }
.sl-line-foot { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.sl-qty { display: inline-flex; align-items: center; border: 1px solid rgba(128, 128, 128, .35); border-radius: 999px; }
.sl-qty button { all: unset; cursor: pointer; width: 30px; height: 30px; display: grid; place-items: center; font-size: 16px; }
.sl-qty button[disabled] { opacity: .3; cursor: default; }
.sl-qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.sl-remove { all: unset; cursor: pointer; font-size: 13px; text-decoration: underline; opacity: .7; }
.sl-line-price { font-weight: 700; text-align: right; }
.sl-line-price s { display: block; font-weight: 400; opacity: .55; font-size: 13px; }
.sl-codeform { display: flex; gap: 6px; margin: 16px 0 6px; }
.sl-codeform input { flex: 1; font: inherit; color: inherit; background: transparent; border: 1px solid rgba(128, 128, 128, .35); border-radius: 10px; padding: 10px 12px; height: auto; margin: 0; min-width: 0; text-transform: uppercase; }
.sl-codeform button { all: unset; cursor: pointer; padding: 0 16px; border-radius: 10px; background: #1f2321; color: #fff; font-weight: 700; font-size: 14px; }
.sl-codes { display: flex; flex-wrap: wrap; gap: 6px; }
.sl-code { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--sl-accent, var(--ssh-accent)) 12%, transparent); font-size: 13px; font-weight: 700; }
.sl-code.off { background: rgba(192, 57, 43, .1); color: #a5281b; }
.sl-code button { all: unset; cursor: pointer; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; }
.sl-code-msg { font-size: 13px; min-height: 18px; margin: 4px 0; }
.sl-code-msg.ok { color: #1b810d; }
.sl-code-msg.bad { color: #c0392b; }
.sl-code-msg.warn { color: #9a6700; }
.sl-totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 14px 0 4px; }
.sl-totals dt, .sl-totals dd { margin: 0; }
.sl-totals .grand { font-weight: 800; font-size: 18px; padding-top: 8px; border-top: 1px solid rgba(128, 128, 128, .25); margin-top: 6px; }
.sl-muted { font-size: 13px; opacity: .65; margin: 4px 0 14px; }
.sl-problem { color: #c0392b; font-weight: 600; font-size: 14px; }
.sl-btn { display: flex; justify-content: center; padding: 14px 20px; border-radius: 999px; background: var(--sl-accent, var(--ssh-accent)); color: #fff !important; font-weight: 800; text-decoration: none; margin-top: 10px; }
.sl-btn.disabled { opacity: .45; pointer-events: none; }
.sl-link { display: block; text-align: center; margin-top: 12px; font-weight: 700; color: inherit; }
.sl-empty { text-align: center; padding: 40px 0; }
.sck-cart { max-width: 760px; margin: 0 auto; }

/* ===========================================================================
   Checkout (assets/scripts/checkout.js) and the order page
=========================================================================== */
.sck { --sck-accent: var(--ssh-accent); }
.sck-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); gap: 44px; align-items: start; }
.sck-form h1 { margin-bottom: 18px; }
.sck-section { padding: 18px 0; border-top: 1px solid var(--ssh-line); }
.sck-section h2 { font-size: 19px; font-weight: 800; margin: 0 0 10px; }
.sck-form label { display: block; font-size: 13.5px; font-weight: 700; margin: 12px 0 4px; text-transform: none; width: auto; color: inherit; }
.sck-form input:not([type=radio]):not([type=checkbox]), .sck-form select, .sck-form textarea {
    display: block; width: 100%; font: inherit; color: inherit; background: transparent; border: 1px solid var(--ssh-line); border-radius: 10px; padding: 11px 13px; height: auto; margin: 0; line-height: 1.4; }
.sck-form select option { color: #1f2328; }
.sck-form input:focus, .sck-form select:focus, .sck-form textarea:focus { outline: none; border-color: var(--ssh-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ssh-accent) 18%, transparent); }
.sck-form [aria-invalid=true] { border-color: #c0392b !important; }
.sck-form #ShipLine2 { margin-top: 8px; }
.sck-form [hidden] { display: none !important; }
.sck-three { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0 10px; }
.sck-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.sck-opt { font-weight: 400; opacity: .6; font-size: 12px; }
.sck-muted { color: var(--ssh-muted); font-size: 14px; }
.sck-muted a { color: var(--ssh-accent); font-weight: 700; }
.sck-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--ssh-line); border-radius: 999px; margin-bottom: 6px; }
.sck-switch button { padding: 8px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.sck-switch button.on { background: var(--ssh-accent); color: #fff; }
.sck-rates { display: grid; gap: 8px; }
.sck-form .sck-rate { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--ssh-line); border-radius: 12px; cursor: pointer; margin: 0; font-weight: 600; }
.sck-form .sck-rate.on { border-color: var(--ssh-accent); box-shadow: inset 0 0 0 1px var(--ssh-accent); background: color-mix(in srgb, var(--ssh-accent) 5%, transparent); }
.sck-rate input { width: 18px; height: 18px; margin: 0; accent-color: var(--ssh-accent); -webkit-appearance: radio; appearance: radio; flex: none; }
.sck-rate .n { flex: 1; }
.sck-rate small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ssh-muted); }
.sck-rate .p { font-weight: 800; }
.sck-payment { min-height: 60px; }
.sck-test { background: rgba(255, 179, 0, .14); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.sck-hl iframe { width: 100%; height: 46px; border: 1px solid var(--ssh-line); border-radius: 10px; }
.sck-notes summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ssh-accent); }
.sck-notes textarea { margin-top: 10px !important; }
.sck-error { background: rgba(192, 57, 43, .1); color: #a5281b; border-radius: 10px; padding: 11px 14px; font-weight: 600; margin: 8px 0; }
.sck-place { display: flex; justify-content: center; width: 100%; padding: 16px 20px; border-radius: 999px; background: var(--ssh-accent); color: #fff; font-weight: 800; font-size: 17px; margin-top: 8px; }
.sck-place:disabled { opacity: .6; cursor: progress; }
.sck.placing .sck-form { pointer-events: none; }
.sck-fine { font-size: 12.5px; color: var(--ssh-muted); text-align: center; }
.sck-problem { color: #c0392b; font-weight: 600; }
.sck-summary { position: sticky; top: calc(var(--sl-header-offset, 0px) + 16px); background: var(--ssh-card); border: 1px solid var(--ssh-line); border-radius: 18px; padding: 20px 22px; }
.sck-summary h2 { font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.sck-lines { list-style: none; padding: 0; margin: 0 0 12px; }
.sck-line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; position: relative; }
.sck-line img, .sck-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: rgba(128, 128, 128, .12); display: grid; place-items: center; font-size: 22px; }
.sck-line .q { position: absolute; left: 40px; top: 2px; min-width: 20px; height: 20px; border-radius: 999px; background: #1f2321; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.sck-line .t { font-size: 14px; font-weight: 600; }
.sck-line .t small { display: block; font-weight: 400; color: var(--ssh-muted); font-size: 12.5px; }
.sck-line .p { font-weight: 700; font-size: 14px; }
.sck-issue { display: block; font-style: normal; color: #c0392b; font-size: 12.5px; font-weight: 700; }
.sck-code { display: flex; gap: 6px; }
.sck-code input { flex: 1; min-width: 0; font: inherit; color: inherit; background: transparent; border: 1px solid var(--ssh-line); border-radius: 10px; padding: 10px 12px; height: auto; margin: 0; text-transform: uppercase; }
.sck-code button { padding: 0 16px; border-radius: 10px; background: #1f2321; color: #fff; font-weight: 700; font-size: 14px; }
.sck-codemsg { font-size: 13px; min-height: 18px; margin-top: 4px; }
.sck-codemsg.ok { color: #1b810d; }
.sck-codemsg.bad, .sck-codeerr { color: #c0392b; }
.sck-codemsg.warn { color: #9a6700; }
.sck-codeerr { font-size: 13px; margin: 2px 0; }
.sck-totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 12px 0 0; font-size: 14.5px; }
.sck-totals dt, .sck-totals dd { margin: 0; }
.sck-totals dd { text-align: right; }
.sck-totals .grand { font-size: 19px; font-weight: 800; padding-top: 10px; border-top: 1px solid var(--ssh-line); margin-top: 4px; }
.sck-totals .bad { color: #c0392b; font-size: 13px; }
.sck-done { max-width: 900px; margin: 0 auto; text-align: center; }
.sck-done-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--ssh-accent); color: #fff; font-size: 32px; display: grid; place-items: center; }
.sck-done-meta { color: var(--ssh-muted); }
.sck-status { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: color-mix(in srgb, var(--ssh-accent) 12%, transparent); color: var(--ssh-accent); margin: 6px 0 18px; }
.sck-status.failed, .sck-status.cancelled { background: rgba(192, 57, 43, .1); color: #a5281b; }
.sck-done-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; text-align: left; margin: 10px 0 28px; }
.sck-panel { border: 1px solid var(--ssh-line); border-radius: 16px; padding: 18px 20px; }
.sck-panel h2 { font-size: 16px; font-weight: 800; margin: 0 0 10px; }
.sck-items { list-style: none; padding: 0; margin: 0; }
.sck-items li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--ssh-line); font-size: 14.5px; }
.sck-items .q { font-weight: 800; }
.sck-items small { display: block; color: var(--ssh-muted); font-size: 12.5px; }
.sck-track { font-size: 15px; }
@media (max-width: 860px) {
    .sck-layout { grid-template-columns: 1fr; gap: 10px; }
    .sck-summary { position: static; order: -1; }
    .sck-done-grid { grid-template-columns: 1fr; }
    .sck-three { grid-template-columns: 1fr 1fr; }
    .sck-three > div:first-child { grid-column: 1 / -1; }
}

/* ===========================================================================
   Gift cards (/gift-cards: modules/commerce/GiftCards.js, assets/scripts/giftcards.js)
=========================================================================== */
.sgc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 50px; align-items: start; max-width: 1100px; margin: 0 auto; }
.sgc-preview { position: sticky; top: calc(var(--sl-header-offset, 0px) + 20px); }
.sgc-card { aspect-ratio: 1.6 / 1; border-radius: 22px; padding: 28px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
    background: linear-gradient(135deg, #1f2321, #3a403c); transition: background .4s; }
.sgc-card[data-design=celebrate] { background: linear-gradient(135deg, #7b2ff7, #f107a3); }
.sgc-card[data-design=thanks] { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.sgc-card[data-design=holiday] { background: linear-gradient(135deg, #991b1b, #166534); }
.sgc-card span { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.sgc-card b { font-size: clamp(36px, 6vw, 56px); font-weight: 800; }
.sgc-card small { font-family: Consolas, Menlo, monospace; letter-spacing: .15em; opacity: .8; }
.sgc-designs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 26px; }
.sgc-designs button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--ssh-line); border-radius: 999px; font-size: 13px; font-weight: 700; }
.sgc-designs button.on { border-color: var(--ssh-accent); box-shadow: inset 0 0 0 1px var(--ssh-accent); }
.sgc-designs i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #1f2321, #3a403c); }
.sgc-designs [data-design=celebrate] i { background: linear-gradient(135deg, #7b2ff7, #f107a3); }
.sgc-designs [data-design=thanks] i { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.sgc-designs [data-design=holiday] i { background: linear-gradient(135deg, #991b1b, #166534); }
.sgc-intro { font-size: 17px; color: var(--ssh-muted); margin: 0 0 14px; }
.sgc fieldset { border: 0; padding: 0; margin: 18px 0 0; }
.sgc legend, .sgc-form label { font-size: 14px; font-weight: 800; margin: 14px 0 6px; padding: 0; display: block; text-transform: none; width: auto; color: inherit; }
.sgc-amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.sgc-amounts button { min-width: 74px; padding: 12px 16px; border: 1px solid var(--ssh-line); border-radius: 12px; font-weight: 800; text-align: center; }
.sgc-amounts button.on { background: var(--ssh-accent); border-color: var(--ssh-accent); color: #fff; }
.sgc-form .sgc-other { display: flex; align-items: center; gap: 8px; margin: 0; border: 1px solid var(--ssh-line); border-radius: 12px; padding: 0 0 0 12px; font-weight: 700; }
.sgc-other input { width: 110px; border: 0; background: transparent; padding: 12px 8px; margin: 0; font: inherit; color: inherit; height: auto; }
.sgc-who { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--ssh-line); border-radius: 999px; }
.sgc-who button { padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.sgc-who button.on { background: var(--ssh-accent); color: #fff; }
.sgc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.sgc-form input:not([type=number]), .sgc-form textarea, .sgc-balance input { display: block; width: 100%; font: inherit; color: inherit; background: transparent; border: 1px solid var(--ssh-line); border-radius: 10px; padding: 11px 13px; height: auto; margin: 0; }
.sgc-form small { font-size: 12px; color: var(--ssh-muted); }
.sgc-form label span { font-weight: 400; opacity: .6; font-size: 12px; }
.sgc-form [hidden] { display: none !important; }
.sgc-buy { display: flex; justify-content: center; width: 100%; padding: 15px; margin-top: 20px; border-radius: 999px; background: var(--ssh-accent); color: #fff; font-weight: 800; font-size: 16px; }
.sgc-result { min-height: 22px; margin-top: 10px; font-weight: 700; }
.sgc-result.ok { color: #1b810d; }
.sgc-result.bad { color: #c0392b; }
.sgc-fine { font-size: 13px; color: var(--ssh-muted); }
.sgc-balance h2 { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.sgc-row { display: flex; gap: 8px; }
.sgc-row button { padding: 0 18px; border-radius: 10px; background: #1f2321; color: #fff; font-weight: 700; }
#GcBalanceResult { margin-top: 8px; font-weight: 700; }
#GcBalanceResult.bad { color: #c0392b; }
@media (max-width: 860px) {
    .sgc { grid-template-columns: 1fr; gap: 24px; }
    .sgc-preview { position: static; }
    .sgc-two { grid-template-columns: 1fr; }
}
