/* Sysgage Commerce storefront. Every rule is scoped to .sgc* classes so themes stay in control of everything else. */
:root {
	--sgc-brand: #2563eb;
	--sgc-brand-ink: #ffffff;
	--sgc-ink: #0f172a;
	--sgc-ink-2: #334155;
	--sgc-muted: #64748b;
	--sgc-line: #e2e8f0;
	--sgc-line-2: #cbd5e1;
	--sgc-surface: #ffffff;
	--sgc-soft: #f8fafc;
	--sgc-ok: #15803d;
	--sgc-ok-bg: #f0fdf4;
	--sgc-warn: #b45309;
	--sgc-warn-bg: #fffbeb;
	--sgc-bad: #b91c1c;
	--sgc-bad-bg: #fef2f2;
	--sgc-info: #1d4ed8;
	--sgc-info-bg: #eff6ff;
	--sgc-sale: #dc2626;
	--sgc-radius: 12px;
	--sgc-radius-sm: 8px;
	--sgc-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
	--sgc-shadow-lg: 0 12px 40px rgba(15, 23, 42, .18);
	--sgc-focus: 0 0 0 3px color-mix(in srgb, var(--sgc-brand) 35%, transparent);
	--sgc-gap: clamp(16px, 3vw, 32px);
}

.sgc, .sgc-drawer, .sgc-float, .sgc-toasts, .sgc-store-notice, .sgc-mini { box-sizing: border-box; }
.sgc *, .sgc *::before, .sgc *::after, .sgc-drawer *, .sgc-drawer *::before, .sgc-drawer *::after { box-sizing: border-box; }
.sgc { color: var(--sgc-ink); font-size: 16px; line-height: 1.55; width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; }
.sgc img { max-width: 100%; height: auto; display: block; }
.sgc a { color: var(--sgc-brand); }
.sgc h1, .sgc h2, .sgc h3 { color: var(--sgc-ink); line-height: 1.25; margin: 0 0 .5em; }
.sgc p { margin: 0 0 1em; }
.sgc .screen-reader-text, .sgc-drawer .screen-reader-text, .sgc-mini .screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.sgc-muted { color: var(--sgc-muted); }
.sgc-small { font-size: 14px; }
.sgc-center { text-align: center; }
.sgc-text-danger { color: var(--sgc-bad); }
.sgc-icon { flex: none; vertical-align: middle; }
.sgc-hp { position: absolute !important; left: -9999px; }

/* Buttons */
.sgc-btn {
	--b: var(--sgc-brand);
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--b);
	background: var(--b); color: var(--sgc-brand-ink) !important; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
	text-decoration: none !important; cursor: pointer; transition: filter .15s, transform .05s, background .15s;
	-webkit-appearance: none; appearance: none; white-space: nowrap;
}
.sgc-btn:hover { filter: brightness(1.08); }
.sgc-btn:active { transform: translateY(1px); }
.sgc-btn:focus-visible { outline: none; box-shadow: var(--sgc-focus); }
.sgc-btn[disabled], .sgc-btn.is-loading { opacity: .6; cursor: not-allowed; }
.sgc-btn.is-loading { position: relative; color: transparent !important; }
.sgc-btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--sgc-brand-ink); border-right-color: transparent; border-radius: 50%; animation: sgc-spin .7s linear infinite; }
.sgc-btn--ghost { background: transparent; color: var(--sgc-ink) !important; border-color: var(--sgc-line-2); }
.sgc-btn--ghost:hover { background: var(--sgc-soft); filter: none; }
.sgc-btn--ghost.is-loading::after { border-color: var(--sgc-ink); border-right-color: transparent; }
.sgc-btn--sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 8px; }
.sgc-btn--lg { min-height: 52px; padding: 12px 22px; font-size: 16px; }
.sgc-btn--block { display: flex; width: 100%; }
.sgc-link { background: none; border: 0; padding: 0; color: var(--sgc-brand); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }
.sgc-link--danger { color: var(--sgc-bad) !important; }
.sgc-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--sgc-muted); cursor: pointer; }
.sgc-icon-btn:hover { background: var(--sgc-soft); color: var(--sgc-ink); }
.sgc-icon-btn:focus-visible { outline: none; box-shadow: var(--sgc-focus); }

/* Forms */
.sgc input[type=text], .sgc input[type=email], .sgc input[type=tel], .sgc input[type=password], .sgc input[type=number], .sgc input[type=search], .sgc select, .sgc textarea {
	width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--sgc-line-2); border-radius: var(--sgc-radius-sm);
	background: var(--sgc-surface); color: var(--sgc-ink); font: inherit; font-size: 16px; line-height: 1.3; box-shadow: none;
}
.sgc textarea { min-height: 96px; }
.sgc input:focus, .sgc select:focus, .sgc textarea:focus { outline: none; border-color: var(--sgc-brand); box-shadow: var(--sgc-focus); }
.sgc .sgc-field { margin: 0 0 14px; }
.sgc .sgc-field > label, .sgc .sgc-filter__label, .sgc-star-input legend { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--sgc-ink-2); }
.sgc-req { color: var(--sgc-bad); }
.sgc-optional { color: var(--sgc-muted); font-weight: 400; }
.sgc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.sgc-fields .sgc-field--full { grid-column: 1 / -1; }
.sgc-field.has-error input, .sgc-field.has-error select, .sgc-field.has-error textarea { border-color: var(--sgc-bad); }
.sgc-field__error { display: block; margin-top: 4px; color: var(--sgc-bad); font-size: 13px; }
.sgc-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; margin: 6px 0; }
.sgc-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--sgc-brand); flex: none; }
.sgc-check--lg { font-weight: 600; }
.sgc-form__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.sgc-form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sgc-fieldset { border: 1px solid var(--sgc-line); margin: 8px 0 18px; }
.sgc-fieldset legend { font-weight: 700; padding: 0 6px; }

