/* A neutral store theme: normal proportions, real prices and buttons. Colours and
   fonts come from variables, so a sample shop can lay its own over them. */
.store-sec { --st-bg: #fff; --st-ink: #1e1e1e; --st-line: #dcdcde; --st-accent: #1e1e1e; --st-on: #fff; --st-font: inherit; --st-title: inherit; background: var(--st-bg); color: var(--st-ink); font-family: var(--st-font); padding: clamp(1.75rem, 4vw, 3.5rem) var(--gutter, 24px); }
.store-sec + .store-sec { border-block-start: 1px solid var(--st-line); }
.st-head { align-items: baseline; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; justify-content: space-between; margin-block-end: 1rem; }
.store-sec h2.st-title, .store-sec h3.st-title { font-family: var(--st-title); font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin: 0; }
.st-note { font-size: 0.85rem; margin: 0; }
.st-note a { color: inherit; }
.st-card { color: inherit; display: block; font-size: 0.95rem; }
.st-card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.st-name { color: inherit; display: block; font-weight: 600; margin-block-start: 0.5rem; overflow: hidden; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.st-price { display: block; font-variant-numeric: tabular-nums; margin-block: 0.1rem 0.5rem; }
.st-price del { margin-inline-end: 0.35rem; opacity: 0.6; }
.st-price ins { font-weight: 700; text-decoration: none; }
.st-badge { background: var(--st-accent); color: var(--st-on); font-size: 0.75rem; font-weight: 700; left: 0.5rem; padding: 0.1rem 0.45rem; position: absolute; top: 0.5rem; z-index: 2; }
.st-btn { background: var(--st-accent, #16130f); border: 1px solid var(--st-accent, #16130f); color: var(--st-on, #fff); cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 600; min-height: 2.5rem; padding: 0.35rem 0.8rem; }
.st-btn.ghost { background: none; color: inherit; border-color: currentcolor; }
.st-btn:disabled { cursor: not-allowed; opacity: 0.5; }
.st-btn:focus-visible, .mc button:focus-visible, .ps button:focus-visible { outline: 2px solid var(--st-ink); outline-offset: 2px; }
.st-row { --gs-gap: 16px; --gs-per-view: 1.5; cursor: grab; }
.st-row .gs-slide { position: relative; }
@media (min-width: 600px) { .st-row { --gs-per-view: 2.5; } .st-row.small { --gs-per-view: 3.5; } }
@media (min-width: 1000px) { .st-row { --gs-per-view: 4; } .st-row.small { --gs-per-view: 6; } }
.st-row-nav { display: flex; gap: 0.4rem; }
.st-row-nav button { background: none; border: 1px solid currentcolor; color: inherit; cursor: pointer; font: inherit; min-height: 2.5rem; padding: 0 0.8rem; }
.st-row-nav button:disabled { opacity: 0.35; }
.st-strip { --gs-per-view: 2.4; --gs-gap: 10px; }
@media (min-width: 600px) { .st-strip { --gs-per-view: 4.4; } }
@media (min-width: 1000px) { .st-strip { --gs-per-view: 7; } }
.st-mini { align-items: center; display: grid; font-size: 0.82rem; gap: 0.5rem; grid-template-columns: 3rem minmax(0, 1fr); }
.st-mini img { aspect-ratio: 1; height: auto; object-fit: cover; width: 100%; }
.st-mini b { display: block; font-weight: 600; }
.st-cats { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.st-cat-side p { margin: 0.5rem 0 1rem; max-width: 22rem; }
.st-cat-side img { aspect-ratio: 1; object-fit: cover; width: 100%; }

/* Morph Card */
.mc { color: inherit; position: relative; }
.mc-media { position: relative; }
.mc-media .gs { aspect-ratio: 1; }
.mc-media .gs-track, .mc-media .gs-slide { height: 100%; }
.mc-dots { bottom: 0.5rem; display: flex; gap: 0.2rem; left: 0; justify-content: center; position: absolute; right: 0; z-index: 3; }
.mc-dots button { background: none; border: 0; cursor: pointer; height: 24px; padding: 0; width: 24px; }
.mc-dots button::before { background: #fff; border-radius: 50%; box-shadow: 0 0 0 1px #0006; content: ""; display: block; height: 8px; margin: auto; opacity: 0.65; width: 8px; }
.mc-dots button[aria-current="true"]::before { opacity: 1; transform: scale(1.3); }
.mc-panel { background: color-mix(in srgb, var(--st-bg, #fff) 94%, transparent); bottom: 0; color: var(--st-ink, #1e1e1e); font-size: 0.85rem; left: 0; opacity: 0; padding: 0.7rem 0.7rem 2rem; pointer-events: none; position: absolute; right: 0; transform: translateY(8%); transition: opacity 0.2s, transform 0.25s; z-index: 2; }
.mc-panel p { margin: 0 0 0.35rem; }
.mc-panel dl { display: grid; gap: 0 0.75rem; grid-template-columns: auto minmax(0, 1fr); margin: 0; }
.mc-panel dt { font-weight: 600; }
.mc-panel dd { margin: 0; }
.mc.is-hover .mc-panel, .mc.is-focus .mc-panel, .mc.is-open .mc-panel { opacity: 1; transform: none; }
.mc-swatches { display: flex; flex-wrap: wrap; gap: 0.1rem; margin-block: 0.1rem 0.35rem; }
.mc-swatches button, .ps-swatches button { background: none; border: 0; cursor: pointer; height: 2rem; padding: 0; width: 2rem; }
.mc-swatches button::before, .ps-swatches button::before { background: var(--c); border-radius: 50%; box-shadow: 0 0 0 1px #0003; content: ""; display: block; height: 1.25rem; margin: auto; width: 1.25rem; }
.mc-swatches button[aria-pressed="true"]::before, .ps-swatches button[aria-pressed="true"]::before { box-shadow: 0 0 0 2px var(--st-bg, #fff), 0 0 0 4px var(--st-ink, #1e1e1e); }
.mc-chosen { font-size: 0.82rem; margin: 0 0 0.5rem; }
.mc-more { display: none; }
@media (hover: none) { .mc-more { background: none; border: 1px solid currentcolor; color: inherit; display: inline-block; font: inherit; font-size: 0.85rem; margin-inline-end: 0.4rem; min-height: 2.5rem; padding: 0 0.7rem; } }

/* Product Stage */
.ps { display: grid; gap: 1.5rem clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); max-width: 70rem; }
.ps-main { position: relative; }
.ps-main .gs { aspect-ratio: 1; cursor: zoom-in; }
.ps-main .gs-track, .ps-main .gs-slide { height: 100%; }
.ps-thumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-block-start: 0.5rem; }
.ps-thumbs button { background: none; border: 2px solid transparent; cursor: pointer; padding: 0; width: 4rem; }
.ps-thumbs button[aria-current="true"] { border-color: var(--st-ink); }
.ps-thumbs img { aspect-ratio: 1; height: auto; object-fit: cover; width: 100%; }
.ps-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-block-start: 0.5rem; }
.ps-summary h2, .ps-summary h3 { font-family: var(--st-title); font-size: 1.75rem; line-height: 1.15; margin: 0 0 0.4rem; }
.ps-price { font-size: 1.4rem; font-variant-numeric: tabular-nums; margin: 0 0 0.25rem; }
.ps-stock { font-size: 0.9rem; font-weight: 600; margin: 0 0 1rem; }
.ps-stock[data-level="out"] { text-decoration: line-through; }
.ps-swatches { display: flex; flex-wrap: wrap; gap: 0.1rem; margin-block: 0.25rem 1rem; }
.ps-text { margin: 0 0 1rem; max-width: 30rem; }
.ps-line { font-size: 0.85rem; margin: 0.6rem 0 0; min-height: 1.3em; }

/* Morph Grid */
.mg-grid { display: grid; gap: 1.5rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .mg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mg-card .gs { aspect-ratio: 1; }
.mg-card .gs-track, .mg-card .gs-slide { height: 100%; }
.mg-card { display: flex; flex-direction: column; font-size: 0.95rem; min-width: 0; position: relative; }
.mg-actions { display: block; margin-block-start: auto; }
.mg-actions [data-add] { width: 100%; }
.mg-quick { align-items: center; background: #fff; border: 0; border-radius: 50%; box-shadow: 0 1px 4px #0004; color: #111; cursor: pointer; display: flex; height: 2.75rem; justify-content: center; opacity: 0; padding: 0; position: absolute; right: 0.5rem; top: 0.5rem; transition: opacity 160ms cubic-bezier(0.23, 1, 0.32, 1), scale 160ms cubic-bezier(0.23, 1, 0.32, 1); width: 2.75rem; z-index: 5; }
.mg-quick svg { display: block; height: 1.25rem; width: 1.25rem; }
@media (hover: hover) { .mg-quick:hover { scale: 1.06; } .mg-card:hover .mg-quick { opacity: 1; } }
.mg-quick:focus-visible { opacity: 1; }
@media (hover: none) { .mg-quick { opacity: 1; } }
.mg-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.mg-live { font-size: 0.9rem; margin: 0 0 1rem; }
@media (max-width: 640px) {
	.ps, .st-cats { grid-template-columns: minmax(0, 1fr); }
	}
@media (prefers-reduced-motion: reduce) { .mc-panel { transition: none; } }

/* Name, price and a button under every product, whatever it is in. */
.pd { align-items: baseline; display: grid; font-size: 0.95rem; gap: 0.1rem 0.6rem; grid-template-columns: minmax(0, 1fr) auto; padding-block: 0.45rem 0.25rem; }
.pd.gs-content { inset: auto; position: static; }
.pd-n { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-p { font-variant-numeric: tabular-nums; font-weight: 700; }
.pd .buy { grid-column: 1 / -1; font-size: 0.85rem; margin-block-start: 0.2rem; min-height: 2.25rem; padding: 0.25rem 0.6rem; rotate: none; }
.st-mini-add { background: none; border: 1px solid currentcolor; color: inherit; cursor: pointer; display: block; font: inherit; font-size: 0.72rem; margin-block-start: 0.15rem; min-height: 1.6rem; padding: 0 0.35rem; }
.st-row.edgy { --gs-per-view: 1.4; }
@media (min-width: 600px) { .st-row.edgy { --gs-per-view: 2.4; } }
@media (min-width: 1000px) { .st-row.edgy { --gs-per-view: 3.4; } }
.st-row.small { --gs-per-view: 2.3; }
@media (min-width: 600px) { .st-row.small { --gs-per-view: 3.4; } }
@media (min-width: 1000px) { .st-row.small { --gs-per-view: 5; } }
