/**
 * Storefront — public shop styles.
 * Uses the shared brand tokens defined in style.css.
 */

.seraj-shop { --shop-radius: 18px; }

.shop-hero {
	padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
	background: linear-gradient(160deg, var(--seraj-surface-2, #f4f1ea), transparent);
}
.shop-hero__eyebrow { letter-spacing: .18em; text-transform: uppercase; font-size: .74rem; opacity: .7; margin: 0 0 .6rem; }
.shop-hero__title { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 .8rem; }
.shop-hero__lede { max-width: 46ch; font-size: 1.05rem; opacity: .82; }
.shop-hero__meta { font-size: .9rem; opacity: .7; }

.shop-section__title { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 0 0 1.4rem; }
.shop-page__title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 2rem 0 1.2rem; }

/* Grids ------------------------------------------------------------- */
.shop-grid {
	display: grid;
	gap: clamp(1rem, 2vw, 1.6rem);
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.shop-storelist {
	display: grid;
	gap: 1.2rem;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Cards -------------------------------------------------------------- */
.shop-card { display: flex; flex-direction: column; }
.shop-card__media {
	position: relative; display: block; overflow: hidden;
	aspect-ratio: 4 / 5; border-radius: var(--shop-radius);
	background: var(--seraj-surface-2, #efece5);
}
.shop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shop-card:hover .shop-card__media img { transform: scale(1.04); }
.shop-card.is-soldout .shop-card__media img { filter: grayscale(1); opacity: .7; }
.shop-card__flag {
	position: absolute; top: .7rem; left: .7rem; padding: .25rem .6rem;
	border-radius: 999px; font-size: .74rem; font-weight: 600;
	background: var(--seraj-accent, #0f5132); color: #fff;
}
.shop-card__flag--muted { background: rgba(0, 0, 0, .6); }
.shop-card__body { padding: .8rem .2rem 0; }
.shop-card__title { font-size: 1rem; margin: 0 0 .3rem; line-height: 1.3; }
.shop-card__title a { text-decoration: none; color: inherit; }
.shop-card__price { margin: 0; font-size: .95rem; }
.shop-card__price s { opacity: .5; margin-left: .4rem; font-size: .85em; }

.shop-storecard {
	display: block; text-decoration: none; color: inherit;
	border-radius: var(--shop-radius); overflow: hidden;
	background: var(--seraj-surface, #fff);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
}
.shop-storecard__cover { display: block; aspect-ratio: 16 / 9; background: var(--seraj-surface-2, #efece5); }
.shop-storecard__cover img { width: 100%; height: 100%; object-fit: cover; }
.shop-storecard__body { display: block; padding: 1rem 1.1rem 1.2rem; }
.shop-storecard__name { display: block; font-size: 1.05rem; }
.shop-storecard__tag { display: block; opacity: .75; font-size: .9rem; margin-top: .2rem; }
.shop-storecard__meta { display: block; margin-top: .6rem; font-size: .8rem; opacity: .6; }

/* Store hero --------------------------------------------------------- */
.shop-store-hero { position: relative; padding: clamp(2rem, 5vw, 4rem) 0; }
.shop-store-hero__cover { position: absolute; inset: 0; overflow: hidden; }
.shop-store-hero__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.25)); }
.shop-store-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.shop-store-hero.has-cover .shop-store-hero__inner { position: relative; color: #fff; padding-top: 6rem; }
.shop-store-hero__logo img { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; }
.shop-store-hero__title { font-size: clamp(1.8rem, 4vw, 3rem); margin: .6rem 0 .3rem; }
.shop-store-hero__tag { opacity: .85; margin: 0; }
.shop-store-info { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 3rem; }
.shop-store-info h2 { font-size: 1.05rem; margin: 0 0 .4rem; }

/* Product ------------------------------------------------------------ */
.shop-product { padding: 2rem 0 4rem; }
.shop-crumbs { font-size: .84rem; opacity: .7; display: flex; gap: .4rem; margin-bottom: 1.2rem; }
.shop-product__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .shop-product__grid { grid-template-columns: 1.1fr .9fr; } }
.shop-product__hero { margin: 0; border-radius: var(--shop-radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--seraj-surface-2, #efece5); }
.shop-product__hero img { width: 100%; height: 100%; object-fit: cover; }
.shop-product__thumbs { display: flex; gap: .5rem; margin-top: .7rem; flex-wrap: wrap; }
.shop-product__thumb { border: 0; padding: 0; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.shop-product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-product__shop { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; opacity: .7; margin: 0; }
.shop-product__title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: .3rem 0 .8rem; }
.shop-product__price { font-size: 1.4rem; margin: 0 0 .3rem; }
.shop-product__price s { opacity: .5; font-size: .7em; margin-left: .5rem; }
.shop-product__stock { font-size: .88rem; color: var(--seraj-accent, #0f5132); margin: 0 0 1rem; }
.shop-product__stock.is-out { color: #a12b2b; }
.shop-product__lede { opacity: .85; }
.shop-product__highlights { padding-left: 1.1rem; opacity: .85; font-size: .93rem; }
.shop-product__facts { display: grid; gap: .7rem; margin-top: 1.4rem; font-size: .9rem; }
.shop-product__facts dt { font-weight: 600; }
.shop-product__facts dd { margin: 0; opacity: .8; }
.shop-product__story { margin-top: 3rem; max-width: 70ch; }

/* Forms and buttons -------------------------------------------------- */
.shop-field { display: block; margin-bottom: 1rem; }
.shop-field > span { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .3rem; }
.shop-field input, .shop-field select, .shop-field textarea {
	width: 100%; padding: .7rem .8rem; border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, .16); background: #fff; font: inherit;
}
.shop-field--qty input { max-width: 110px; }
.shop-field--wide { grid-column: 1 / -1; }
.shop-fields { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.shop-err { display: block; color: #a12b2b; font-size: .82rem; font-style: normal; margin-top: .25rem; }
.shop-hp { position: absolute; left: -9999px; }

.shop-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
	font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.shop-btn--primary { background: var(--seraj-accent, #0f5132); color: #fff; }
.shop-btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.shop-btn--block { width: 100%; }
.shop-btn[disabled] { opacity: .45; cursor: not-allowed; }
.shop-link { background: none; border: 0; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.shop-link--block { display: block; text-align: center; margin-top: .8rem; }
.shop-buy__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }

/* Notices ------------------------------------------------------------ */
.shop-notice { padding: .8rem 1rem; border-radius: 12px; font-size: .92rem; }
.shop-notice--ok { background: rgba(15, 81, 50, .1); }
.shop-notice--warn { background: rgba(161, 43, 43, .1); }
.shop-empty, .shop-empty-state { opacity: .75; padding: 2rem 0; }

/* Cart / checkout ---------------------------------------------------- */
.shop-cart, .shop-checkout, .shop-order { padding-bottom: 4rem; }
.shop-cart__layout, .shop-checkout__layout, .shop-order__grid {
	display: grid; gap: clamp(1.2rem, 3vw, 2.4rem); grid-template-columns: 1fr;
}
@media (min-width: 900px) {
	.shop-cart__layout, .shop-checkout__layout, .shop-order__grid { grid-template-columns: 1.6fr .9fr; align-items: start; }
}
.shop-cart__group { margin-bottom: 2rem; }
.shop-cart__shop { font-size: 1rem; margin: 0 0 .8rem; }
.shop-line { display: grid; grid-template-columns: 64px 1fr auto auto; gap: .9rem; align-items: center; padding: .8rem 0; border-top: 1px solid rgba(0,0,0,.08); }
.shop-line.is-out { opacity: .6; }
.shop-line__media img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.shop-line__title { display: block; text-decoration: none; color: inherit; font-weight: 600; }
.shop-line__variant, .shop-line__warn { display: block; font-size: .82rem; opacity: .7; }
.shop-line__warn { color: #a12b2b; opacity: 1; }
.shop-line__qty input { width: 68px; padding: .45rem; border-radius: 10px; border: 1px solid rgba(0,0,0,.16); }
.shop-cart__subtotals { margin: 1rem 0 0; font-size: .9rem; }
.shop-cart__subtotals div { display: flex; justify-content: space-between; padding: .2rem 0; }
.shop-cart__subtotals dt, .shop-cart__subtotals dd { margin: 0; }
.shop-cart__subtotals .is-total { font-weight: 700; border-top: 1px solid rgba(0,0,0,.1); margin-top: .4rem; padding-top: .5rem; }
.shop-cart__actions { display: flex; gap: 1rem; align-items: center; }

.shop-summary, .shop-panel {
	background: var(--seraj-surface, #fff); border-radius: var(--shop-radius);
	padding: clamp(1.1rem, 2.4vw, 1.6rem); box-shadow: 0 12px 30px rgba(0,0,0,.06);
}
.shop-panel { margin-bottom: 1.4rem; }
.shop-panel h2, .shop-summary h2 { font-size: 1.05rem; margin: 0 0 1rem; }
.shop-summary__group { padding-bottom: .8rem; margin-bottom: .8rem; border-bottom: 1px solid rgba(0,0,0,.08); }
.shop-summary__line { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; margin: .3rem 0; }
.shop-summary__line--muted { opacity: .65; }
.shop-summary__total { display: flex; justify-content: space-between; font-size: 1.15rem; margin: 1rem 0; }
.shop-summary__note { font-size: .82rem; opacity: .7; }

.shop-methods { display: grid; gap: .7rem; margin-bottom: 1rem; }
.shop-method { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid rgba(0,0,0,.14); border-radius: 14px; cursor: pointer; }
.shop-method strong { display: block; }
.shop-method em { font-style: normal; font-size: .85rem; opacity: .72; }
.shop-terms { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }

/* Order tracking ----------------------------------------------------- */
.shop-order__eyebrow { letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; opacity: .65; margin: 2rem 0 0; }
.shop-order__sub { opacity: .75; }
.shop-track { display: flex; list-style: none; padding: 0; margin: 1.5rem 0; gap: .4rem; flex-wrap: wrap; }
.shop-track__step { flex: 1 1 120px; font-size: .82rem; padding-top: .8rem; border-top: 3px solid rgba(0,0,0,.12); opacity: .55; }
.shop-track__step.is-done { border-top-color: var(--seraj-accent, #0f5132); opacity: 1; }
.shop-order__address { font-style: normal; line-height: 1.7; }
.shop-order__siblings { padding-left: 1.1rem; font-size: .9rem; }
.shop-pager { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; }
.shop-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; padding: .5rem .75rem; border: 1px solid var(--seraj-border, rgba(0,0,0,.12)); border-radius: .5rem; text-decoration: none; }
.shop-pager .page-numbers.current { background: var(--seraj-accent, #0f766e); color: #fff; border-color: transparent; }

/* Discovery, discount codes and parcels ----------------------------- */
.shop-controls { display: grid; gap: .8rem; margin-bottom: 2rem; }
.shop-controls__row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.shop-controls__row--fine { font-size: .9rem; opacity: .9; }
.shop-controls__search { flex: 1 1 240px; }
.shop-controls__search input,
.shop-controls__select select,
.shop-controls__price input {
	width: 100%; padding: .7rem .85rem; border: 1px solid rgba(0,0,0,.14);
	border-radius: 12px; font: inherit; background: #fff;
}
.shop-controls__select { flex: 0 1 190px; }
.shop-controls__price { display: flex; gap: .4rem; align-items: center; }
.shop-controls__price span { white-space: nowrap; }
.shop-controls__price input { width: 92px; }
.shop-controls__check { display: inline-flex; gap: .4rem; align-items: center; }
.shop-controls__count { margin: 0 0 0 auto; opacity: .7; }
.shop-tagrow { display: flex; gap: .4rem; flex-wrap: wrap; }
.shop-chip {
	display: inline-block; padding: .35rem .75rem; border-radius: 999px;
	border: 1px solid rgba(0,0,0,.14); font-size: .85rem; text-decoration: none;
}
.shop-chip.is-active { background: currentColor; }
.shop-chip.is-active { color: inherit; border-color: currentColor; font-weight: 600; }

.shop-codeform { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; margin-top: 1.6rem; }
.shop-codeform__field { display: grid; gap: .3rem; font-size: .9rem; }
.shop-codeform__field input { padding: .7rem .85rem; border: 1px solid rgba(0,0,0,.14); border-radius: 12px; font: inherit; text-transform: uppercase; }
.shop-code__applied { margin: .4rem 0; font-size: .92rem; }
.shop-hp { position: absolute; left: -9999px; }

.shop-parcels__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.shop-parcels__list li { padding-bottom: .6rem; border-bottom: 1px dashed rgba(0,0,0,.12); }
.shop-parcels__list li:last-child { border-bottom: 0; }

/* Look & feel tokens ------------------------------------------------- */
.shop-look-root { --shop-accent: var(--seraj-primary, #0f766e); --shop-ratio: 4 / 5; }
.shop-look-root .shop-card__media { aspect-ratio: var(--shop-ratio); border-radius: 14px; }
.shop-look-root .shop-grid { grid-template-columns: repeat(var(--shop-cols, auto-fill), minmax(min(220px, 100%), 1fr)); }
.shop-look--bordered .shop-card { border: 1px solid rgba(0, 0, 0, .1); border-radius: 16px; padding: .6rem; }
.shop-look--bordered .shop-card__body { padding-inline: .5rem; }
.shop-look--flat .shop-card__media { border-radius: 4px; }
.shop-look--flat .shop-card { box-shadow: none; }

/* Badges & ratings --------------------------------------------------- */
.shop-card__badge {
	display: inline-block; margin: 0 .3rem .35rem 0; padding: .12rem .5rem;
	font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
	border-radius: 999px; border: 1px solid var(--shop-accent); color: var(--shop-accent);
}
.shop-card__badge--sponsored { background: var(--shop-accent); color: #fff; border-color: transparent; }
.shop-rating, .shop-product__rating { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; }
.shop-rating__stars, .shop-product__rating .shop-rating__stars { color: var(--shop-accent, #c2703d); letter-spacing: .05em; }
.shop-product__rating-link { text-decoration: none; }
.shop-product__rating-link:hover { text-decoration: underline; }

/* Reviews ------------------------------------------------------------ */
.shop-reviews { margin-top: clamp(2rem, 5vw, 3.5rem); }
.shop-reviews__grid { display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); grid-template-columns: minmax(220px, 300px) 1fr; align-items: start; }
@media (max-width: 780px) { .shop-reviews__grid { grid-template-columns: 1fr; } }
.shop-reviews__score { font-size: 2.6rem; line-height: 1; margin: 0 0 .3rem; }
.shop-reviews__score span { font-size: 1rem; opacity: .6; }
.shop-reviews__count { font-size: .9rem; opacity: .7; margin: 0 0 1rem; }
.shop-reviews__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.shop-reviews__bars li { display: grid; grid-template-columns: 2.4rem 1fr 2.4rem; gap: .5rem; align-items: center; font-size: .8rem; }
.shop-reviews__bar { display: block; height: 7px; border-radius: 999px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.shop-reviews__bar span { display: block; height: 100%; background: var(--shop-accent, #c2703d); }
.shop-review { padding: 1rem 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.shop-review__title { font-size: 1.05rem; margin: .2rem 0; }
.shop-review__meta { font-size: .82rem; opacity: .7; display: flex; gap: .6rem; flex-wrap: wrap; }
.shop-review__verified { color: var(--shop-accent, #0f766e); font-weight: 600; }
.shop-review-form { margin-top: 1.6rem; padding: 1.2rem; border: 1px solid rgba(0, 0, 0, .1); border-radius: 16px; }
.shop-review-form__cats { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.shop-review-form__badge { font-size: .82rem; color: var(--shop-accent, #0f766e); }
.shop-review-form__note { font-size: .78rem; opacity: .65; margin-top: .6rem; }

/* Related rails ------------------------------------------------------ */
.shop-related { margin-top: clamp(2rem, 5vw, 3.5rem); }
.shop-featured-rail .shop-section__title::after {
	content: ''; display: block; width: 48px; height: 3px; margin-top: .5rem;
	background: var(--shop-accent, #c2703d); border-radius: 999px;
}

/* ------------------------------------------------------------------ */
/* Marketplace home — sticky search, tiles, rails, trust strip         */
/* ------------------------------------------------------------------ */
.shop-searchbar {
	position: sticky; top: 0; z-index: 20;
	background: var(--seraj-surface, #fff);
	border-bottom: 1px solid rgba(0, 0, 0, .08);
	padding: .6rem 0;
}
.shop-searchbar__form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.shop-searchbar__form input[type="search"] { flex: 1 1 14rem; min-width: 0; padding: .65rem .9rem; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .16); }
.shop-searchbar__form select { padding: .6rem .8rem; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .16); background: transparent; }

.shop-cats__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.shop-cat { display: block; text-decoration: none; color: inherit; text-align: center; }
.shop-cat__media { display: block; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: rgba(0, 0, 0, .05); }
.shop-cat__media img { width: 100%; height: 100%; object-fit: cover; }
.shop-cat__name { display: block; margin-top: .5rem; font-weight: 600; }
.shop-cat__count { display: block; font-size: .82rem; opacity: .7; }

.shop-rail__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.shop-rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; -webkit-overflow-scrolling: touch; }
.shop-rail__item { scroll-snap-align: start; }
@media (min-width: 900px) {
	.shop-rail__track { grid-auto-flow: row; grid-template-columns: repeat(var(--shop-cols, 4), minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
}

.shop-trust__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; }
.shop-trust__item { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: .92rem; }

/* Basket — remove/undo notice */
.shop-notice--undo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.shop-notice__undo { margin: 0; }
.shop-notice__undo button { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; color: inherit; font: inherit; }

/* Checkout — live validation */
.shop-field.is-invalid input,
.shop-field.is-invalid textarea,
.shop-terms.is-invalid,
[aria-invalid="true"] { border-color: rgba(161, 43, 43, .8); }
.shop-pay__hint { margin: .5rem 0 0; font-size: .85rem; opacity: .8; }
.shop-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Buttons awaiting a page transition after the sign-in prompt */
.shop-btn.is-busy { opacity: .65; pointer-events: none; }

/* ------------------------------------------------------------------ */
/* Enhancement layer: save buttons, quick add, basket drawer           */
/* ------------------------------------------------------------------ */

.shop-card { position: relative; }
.shop-card__save {
	position: absolute; top: .55rem; right: .55rem; z-index: 2;
	width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
	border: 0; border-radius: 999px; cursor: pointer;
	background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
	color: var(--seraj-ink, #1d1d1f);
	transition: transform .16s ease, background .16s ease, color .16s ease;
}
.shop-card__save svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.7; }
.shop-card__save:hover { transform: scale(1.07); }
.shop-card__save.is-on { background: var(--seraj-accent, #a8442a); color: #fff; }
.shop-card__save.is-on svg { fill: currentColor; }

.shop-card__addform { margin: .6rem 0 0; }
.shop-card__add { width: 100%; text-align: center; }
.shop-btn--sm { padding: .45rem .8rem; font-size: .88rem; }
.shop-grid--account { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }

/* Basket drawer ----------------------------------------------------- */
.shop-drawer[hidden] { display: none; }
.shop-drawer { position: fixed; inset: 0; z-index: 1200; }
.shop-drawer__scrim { position: absolute; inset: 0; background: rgba(15, 15, 18, .45); opacity: 0; transition: opacity .22s ease; }
.shop-drawer.is-open .shop-drawer__scrim { opacity: 1; }
.shop-drawer__panel {
	position: absolute; top: 0; right: 0; height: 100%; width: min(400px, 92vw);
	display: flex; flex-direction: column;
	background: var(--seraj-surface, #fff); box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
	transform: translateX(100%); transition: transform .26s cubic-bezier(.22, .8, .3, 1);
}
.shop-drawer.is-open .shop-drawer__panel { transform: none; }
.shop-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.shop-drawer__heading { margin: 0; font-size: 1.05rem; }
.shop-drawer__close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: inherit; }
.shop-drawer__content { flex: 1 1 auto; overflow-y: auto; padding: 1rem 1.15rem; }
.shop-drawer__empty { opacity: .75; }
.shop-drawer__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.shop-drawer__line { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: .75rem; align-items: start; }
.shop-drawer__thumb img { width: 3.2rem; height: 3.2rem; object-fit: cover; border-radius: 10px; }
.shop-drawer__body { display: grid; gap: .15rem; min-width: 0; }
.shop-drawer__title { text-decoration: none; color: inherit; font-weight: 600; }
.shop-drawer__variant, .shop-drawer__meta { font-size: .84rem; opacity: .72; }
.shop-drawer__amount { font-weight: 600; white-space: nowrap; }
.shop-drawer__total { display: flex; justify-content: space-between; margin: 1.1rem 0 0; padding-top: .8rem; border-top: 1px solid rgba(0, 0, 0, .08); }
.shop-drawer__foot { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: 1rem 1.15rem; border-top: 1px solid rgba(0, 0, 0, .08); }
.shop-drawer__foot .shop-btn { text-align: center; }

.shop-fab.is-empty { display: none; }
.shop-live { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%) translateY(1rem); z-index: 1300; pointer-events: none; opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.shop-live.is-on { opacity: 1; transform: translateX(-50%); }
.shop-live span { display: inline-block; padding: .55rem 1rem; border-radius: 999px; background: rgba(20, 20, 24, .92); color: #fff; font-size: .9rem; }

.shop-results.is-loading { opacity: .5; transition: opacity .16s ease; }

@media (prefers-reduced-motion: reduce) {
	.shop-drawer__panel, .shop-drawer__scrim, .shop-live, .shop-card__save { transition: none; }
}

/* Cart polish -------------------------------------------------------- */
.shop-cart__lines { display: grid; gap: 1.2rem; }
.shop-cart__group {
	background: var(--seraj-surface, #fff); border-radius: var(--shop-radius);
	padding: clamp(1rem, 2.2vw, 1.4rem); box-shadow: 0 10px 26px rgba(0,0,0,.05);
	margin-bottom: 0;
}
.shop-cart__shop a { color: inherit; text-decoration: none; }
.shop-cart__shop a:hover { text-decoration: underline; }

.shop-line {
	grid-template-columns: 64px minmax(0, 1fr) auto;
	grid-template-areas: "media body price" "media qty remove";
	row-gap: .5rem;
}
@media (min-width: 720px) {
	.shop-line {
		grid-template-columns: 64px minmax(0, 1fr) auto auto auto;
		grid-template-areas: "media body qty price remove";
		align-items: center;
	}
}
.shop-line__media { grid-area: media; display: block; width: 64px; height: 64px; border-radius: 10px; background: rgba(0,0,0,.05); overflow: hidden; }
.shop-line__body { grid-area: body; min-width: 0; }
.shop-line__qty { grid-area: qty; display: inline-flex; align-items: center; }
.shop-line__price { grid-area: price; font-weight: 600; white-space: nowrap; text-align: right; }
.shop-line__remove { grid-area: remove; justify-self: start; }
@media (min-width: 720px) { .shop-line__remove { justify-self: end; } }

.shop-line__qty input {
	width: 74px; padding: .5rem .6rem; border-radius: 10px; font: inherit;
	background: var(--seraj-surface, #fff); border: 1px solid rgba(0,0,0,.16); color: inherit;
}
.shop-line__qty input:focus-visible { outline: 2px solid var(--seraj-accent, #0f5132); outline-offset: 1px; }

.shop-line__remove {
	display: inline-flex; align-items: center; gap: .4rem;
	padding: .4rem .7rem; border: 1px solid rgba(0,0,0,.14); border-radius: 999px;
	background: transparent; color: inherit; font: inherit; font-size: .85rem;
	line-height: 1; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.shop-line__remove:hover { background: rgba(161,43,43,.1); border-color: rgba(161,43,43,.35); color: #a12b2b; }
.shop-line__remove span[aria-hidden] { font-size: 1.05rem; }

.shop-cart__note { display: grid; gap: .35rem; margin-top: 1rem; font-size: .88rem; }
.shop-cart__note textarea {
	width: 100%; padding: .7rem .85rem; font: inherit; color: inherit;
	background: var(--seraj-surface, #fff); border: 1px solid rgba(0,0,0,.14);
	border-radius: 12px; resize: vertical; box-sizing: border-box;
}
.shop-cart__note textarea:focus-visible { outline: 2px solid var(--seraj-accent, #0f5132); outline-offset: 1px; }

.shop-cart__actions { flex-wrap: wrap; margin-top: .4rem; }
.shop-codeform { align-items: end; }
.shop-codeform__field input { min-width: 220px; box-sizing: border-box; }

/* Marketplace directory ---------------------------------------------- */
.shop-storelist { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.shop-storecard__cover { position: relative; display: grid; place-items: center; }
.shop-storecard__initial {
	font-size: 2rem; font-weight: 700; opacity: .35; line-height: 1;
}