/* Notices */
.sgc-notices:empty { display: none; }
.sgc-notices { display: grid; gap: 10px; margin: 0 0 18px; }
.sgc-notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid; font-size: 15px; margin: 0 0 10px; }
.sgc-notices .sgc-notice { margin: 0; }
.sgc-notice .sgc-icon { margin-top: 2px; }
.sgc-notice--success { background: var(--sgc-ok-bg); border-color: #bbf7d0; color: #14532d; }
.sgc-notice--error { background: var(--sgc-bad-bg); border-color: #fecaca; color: #7f1d1d; }
.sgc-notice--info { background: var(--sgc-info-bg); border-color: #bfdbfe; color: #1e3a8a; }
.sgc-notice a { color: inherit; font-weight: 600; }
.sgc-notice__link { margin-left: 6px; }

/* Badges, chips, status */
.sgc-badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.3; background: var(--sgc-soft); color: var(--sgc-ink-2); }
.sgc-badge--sale { background: var(--sgc-sale); color: #fff; }
.sgc-badge--muted { background: #334155; color: #fff; }
.sgc-badge--ok { background: var(--sgc-ok-bg); color: var(--sgc-ok); }
.sgc-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--sgc-info-bg); color: var(--sgc-info); font-size: 14px; font-weight: 600; }
.sgc-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--sgc-soft); color: var(--sgc-ink-2); }
.sgc-status--ok { background: var(--sgc-ok-bg); color: var(--sgc-ok); }
.sgc-status--warn { background: var(--sgc-warn-bg); color: var(--sgc-warn); }
.sgc-status--bad { background: var(--sgc-bad-bg); color: var(--sgc-bad); }
.sgc-status--info { background: var(--sgc-info-bg); color: var(--sgc-info); }
.sgc-status--green { background: var(--sgc-ok-bg); color: var(--sgc-ok); }
.sgc-status--amber { background: var(--sgc-warn-bg); color: var(--sgc-warn); }
.sgc-status--red { background: var(--sgc-bad-bg); color: var(--sgc-bad); }
.sgc-status--blue, .sgc-status--purple { background: var(--sgc-info-bg); color: var(--sgc-info); }

/* Panels */
.sgc-panel { background: var(--sgc-surface); border: 1px solid var(--sgc-line); border-radius: var(--sgc-radius); padding: clamp(16px, 2.5vw, 24px); margin: 0 0 18px; }
.sgc-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.sgc-panel__head .sgc-section-title { margin: 0; }
.sgc-section-title { font-size: 18px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.sgc-empty { text-align: center; padding: clamp(32px, 6vw, 64px) 16px; border: 1px dashed var(--sgc-line-2); border-radius: var(--sgc-radius); color: var(--sgc-ink-2); background: var(--sgc-soft); }
.sgc-empty > .sgc-icon { width: 40px; height: 40px; color: var(--sgc-muted); margin: 0 auto 10px; display: block; }
.sgc-empty h2 { font-size: 22px; }

/* Price + stars */
.sgc-price { font-weight: 700; color: var(--sgc-ink); }
.sgc-price del { color: var(--sgc-muted); font-weight: 400; margin-right: 6px; }
.sgc-price ins { text-decoration: none; color: var(--sgc-sale); }
.sgc-price--lg { font-size: 26px; margin: 4px 0 14px; }
.sgc-price-suffix { font-weight: 400; color: var(--sgc-muted); font-size: .8em; }
.sgc-stars { --sgc-rating: 0%; display: inline-block; position: relative; font-size: 15px; line-height: 1; letter-spacing: 2px; vertical-align: middle; }
.sgc-stars::before { content: "★★★★★"; color: #d7dde6; }
.sgc-stars::after { content: "★★★★★"; color: #f59e0b; position: absolute; left: 0; top: 0; width: var(--sgc-rating); overflow: hidden; white-space: nowrap; }
.sgc-rating-count { font-size: 13px; color: var(--sgc-muted); }

/* Grid + cards */
.sgc-grid { --sgc-cols: 4; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(12px, 2vw, 24px); grid-template-columns: repeat(var(--sgc-cols), minmax(0, 1fr)); }
.sgc-card { position: relative; display: flex; flex-direction: column; background: var(--sgc-surface); border: 1px solid var(--sgc-line); border-radius: var(--sgc-radius); overflow: hidden; transition: box-shadow .2s, transform .2s; margin: 0; }
.sgc-card:hover { box-shadow: var(--sgc-shadow); transform: translateY(-2px); }
.sgc-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--sgc-soft); overflow: hidden; }
.sgc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.sgc-card:hover .sgc-card__media img { transform: scale(1.03); }
.sgc-card__media .sgc-badge { position: absolute; top: 10px; left: 10px; }
.sgc-card.is-out-of-stock .sgc-card__media img { opacity: .6; }
.sgc-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
.sgc-card__title { font-size: 16px !important; font-weight: 600; margin: 0 !important; }
.sgc-card__title a { color: var(--sgc-ink) !important; text-decoration: none; }
.sgc-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.sgc-card__actions { margin-top: auto; padding-top: 8px; position: relative; z-index: 1; }
.sgc-card__rating { position: relative; z-index: 1; }
.sgc-cat-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.sgc-cat-card .sgc-card__title { font-size: 17px !important; }
.sgc-cat-card .sgc-card__title::after { display: none; }

/* Shop */
.sgc-shop__header { margin: 0 0 20px; }
.sgc-shop__title { font-size: clamp(26px, 4vw, 36px); }
.sgc-shop__layout { display: grid; gap: var(--sgc-gap); }
.sgc-shop.has-filters .sgc-shop__layout { grid-template-columns: 260px minmax(0, 1fr); }
.sgc-toolbar { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; flex-wrap: wrap; }
.sgc-result-count { margin: 0 !important; color: var(--sgc-muted); font-size: 14px; flex: 1; }
.sgc-sort select { min-width: 200px; width: auto; }
.sgc-filters-toggle { display: none !important; }
.sgc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sgc-brand); display: inline-block; }
.sgc-filters { align-self: start; position: sticky; top: 24px; }
.sgc-filters__head { display: none; }
.sgc-filters__head h2 { font-size: 18px; margin: 0; }
.sgc-filter { padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--sgc-line); }
.sgc-filter__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sgc-filter__list label, .sgc-filter__list a { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--sgc-ink-2); text-decoration: none; cursor: pointer; padding: 3px 0; }
.sgc-filter__list input { accent-color: var(--sgc-brand); }
.sgc-count { margin-left: auto; color: var(--sgc-muted); font-size: 12px; background: var(--sgc-soft); padding: 1px 7px; border-radius: 999px; }
.sgc-filter__list--chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sgc-chip-check { position: relative; padding: 0 !important; }
.sgc-chip-check input { position: absolute; opacity: 0; }
.sgc-chip-check span { display: inline-block; padding: 5px 12px; border: 1px solid var(--sgc-line-2); border-radius: 999px; font-size: 14px; }
.sgc-chip-check input:checked + span { background: var(--sgc-ink); border-color: var(--sgc-ink); color: #fff; }
.sgc-chip-check input:focus-visible + span { box-shadow: var(--sgc-focus); }
.sgc-search { position: relative; }
.sgc-search input { padding-right: 38px !important; }
.sgc-search .sgc-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--sgc-muted); pointer-events: none; }
.sgc-filter-price { display: flex; align-items: center; gap: 8px; }
.sgc-filter-price label { position: relative; flex: 1; }
.sgc-prefix { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--sgc-muted); font-size: 14px; }
.sgc-filter-price input { padding-left: 26px !important; }
.sgc-filters__actions { display: grid; gap: 8px; }
.sgc-filters__backdrop { display: none; }
.sgc-pagination { margin: 28px 0 0; }
.sgc-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0; padding: 0; }
.sgc-pagination a, .sgc-pagination span { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--sgc-line); text-decoration: none; color: var(--sgc-ink-2); padding: 0 10px; }
.sgc-pagination .current { background: var(--sgc-ink); border-color: var(--sgc-ink); color: #fff; }
.sgc-pagination .dots { border: 0; }

/* Breadcrumbs */
.sgc-breadcrumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--sgc-muted); }
.sgc-breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--sgc-line-2); }
.sgc-breadcrumbs a { color: var(--sgc-muted); text-decoration: none; }
.sgc-breadcrumbs a:hover { color: var(--sgc-ink); text-decoration: underline; }

/* Product page */
.sgc-product__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; margin: 0 0 40px; }
.sgc-gallery__main { position: relative; border-radius: var(--sgc-radius); overflow: hidden; background: var(--sgc-soft); aspect-ratio: 1 / 1; }
.sgc-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.sgc-gallery__main .sgc-badge { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: 13px; }
.sgc-gallery__zoom { display: block; height: 100%; cursor: zoom-in; }
.sgc-gallery__thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.sgc-gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; width: 100%; aspect-ratio: 1 / 1; }
.sgc-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sgc-gallery__thumb.is-active { border-color: var(--sgc-brand); }
.sgc-gallery__thumb:focus-visible { outline: none; box-shadow: var(--sgc-focus); }
.sgc-summary__title { font-size: clamp(26px, 3.5vw, 36px) !important; margin: 0 0 8px !important; }
.sgc-summary__rating { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; margin: 0 0 6px; }
.sgc-summary__excerpt { color: var(--sgc-ink-2); margin: 0 0 16px; }
.sgc-buy { margin: 18px 0 22px; }
.sgc-buy__row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.sgc-buy__row .sgc-btn { flex: 1; min-width: 180px; }
.sgc-stock { font-weight: 600; font-size: 15px; margin: 0 0 12px; display: inline-flex; align-items: center; gap: 6px; }
.sgc-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sgc-stock--in { color: var(--sgc-ok); }
.sgc-stock--out { color: var(--sgc-bad); }
.sgc-stock--backorder { color: var(--sgc-warn); }
.sgc-variations { display: grid; gap: 4px; margin: 0 0 8px; }
.sgc-variation-info { min-height: 8px; margin: 0 0 12px; }
.sgc-variation-info .sgc-price { font-size: 22px; }
.sgc-reset-variations { justify-self: start; }
.sgc-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--sgc-line-2); border-radius: 10px; overflow: hidden; background: var(--sgc-surface); height: 44px; }
.sgc-buy .sgc-qty, .sgc-btn--lg ~ .sgc-qty { height: 52px; }
.sgc-qty__btn { width: 40px; border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--sgc-ink-2); }
.sgc-qty__btn:hover { background: var(--sgc-soft); }
.sgc-qty__btn:focus-visible { outline: none; box-shadow: inset var(--sgc-focus); }
.sgc .sgc-qty__input { width: 56px !important; min-height: 0 !important; height: 100%; border: 0 !important; border-radius: 0 !important; text-align: center; padding: 0 !important; -moz-appearance: textfield; box-shadow: none !important; }
.sgc-qty__input::-webkit-outer-spin-button, .sgc-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sgc-grouped { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.sgc-grouped td { padding: 10px 8px; border-bottom: 1px solid var(--sgc-line); vertical-align: middle; }
.sgc-grouped__price { text-align: right; white-space: nowrap; }
.sgc-meta { display: grid; gap: 6px; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--sgc-line); font-size: 14px; }
.sgc-meta div { display: flex; gap: 8px; }
.sgc-meta dt { color: var(--sgc-muted); min-width: 80px; }
.sgc-meta dd { margin: 0; }
.sgc-tabs { margin: 0 0 40px; }
.sgc-tabs__list { display: flex; gap: 4px; border-bottom: 1px solid var(--sgc-line); overflow-x: auto; scrollbar-width: none; }
.sgc-tabs__tab { border: 0; background: none; padding: 12px 16px; font: inherit; font-weight: 600; color: var(--sgc-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.sgc-tabs__tab[aria-selected=true] { color: var(--sgc-ink); border-bottom-color: var(--sgc-brand); }
.sgc-tabs__tab:focus-visible { outline: none; box-shadow: var(--sgc-focus); border-radius: 6px 6px 0 0; }
.sgc-tabs__panel { padding: 22px 0 0; }
.sgc-tabs__panel:focus-visible { outline: none; }
.sgc-attr-table { width: 100%; border-collapse: collapse; }
.sgc-attr-table th, .sgc-attr-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--sgc-line); }
.sgc-attr-table th { width: 30%; color: var(--sgc-ink-2); font-weight: 600; background: var(--sgc-soft); }
.sgc-related { margin: 0 0 40px; }
.sgc-related h2 { font-size: 22px; }
.sgc-lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; }
.sgc-lightbox::backdrop { background: rgba(15, 23, 42, .85); }
.sgc-lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; display: block; }
.sgc-lightbox__close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Reviews */
.sgc-reviews__summary { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; margin: 0 0 24px; padding: 18px; background: var(--sgc-soft); border-radius: var(--sgc-radius); }
.sgc-reviews__score { display: grid; justify-items: start; gap: 4px; }
.sgc-reviews__score strong { font-size: 40px; line-height: 1; }
.sgc-reviews__bars { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 220px; display: grid; gap: 4px; font-size: 13px; }
.sgc-reviews__bars li { display: grid; grid-template-columns: 34px 1fr 26px; gap: 8px; align-items: center; }
.sgc-bar { height: 8px; background: var(--sgc-line); border-radius: 99px; overflow: hidden; }
.sgc-bar span { display: block; height: 100%; background: #f59e0b; }
.sgc-reviews__list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 18px; }
.sgc-review-item { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 0 0 18px; border-bottom: 1px solid var(--sgc-line); }
.sgc-review-item img { border-radius: 50%; }
.sgc-review-item__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 4px; }
.sgc-review-item__head time { font-size: 13px; }
.sgc-review-item__text { margin-top: 6px; }
.sgc-review-item__reply { margin-top: 10px; padding: 10px 14px; background: var(--sgc-soft); border-left: 3px solid var(--sgc-brand); border-radius: 6px; font-size: 15px; }
.sgc-review-form { max-width: 640px; }
.sgc-star-input { border: 0; padding: 0; margin: 0 0 14px; }
.sgc-star-input__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.sgc-star-input__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sgc-star-input__stars label { cursor: pointer; font-size: 30px; line-height: 1; color: #d7dde6; padding: 0 2px; }
.sgc-star-input__stars label::before { content: "★"; }
.sgc-star-input__stars input:checked ~ label, .sgc-star-input__stars label:hover, .sgc-star-input__stars label:hover ~ label { color: #f59e0b; }
.sgc-star-input__stars input:focus-visible + label { outline: 2px solid var(--sgc-brand); border-radius: 4px; }

/* Cart */
.sgc-cart-layout, .sgc-checkout__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--sgc-gap); align-items: start; }
.sgc-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sgc-line); }
.sgc-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 110px 40px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--sgc-line); }
.sgc-line__media img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--sgc-soft); }
.sgc-line__name { font-weight: 600; color: var(--sgc-ink) !important; text-decoration: none; }
.sgc-line__attrs { list-style: none; margin: 4px 0; padding: 0; font-size: 14px; color: var(--sgc-ink-2); }
.sgc-line__attrs span { color: var(--sgc-muted); }
.sgc-line__unit { display: block; font-size: 14px; }
.sgc-line__note { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--sgc-warn); }
.sgc-line__total { text-align: right; font-weight: 700; }
.sgc-cart-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.sgc-coupon { display: flex; gap: 8px; flex: 1; max-width: 420px; }
.sgc-coupon input { flex: 1; }
.js .sgc-update-cart { display: none; }
.sgc-cart-summary, .sgc-checkout__summary { position: sticky; top: 24px; }
.sgc-totals { margin: 0 0 18px; display: grid; }
.sgc-totals__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--sgc-line); }
.sgc-totals__row dt { color: var(--sgc-ink-2); }
.sgc-totals__row dd { margin: 0; text-align: right; font-weight: 600; }
.sgc-totals__row--shipping { flex-direction: column; gap: 6px; }
.sgc-totals__row--shipping dd { text-align: left; font-weight: 400; }
.sgc-totals__row--total { border-bottom: 0; padding-top: 14px; font-size: 20px; }
.sgc-totals__row--total dt { color: var(--sgc-ink); font-weight: 700; }
.sgc-totals__row--total dd { font-weight: 800; }
.sgc-incl-tax { display: block; font-size: 13px; font-weight: 400; }
.sgc-coupon-tag { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--sgc-ok); margin-right: 8px; }
.sgc-ship-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sgc-ship-options label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--sgc-line); border-radius: 10px; cursor: pointer; font-size: 15px; }
.sgc-ship-options label:has(input:checked) { border-color: var(--sgc-brand); background: color-mix(in srgb, var(--sgc-brand) 5%, transparent); }
.sgc-ship-options input { accent-color: var(--sgc-brand); margin: 0; }
.sgc-ship-options strong { margin-left: auto; }
.sgc-ship-dest { font-size: 13px; margin: 4px 0 0 !important; }
.sgc-calc { margin-top: 6px; font-size: 14px; }
.sgc-calc summary { cursor: pointer; color: var(--sgc-brand); }
.sgc-calc__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; padding-top: 10px; }
.sgc-calc__fields .sgc-field--full, .sgc-calc__fields .sgc-btn { grid-column: 1 / -1; }
.sgc-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--sgc-muted); margin: 12px 0 0 !important; text-align: center; }

/* Checkout */
.sgc-checkout__pre { display: grid; gap: 10px; margin: 0 0 18px; }
.sgc-disclosure { border: 1px solid var(--sgc-line); border-radius: var(--sgc-radius); background: var(--sgc-soft); }
.sgc-disclosure summary { cursor: pointer; padding: 14px 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
.sgc-disclosure summary::-webkit-details-marker { display: none; }
.sgc-disclosure__body { padding: 0 16px 16px; }
.sgc-checkout .sgc-coupon { max-width: none; }
.sgc-review__items { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.sgc-review__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.sgc-review__media { position: relative; }
.sgc-review__media img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--sgc-line); }
.sgc-review__qty { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--sgc-ink-2); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.sgc-review__name { font-size: 15px; font-weight: 600; display: grid; }
.sgc-review__name small { font-weight: 400; font-size: 13px; }
.sgc-review__price { font-weight: 600; }
.sgc-review.is-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }
.sgc-payment { border: 0; padding: 0; margin: 0 0 16px; }
.sgc-payment legend { padding: 0; }
.sgc-payment__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sgc-payment__item { border: 1px solid var(--sgc-line); border-radius: 10px; overflow: hidden; }
.sgc-payment__item.is-selected { border-color: var(--sgc-brand); box-shadow: 0 0 0 1px var(--sgc-brand); }
.sgc-payment__label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; flex-wrap: wrap; }
.sgc-payment__label input { accent-color: var(--sgc-brand); margin: 0; }
.sgc-payment__title { font-weight: 600; }
.sgc-payment__icons { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px; }
.sgc-pm { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--sgc-soft); border: 1px solid var(--sgc-line); color: var(--sgc-ink-2); }
.sgc-pm--gcash { background: #e8f1ff; color: #0b5fff; border-color: #c8dcff; }
.sgc-pm--maya { background: #e7fbef; color: #0a8a4a; border-color: #bff0d3; }
.sgc-pm--grabpay { background: #e6f7ec; color: #00b14f; border-color: #bdeccd; }
.sgc-pm--qrph { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.sgc-payment__box { padding: 0 14px 12px 42px; font-size: 14px; color: var(--sgc-ink-2); }
.sgc-payment__box p:last-child { margin: 0; }
.sgc-privacy { margin: 0 0 12px !important; }
.sgc-terms { margin: 0 0 14px; font-size: 14px; }
.sgc-place-order { margin-top: 6px; }
.sgc-login-required { max-width: 480px; margin: 0 auto; }

/* Thank you / pay */
.sgc-hero { text-align: center; padding: clamp(24px, 5vw, 48px) 16px; margin: 0 0 24px; border-radius: var(--sgc-radius); background: var(--sgc-soft); border: 1px solid var(--sgc-line); }
.sgc-hero h2 { font-size: clamp(22px, 3vw, 28px); }
.sgc-hero p { color: var(--sgc-ink-2); max-width: 560px; margin-left: auto; margin-right: auto; }
.sgc-hero__icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; margin: 0 0 12px; background: var(--sgc-info-bg); color: var(--sgc-info); }
.sgc-hero__icon .sgc-icon { width: 28px; height: 28px; }
.sgc-hero--success .sgc-hero__icon { background: var(--sgc-ok-bg); color: var(--sgc-ok); }
.sgc-hero--error .sgc-hero__icon { background: var(--sgc-bad-bg); color: var(--sgc-bad); }
.sgc-spin::before { content: ""; width: 26px; height: 26px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sgc-spin .8s linear infinite; }
.sgc-overview { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--sgc-line); border: 1px solid var(--sgc-line); border-radius: var(--sgc-radius); overflow: hidden; }
.sgc-overview li { background: var(--sgc-surface); padding: 14px 16px; display: grid; gap: 2px; }
.sgc-overview span { font-size: 13px; color: var(--sgc-muted); text-transform: uppercase; letter-spacing: .04em; }
.sgc-overview strong { word-break: break-word; }
.sgc-bank-accounts { display: grid; gap: 10px; }
.sgc-bank-account { display: grid; gap: 4px; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--sgc-soft); }
.sgc-bank-account div { display: flex; gap: 8px; flex-wrap: wrap; }
.sgc-bank-account dt { color: var(--sgc-muted); min-width: 130px; }
.sgc-bank-account dd { margin: 0; font-weight: 600; }
.sgc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sgc-table th, .sgc-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--sgc-line); vertical-align: top; }
.sgc-table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--sgc-muted); }
.sgc-table tfoot th { font-weight: 500; color: var(--sgc-ink-2); }
.sgc-table tfoot .sgc-row--total th, .sgc-table tfoot .sgc-row--total td { font-weight: 800; font-size: 17px; color: var(--sgc-ink); }
.sgc .sgc-num { text-align: right; white-space: nowrap; }
.sgc-actions { text-align: right; white-space: nowrap; }
.sgc-actions .sgc-btn + .sgc-btn { margin-left: 6px; }
.sgc-addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.sgc-addresses .sgc-panel { margin: 0; }
.sgc-address { font-style: normal; line-height: 1.6; }
.sgc-purchase-note { margin-top: 8px; padding: 8px 12px; background: var(--sgc-info-bg); border-radius: 8px; font-size: 14px; }
.sgc-purchase-note p { margin: 0; }
.sgc-dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sgc-dl { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--sgc-line); border-radius: 10px; }
.sgc-dl__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--sgc-info-bg); color: var(--sgc-info); display: flex; align-items: center; justify-content: center; flex: none; }
.sgc-dl__info { flex: 1; display: grid; min-width: 0; }
.sgc-dl__info strong { overflow-wrap: anywhere; }
.sgc-dl__info small { font-size: 13px; }
.sgc-dl.is-expired { opacity: .65; }
.sgc-pay-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; padding: 12px 0; border-bottom: 1px solid var(--sgc-line); margin: 0 0 16px !important; }
.sgc-pay-total strong { font-size: 24px; }

/* Account */
.sgc-auth-grid { display: grid; gap: var(--sgc-gap); grid-template-columns: minmax(0, 480px); justify-content: center; }
.has-register .sgc-auth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sgc-account__layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--sgc-gap); align-items: start; }
.sgc-account__nav { position: sticky; top: 24px; border: 1px solid var(--sgc-line); border-radius: var(--sgc-radius); padding: 12px; background: var(--sgc-surface); }
.sgc-account__user { display: flex; gap: 10px; align-items: center; padding: 6px 6px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--sgc-line); }
.sgc-account__user img { border-radius: 50%; }
.sgc-account__user div { display: grid; min-width: 0; }
.sgc-account__user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgc-account__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sgc-account__nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--sgc-ink-2) !important; text-decoration: none; font-weight: 500; }
.sgc-account__nav a:hover { background: var(--sgc-soft); }
.sgc-account__nav a.is-active { background: color-mix(in srgb, var(--sgc-brand) 10%, transparent); color: var(--sgc-brand) !important; font-weight: 600; }
.sgc-account__title { font-size: 24px; }
.sgc-account__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sgc-account__head .sgc-account__title { margin: 0; }
.sgc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 28px; }
.sgc-tile { display: grid; gap: 2px; padding: 18px; border: 1px solid var(--sgc-line); border-radius: var(--sgc-radius); text-decoration: none; color: var(--sgc-ink) !important; transition: box-shadow .2s; }
.sgc-tile:hover { box-shadow: var(--sgc-shadow); }
.sgc-tile .sgc-icon { color: var(--sgc-brand); width: 22px; height: 22px; margin-bottom: 6px; }
.sgc-tile strong { font-size: 26px; }
.sgc-tile span { color: var(--sgc-muted); font-size: 14px; }
.sgc-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.sgc-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sgc-timeline li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--sgc-line); }
.sgc-timeline time { font-size: 13px; color: var(--sgc-muted); }
.sgc-timeline p { margin: 0; }

/* Mini cart, drawer, toasts */
.sgc-mini { position: relative; display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 600; }
.sgc-mini .sgc-icon { width: 22px; height: 22px; }
.sgc-mini__count { position: absolute; top: -8px; left: 12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sgc-brand); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sgc-mini__count[hidden] { display: none; }
.sgc-float { position: fixed; right: 20px; bottom: 20px; z-index: 9990; transition: transform .25s, opacity .25s; }
.sgc-float.is-empty { transform: translateY(120px); opacity: 0; pointer-events: none; }
.sgc-mini--float { background: var(--sgc-ink); color: #fff !important; padding: 12px 18px 12px 16px; border-radius: 999px; box-shadow: var(--sgc-shadow-lg); }
.sgc-mini--float .sgc-mini__count { left: 26px; top: 4px; border: 2px solid var(--sgc-ink); }
.sgc-mini--float .sgc-mini__total { font-size: 15px; }
.sgc-mini.is-bump { animation: sgc-bump .4s; }
.sgc-drawer { position: fixed; inset: 0; z-index: 99999; }
.sgc-drawer[hidden] { display: none; }
.sgc-drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); animation: sgc-fade .2s; }
.sgc-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--sgc-surface); color: var(--sgc-ink); display: flex; flex-direction: column; box-shadow: var(--sgc-shadow-lg); animation: sgc-slide .25s ease-out; font-size: 16px; line-height: 1.5; }
.sgc-drawer__panel:focus { outline: none; }
.sgc-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--sgc-line); }
.sgc-drawer__head h2 { font-size: 18px; margin: 0; color: var(--sgc-ink); }
.sgc-drawer__body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.sgc-drawer__items { list-style: none; margin: 0; padding: 8px 18px; flex: 1; }
.sgc-drawer__item { display: grid; grid-template-columns: 64px 1fr 40px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--sgc-line); }
.sgc-drawer__media img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; }
.sgc-drawer__info { display: grid; font-size: 15px; }
.sgc-drawer__info a { color: var(--sgc-ink); font-weight: 600; text-decoration: none; }
.sgc-drawer__info small { font-size: 13px; }
.sgc-drawer__foot { padding: 16px 18px 20px; border-top: 1px solid var(--sgc-line); display: grid; gap: 8px; background: var(--sgc-soft); }
.sgc-drawer__foot p { margin: 0; }
.sgc-drawer__subtotal { display: flex; justify-content: space-between; font-size: 18px; }
.sgc-drawer .sgc-btn, .sgc-drawer .sgc-icon-btn { font-family: inherit; }
.sgc-empty--drawer { margin: 24px 18px; }
.sgc-toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100000; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.sgc-toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #0f172a; color: #fff; box-shadow: var(--sgc-shadow-lg); font-size: 15px; animation: sgc-up .25s ease-out; }
.sgc-toast a { color: #93c5fd; font-weight: 600; margin-left: auto; white-space: nowrap; }
.sgc-toast--error { background: #7f1d1d; }
.sgc-store-notice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9989; background: var(--sgc-brand); color: #fff; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 16px; font-size: 15px; }
.sgc-store-notice p { margin: 0; }
.sgc-store-notice a { color: #fff; }
.sgc-store-notice__close { background: rgba(255, 255, 255, .2); color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; font: inherit; font-size: 14px; }

@keyframes sgc-spin { to { transform: rotate(360deg); } }
@keyframes sgc-fade { from { opacity: 0; } }
@keyframes sgc-slide { from { transform: translateX(100%); } }
@keyframes sgc-up { from { transform: translateY(12px); opacity: 0; } }
@keyframes sgc-bump { 50% { transform: scale(1.12); } }

/* Responsive */
/* Subscriptions */
.sgc-sub-price { display: inline; }
.sgc-sub-per { font-size: .8em; font-weight: 600; color: var(--sgc-ink-2); white-space: nowrap; }
.sgc-sub-terms { display: block; font-size: 13px; font-weight: 500; color: var(--sgc-muted); margin-top: 2px; }
.sgc-line__sub { display: block; font-size: 13px; margin-top: 2px; }
.sgc-recurring { border: 1px solid var(--sgc-line); border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; background: var(--sgc-soft); }
.sgc-recurring__title { margin: 0 0 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sgc-muted); }
.sgc-recurring ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sgc-recurring small { display: block; margin-top: 2px; font-size: 13px; }
.sgc-block { display: block; }
.sgc-sub-due { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 14px 0 18px; }
.sgc-sub-due p { margin: 4px 0 0; }
.sgc-sub-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 20px; margin: 0; }
.sgc-sub-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--sgc-muted); margin: 0 0 2px; }
.sgc-sub-facts dd { margin: 0; font-weight: 600; }
.sgc-sub-items { list-style: none; margin: 0 0 12px; padding: 0; }
.sgc-sub-items li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--sgc-line); }
.sgc-sub-items .sgc-small { margin-top: 4px; }
.sgc-sub-items .sgc-num { white-space: nowrap; font-weight: 600; }
.sgc-sub-actions form { margin: 0; }
.sgc-btn--danger { color: var(--sgc-bad) !important; border-color: #fecaca; }
.sgc-btn--danger:hover { background: var(--sgc-bad-bg); }

@media (max-width: 1024px) {
	.sgc-grid { --sgc-cols: 3 !important; }
	.sgc-cart-layout, .sgc-checkout__layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 900px) {
	.sgc-shop.has-filters .sgc-shop__layout { grid-template-columns: minmax(0, 1fr); }
	.sgc-filters-toggle { display: inline-flex !important; }
	.sgc-filters { position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); z-index: 99998; background: var(--sgc-surface); padding: 18px; overflow-y: auto; transform: translateX(-105%); transition: transform .25s; box-shadow: var(--sgc-shadow-lg); }
	.sgc-filters.is-open { transform: none; }
	.sgc-filters__head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
	.sgc-filters__backdrop:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 99997; }
	.sgc-cart-layout, .sgc-checkout__layout { grid-template-columns: minmax(0, 1fr); }
	.sgc-cart-summary, .sgc-checkout__summary { position: static; }
	.sgc-account__layout { grid-template-columns: minmax(0, 1fr); }
	.sgc-account__nav { position: static; }
	.sgc-account__nav ul { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
	.sgc-account__nav a { white-space: nowrap; }
	.sgc-account__user { display: none; }
}
@media (max-width: 760px) {
	.sgc-grid { --sgc-cols: 2 !important; }
	.sgc-product__top { grid-template-columns: minmax(0, 1fr); }
	.has-register .sgc-auth-grid { grid-template-columns: minmax(0, 1fr); }
	.sgc-line { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "media info remove" "media qty total"; row-gap: 10px; }
	.sgc-line__media { grid-area: media; align-self: start; }
	.sgc-line__media img { width: 72px; height: 72px; }
	.sgc-line__info { grid-area: info; }
	.sgc-line__qty { grid-area: qty; }
	.sgc-line__total { grid-area: total; align-self: center; text-align: right; white-space: nowrap; }
	.sgc-line__remove { grid-area: remove; align-self: start; justify-self: end; }
	.sgc-toasts { bottom: 88px; }
	.sgc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.sgc-tile { padding: 12px; }
	.sgc-tile strong { font-size: 20px; }
	.sgc-table--stack thead { display: none; }
	.sgc-table--stack tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--sgc-line); }
	.sgc-table--stack td { border: 0; padding: 0; }
	.sgc-table--stack td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--sgc-muted); text-transform: uppercase; letter-spacing: .04em; }
	.sgc-table--stack .sgc-num { text-align: left; white-space: normal; }
	.sgc-table--stack .sgc-actions { grid-column: 1 / -1; text-align: left; }
	.sgc-sort { flex: 1 1 100%; order: 3; }
	.sgc-sort select { width: 100%; }
	.sgc-store-notice { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
	.sgc-fields, .sgc-calc__fields { grid-template-columns: minmax(0, 1fr); }
	.sgc-card__body { padding: 10px; }
	.sgc-card__title { font-size: 15px !important; }
	.sgc-card .sgc-btn { font-size: 14px; padding: 8px 10px; }
	.sgc-card .sgc-btn .sgc-icon { display: none; }
	.sgc-card .sgc-price { font-size: 15px; }
	.sgc-card .sgc-price .sgc-amount { white-space: nowrap; }
	.sgc-float { right: 12px; bottom: 12px; }
	.sgc-reviews__summary { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.sgc *, .sgc-drawer *, .sgc-float, .sgc-toast { animation: none !important; transition: none !important; }
}

/* Script states */
html.sgc-lock, html.sgc-lock body { overflow: hidden; }
[data-sgc-cart][aria-busy="true"], [data-sgc-review-wrap][aria-busy="true"], .sgc-drawer__item[aria-busy="true"] { opacity: .55; pointer-events: none; transition: opacity .15s; }
.sgc-variation-desc { margin: 0 0 8px; color: var(--sgc-muted); }
.sgc-variation-desc p { margin: 0 0 6px; }
.sgc-notice ul { margin: 0; padding-left: 18px; }
html.sgc-has-notice .sgc-float { bottom: 72px; }
.sgc [hidden], .sgc-drawer [hidden] { display: none !important; }

/* Variation swatches (buttons / colours) */
.sgc-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 4px; }
html:not(.js) .sgc-swatches { display: none; }
html.js .sgc-swatch-select { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.sgc-swatch { min-width: 44px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--sgc-line-2); border-radius: 10px; background: var(--sgc-surface); color: var(--sgc-ink); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.sgc-swatch:hover { border-color: var(--sgc-ink-2); }
.sgc-swatch:focus-visible { outline: 2px solid var(--sgc-brand); outline-offset: 2px; }
.sgc-swatch[aria-checked="true"] { border-color: var(--sgc-brand); box-shadow: 0 0 0 1px var(--sgc-brand); background: var(--sgc-info-bg); }
.sgc-swatch.is-unavailable { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.sgc-swatch--color { width: 40px; min-width: 40px; height: 40px; padding: 0; border-radius: 50%; background: var(--sgc-swatch, #ccc); box-shadow: inset 0 0 0 3px var(--sgc-surface); }
.sgc-swatch--color[aria-checked="true"] { background: var(--sgc-swatch, #ccc); box-shadow: inset 0 0 0 3px var(--sgc-surface), 0 0 0 2px var(--sgc-brand); }
.sgc-swatch--color.is-unavailable { text-decoration: none; background-image: linear-gradient(to top right, transparent calc(50% - 1px), var(--sgc-bad) 50%, transparent calc(50% + 1px)); }
.sgc-swatch-chosen { font-weight: 400; color: var(--sgc-muted); }
.sgc-swatch-chosen:not(:empty)::before { content: "· "; }
