:root {
  --surface-0: #ffffff;
  --surface-50: #f8fafc;
  --surface-100: #f1f5f9;
  --surface-200: #e2e8f0;
  --surface-300: #cbd5e1;
  --surface-400: #94a3b8;
  --surface-500: #64748b;
  --surface-600: #475569;
  --surface-700: #334155;
  --surface-900: #0f172a;
  --accent: #4f46e5;
  /* A neutral feather-style "image" icon shown behind any empty product
     image slot (product cards, product detail) instead of a bare color
     block — same idea as the Slides admin preview's own SVG placeholder. */
  --placeholder-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--global-font-family, system-ui, -apple-system, "Segoe UI", sans-serif);
  color: var(--surface-900);
  background: var(--surface-0);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.store-header {
  border-bottom: 1px solid var(--surface-200);
  background: var(--header-bg, transparent);
  color: var(--header-text-color, var(--surface-900));
  font-family: var(--header-font-family, inherit);
  font-size: var(--header-font-size, inherit);
}

.store-header--sticky {
  position: sticky;
  top: 0;
  z-index: 50;
}

.store-header__desktop,
.store-header__mobile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.store-header__mobile { display: none; }

.store-header__side {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.store-header__side--left { justify-content: flex-start; }
.store-header__side--center { justify-content: center; }
.store-header__side--right { justify-content: flex-end; }

.store-header__zone { display: flex; align-items: center; }

.store-header__name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--header-heading-color, inherit);
}

.store-header__search {
  width: 100%;
  max-width: 20rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--header-search-border-color, var(--surface-200));
  background: var(--header-search-bg, var(--surface-50));
  color: inherit;
  font: inherit;
}

.store-header__zone--login-cart {
  gap: 1rem;
}

/* Header nav pages (see the admin panel's Header > Navigation Pages —
 * footer_pages rows tagged category_key 'header') — plain text links next
 * to the login/cart icons, each opening that page's own /pages/:slug route. */
.store-header__pages {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-right: 0.5rem;
}
.store-header__page-link {
  color: var(--header-navlink-color, var(--header-text-color, var(--surface-700)));
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--header-navlink-transition, 200ms) ease;
}
.store-header__page-link:hover { color: var(--header-navlink-hover-color, var(--header-icon-color, var(--accent))); }
/* Mobile layout has no working nav menu yet (see render/header.ts's
 * hamburgerZone — a visual placeholder only), so there's nowhere to fit
 * these links without crowding the narrow header; they show on desktop only. */
.store-header__mobile .store-header__pages { display: none; }

.store-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--header-icon-color, var(--surface-600));
  cursor: pointer;
}

.store-header__account { position: relative; }

.store-header__avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.store-header__avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--header-icon-color, var(--accent));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.store-header__cart {
  position: relative;
}

.store-header__badge {
  position: absolute;
  top: -0.4rem;
  right: -0.5rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--header-badge-bg, var(--accent));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
}

.store-header__hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  color: var(--header-icon-color, var(--surface-600));
  cursor: pointer;
}

@media (max-width: 48rem) {
  .store-header__desktop { display: none; }
  .store-header__mobile { display: flex; }
}

.store-slides {
  position: relative;
  width: auto;
  aspect-ratio: 21 / 9;
  max-height: 34rem;
  overflow: hidden;
  background: var(--surface-50);
  border-radius: 1.25rem;
  margin: var(--slides-margin-top, 0) var(--slides-margin-right, 0) var(--slides-margin-bottom, 0) var(--slides-margin-left, 0);
}

/* A flex row moved with `transform: translateX(...)` (see slidesScript()) —
   real sliding motion, not a crossfade, with a smooth eased transition. */
.store-slides__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.store-slides__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

/* object-fit: cover on a fixed responsive aspect-ratio container is what
   makes any uploaded image size/shape fill the banner without distortion. */
.store-slides__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-slides__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.85);
  color: var(--surface-900);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.store-slides__arrow:hover { background: rgb(255 255 255 / 1); }
.store-slides__arrow--prev { left: 1rem; }
.store-slides__arrow--next { right: 1rem; }

.store-slides__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.store-slides__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  background: rgb(255 255 255 / 0.6);
  cursor: pointer;
  padding: 0;
}

.store-slides__dot--active { background: rgb(255 255 255 / 1); }

@media (max-width: 40rem) {
  .store-slides { aspect-ratio: 4 / 3; }
  .store-slides__arrow { width: 2.25rem; height: 2.25rem; font-size: 1.25rem; }
}

/* The homepage's "Why Choose Us" section — two fixed cards (Our Process /
   Our Research), driven by CSS custom properties the Customization page's
   theme form sets inline (see render/why-choose-us.ts's
   renderWhyChooseUsThemeStyle), with sensible fallbacks here so a site with
   no customization saved yet still renders correctly. */
.why-choose-us {
  padding: 3rem 1.5rem;
  background: var(--why-choose-us-bg, transparent);
  font-family: var(--why-choose-us-font-family, inherit);
}

.why-choose-us__grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.why-choose-us__card {
  background: var(--why-choose-us-card-bg, var(--surface-50));
  border-radius: 1.25rem;
  padding: 2rem;
}

.why-choose-us__image {
  width: 100%;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  display: block;
}

.why-choose-us__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--why-choose-us-title-color, var(--surface-900));
}

.why-choose-us__text {
  margin: 0;
  line-height: 1.6;
  color: var(--why-choose-us-text-color, var(--surface-600));
  white-space: pre-line;
}

@media (max-width: 48rem) {
  .why-choose-us__grid { grid-template-columns: 1fr; }
}

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.store-footer {
  padding: 2.5rem 1.5rem 1.5rem;
  border-top: 1px solid var(--surface-200);
  background: var(--footer-bg, var(--surface-50));
  /* No font-family here on purpose: the headings (--footer-heading-font-family)
     and the links/text (--footer-font-family) each set their own below, so the
     two Font Family controls never bleed into each other via inheritance. */
  font-size: var(--footer-font-size, 0.875rem);
}

.store-footer__grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: left;
}

.store-footer__col p {
  margin: 0 0 0.4rem;
  font-family: var(--footer-font-family, inherit);
  color: var(--footer-company-color, var(--surface-400));
}

.store-footer__heading {
  margin: 0 0 0.6rem;
  /* Relative to the inherited --footer-font-size (see .store-footer), not a
     fixed rem value — a hardcoded px/rem size here meant these bold, most
     eye-catching headings (Quick Links, Policies, Social Links, Company)
     never actually got bigger/smaller when the Font Size control changed,
     even though the surrounding link text correctly did (plain inheritance,
     no override to fight). */
  font-size: 0.92em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: var(--footer-heading-font-family, inherit);
  color: var(--footer-heading-color, #000000);
}

/* The company's own name (Footer page → Company & Social Links), shown in
   place of the generic "Company" title when set — a name, not a title, so it
   follows the links/text font and the "Bold Company Name" toggle rather than
   the heading font/uppercase treatment. */
.store-footer__company-name {
  margin: 0 0 0.6rem;
  font-size: 1.05em;
  font-weight: var(--footer-company-name-weight, 700);
  font-family: var(--footer-font-family, inherit);
  color: var(--footer-heading-color, #000000);
}

.store-footer__company-description {
  margin: 0 0 0.75rem;
  color: var(--footer-company-color, var(--surface-400));
  line-height: 1.5;
}

.store-footer__link {
  display: block;
  padding: 0.3rem 0.5rem;
  margin: 0 -0.5rem 0.15rem;
  border-radius: 0.375rem;
  color: var(--footer-link-color, var(--surface-400));
  background: var(--footer-link-item-bg, transparent);
  font-family: var(--footer-font-family, inherit);
  font-weight: var(--footer-link-weight, 400);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.store-footer__link:hover {
  color: var(--footer-link-hover-color, var(--accent));
}

.store-footer__social {
  text-align: right;
}

.store-footer__social .store-footer__heading {
  text-align: right;
}

.store-footer__social-icons {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.store-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--footer-social-size, 2.75rem);
  height: var(--footer-social-size, 2.75rem);
  border-radius: 50%;
  color: var(--footer-link-color, var(--surface-400));
  background: var(--footer-social-bg, var(--footer-link-item-bg, var(--surface-100)));
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.store-footer__social-link svg {
  /* ~49% of the button, so the icon scales with the Social Icon Size control. */
  width: calc(var(--footer-social-size, 2.75rem) * 0.49);
  height: calc(var(--footer-social-size, 2.75rem) * 0.49);
}

.store-footer__social-link:hover {
  color: var(--footer-link-hover-color, var(--accent));
  transform: translateY(var(--footer-hover-lift, -2px));
}

.store-footer__copyright {
  max-width: 72rem;
  margin: var(--footer-middle-space, 28px) auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--surface-200);
  color: var(--footer-copyright-color, var(--surface-400));
  font-family: var(--footer-font-family, inherit);
  font-size: var(--footer-copyright-font-size, inherit);
  text-align: center;
}

@media (max-width: 48rem) {
  .store-footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .store-footer__social,
  .store-footer__social .store-footer__heading {
    text-align: center;
  }
  .store-footer__social-icons {
    justify-content: center;
  }
}

.footer-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
.footer-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--surface-500);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.footer-page__back:hover { color: var(--accent, var(--surface-700)); }
.footer-page__content {
  color: var(--surface-600);
  margin-top: 1rem;
  line-height: 1.7;
}
.footer-page__content p { margin: 0 0 1em; }
.footer-page__content h2 { font-size: 1.35rem; margin: 1.4em 0 0.5em; color: var(--surface-900); }
.footer-page__content h3 { font-size: 1.15rem; margin: 1.2em 0 0.5em; color: var(--surface-900); }
.footer-page__content ul, .footer-page__content ol { margin: 0 0 1em; padding-left: 1.4em; }
.footer-page__content a { color: var(--accent, #2563eb); }

/* Customer accounts (see storefront/account/*) — login/register/forgot/reset
 * pages render a centered card using the same .admin-form input/button
 * styling already loaded storefront-wide (admin.css), so the form controls
 * match the polished admin design system.
 *
 * .account-page--auth (login/register/forgot/reset only, not the profile
 * page) breaks out of <main>'s constrained white column to a full-width,
 * softly-tinted backdrop — the standard "card floating on a muted surface"
 * pattern every professional SaaS auth screen uses. Without this the card's
 * own background was the exact same white as the page behind it (both
 * var(--surface-0)), so it had no visible separation beyond a 1px border —
 * that flatness was the "box doesn't fit the background" issue. The
 * `calc(-50vw + 50%)` pair is the standard full-bleed-inside-a-centered-
 * container trick: it cancels out <main>'s own max-width/centering for just
 * this section without touching layout.ts. */
/* Themeable per the Customization page's Login/Register/Profile/Forgot
 * Password sections (see storefront/render/page-theme.ts's
 * renderPageThemeStyle) — one bgColor/textColor/etc. set covers the whole
 * page including its card, same convention as every other themed page
 * (.products-page etc. below). */
.account-page {
  max-width: 30rem;
  margin: 3rem auto;
  padding: 0 1.5rem;
  background: var(--page-bg, transparent);
  color: var(--page-text-color, inherit);
  font-family: var(--page-font-family, inherit);
  font-size: var(--page-font-size, inherit);
}
.account-page h1 { color: var(--page-heading-color, inherit); }

.account-page--auth {
  max-width: none;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -2rem; /* cancels main's own top padding so the tint reaches the header */
  padding: 4rem 1.5rem;
  background: var(--page-bg, linear-gradient(180deg, var(--surface-50), var(--surface-100)));
}

/* Page-specific button color/text overrides the Customization page's Global
 * Settings default (see layout.ts's <body>) for these forms' submit buttons
 * only — .admin-form button[type="submit"] is otherwise styled by admin.css
 * for the embedded /admin panel itself, which this selector never reaches. */
.account-page .admin-form button[type="submit"] {
  background: var(--page-button-color, rgb(var(--sf-rgb-brand-600)));
  color: var(--page-button-text-color, #fff);
}
.account-page .admin-form button[type="submit"]:hover {
  background: var(--page-button-color, rgb(var(--sf-rgb-brand-700)));
}

.account-page--auth .account-page-inner {
  max-width: 26rem;
  margin: 0 auto;
}

.account-page--profile {
  max-width: 42rem;
}
.account-page--profile .admin-form {
  background: var(--page-bg, var(--surface-0));
}
.account-page--profile .admin-form h2 {
  color: var(--page-heading-color, inherit);
}

.account-orders-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.account-orders-head__track { font-weight: 600; color: var(--page-button-color, var(--accent)); text-decoration: none; }
.account-orders-head__track:hover { text-decoration: underline; }

/* My Order Tracking (/account/tracking, account/tracking-page.ts). Uses the
 * Profile page theme. */
.account-page--tracking { max-width: 42rem; }
.tracking-page__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tracking-page__head h1 { margin: 0; }
.tracking-page__head a { color: var(--page-button-color, var(--accent)); font-weight: 600; text-decoration: none; }
.tracking-card {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}
.tracking-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.tracking-card__head h2 { margin: 0; font-size: 1.1rem; color: var(--page-heading-color, inherit); }
.tracking-card__head p { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--surface-500); }
.tracking-card__closed { margin: 1rem 0 0; color: var(--surface-600); }
.tracking-timeline { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.tracking-timeline__step { position: relative; display: flex; gap: 0.85rem; padding-bottom: 1.1rem; }
.tracking-timeline__step:last-child { padding-bottom: 0; }
.tracking-timeline__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1.85rem;
  bottom: 0.15rem;
  width: 2px;
  transform: translateX(-50%);
  background: var(--surface-200);
}
.tracking-timeline__step--done:not(:last-child)::before { background: var(--accent); }
.tracking-timeline__dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--surface-100);
  color: var(--surface-500);
  border: 2px solid var(--surface-200);
}
.tracking-timeline__step--done .tracking-timeline__dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.tracking-timeline__step--current .tracking-timeline__dot { background: var(--surface-0); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.tracking-timeline__step strong { display: block; line-height: 1.7rem; }
.tracking-timeline__step p { margin: 0; font-size: 0.85rem; color: var(--surface-500); }
.tracking-timeline__step--upcoming strong { color: var(--surface-500); font-weight: 500; }
.tracking-card__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: var(--surface-50);
}
.tracking-card__details dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--surface-500); }
.tracking-card__details dd { margin: 0.15rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.tracking-empty { text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--surface-200); border-radius: 1rem; }
@media (max-width: 480px) {
  .tracking-card { padding: 1rem; }
  .tracking-card__head { flex-direction: column; gap: 0.5rem; }
}

.account-card {
  background: var(--page-bg, var(--surface-0));
  border: 1px solid var(--surface-200);
  border-radius: 1rem;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.06);
}

.account-card h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--page-heading-color, inherit);
}

.account-card__subtitle {
  color: var(--surface-400);
  margin: 0 0 1.75rem;
}

.account-card__footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--surface-200);
  text-align: center;
  color: var(--surface-600);
  font-size: 0.875rem;
}
.account-card__footer p { margin: 0 0 0.6rem; }
.account-card__footer p:last-child { margin-bottom: 0; }
.account-card__footer a { color: var(--accent); font-weight: 600; }
.account-card__footer a:hover { text-decoration: underline; }

.account-notice {
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.875rem;
}

.account-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.account-profile-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.empty-state {
  color: var(--surface-400);
  text-align: center;
  padding: 4rem 0;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: var(--global-button-radius, 0.5rem);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--page-font-family, inherit);
  font-size: var(--page-font-size, 1rem);
  background: var(--page-button-color, var(--accent));
  color: var(--page-button-text-color, #ffffff);
  text-align: center;
  transition: filter 0.15s ease, transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
/* No hover state was defined at all before this — every real storefront
 * button (Add to Cart, checkout, etc.) as well as the Customization page's
 * "Sample Button" preview (which deliberately reuses this exact class, not a
 * second copy — see Global Settings' own doc comment) showed zero visual
 * feedback on hover. The button's own color is an admin-configurable CSS
 * custom property (--page-button-color), so a fixed hover color can't be
 * hardcoded here — `filter: brightness()` darkens whatever color is set
 * without needing to know it. */
.btn:hover { filter: brightness(0.9); transform: translateY(-1px); }
.btn--secondary {
  background: transparent;
  color: var(--page-button-color, var(--accent));
  border: 1px solid var(--page-button-color, var(--accent));
}
.btn--secondary:hover {
  background: var(--page-button-color, var(--accent));
  color: var(--page-button-text-color, #ffffff);
  filter: none;
}
.btn--disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

/* Rounded −/input/+ quantity control — the product detail page's single
   stepper and each cart-page line's own stepper (see cart.ts's
   qtyStepperHtml/wireQtyStepper), never a second implementation. */
/* --qty-* / --cart-card-* come from the Customization page's Cart Page and
   Cart Drawer sections (see render/page-theme.ts); elsewhere (product detail)
   they're unset and these fallbacks are the original look. */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--cart-card-border, var(--surface-200));
  border-radius: var(--qty-radius, 999px);
  overflow: hidden;
  width: fit-content;
  margin: 1rem 0;
}
.qty-stepper__btn {
  border: none;
  background: var(--qty-btn-bg, var(--surface-50));
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--qty-btn-color, var(--surface-900));
  transition: filter 0.15s ease;
}
.qty-stepper__btn:hover { filter: brightness(0.92); }
.qty-stepper__input {
  width: 3rem;
  height: 2.25rem;
  border: none;
  border-left: 1px solid var(--cart-card-border, var(--surface-200));
  border-right: 1px solid var(--cart-card-border, var(--surface-200));
  background: var(--cart-card-bg, var(--surface-0));
  color: inherit;
  text-align: center;
  font: inherit;
  -moz-appearance: textfield;
}
.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* The home page's product grid gets its own themed wrapper (see
   render/home.ts's `.products-page`) just like every other page-theme
   section — without this rule the Customization page's "Products Page"
   bg/text colors had no CSS to actually apply to. */
.products-page {
  background: var(--page-bg, transparent);
  color: var(--page-text-color, inherit);
  font-family: var(--page-font-family, inherit);
  font-size: var(--page-font-size, inherit);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.5rem;
}

/* ---------------------------------------------------------------------
   Flash Sale — homepage-only banner (see render/flash-sale.ts), a
   horizontally-scrolling row of discounted product cards above the main grid.
   --------------------------------------------------------------------- */

.flash-sale-section { margin-bottom: 2rem; }
.flash-sale-section h2 { margin: 0 0 0.25rem; }
.flash-sale-section__subtitle { margin: 0 0 0.5rem; color: var(--surface-600); }
.flash-sale-section__countdown { margin: 0 0 1rem; font-weight: 700; }
.flash-sale-section__track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.flash-sale-card { position: relative; flex: 0 0 13rem; }
.flash-sale-card__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1;
  background: var(--danger-bg, #fee2e2);
  color: var(--danger-text, #b91c1c);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
}
.flash-sale-card__original { text-decoration: line-through; color: var(--surface-500, #94a3b8); margin-right: 0.4rem; }

.product-card {
  display: block;
  border: 1px solid var(--surface-200);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--page-bg, var(--surface-0));
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  border-color: var(--page-button-color, var(--accent));
  box-shadow: 0 8px 20px rgb(15 23 42 / 0.08);
  transform: translateY(-2px);
}

.product-card img,
.product-card__placeholder {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface-50) var(--placeholder-icon) center/2.5rem no-repeat;
}

.product-card__body { padding: 0.875rem 1rem 1.125rem; }
.product-card__body h3 { margin: 0 0 0.25rem; font-size: 0.95rem; font-weight: 600; color: var(--page-heading-color, inherit); }
.product-card__price { margin: 0; color: var(--page-text-color, var(--surface-600)); opacity: 0.85; }

.product-detail {
  background: var(--page-bg, transparent);
  color: var(--page-text-color, inherit);
  font-family: var(--page-font-family, inherit);
  font-size: var(--page-font-size, inherit);
}

.product-detail__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* The left-side media column: a padded card around the image (not the bare
   edge-to-edge image the page shipped with) with a soft shadow and a subtle
   hover zoom, so it reads as a proper product-photo frame. */
.product-detail__media {
  border: 1px solid var(--surface-200);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface-50);
  box-shadow: 0 12px 30px rgb(15 23 42 / 0.07);
}
.product-detail__media img,
.product-detail__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface-50) var(--placeholder-icon) center/4rem no-repeat;
  transition: transform 0.35s ease;
}
.product-detail__media:hover img { transform: scale(1.04); }

.product-detail__info h1 { margin: 0 0 0.5rem; font-size: 1.75rem; color: var(--page-heading-color, inherit); }
.product-detail__price { font-size: 1.35rem; font-weight: 700; color: var(--page-button-color, var(--accent)); margin: 0 0 0.5rem; }
.product-detail__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.product-detail__actions .btn { min-width: 10rem; }
.product-detail__description { color: var(--page-text-color, var(--surface-600)); opacity: 0.85; margin-top: 2rem; line-height: 1.7; }

@media (max-width: 40rem) {
  .product-detail__top { grid-template-columns: 1fr; gap: 1.5rem; }
}
/* Same collapse, keyed off the Customization page's preview frame width
   rather than the viewport — see admin.css's .customization-preview-frame. */
@container (max-width: 40rem) {
  .product-detail__top { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------------------------------------------------------------------
   Cart page — line items left, order summary right (see cart.ts)
   --------------------------------------------------------------------- */

/* Full-width band (see layout.ts's fullWidthMain): the Cart Page theme's
   background runs edge to edge and meets the header and footer directly —
   no white strip around a boxed cart. Content is centered by __inner. */
main.main--full {
  max-width: none;
  padding: 0;
}

.cart-page {
  background: var(--page-bg, var(--surface-50));
  color: var(--page-text-color, inherit);
  font-family: var(--page-font-family, inherit);
  font-size: var(--page-font-size, inherit);
  padding: 2.5rem 1.5rem 3.5rem;
  min-height: 60vh;
}
.cart-page__inner { max-width: 72rem; margin: 0 auto; }

.cart-page__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.cart-page h1 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--page-heading-color, inherit);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cart-page__count {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--cart-card-bg, var(--surface-0));
  border: 1px solid var(--cart-card-border, var(--surface-200));
  color: var(--surface-600);
}
.cart-page__continue {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--page-button-color, var(--accent));
}
.cart-page__continue:hover { text-decoration: underline; }

.cart-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}
/* Empty cart: one centered card, no orphaned summary column. */
.cart-page__layout--empty { grid-template-columns: 1fr; }
.cart-page__layout--empty .cart-page__summary { display: none; }

.cart-page__items { display: flex; flex-direction: column; gap: 0.85rem; }

.cart-line {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--cart-card-bg, var(--surface-0));
  border: 1px solid var(--cart-card-border, var(--surface-200));
  border-radius: 0.875rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}
.cart-line__img,
.cart-line__img--placeholder {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.6rem;
  background: var(--surface-50) var(--placeholder-icon) center/1.75rem no-repeat;
}
.cart-line__body h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--page-text-color, var(--surface-900));
}
.cart-line__price { margin: 0; font-size: 0.85rem; color: var(--cart-price-color, var(--surface-600)); }
.cart-line__total {
  margin: 0;
  min-width: 5rem;
  text-align: right;
  font-weight: 700;
  color: var(--cart-price-color, var(--page-text-color, var(--surface-900)));
}
.cart-line__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--cart-remove-color, var(--surface-400));
  transition: color 0.15s ease, background 0.15s ease;
}
.cart-line__remove:hover { color: #ef4444; background: rgb(239 68 68 / 0.1); }

.cart-page__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 3.5rem 1.5rem;
  background: var(--cart-card-bg, var(--surface-0));
  border: 1px solid var(--cart-card-border, var(--surface-200));
  border-radius: 1rem;
}
.cart-page__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.4rem;
  border-radius: 999px;
  background: var(--surface-50);
  color: var(--surface-400);
}
.cart-page__empty-icon svg { width: 2.25rem; height: 2.25rem; }
.cart-page__empty h2 { margin: 0; font-size: 1.25rem; color: var(--page-text-color, var(--surface-900)); }
.cart-page__empty p { margin: 0 0 0.75rem; max-width: 26rem; color: var(--surface-600); }

.cart-page__summary {
  background: var(--cart-card-bg, var(--surface-0));
  border: 1px solid var(--cart-card-border, var(--surface-200));
  border-radius: 0.875rem;
  padding: 1.5rem;
  position: sticky;
  top: 5.5rem;
  color: var(--page-text-color, var(--surface-900));
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}
.cart-page__summary h2 { margin: 0 0 1rem; font-size: 1.1rem; color: var(--page-heading-color, inherit); }
.cart-page__summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: var(--surface-600);
}
.cart-page__summary-row--total {
  border-top: 1px solid var(--surface-200);
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--page-text-color, var(--surface-900));
}
.cart-page__checkout-btn { display: block; width: 100%; margin-top: 1.25rem; padding: 0.85rem 1.5rem; }
.cart-page__secure-note { margin: 0.75rem 0 0; font-size: 0.78rem; text-align: center; color: var(--surface-400); }

@media (max-width: 48rem) {
  .cart-page { padding: 1.75rem 1rem 2.5rem; }
  .cart-page__layout { grid-template-columns: 1fr; }
  .cart-page__summary { position: static; }
  .cart-line { grid-template-columns: 4rem minmax(0, 1fr) auto; }
  .cart-line__img, .cart-line__img--placeholder { width: 4rem; height: 4rem; }
  .cart-line__qty { grid-column: 2; }
  .cart-line__total { grid-column: 3; grid-row: 2; }
  .cart-line__remove { grid-column: 3; grid-row: 1; justify-self: end; }
}
@container (max-width: 40rem) {
  .cart-page__layout { grid-template-columns: 1fr; }
  .cart-page__summary { position: static; }
}

/* ---------------------------------------------------------------------
   Related Products — cart page "You Might Also Like" section, filled in
   client-side (see render/related-products.ts) since the cart itself is
   localStorage-only. Reuses .product-card's own styling verbatim.
   --------------------------------------------------------------------- */

.related-products { margin-top: 2.5rem; }
.related-products h2 { margin: 0 0 1rem; font-size: 1.2rem; color: var(--page-heading-color, inherit); }
.related-products__track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding-bottom: 0.5rem;
}
.related-products__track .product-card { flex: 0 0 13rem; }
.related-products__track--auto { scroll-snap-type: x mandatory; }
.related-products__track--auto .product-card { scroll-snap-align: start; }

/* ---------------------------------------------------------------------
   Checkout page — shipping form left, order summary + COD right
   --------------------------------------------------------------------- */

.checkout-page {
  background: var(--page-bg, transparent);
  color: var(--page-text-color, inherit);
  font-family: var(--page-font-family, inherit);
  font-size: var(--page-font-size, inherit);
}
.checkout-page h1 { color: var(--page-heading-color, inherit); }

.checkout-page__layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.checkout-page__box {
  border: 1px solid var(--page-box-border-color, var(--surface-200));
  border-radius: 0.9rem;
  padding: 1.75rem;
  background: var(--page-bg, var(--surface-0));
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.05);
}
.checkout-page__box-heading { margin: 0 0 1.25rem; font-size: 1.1rem; color: var(--page-heading-color, inherit); }

.checkout-page__form { display: flex; flex-direction: column; gap: 1.1rem; }
.checkout-page__label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--page-subheading-color, var(--surface-600));
}
.checkout-page__label--required::after {
  content: " *";
  color: var(--page-button-color, var(--accent));
}
.checkout-page__input {
  border: 1.5px solid var(--page-input-border-color, var(--surface-200));
  border-radius: 0.6rem;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: inherit;
  background: transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.checkout-page__input:focus {
  outline: none;
  border-color: var(--page-button-color, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--page-button-color, var(--accent)) 18%, transparent);
}
.checkout-page__input--invalid {
  border-color: #ef4444;
}
.checkout-page__input--invalid:focus {
  box-shadow: 0 0 0 3px rgb(239 68 68 / 0.15);
}
.checkout-page__field-error {
  margin: -0.2rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ef4444;
}
/* Opt-in "you may contact me" box (Uncompleted Orders' contact permission). */
.checkout-page__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--page-text-color, inherit);
  opacity: 0.85;
  cursor: pointer;
}
.checkout-page__consent[hidden] { display: none; }
.checkout-page__consent input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: var(--page-button-color, var(--accent));
}

.checkout-page__items { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.checkout-page__item { display: flex; justify-content: space-between; color: var(--surface-600); }

.checkout-page__coupon { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.checkout-page__coupon .checkout-page__input { flex: 1; }
.checkout-page__coupon-apply-btn {
  border: 1px solid var(--surface-300, #cbd5e1);
  border-radius: 0.5rem;
  padding: 0 1rem;
  background: var(--surface-100, #f1f5f9);
  cursor: pointer;
  font: inherit;
}
.checkout-page__coupon-message { font-size: 0.85rem; margin: 0 0 0.75rem; }
.checkout-page__coupon-message--ok { color: var(--success-text, #15803d); }
.checkout-page__coupon-message--error { color: var(--danger-text, #b91c1c); }

.checkout-page__summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: var(--surface-600);
}
.checkout-page__summary-row--total {
  border-top: 1px solid var(--surface-200);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  color: inherit;
}

/* Payment method chooser (render/checkout.ts) — one card per method the
   store has switched on, then the chosen method's instructions panel. */
.checkout-pay { border: none; margin: 1.25rem 0; padding: 0; min-width: 0; }
.checkout-pay__legend { font-weight: 700; margin-bottom: 0.6rem; padding: 0; color: var(--page-heading-color, inherit); }
.checkout-pay__options { display: grid; gap: 0.5rem; }
.checkout-pay__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--page-input-border-color, var(--surface-200));
  border-radius: 0.7rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.checkout-pay__option:hover { border-color: var(--page-button-color, var(--accent)); }
.checkout-pay__option input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--page-button-color, var(--accent)); flex-shrink: 0; }
.checkout-pay__option--active {
  border-color: var(--page-button-color, var(--accent));
  background: color-mix(in srgb, var(--page-button-color, var(--accent)) 6%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--page-button-color, var(--accent)) 14%, transparent);
}
.checkout-pay__mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.checkout-pay__mark--cod { background: #16a34a; }
.checkout-pay__mark--bkash { background: #e2136e; }
.checkout-pay__mark--nagad { background: #f7941d; }
.checkout-pay__text { display: flex; flex-direction: column; line-height: 1.25; }
.checkout-pay__text small { color: var(--surface-500, #64748b); font-size: 0.8rem; font-weight: 500; }
.checkout-pay__panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 0.7rem;
  background: var(--surface-50);
  font-size: 0.9rem;
  animation: checkoutPayIn 0.2s ease;
}
.checkout-pay__panel p { margin: 0; }
.checkout-pay__panel--bkash { border-left: 3px solid #e2136e; }
.checkout-pay__panel--nagad { border-left: 3px solid #f7941d; }
.checkout-pay__steps { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.checkout-pay__number {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.25rem;
  padding: 0.2rem 0.3rem 0.2rem 0.6rem;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid var(--surface-200);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}
.checkout-pay__copy {
  border: none;
  border-radius: 0.35rem;
  padding: 0.2rem 0.55rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface-100, #f1f5f9);
  cursor: pointer;
}
.checkout-pay__note { color: var(--surface-500, #64748b); font-size: 0.8rem; }
.checkout-pay__trx { text-transform: uppercase; letter-spacing: 0.04em; }
@keyframes checkoutPayIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .checkout-pay__panel { animation: none; } }
.checkout-page__confirm-btn { display: block; width: 100%; border: none; padding: 0.85rem 1rem; font-size: 1rem; }
.checkout-page__confirm-btn:disabled { opacity: 0.5; cursor: default; }

/* The order-placement error banner (network/validation failures from the
   server) — this had no styling at all before, so it rendered as bare
   unstyled paragraph text; per-field errors use `.checkout-page__field-error`
   above instead. */
.checkout-page__error {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.6rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}
.checkout-page__error svg { flex-shrink: 0; width: 1.1rem; height: 1.1rem; margin-top: 0.1rem; }

@media (max-width: 48rem) {
  .checkout-page__layout { grid-template-columns: 1fr; }
}
@container (max-width: 40rem) {
  .checkout-page__layout { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Thank-you page — a centered confirmation card
   --------------------------------------------------------------------- */

@keyframes thankYouCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes thankYouIconIn {
  0% { opacity: 0; transform: scale(0.4); }
  60% { opacity: 1; transform: scale(1.12); }
  100% { transform: scale(1); }
}

.thank-you-page {
  background: var(--page-bg, transparent);
  color: var(--page-text-color, inherit);
  font-family: var(--page-font-family, inherit);
  font-size: var(--page-font-size, inherit);
  display: flex;
  justify-content: center;
  padding: 4rem 1rem;
}
.thank-you-page__card {
  max-width: 28rem;
  width: 100%;
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  border: 1px solid var(--page-box-border-color, var(--surface-200));
  box-shadow: 0 16px 40px rgb(15 23 42 / 0.08);
  animation: thankYouCardIn 0.4s ease both;
}
.thank-you-page__icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  animation: thankYouIconIn 0.5s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.thank-you-page__card h1 { color: var(--page-heading-color, inherit); margin: 0 0 0.75rem; font-size: 1.5rem; }
.thank-you-page__message { color: var(--page-text-color, var(--surface-600)); opacity: 0.85; margin: 0 0 1.25rem; }
.thank-you-page__order-id {
  display: inline-block;
  margin: 0 0 1.75rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--surface-50);
  color: var(--surface-600);
  font-size: 0.85rem;
}
.thank-you-page__home-btn { display: inline-block; min-width: 12rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.75rem;
}

.blog-card {
  display: block;
  border: 1px solid var(--surface-200);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.15s ease;
  color: inherit;
  text-decoration: none;
}

.blog-card:hover { border-color: var(--accent); }

.blog-card img,
.blog-card__placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-50);
}

.blog-card__body { padding: 1rem 1.125rem 1.25rem; }
.blog-card__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.blog-card__body h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 600; }
.blog-card__excerpt { margin: 0 0 0.6rem; color: var(--surface-600); font-size: 0.9rem; }
.blog-card__date { color: var(--surface-400); font-size: 0.8rem; }

.blog-detail {
  max-width: 42rem;
  margin: 0 auto;
}

.blog-detail__media img,
.blog-detail__placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.75rem;
  background: var(--surface-50);
  margin-bottom: 1.5rem;
}

.blog-detail__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.blog-detail__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.blog-detail__date { color: var(--surface-400); font-size: 0.85rem; }
.blog-detail h1 { margin: 0 0 1.25rem; font-size: 1.85rem; }
.blog-detail__content { color: var(--surface-600); line-height: 1.7; }

/* ---------------------------------------------------------------------- */
/* Cart drawer + product-card cart/wishlist buttons                        */
/* ---------------------------------------------------------------------- */

/* The cart icon in the header can render as a <button> (drawer mode) or an
 * <a> (page mode, unchanged) — this reset makes a button-rendered icon look
 * identical to the anchor it replaces (see render/header.ts). */
.store-header__icon {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}

.product-card {
  position: relative;
}

.product-card__media { display: block; }

.product-card__body {
  display: block;
  padding: 0.875rem 1rem 1.125rem;
  color: inherit;
}

.product-card__add-btn {
  display: block;
  width: calc(100% - 2rem);
  margin: 0 1rem 1rem;
  padding: 0.55rem 0.75rem;
  border: none;
  border-radius: var(--global-button-radius, 0.5rem);
  background: var(--page-button-color, var(--accent));
  color: var(--page-button-text-color, #fff);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.product-card__add-btn:hover { opacity: 0.9; }
.product-card__add-btn:active { transform: scale(0.98); }
.product-card__add-btn:disabled { opacity: 0.65; cursor: default; }

.product-card__wishlist-btn,
.product-detail__wishlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.9);
  color: var(--surface-600);
  cursor: pointer;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.15);
}
.product-card__wishlist-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
}
.product-card__wishlist-btn svg,
.product-detail__wishlist-btn svg { width: 1.05rem; height: 1.05rem; }
.product-detail__wishlist-btn { width: 2.25rem; height: 2.25rem; vertical-align: middle; margin-left: 0.6rem; }
.product-card__wishlist-btn--active,
.product-detail__wishlist-btn--active { color: #ef4444; }
.product-card__wishlist-btn--active svg,
.product-detail__wishlist-btn--active svg { fill: #ef4444; }

/* ---------------------------------------------------------------------
   Ratings/Reviews/Comments — product detail page (see
   render/reviews-section.ts), three independently-toggleable blocks.
   --------------------------------------------------------------------- */

.reviews-section { margin-top: 2.5rem; max-width: 42rem; }
.reviews-section__block { margin-bottom: 2.5rem; }
.reviews-section__block h2 { margin: 0 0 0.75rem; font-size: 1.2rem; }
.reviews-section__summary { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.reviews-section__hint { color: var(--surface-600); font-size: 0.9rem; }
.stars { color: var(--review-star-color, #f5a623); letter-spacing: 0.05em; }

.star-picker { display: inline-flex; gap: 0.15rem; margin-bottom: 0.5rem; }
.star-picker__star {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--surface-300, #cbd5e1);
  cursor: pointer;
  padding: 0.1rem;
}
.star-picker__star--active { color: var(--review-star-color, #f5a623); }

.review-card-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
.review-card {
  border: 1px solid var(--surface-200);
  border-radius: 0.6rem;
  padding: 1rem;
  background: var(--review-card-bg, transparent);
  color: var(--review-card-text, inherit);
}
.review-card__head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.35rem; }
.review-card__title { font-weight: 600; margin: 0 0 0.25rem; }
.review-card__body { margin: 0; color: var(--review-card-text, var(--surface-700, inherit)); }
.review-card__date { margin: 0.4rem 0 0; font-size: 0.8rem; opacity: 0.7; }

.reviews-section__block form.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 30rem;
}
.reviews-section__block form.admin-form input[type="text"],
.reviews-section__block form.admin-form textarea {
  border: 1px solid var(--surface-300, #cbd5e1);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
}
.reviews-section__block form.admin-form textarea { min-height: 5rem; resize: vertical; }
.reviews-section__block form.admin-form button[type="submit"] { align-self: flex-start; }

/* ---------------------------------------------------------------------
   Cart drawer — off-canvas panel on the right (see cart.ts's
   renderCartDrawer/globalCartScript). Item rows are their own compact
   `.cart-drawer-line` layout (image/name/price/qty/remove in one row) —
   deliberately NOT the admin `.admin-table` this used to reuse, whose wide
   fixed columns are what caused the large empty gaps between items in a
   ~24rem-wide panel.
   --------------------------------------------------------------------- */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.cart-drawer--open { visibility: visible; pointer-events: auto; }

.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cart-drawer--open .cart-drawer__overlay { opacity: 1; }

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(25rem, 100%);
  /* --page-* come from the Customization page's Cart Page section (see
     cart.ts's renderCartDrawer), same properties the full .cart-page reads. */
  background: var(--page-bg, var(--surface-0));
  color: var(--page-text-color, inherit);
  font-family: var(--page-font-family, inherit);
  font-size: var(--page-font-size, inherit);
  box-shadow: -12px 0 32px rgb(15 23 42 / 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.cart-drawer--open .cart-drawer__panel { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--surface-200);
  background: var(--page-bg, var(--surface-50));
}
.cart-drawer__header h2 {
  margin: 0;
  color: var(--page-heading-color, inherit);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-drawer__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--page-button-color, var(--accent));
  color: var(--page-button-text-color, #fff);
  font-size: 0.7rem;
  font-weight: 700;
}
.cart-drawer__close {
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--surface-600);
  transition: background 0.15s ease, color 0.15s ease;
}
.cart-drawer__close:hover { background: var(--surface-200); color: var(--surface-900); }

/* One scroll area for the line items + the "You may also like" strip. */
.cart-drawer__body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.cart-drawer__items { padding: 1rem 1.25rem; }
.cart-drawer--empty .cart-drawer__items { flex: 1; display: flex; }
/* Empty cart: nothing to subtotal or check out — the empty state has its own CTA. */
.cart-drawer--empty .cart-drawer__footer { display: none; }

/* ---- Illustrated empty state ---- */
@keyframes cartEmptyFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}
@keyframes cartEmptyTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes cartEmptyIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.cart-drawer__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  animation: cartEmptyIn 0.35s ease both;
}
.cart-drawer__empty-art {
  position: relative;
  width: 8.5rem;
  height: 8.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--page-button-color, var(--accent));
}
.cart-drawer__empty-halo {
  position: absolute;
  inset: 0.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, currentColor 22%, transparent), color-mix(in srgb, currentColor 6%, transparent) 70%);
  box-shadow: 0 0 0 10px color-mix(in srgb, currentColor 5%, transparent);
}
.cart-drawer__empty-bag {
  position: relative;
  width: 4rem;
  height: 4rem;
  animation: cartEmptyFloat 3.2s ease-in-out infinite;
  filter: drop-shadow(0 8px 10px color-mix(in srgb, currentColor 25%, transparent));
}
.cart-drawer__empty-spark {
  position: absolute;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  animation: cartEmptyTwinkle 2.4s ease-in-out infinite;
}
.cart-drawer__empty-spark--one { top: 0.9rem; right: 1.1rem; }
.cart-drawer__empty-spark--two { bottom: 1.4rem; left: 0.8rem; width: 0.4rem; height: 0.4rem; animation-delay: -1.2s; }
.cart-drawer__empty-title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--page-heading-color, var(--surface-900));
}
.cart-drawer__empty-text {
  margin: 0 0 1.4rem;
  max-width: 17rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--page-text-color, var(--surface-600));
  opacity: 0.85;
}
.cart-drawer__empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--global-button-radius, 999px);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--page-button-color, var(--accent)) 30%, transparent);
}
.cart-drawer__empty-cta span { transition: transform 0.2s ease; }
.cart-drawer__empty-cta:hover span { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .cart-drawer__empty-bag, .cart-drawer__empty-spark { animation: none; }
}

/* ---- "You may also like" (drawer, only after an add-to-cart) ---- */
.cart-drawer__recs {
  margin-top: auto;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--cart-card-border, var(--surface-200));
  animation: cartEmptyIn 0.3s ease both;
}
.cart-drawer__recs-title {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--page-heading-color, var(--surface-600));
}
.cart-drawer__recs-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}
.cart-drawer-rec {
  flex: 0 0 8.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--cart-card-border, var(--surface-200));
  background: var(--cart-card-bg, var(--surface-0));
  scroll-snap-align: start;
}
.cart-drawer-rec__media { display: block; }
.cart-drawer-rec__media img,
.cart-drawer-rec__img--placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
  background: var(--surface-50) var(--placeholder-icon) center/1.5rem no-repeat;
}
.cart-drawer-rec__name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-drawer-rec__price { font-size: 0.8rem; color: var(--cart-price-color, var(--surface-600)); }
.cart-drawer-rec__add {
  margin-top: 0.15rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--page-button-color, var(--accent));
  border-radius: var(--global-button-radius, 999px);
  background: transparent;
  color: var(--page-button-color, var(--accent));
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.cart-drawer-rec__add:hover { background: var(--page-button-color, var(--accent)); color: var(--page-button-text-color, #fff); }

/* Customization page preview: the drawer in-flow and already open. */
.cart-drawer--preview { position: relative; inset: auto; visibility: visible; pointer-events: none; z-index: auto; }
.cart-drawer--preview .cart-drawer__overlay { display: none; }
.cart-drawer--preview .cart-drawer__panel { position: relative; transform: none; height: 34rem; margin-left: auto; }

@keyframes cartDrawerLineIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.cart-drawer-line {
  display: grid;
  grid-template-columns: 3.75rem 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cart-card-border, var(--surface-200));
  animation: cartDrawerLineIn 0.25s ease both;
}
.cart-drawer-line:last-child { border-bottom: none; }

.cart-drawer-line__img,
.cart-drawer-line__img--placeholder {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 0.6rem;
  object-fit: cover;
  background: var(--surface-50) var(--placeholder-icon) center/1.75rem no-repeat;
}

.cart-drawer-line__body { min-width: 0; }
.cart-drawer-line__body h3 {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-drawer-line__price { margin: 0 0 0.4rem; font-size: 0.85rem; color: var(--cart-price-color, var(--surface-600)); }

.cart-drawer-line__qty .qty-stepper { margin: 0; }
.cart-drawer-line__qty .qty-stepper__btn { width: 1.75rem; height: 1.75rem; font-size: 0.95rem; }
.cart-drawer-line__qty .qty-stepper__input { width: 2.25rem; height: 1.75rem; font-size: 0.85rem; }

.cart-drawer-line__remove {
  align-self: start;
  border: none;
  background: transparent;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  color: var(--cart-remove-color, var(--surface-400));
  padding: 0.25rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.cart-drawer-line__remove:hover { color: #ef4444; background: rgb(239 68 68 / 0.1); }

.cart-drawer__footer {
  padding: 1.1rem 1.5rem 1.35rem;
  border-top: 1px solid var(--surface-200);
  background: var(--page-bg, var(--surface-50));
}
.cart-drawer__subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.cart-drawer__subtotal-row span:last-child { font-size: 1.15rem; color: var(--cart-price-color, var(--page-button-color, var(--accent))); }
.cart-drawer__footer-actions { display: flex; gap: 0.75rem; }
.cart-drawer__footer-actions .btn { flex: 1; display: block; text-align: center; padding: 0.65rem 1rem; }

/* ---------------------------------------------------------------------
   Search results page (see render/search.ts) — big search box, result
   count, the shared .product-grid, or a "No products found" card.
   --------------------------------------------------------------------- */
.store-header__zone--search { margin: 0; }

.search-page__form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  padding: 0.4rem 0.4rem 0.4rem 0.9rem;
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-page__form:focus-within {
  border-color: var(--page-button-color, var(--accent));
  box-shadow: 0 0 0 3px rgb(79 70 229 / 0.12);
}
.search-page__icon { display: inline-flex; color: var(--surface-400); }
.search-page__icon svg { width: 1.2rem; height: 1.2rem; }
.search-page__form input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--surface-900);
  padding: 0.45rem 0;
}
.search-page__form .btn { border-radius: 999px; padding: 0.55rem 1.4rem; }

.search-page__summary {
  margin: 0 0 1.25rem;
  text-align: center;
  color: var(--page-text-color, var(--surface-600));
}

.search-page__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  max-width: 34rem;
  margin: 1rem auto 0;
  padding: 3rem 1.5rem;
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: 1rem;
}
.search-page__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.4rem;
  border-radius: 999px;
  background: var(--surface-50);
  color: var(--surface-400);
}
.search-page__empty-icon svg { width: 2.25rem; height: 2.25rem; }
.search-page__empty h2 { margin: 0; font-size: 1.25rem; color: var(--surface-900); }
.search-page__empty p { margin: 0 0 0.75rem; color: var(--surface-600); }

/* Footer "Become an affiliate" call to action (StoreSettings.affiliateProgram) */
.store-footer__affiliate {
  max-width: 72rem;
  margin: var(--footer-middle-space, 28px) auto 0;
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; flex-wrap: wrap;
  border: 1px solid var(--surface-200);
  border-radius: 0.85rem;
  color: var(--footer-company-color, inherit);
  font-family: var(--footer-font-family, inherit);
  font-size: 0.92rem;
}
.store-footer__affiliate-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 1.1rem; border-radius: var(--global-button-radius, 999px);
  background: var(--page-button-color, var(--accent)); color: var(--page-button-text-color, #fff);
  font-weight: 600; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-footer__affiliate-link:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.45); }

/* ------------------------------------------------------------------------
   Affiliate program pages (storefront/affiliate/) — Join + dashboard.
   ------------------------------------------------------------------------ */
.aff-page { padding-bottom: 3rem; }
.aff-inner { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
.aff-inner--narrow { max-width: 36rem; padding-top: 3rem; }
.aff-eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.aff-sub { color: var(--surface-600); font-size: 0.85rem; }
.aff-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.65rem 1.25rem; border: none; cursor: pointer;
  border-radius: var(--global-button-radius, 0.6rem);
  background: var(--page-button-color, var(--accent)); color: var(--page-button-text-color, #fff);
  font: inherit; font-weight: 600; font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.aff-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.5); }
.aff-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.aff-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.aff-btn--lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.aff-btn--block { width: 100%; }
.aff-btn--light { background: #fff; color: var(--surface-900); }
.aff-card { background: var(--surface-0); border: 1px solid var(--surface-200); border-radius: 1rem; padding: 1.75rem; box-shadow: 0 12px 32px -18px rgba(15, 23, 42, 0.25); }
.aff-card h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.aff-card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.aff-empty { text-align: center; }
.aff-empty p { color: var(--surface-600); margin: 0.5rem 0 1.5rem; }

/* Join page */
.aff-hero {
  padding: 4rem 0 3.25rem; margin-bottom: 2.5rem; text-align: center;
  background: radial-gradient(60rem 22rem at 50% -6rem, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--surface-50);
  border-bottom: 1px solid var(--surface-200);
}
.aff-hero h1 { margin: 0.6rem auto 0.9rem; max-width: 40rem; font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.15; }
.aff-hero__lead { max-width: 38rem; margin: 0 auto 1.75rem; color: var(--surface-600); font-size: 1.05rem; }
.aff-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.aff-benefit { padding: 1.35rem; border: 1px solid var(--surface-200); border-radius: 1rem; background: var(--surface-0); }
.aff-benefit__num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 0.75rem;
  border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 700;
}
.aff-benefit h3 { margin: 0 0 0.35rem; font-size: 1.02rem; }
.aff-benefit p { margin: 0; color: var(--surface-600); font-size: 0.9rem; }
.aff-steps { display: flex; justify-content: center; gap: 0.5rem 2rem; flex-wrap: wrap; margin: 2rem 0; padding: 0; list-style: none; counter-reset: step; color: var(--surface-600); font-size: 0.92rem; }
.aff-steps li { counter-increment: step; display: flex; align-items: center; gap: 0.5rem; }
.aff-steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--surface-900); color: #fff; font-size: 0.75rem; font-weight: 700; }
.aff-join { max-width: 40rem; margin: 0 auto; scroll-margin-top: 1.5rem; }

/* Forms */
.aff-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }
.aff-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.aff-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; }
.aff-form input, .aff-form select, .aff-copy input, .aff-copy select {
  width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--surface-200); border-radius: 0.6rem;
  background: var(--surface-0); color: inherit; font: inherit; font-weight: 400;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.aff-form input:focus, .aff-form select:focus, .aff-copy select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.aff-form__hint { margin: -0.4rem 0 0; color: var(--surface-600); font-size: 0.8rem; }
.aff-form__hint a, .aff-form__account a { color: var(--accent); font-weight: 600; }
.aff-form__account { margin: 0; padding: 0.7rem 0.9rem; border-radius: 0.6rem; background: var(--surface-50); font-size: 0.9rem; }
.aff-form .aff-check { flex-direction: row; align-items: flex-start; gap: 0.6rem; font-weight: 400; font-size: 0.88rem; }
.aff-check input { width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--accent); }
.aff-terms { border: 1px solid var(--surface-200); border-radius: 0.6rem; padding: 0.6rem 0.9rem; font-size: 0.85rem; }
.aff-terms summary { cursor: pointer; font-weight: 600; }
.aff-terms div { margin-top: 0.6rem; max-height: 14rem; overflow: auto; color: var(--surface-600); }
.aff-alert { margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: 0.65rem; font-size: 0.9rem; background: var(--surface-50); }
.aff-form .aff-alert { margin: 0; }
.aff-alert--ok { background: #ecfdf5; color: #065f46; }
.aff-alert--warn { background: #fffbeb; color: #92400e; }
.aff-alert--bad { background: #fef2f2; color: #991b1b; }

/* Dashboard */
.aff-dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 2.25rem 0 1.25rem; }
.aff-dash-head h1 { margin: 0.25rem 0; font-size: 1.75rem; }
.aff-dash-head code { padding: 0.1rem 0.4rem; border-radius: 0.35rem; background: var(--surface-50); border: 1px solid var(--surface-200); font-size: 0.85em; }
.aff-pill { display: inline-flex; align-items: center; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.aff-pill--ok { background: #ecfdf5; color: #065f46; }
.aff-pill--warn { background: #fffbeb; color: #92400e; }
.aff-pill--bad { background: #fef2f2; color: #991b1b; }
.aff-pill--info { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.aff-balance {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1rem; padding: 1.5rem 1.75rem; border-radius: 1rem; color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #0f172a));
  box-shadow: 0 18px 36px -20px color-mix(in srgb, var(--accent) 70%, #000);
}
.aff-balance > div { display: flex; flex-direction: column; gap: 0.2rem; }
.aff-balance__label { font-size: 0.82rem; font-weight: 600; opacity: 0.85; }
.aff-balance__value { font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.aff-balance .aff-sub { color: rgba(255, 255, 255, 0.85); }
.aff-links { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; margin-bottom: 1rem; }
.aff-copy { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.aff-copy input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; background: var(--surface-50); }
.aff-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.aff-stat { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1.1rem; border: 1px solid var(--surface-200); border-radius: 0.85rem; background: var(--surface-0); }
.aff-stat span { font-size: 0.78rem; color: var(--surface-600); font-weight: 600; }
.aff-stat strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.aff-stat--warn { border-left: 3px solid #f59e0b; }
.aff-stat--info { border-left: 3px solid var(--accent); }
.aff-stat--ok { border-left: 3px solid #10b981; }
.aff-tabs { display: flex; gap: 0.25rem; margin: -0.5rem -0.5rem 1.25rem; padding-bottom: 0.25rem; border-bottom: 1px solid var(--surface-200); overflow-x: auto; }
.aff-tab {
  padding: 0.6rem 0.9rem; border: none; border-bottom: 2px solid transparent; background: none; cursor: pointer;
  color: var(--surface-600); font: inherit; font-size: 0.88rem; font-weight: 600; white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.aff-tab:hover { color: var(--surface-900); }
.aff-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.aff-tab-panel { animation: affFade 0.2s ease-out; }
@keyframes affFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.aff-table-wrap { overflow-x: auto; }
.aff-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.aff-table th { text-align: left; padding: 0.6rem 0.75rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--surface-600); border-bottom: 1px solid var(--surface-200); white-space: nowrap; }
.aff-table td { padding: 0.75rem; border-bottom: 1px solid var(--surface-200); vertical-align: top; }
.aff-table tr:last-child td { border-bottom: none; }
.aff-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.aff-table .aff-sub { font-size: 0.76rem; margin-top: 0.15rem; }
.aff-empty-row { margin: 0; padding: 1.5rem; text-align: center; color: var(--surface-600); font-size: 0.9rem; }

@media (max-width: 48rem) {
  .aff-benefits, .aff-links, .aff-form__row { grid-template-columns: minmax(0, 1fr); }
  .aff-hero { padding: 2.75rem 0 2.25rem; }
  .aff-card { padding: 1.25rem; }
  .aff-dash-head { padding-top: 1.5rem; }
  .aff-balance__value { font-size: 1.6rem; }
  .aff-copy { flex-direction: column; }
}

/* ---------------------------------------------------------------------
   Cart recovery link page (storefront/cart-recovery/recover-page.ts)
   --------------------------------------------------------------------- */
.cart-recover { display: flex; justify-content: center; padding: 2.5rem 1rem 3.5rem; }
.cart-recover__card {
  width: min(100%, 38rem);
  padding: 2rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid var(--surface-200);
  box-shadow: 0 18px 40px -24px rgb(15 23 42 / 0.35);
  animation: cartRecoverIn 0.35s ease;
}
.cart-recover__card h1 { margin: 0 0 0.35rem; font-size: 1.6rem; }
.cart-recover__card--message { text-align: center; }
.cart-recover__card--message p { color: var(--surface-600); margin: 0 0 1.25rem; }
.cart-recover__lead { margin: 0 0 1.25rem; color: var(--surface-600); }
.cart-recover__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.cart-recover__line { display: flex; align-items: center; gap: 0.85rem; padding: 0.65rem; border-radius: 0.8rem; background: var(--surface-50); }
.cart-recover__line--off { opacity: 0.6; }
.cart-recover__img { width: 3.5rem; height: 3.5rem; border-radius: 0.6rem; object-fit: cover; flex-shrink: 0; background: var(--surface-200); }
.cart-recover__info { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.cart-recover__meta { color: var(--surface-600); font-size: 0.85rem; }
.cart-recover__note { font-size: 0.78rem; font-weight: 600; }
.cart-recover__note--price_changed, .cart-recover__note--quantity_reduced { color: #b45309; }
.cart-recover__note--unavailable { color: #b91c1c; }
.cart-recover__sum { font-weight: 700; white-space: nowrap; }
.cart-recover__total { display: flex; justify-content: space-between; margin: 1rem 0; padding-top: 0.85rem; border-top: 1px solid var(--surface-200); font-size: 1.05rem; }
.cart-recover__coupon {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.8rem;
  border: 1.5px dashed var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.cart-recover__coupon span { font-size: 0.8rem; color: var(--surface-600); }
.cart-recover__coupon strong { font-size: 1.15rem; letter-spacing: 0.06em; }
.cart-recover__coupon small { color: var(--surface-600); }
.cart-recover__coupon--off { border-color: var(--surface-300, #cbd5e1); background: var(--surface-50); }
.cart-recover__cta { display: block; width: 100%; padding: 0.9rem 1rem; font-size: 1rem; border: none; cursor: pointer; }
.cart-recover__hint { margin: 0.65rem 0 0; text-align: center; font-size: 0.8rem; color: var(--surface-500, #64748b); }
@keyframes cartRecoverIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cart-recover__card { animation: none; } }
@media (max-width: 30rem) { .cart-recover__card { padding: 1.25rem; } }

/* ---------------------------------------------------------------------------
   Combo Offers (storefront/combo-offers/render.ts): homepage row, /combos,
   /combos/:id. Uses the store accent (Global Settings, Primary color).
   ------------------------------------------------------------------------- */
.combo-section { margin: 0 0 2.5rem; }
.combo-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.combo-section__head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.01em; }
.combo-section__head p { margin: 0.15rem 0 0; color: var(--surface-600); }
.combo-section__all { color: var(--accent); font-weight: 600; white-space: nowrap; }
.combo-section__all:hover { text-decoration: underline; }

.combo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.25rem; }
.combo-grid--row { grid-auto-flow: column; grid-auto-columns: minmax(15.5rem, 18rem); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.25rem 0.25rem 0.75rem; margin: -0.25rem; }
.combo-grid--row > * { scroll-snap-align: start; }

.combo-card {
  display: flex; flex-direction: column; background: var(--surface-0); border: 1px solid var(--surface-200);
  border-radius: 16px; overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.combo-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgb(15 23 42 / 0.10); border-color: color-mix(in srgb, var(--accent) 35%, var(--surface-200)); }
.combo-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-50); }
.combo-card__badge, .combo-card__save {
  position: absolute; top: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; z-index: 1;
}
.combo-card__badge { left: 0.75rem; background: var(--surface-900); color: #fff; }
.combo-card__save { right: 0.75rem; background: #16a34a; color: #fff; box-shadow: 0 4px 10px rgb(22 163 74 / 0.3); }
.combo-card__body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem 1rem 1.1rem; flex: 1; }
.combo-card__title { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.combo-card__title a:hover { color: var(--accent); }
.combo-card__contents { margin: 0; color: var(--surface-600); font-size: 0.85rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.combo-card__price { margin: 0.2rem 0 0.4rem; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.combo-card__price s { color: var(--surface-400); font-size: 0.9rem; }
.combo-card__price strong { font-size: 1.25rem; color: var(--accent); }
.combo-card__btn {
  margin-top: auto; display: inline-flex; justify-content: center; align-items: center; padding: 0.7rem 1rem; border: 0; border-radius: var(--global-button-radius, 10px);
  background: var(--page-button-color, var(--accent)); color: var(--page-button-text-color, #fff); font: inherit; font-weight: 600; cursor: pointer; transition: filter 0.15s ease, transform 0.15s ease;
}
.combo-card__btn:hover { filter: brightness(1.08); }
.combo-card__btn:active { transform: translateY(1px); }
.combo-card__btn:disabled { background: var(--surface-200); color: var(--surface-600); cursor: not-allowed; }
.combo-card--soldout .combo-card__media { opacity: 0.6; }
.combo-ends { margin: 0; font-size: 0.8rem; font-weight: 600; color: #dc2626; }
.combo-ends:empty { display: none; }
.combo-ends--lg { font-size: 0.9rem; display: inline-flex; padding: 0.35rem 0.75rem; background: #fef2f2; border-radius: 999px; }

/* Product image collage: 1-4 images tile the frame. */
.combo-collage { position: absolute; inset: 0; display: grid; gap: 2px; background: var(--surface-200); }
.combo-collage img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--surface-50); min-height: 0; }
.combo-collage--2 { grid-template-columns: 1fr 1fr; }
.combo-collage--3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.combo-collage--3 img:first-child { grid-row: span 2; }
.combo-collage--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.combo-collage--empty { background: var(--surface-50) var(--placeholder-icon) center / 3rem no-repeat; }
.combo-collage--empty span { display: none; }

.combo-page { padding: 0.5rem 0 2rem; }
.combo-page__head { margin-bottom: 1.5rem; }
.combo-page__head h1 { margin: 0; font-size: 1.9rem; letter-spacing: -0.02em; }
.combo-page__head p { margin: 0.25rem 0 0; color: var(--surface-600); }
.combo-empty { display: grid; justify-items: center; gap: 0.75rem; text-align: center; padding: 3rem 1rem; border: 1px dashed var(--surface-200); border-radius: 16px; color: var(--surface-600); }

.combo-detail { padding: 0.5rem 0 2.5rem; }
.combo-detail__back { display: inline-block; margin-bottom: 1rem; color: var(--surface-600); font-size: 0.9rem; }
.combo-detail__back:hover { color: var(--accent); }
.combo-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.combo-detail__media { position: sticky; top: 1rem; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--surface-50); }
.combo-detail__eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700; color: var(--accent); }
.combo-detail__info h1 { margin: 0.25rem 0 0.5rem; font-size: 2rem; line-height: 1.15; letter-spacing: -0.02em; }
.combo-detail__desc { margin: 0 0 0.75rem; color: var(--surface-600); }
.combo-detail__h2 { margin: 1.5rem 0 0.6rem; font-size: 1rem; }
.combo-detail__soldout { margin-top: 1.5rem; padding: 0.9rem 1rem; border-radius: 12px; background: var(--surface-50); color: var(--surface-600); font-weight: 600; }

.combo-price-box {
  margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, #fff), color-mix(in srgb, var(--accent) 3%, #fff)); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.combo-price-box__label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--surface-600); font-weight: 600; }
.combo-price-box strong { font-size: 1.9rem; color: var(--accent); letter-spacing: -0.02em; }
.combo-price-box__regular { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.combo-price-box__regular s { color: var(--surface-400); }
.combo-price-box__save { padding: 0.2rem 0.6rem; border-radius: 999px; background: #dcfce7; color: #166534; font-weight: 700; font-size: 0.8rem; }

.combo-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.combo-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem; border: 1px solid var(--surface-200); border-radius: 12px; }
.combo-item img, .combo-item__ph { width: 3rem; height: 3rem; border-radius: 8px; object-fit: cover; background: var(--surface-50) var(--placeholder-icon) center / 1.4rem no-repeat; flex-shrink: 0; }
.combo-item__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.combo-item__body a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-item__body a:hover { color: var(--accent); }
.combo-item__body span { color: var(--surface-600); font-size: 0.85rem; }
.combo-item__qty { font-weight: 700; color: var(--surface-600); }

.combo-choices__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.combo-choices__count { font-size: 0.85rem; font-weight: 700; color: var(--surface-600); padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--surface-50); transition: background 0.2s, color 0.2s; }
.combo-choices__count.is-done { background: #dcfce7; color: #166534; }
.combo-choices__hint { margin: -0.3rem 0 0.6rem; color: var(--surface-600); font-size: 0.85rem; }
.combo-choices__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.6rem; }
.combo-choice {
  position: relative; display: flex; flex-direction: column; gap: 0.3rem; padding: 0.5rem; border: 2px solid var(--surface-200); border-radius: 14px; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s; background: var(--surface-0);
}
.combo-choice:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--surface-200)); }
.combo-choice input { position: absolute; opacity: 0; pointer-events: none; }
.combo-choice img, .combo-choice .combo-item__ph { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; object-fit: cover; }
.combo-choice__name { font-size: 0.85rem; font-weight: 600; line-height: 1.25; }
.combo-choice__price { font-size: 0.8rem; color: var(--surface-600); }
.combo-choice__tick {
  position: absolute; top: 0.9rem; right: 0.9rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 700; transform: scale(0); transition: transform 0.18s cubic-bezier(.3, 1.6, .6, 1);
}
.combo-choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.combo-choice:has(input:checked) .combo-choice__tick { transform: scale(1); }
.combo-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.combo-choice:has(input:disabled:not(:checked)) { opacity: 0.5; cursor: not-allowed; }
.combo-choice--out .combo-choice__price { color: #dc2626; }

.combo-buy { display: flex; gap: 0.6rem; margin-top: 1.5rem; flex-wrap: wrap; align-items: stretch; }
.combo-buy__btn {
  flex: 1 1 9rem; padding: 0.85rem 1.25rem; border-radius: var(--global-button-radius, 12px); font: inherit; font-weight: 700; cursor: pointer;
  border: 2px solid var(--page-button-color, var(--accent)); transition: filter 0.15s, transform 0.15s;
}
.combo-buy__btn:active { transform: translateY(1px); }
.combo-buy__btn--add { background: var(--surface-0); color: var(--page-button-color, var(--accent)); }
.combo-buy__btn--now { background: var(--page-button-color, var(--accent)); color: var(--page-button-text-color, #fff); }
.combo-buy__btn--now:hover { filter: brightness(1.08); }
.combo-buy__error { margin: 0.6rem 0 0; color: #dc2626; font-weight: 600; font-size: 0.9rem; }
.combo-buy__note { margin: 0.6rem 0 0; color: var(--surface-600); font-size: 0.85rem; }

@media (max-width: 48rem) {
  .combo-detail__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .combo-detail__media { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .combo-detail__info h1 { font-size: 1.6rem; }
  .combo-section__head h2 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .combo-card, .combo-choice__tick { transition: none; }
  .combo-card:hover { transform: none; }
}

/* ---------------------------------------------------------------------------
   Buy X Get Y + Free Shipping (storefront/offers/render.ts): homepage blocks,
   product-page notes, /offers/:id, and the cart/checkout offer box.
   ------------------------------------------------------------------------- */
.offer-section { margin: 0 0 2.25rem; display: grid; gap: 1rem; }
.offer-section__head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.01em; }
.offer-section__head p { margin: 0.15rem 0 0; color: var(--surface-600); }

.offer-ship-banner {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; border-radius: 14px; flex-wrap: wrap;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, #fff), color-mix(in srgb, #16a34a 10%, #fff));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.offer-ship-banner__icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--accent); color: #fff; flex-shrink: 0; }
.offer-ship-banner__icon svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.offer-ship-banner p { margin: 0; display: flex; flex-direction: column; flex: 1; min-width: 12rem; }
.offer-ship-banner strong { font-size: 1rem; }
.offer-ship-banner span { color: var(--surface-600); font-size: 0.9rem; }

.offer-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; }
.offer-card {
  position: relative; display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem; border-radius: 18px; overflow: hidden; min-height: 10rem;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #000)); color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.offer-card::after { content: ""; position: absolute; right: -3rem; top: -3rem; width: 10rem; height: 10rem; border-radius: 50%; background: rgb(255 255 255 / 0.08); pointer-events: none; }
.offer-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 35%, transparent); }
.offer-card__text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; z-index: 1; }
.offer-card__badge { align-self: flex-start; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgb(255 255 255 / 0.2); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; }
.offer-card__headline { margin: 0.2rem 0 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.offer-card h3 { margin: 0; font-size: 0.95rem; font-weight: 600; opacity: 0.92; }
.offer-card__desc { margin: 0; font-size: 0.85rem; opacity: 0.85; }
.offer-card .combo-ends { color: #fff; opacity: 0.9; }
.offer-card__cta { margin-top: auto; padding-top: 0.5rem; font-weight: 700; font-size: 0.9rem; }
.offer-card__thumbs { display: flex; align-items: center; z-index: 1; flex-shrink: 0; }
.offer-card__thumbs img { width: 4.25rem; height: 4.25rem; object-fit: cover; border-radius: 14px; border: 3px solid rgb(255 255 255 / 0.9); box-shadow: 0 8px 18px rgb(0 0 0 / 0.2); background: #fff; }
.offer-card__thumbs img + img { margin-left: -1.6rem; }
.offer-card__thumbs img:nth-child(2) { transform: rotate(6deg); }
.offer-card__thumbs img:nth-child(3) { transform: rotate(-6deg); }

.offer-notes { display: grid; gap: 0.4rem; margin: 0.25rem 0 0.9rem; }
.offer-note {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.85rem; border-radius: 12px; font-size: 0.9rem;
  background: color-mix(in srgb, var(--accent) 8%, #fff); border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); transition: background 0.15s;
}
.offer-note:hover { background: color-mix(in srgb, var(--accent) 14%, #fff); }
.offer-note strong { color: var(--accent); }
.offer-note__icon { font-size: 1.1rem; }
.offer-note__more { margin-left: auto; color: var(--accent); font-weight: 700; }

.offer-page { padding: 0.5rem 0 2rem; }
.offer-page__hero {
  padding: 1.75rem; border-radius: 20px; margin-bottom: 1.75rem; color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000));
}
.offer-page__headline { margin: 0.3rem 0 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.offer-page__hero h1 { margin: 0.1rem 0 0.4rem; font-size: 1.15rem; font-weight: 600; opacity: 0.92; }
.offer-page__desc { margin: 0 0 0.5rem; opacity: 0.9; }
.offer-page__hero .combo-ends--lg { background: rgb(255 255 255 / 0.18); color: #fff; }
.offer-page__steps { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 0.4rem; }
.offer-page__steps li { counter-increment: step; display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; }
.offer-page__steps li::before { content: counter(step); display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgb(255 255 255 / 0.22); font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
.offer-page__h2 { margin: 0 0 1rem; font-size: 1.2rem; }

/* Cart drawer / cart page / checkout */
.offer-box { display: grid; gap: 0.4rem; margin: 0.5rem 0; }
.offer-box[hidden] { display: none; }
.offer-box__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 0.75rem; padding: 0.55rem 0.7rem; border-radius: 10px;
  background: var(--surface-50); border: 1px solid var(--surface-200); font-size: 0.85rem; animation: offerIn 0.25s ease both;
}
.offer-box__row span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.offer-box__row small { color: var(--surface-600); font-size: 0.75rem; }
.offer-box__row--ok { background: #f0fdf4; border-color: #bbf7d0; }
.offer-box__row--ok strong { color: #166534; }
.offer-box__bar { flex: 1 0 100%; height: 6px; border-radius: 999px; background: var(--surface-200); overflow: hidden; }
.offer-box__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #16a34a); transition: width 0.4s ease; }
.checkout-page__was { color: var(--surface-400); margin-right: 0.25rem; }
.checkout-page__free { color: #16a34a; }
@keyframes offerIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 40rem) {
  .offer-card { flex-direction: column; }
  .offer-card__headline, .offer-page__headline { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .offer-card, .offer-box__row, .offer-box__bar i { transition: none; animation: none; }
  .offer-card:hover { transform: none; }
}

/* Catalogue listing pages (/products, /category/:slug, paginated search)
   and the home grid's "View all products" link. */
.product-listing__header { margin: 0 0 1.5rem; }
.product-listing__header h1 { margin: 0 0 0.25rem; color: var(--page-heading-color, inherit); }
.product-listing__subtitle { margin: 0 0 0.25rem; color: var(--page-text-color, var(--surface-600)); }
.product-listing__count { margin: 0; font-size: 0.875rem; color: var(--surface-500); }
.product-grid__more { display: flex; justify-content: center; margin: 2rem 0 0; }

/* Home page sections (render/home-sections.ts): content blocks sit in a
   centered column like <main> used to give them; the hero slides and Why
   Choose Us bands stay full width between columns. */
.home-main { max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem; }
.home-main:last-child { padding-bottom: 4rem; }
.home-row { margin: 0 0 2.5rem; }
.home-row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.home-row__head h2 { margin: 0; color: var(--page-heading-color, inherit); }
.home-row__all { font-weight: 600; color: var(--page-button-color, var(--accent)); text-decoration: none; white-space: nowrap; }
.home-row__all:hover { text-decoration: underline; }

/* Category chips + search (renderCategoryFilter). */
.category-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; margin: 0 0 1.5rem; }
.category-filter__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.category-filter__chip {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--surface-200);
  border-radius: 999px;
  font-size: 0.875rem;
  color: inherit;
  text-decoration: none;
  background: var(--surface-0);
}
.category-filter__chip:hover { border-color: var(--accent); color: var(--accent); }
.category-filter__chip--active { background: var(--accent); border-color: var(--accent); color: #fff; }
.category-filter__chip--active:hover { color: #fff; }
.category-filter__search input {
  width: 15rem;
  max-width: 100%;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--surface-200);
  border-radius: 999px;
  font: inherit;
  font-size: 0.875rem;
  background: var(--surface-0);
  color: inherit;
}
@media (max-width: 640px) {
  .category-filter__chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; }
  .category-filter__chip { white-space: nowrap; }
  .category-filter__search, .category-filter__search input { width: 100%; }
}
.store-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 0;
}
.store-pagination__link {
  justify-self: start;
  padding: 0.5rem 1rem;
  border: 1px solid var(--surface-200);
  border-radius: var(--global-button-radius, 0.5rem);
  color: var(--page-text-color, var(--surface-900));
  text-decoration: none;
  background: var(--surface-0);
}
.store-pagination__link[rel="next"] { justify-self: end; }
.store-pagination__link:hover { border-color: var(--accent); color: var(--accent); }
.store-pagination__status { font-size: 0.875rem; color: var(--surface-500); }

/* ======================================================================
   Form, table, badge, and image-upload styles the storefront
   shares with the admin panel (account pages, avatar upload). Copied from admin.css so the storefront no longer loads the
   whole admin stylesheet (31 KB gz, render-blocking). admin.css writes
   its colour tokens as raw RGB channels (rgb(var(--x) / a)), unlike this
   file's hex tokens, so these rules read their own --sf-rgb-* copies.
   Keep in sync with admin.css when changing these shared components.
   ====================================================================== */
:root {
  --sf-rgb-surface-0: 255 255 255;
  --sf-rgb-surface-50: 248 250 252;
  --sf-rgb-surface-100: 241 245 249;
  --sf-rgb-surface-200: 226 232 240;
  --sf-rgb-surface-300: 203 213 225;
  --sf-rgb-surface-400: 148 163 184;
  --sf-rgb-surface-500: 100 116 139;
  --sf-rgb-surface-600: 71 85 105;
  --sf-rgb-surface-900: 15 23 42;
  --sf-rgb-brand-50: 238 242 255;
  --sf-rgb-brand-100: 224 231 255;
  --sf-rgb-brand-500: 99 102 241;
  --sf-rgb-brand-600: 79 70 229;
  --sf-rgb-brand-700: 67 56 202;
  --sf-rgb-brand-chip-text: 67 56 202;
  --sf-rgb-danger-500: 220 38 38;
  --sf-rgb-danger-bg: 254 226 226;
  --sf-rgb-danger-text: 153 27 27;
  --sf-rgb-success-bg: 220 252 231;
  --sf-rgb-success-text: 22 101 52;
  --sf-shadow-sm: 0 1px 2px rgb(15 23 42 / 0.05), 0 1px 3px rgb(15 23 42 / 0.08);
  --sf-shadow-md: 0 4px 12px rgb(15 23 42 / 0.08), 0 2px 4px rgb(15 23 42 / 0.06);
  --sf-rgb-warning-bg: 254 243 199;
  --sf-rgb-warning-text: 146 64 14;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgb(var(--sf-rgb-surface-0));
  border: 1px solid rgb(var(--sf-rgb-surface-200));
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--sf-shadow-sm);
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid rgb(var(--sf-rgb-surface-200));
  font-size: 0.875rem;
}

.admin-table th { background: rgb(var(--sf-rgb-surface-50)); font-weight: 600; color: rgb(var(--sf-rgb-surface-600)); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; }

.admin-table tbody tr { transition: background-color 0.12s ease; }

.admin-table tbody tr:hover { background: rgb(var(--sf-rgb-surface-50)); }

.admin-table tbody tr:last-child td { border-bottom: none; }

.admin-table .empty-state { text-align: center; color: rgb(var(--sf-rgb-surface-400)); padding: 2.5rem; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgb(var(--sf-rgb-surface-100));
  color: rgb(var(--sf-rgb-surface-600));
}

.badge--active { background: rgb(var(--sf-rgb-success-bg)); color: rgb(var(--sf-rgb-success-text)); }

.badge--draft { background: rgb(var(--sf-rgb-surface-100)); color: rgb(var(--sf-rgb-surface-600)); }

.badge--archived { background: rgb(var(--sf-rgb-danger-bg)); color: rgb(var(--sf-rgb-danger-text)); }

.badge--risk-low { background: rgb(var(--sf-rgb-success-bg)); color: rgb(var(--sf-rgb-success-text)); }

.badge--risk-medium { background: rgb(var(--sf-rgb-warning-bg)); color: rgb(var(--sf-rgb-warning-text)); }

.badge--risk-high { background: rgb(var(--sf-rgb-danger-bg)); color: rgb(var(--sf-rgb-danger-text)); }

.admin-form button[type="submit"] {
  border: none;
  border-radius: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: rgb(var(--sf-rgb-brand-600));
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: var(--sf-shadow-sm);
}

.admin-form button[type="submit"]:hover { background: rgb(var(--sf-rgb-brand-700)); transform: translateY(-1px); box-shadow: var(--sf-shadow-md); }

.admin-form button[type="submit"]:active { transform: translateY(0); }

.admin-button--secondary {
  background: rgb(var(--sf-rgb-surface-100));
  color: rgb(var(--sf-rgb-surface-900));
  box-shadow: none;
}

.admin-button--secondary:hover { background: rgb(var(--sf-rgb-surface-200)); box-shadow: none; }

.admin-form {
  background: rgb(var(--sf-rgb-surface-0));
  border: 1px solid rgb(var(--sf-rgb-surface-200));
  border-radius: 0.875rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 22rem;
  box-shadow: var(--sf-shadow-sm);
}

.admin-form--inline { max-width: none; margin-top: 1.5rem; }

.admin-form h1,
.admin-form h2 { margin: 0 0 0.25rem; font-size: 1.125rem; }

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.85rem;
  color: rgb(var(--sf-rgb-surface-600));
  font-weight: 500;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgb(var(--sf-rgb-surface-200));
  border-radius: 0.5rem;
  color: rgb(var(--sf-rgb-surface-900));
  background: rgb(var(--sf-rgb-surface-0));
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.admin-form input:hover,
.admin-form select:hover,
.admin-form textarea:hover {
  border-color: rgb(var(--sf-rgb-surface-300));
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: rgb(var(--sf-rgb-brand-500));
  box-shadow: 0 0 0 3px rgb(var(--sf-rgb-brand-500) / 0.15);
}

.admin-form textarea { min-height: 5rem; resize: vertical; }

.admin-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  cursor: pointer;
}

.admin-form__error {
  color: rgb(var(--sf-rgb-danger-500));
  font-size: 0.85rem;
  margin: 0;
  animation: fadeIn 0.2s ease-out;
}

.image-upload__dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 2px dashed rgb(var(--sf-rgb-surface-200));
  border-radius: 0.625rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.image-upload__dropzone:hover,
.image-upload__dropzone--over { border-color: rgb(var(--sf-rgb-brand-500)); background: rgb(var(--sf-rgb-brand-50)); }

.image-upload__hint { font-size: 0.8rem; color: rgb(var(--sf-rgb-surface-600)); }

.image-upload__preview:empty { display: none; }

.image-upload__preview-img { max-width: 6rem; max-height: 6rem; border-radius: 0.5rem; object-fit: cover; }

.image-upload__error { margin-top: 0.5rem; }

.admin-form input[type="checkbox"] { accent-color: rgb(var(--sf-rgb-brand-600)); width: 1rem; height: 1rem; }

.badge--featured { background: rgb(var(--sf-rgb-brand-100)); color: rgb(var(--sf-rgb-brand-chip-text)); }

.badge--published { background: rgb(var(--sf-rgb-success-bg)); color: rgb(var(--sf-rgb-success-text)); }

.badge--paused { background: rgb(var(--sf-rgb-surface-100)); color: rgb(var(--sf-rgb-surface-600)); }

.badge--pending { background: rgb(var(--sf-rgb-brand-100)); color: rgb(var(--sf-rgb-brand-chip-text)); }

.badge--approved { background: rgb(var(--sf-rgb-success-bg)); color: rgb(var(--sf-rgb-success-text)); }

.badge--rejected { background: rgb(var(--sf-rgb-danger-bg)); color: rgb(var(--sf-rgb-danger-text)); }

@media print {
.admin-table { box-shadow: none; }
}

@media print {
.admin-table tr { break-inside: avoid; }
}

/* ---------------------------------------------------------------------------
   Newsletter signup block (render/newsletter.ts) — above the footer on the
   pages the owner picked. Owner colours arrive as --nl-* (unset = theme).
   A copy lives in admin.css for the admin's live preview (.nl-preview).
   --------------------------------------------------------------------------- */
.store-newsletter {
  margin-top: 3rem;
  padding: 2.25rem 1rem;
  background: var(--nl-bg, var(--surface-50));
  color: var(--nl-text, var(--surface-900));
  border-top: 1px solid var(--surface-200);
}
.store-newsletter__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  flex-wrap: wrap;
}
.store-newsletter__text { display: flex; align-items: flex-start; gap: 0.9rem; flex: 1 1 18rem; }
.store-newsletter__icon {
  flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.8rem;
  background: var(--nl-button, var(--page-button-color, var(--accent))); color: #fff;
}
.store-newsletter__title { margin: 0; font-size: 1.25rem; line-height: 1.3; color: inherit; }
.store-newsletter__description { margin: 0.3rem 0 0; opacity: 0.8; font-size: 0.95rem; }
.store-newsletter__form { display: flex; gap: 0.5rem; flex: 1 1 22rem; max-width: 34rem; flex-wrap: wrap; }
.store-newsletter__input {
  flex: 1 1 12rem; min-width: 0; padding: 0.7rem 0.9rem; font: inherit; font-size: 0.95rem;
  border: 1px solid var(--surface-300); border-radius: var(--global-button-radius, 0.6rem); background: #fff; color: var(--surface-900);
}
.store-newsletter__input--name { flex-basis: 8rem; }
.store-newsletter__input:focus { outline: 2px solid var(--nl-button, var(--accent)); outline-offset: 1px; border-color: transparent; }
.store-newsletter__input[hidden], .store-newsletter__hp { display: none; }
.store-newsletter__button {
  padding: 0.7rem 1.3rem; font: inherit; font-weight: 650; font-size: 0.95rem; cursor: pointer; border: 0;
  border-radius: var(--global-button-radius, 0.6rem);
  background: var(--nl-button, var(--page-button-color, var(--accent))); color: var(--page-button-text-color, #fff);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.store-newsletter__button:hover { filter: brightness(1.08); }
.store-newsletter__button:active { transform: translateY(1px); }
.store-newsletter__button:disabled { opacity: 0.6; cursor: progress; }
.store-newsletter__message { flex-basis: 100%; margin: 0; font-size: 0.85rem; font-weight: 600; color: #dc2626; text-align: right; }
.store-newsletter__done {
  margin: 0; padding: 0.75rem 1.1rem; border-radius: 0.7rem; font-weight: 650;
  background: rgb(22 163 74 / 0.12); color: #15803d; animation: nl-pop 0.3s ease;
}
@keyframes nl-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .store-newsletter { padding: 1.75rem 1rem; }
  .store-newsletter__form { max-width: none; }
  .store-newsletter__button { flex: 1 1 100%; }
  .store-newsletter__message { text-align: left; }
}

/* Guest Checkout off: the sign-in screen shown instead of the checkout form. */
.checkout-signin {
  max-width: 30rem; margin: 2rem auto; padding: 2.25rem 1.75rem; text-align: center;
  border: 1px solid var(--page-box-border-color, var(--surface-200)); border-radius: 1rem;
  background: var(--page-bg, var(--surface-0)); box-shadow: 0 6px 24px rgb(15 23 42 / 0.06);
}
.checkout-signin__icon {
  display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--surface-100); color: var(--page-button-color, var(--accent));
}
.checkout-signin h1 { margin: 1rem 0 0.5rem; font-size: 1.4rem; }
.checkout-signin p { margin: 0 0 1.5rem; color: var(--page-text-color, var(--surface-600)); line-height: 1.55; }
.checkout-signin__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.checkout-signin__actions .btn { min-width: 9rem; }
.checkout-signin__back { display: inline-block; margin-top: 1.25rem; font-size: 0.9rem; color: var(--surface-500); }

/* Saved Addresses at checkout: one-tap address chips + "Save this address". */
.checkout-addr { margin: -0.25rem 0 0.25rem; }
.checkout-addr__head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.5rem; font-weight: 650; font-size: 0.85rem; color: var(--page-subheading-color, var(--surface-600)); }
.checkout-addr__head small { font-weight: 500; color: var(--surface-500); }
.checkout-addr__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.6rem; }
.checkout-addr__chip { position: relative; animation: nl-pop 0.25s ease; }
.checkout-addr__pick {
  display: flex; flex-direction: column; gap: 0.15rem; width: 100%; padding: 0.65rem 2rem 0.65rem 0.8rem; text-align: left; font: inherit; cursor: pointer;
  border: 1.5px solid var(--page-input-border-color, var(--surface-200)); border-radius: 0.7rem; background: var(--surface-0); color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.checkout-addr__pick:hover { border-color: var(--surface-400); }
.checkout-addr__pick:focus-visible { outline: 2px solid var(--page-button-color, var(--accent)); outline-offset: 2px; }
.checkout-addr__chip.is-selected .checkout-addr__pick {
  border-color: var(--page-button-color, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--page-button-color, var(--accent)) 15%, transparent);
}
.checkout-addr__pick strong { font-size: 0.88rem; }
.checkout-addr__who { font-size: 0.8rem; color: var(--surface-600); }
.checkout-addr__where { font-size: 0.8rem; color: var(--surface-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout-addr__remove {
  position: absolute; top: 0.35rem; right: 0.35rem; width: 1.5rem; height: 1.5rem; border: 0; border-radius: 50%;
  background: transparent; color: var(--surface-400); font-size: 1.05rem; line-height: 1; cursor: pointer;
}
.checkout-addr__remove:hover, .checkout-addr__remove:focus-visible { background: var(--surface-100); color: #dc2626; }
.checkout-addr__save { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: -0.4rem; }
.checkout-addr__save-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.75rem; font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;
  border: 1px dashed var(--surface-300); border-radius: 999px; background: transparent; color: var(--page-button-color, var(--accent));
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.checkout-addr__save-btn:hover:not(:disabled) { background: var(--surface-50); border-style: solid; }
.checkout-addr__save-btn.is-saved { border-style: solid; border-color: transparent; background: rgb(22 163 74 / 0.1); color: #15803d; cursor: default; }
.checkout-addr__save-btn.is-saved svg { fill: currentColor; }
.checkout-addr__save-note { font-size: 0.8rem; color: #dc2626; }
.checkout-addr__save-note--ok { color: #15803d; }
@media (prefers-reduced-motion: reduce) {
  .store-newsletter__done, .checkout-addr__chip { animation: none; }
}

/* ---------------------------------------------------------------------
   Limited Time Offers (storefront/offers/limited-render.ts): homepage
   banner, product card badge + offer price, product page block and the
   /flash-sale page. `.is-ended` is set in the browser when an offer with
   automatic expiry runs out while the page is open: the regular price
   comes back and the offer bits hide.
   --------------------------------------------------------------------- */
.lto-banners { display: grid; gap: 1rem; margin: 0 0 2rem; }
.lto-banner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.4rem 1.6rem;
  border-radius: 18px; overflow: hidden; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, #dc2626, #f97316 55%, #f59e0b);
  box-shadow: 0 10px 28px rgb(220 38 38 / 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lto-banner::after { content: ""; position: absolute; right: -4rem; bottom: -5rem; width: 14rem; height: 14rem; border-radius: 50%; background: rgb(255 255 255 / 0.1); pointer-events: none; }
.lto-banner:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgb(220 38 38 / 0.3); }
.lto-banner__text { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; z-index: 1; }
.lto-banner__eyebrow { align-self: flex-start; padding: 0.2rem 0.65rem; border-radius: 999px; background: rgb(255 255 255 / 0.22); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.lto-banner__title { margin: 0.15rem 0 0; font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: inherit; }
.lto-banner__desc { margin: 0; opacity: 0.92; font-size: 0.95rem; }
.lto-banner__facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.35rem; }
.lto-banner__fact { padding: 0.35rem 0.75rem; border-radius: 10px; background: rgb(0 0 0 / 0.18); font-size: 0.92rem; }
.lto-banner__fact b { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.lto-banner__ended, .lto-section__ended, .lto-detail__ended { display: none; }
.lto-banner__cta { margin-top: 0.4rem; font-weight: 700; }
.lto-banner__thumbs { display: flex; gap: 0.5rem; z-index: 1; flex-shrink: 0; }
.lto-banner__thumbs img { width: 4.75rem; height: 4.75rem; object-fit: cover; border-radius: 12px; border: 2px solid rgb(255 255 255 / 0.6); background: #fff; }
.lto-banner.is-ended { filter: grayscale(0.7); opacity: 0.8; }
.lto-banner.is-ended .lto-banner__ended { display: inline-block; }
.lto-banner.is-ended .lto-banner__cta { display: none; }
@media (max-width: 640px) {
  .lto-banner { flex-direction: column; align-items: flex-start; padding: 1.2rem; }
  .lto-banner__thumbs img { width: 3.75rem; height: 3.75rem; }
}

.lto-badge {
  position: absolute; top: 0.5rem; left: 0.5rem; z-index: 2; padding: 0.22rem 0.55rem; border-radius: 6px;
  background: #dc2626; color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; box-shadow: 0 2px 6px rgb(220 38 38 / 0.35);
}
.lto-badge--inline { position: static; display: inline-block; vertical-align: middle; margin-left: 0.4rem; box-shadow: none; }
.lto-now { color: #dc2626; font-weight: 800; }
.lto-was { color: var(--surface-500, #94a3b8); font-weight: 500; font-size: 0.88em; margin-left: 0.25rem; }
.product-card--lto .product-card__price { opacity: 1; }
.is-ended .lto-badge, .is-ended .lto-now { display: none; }
.is-ended .lto-was { text-decoration: none; color: inherit; font-size: 1em; margin-left: 0; }

.lto-detail { margin: 0 0 0.75rem; }
.lto-detail .product-detail__price { margin-bottom: 0.4rem; }
.lto-detail__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; padding: 0.6rem 0.85rem; border-radius: 12px;
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 0.9rem;
}
.lto-detail__name { font-weight: 700; }
.lto-detail__clock b { font-variant-numeric: tabular-nums; }
.lto-detail.is-ended .lto-detail__name, .lto-detail.is-ended .lto-detail__save { display: none; }
.lto-detail.is-ended .lto-detail__ended { display: inline; }

.lto-page__head { text-align: center; margin: 0.5rem 0 1.75rem; }
.lto-page__head h1 { margin: 0 0 0.35rem; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.lto-page__head p { margin: 0; color: var(--surface-600); }
.lto-page__empty { text-align: center; display: grid; justify-items: center; gap: 0.75rem; padding: 2.5rem 1rem; }
.lto-section { margin: 0 0 2.5rem; scroll-margin-top: 5rem; }
.lto-section__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.75rem; margin-bottom: 1rem; padding: 1rem 1.2rem;
  border-radius: 14px; background: linear-gradient(120deg, #fef2f2, #fff7ed); border: 1px solid #fed7aa;
}
.lto-section__head h2 { margin: 0.35rem 0 0.15rem; font-size: 1.35rem; }
.lto-section__head p { margin: 0; color: var(--surface-600); font-size: 0.92rem; }
.lto-section__head .lto-banner__eyebrow { background: #dc2626; color: #fff; }
.lto-section__clock { display: inline-block; padding: 0.45rem 0.85rem; border-radius: 10px; background: #111827; color: #fff; font-size: 0.9rem; }
.lto-section__clock b { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.lto-section.is-ended .lto-section__ended { display: inline-block; padding: 0.45rem 0.85rem; border-radius: 10px; background: var(--surface-200, #e2e8f0); font-weight: 600; }
/* A product's own discount price (currentUnitPrice) on cards and the product page. */
.price-now { font-weight: 700; }
.price-was { color: var(--surface-500, #94a3b8); font-weight: 500; font-size: 0.88em; margin-left: 0.25rem; }

/* ---------------------------------------------------------------------
   Share Products (render/share-product.ts): one share icon by the product
   name; tapping it opens a share menu — a bottom sheet on phones, a small
   centred card on larger screens.
   --------------------------------------------------------------------- */
.product-detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.product-detail__head h1 { min-width: 0; }
.share-product { flex: none; }
.share-product__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-width: 2.5rem; height: 2.5rem; padding: 0 0.6rem;
  border: 1px solid var(--surface-200, #e2e8f0); border-radius: 999px; background: var(--surface-0, #fff); color: var(--page-text-color, var(--surface-700, #334155));
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.share-product__btn:hover { border-color: var(--page-button-color, var(--accent)); color: var(--page-button-color, var(--accent)); transform: translateY(-1px); }
.share-product__btn:focus-visible { outline: 2px solid var(--page-button-color, var(--accent)); outline-offset: 2px; }
.share-product__btn--label { padding: 0 0.95rem 0 0.75rem; }

.share-sheet { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.share-sheet[hidden] { display: none; }
.share-sheet__backdrop { position: absolute; inset: 0; background: rgb(15 23 42 / 0.45); opacity: 0; transition: opacity 0.18s ease; }
.share-sheet__panel {
  position: relative; width: 100%; max-width: 28rem; padding: 1rem 1rem 1.25rem; border-radius: 18px 18px 0 0;
  background: var(--surface-0, #fff); color: var(--surface-900, #0f172a); box-shadow: 0 -10px 40px rgb(15 23 42 / 0.2);
  transform: translateY(100%); transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); outline: none;
}
.share-sheet.is-open .share-sheet__backdrop { opacity: 1; }
.share-sheet.is-open .share-sheet__panel { transform: none; }
@media (min-width: 640px) {
  .share-sheet { align-items: center; padding: 1rem; }
  .share-sheet__panel { border-radius: 18px; transform: translateY(12px) scale(0.97); opacity: 0; transition: transform 0.18s ease, opacity 0.18s ease; }
  .share-sheet.is-open .share-sheet__panel { opacity: 1; }
}
.share-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.share-sheet__head strong { font-size: 1rem; }
.share-sheet__close { width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: var(--surface-100, #f1f5f9); color: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.share-sheet__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.share-sheet__opt {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 0.75rem 0.25rem; border: 1px solid transparent; border-radius: 14px;
  background: none; color: inherit; font: inherit; font-size: 0.82rem; cursor: pointer; transition: background 0.15s ease;
}
.share-sheet__opt[hidden] { display: none; }
.share-sheet__opt:hover, .share-sheet__opt:focus-visible { background: var(--surface-100, #f1f5f9); outline: none; }
.share-sheet__opt:focus-visible { border-color: var(--accent); }
.share-sheet__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--surface-100, #f1f5f9); color: var(--surface-700, #334155); }
.share-sheet__opt--facebook .share-sheet__icon { background: #1877f2; color: #fff; }
.share-sheet__opt--whatsapp .share-sheet__icon { background: #25d366; color: #fff; }
.share-sheet__opt--telegram .share-sheet__icon { background: #229ed9; color: #fff; }
.share-sheet__opt--email .share-sheet__icon { background: #ea580c; color: #fff; }
.share-sheet__opt--copy .share-sheet__icon { background: #334155; color: #fff; }
.share-sheet__status { min-height: 1.2rem; margin: 0.6rem 0 0; text-align: center; font-size: 0.85rem; color: var(--surface-600, #475569); overflow-wrap: anywhere; }
.share-sheet__status.is-ok { color: #15803d; font-weight: 600; }
.share-sheet__link { display: block; width: 100%; margin-top: 0.4rem; padding: 0.5rem 0.6rem; border: 1px solid var(--surface-300, #cbd5e1); border-radius: 0.5rem; font: inherit; font-size: 0.8rem; color: inherit; background: var(--surface-50, #f8fafc); }
html.share-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .share-sheet__panel, .share-sheet__backdrop { transition: none; }
}

/* ---------------------------------------------------------------------
   Product variants (render/variant-picker.ts): option buttons on the
   product page; "From" prices and "Choose options" on cards.
   --------------------------------------------------------------------- */
.price-from { font-size: 0.8em; font-weight: 500; opacity: 0.75; margin-right: 0.15rem; }
a.product-card__add-btn--options { display: block; text-align: center; text-decoration: none; }
.pd-variants { display: grid; gap: 0.9rem; margin: 0.25rem 0 1rem; }
.pd-opt__label { margin: 0 0 0.45rem; font-size: 0.9rem; font-weight: 600; color: var(--page-heading-color, inherit); }
.pd-opt__chosen { font-weight: 500; color: var(--page-text-color, var(--surface-600)); }
.pd-opt__values { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pd-opt__value {
  min-width: 2.75rem; padding: 0.5rem 0.9rem; border: 1.5px solid var(--surface-200, #e2e8f0); border-radius: 0.6rem;
  background: var(--surface-0, #fff); color: var(--page-text-color, var(--surface-800, #1e293b)); font: inherit; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.pd-opt__value:hover { border-color: var(--page-button-color, var(--accent)); }
.pd-opt__value:focus-visible { outline: 2px solid var(--page-button-color, var(--accent)); outline-offset: 2px; }
.pd-opt__value.is-selected { border-color: var(--page-button-color, var(--accent)); background: var(--page-button-color, var(--accent)); color: var(--page-button-text-color, #fff); }
.pd-opt__value.is-unavailable { color: var(--surface-400, #94a3b8); background-image: linear-gradient(to top right, transparent calc(50% - 1px), var(--surface-300, #cbd5e1) 50%, transparent calc(50% + 1px)); }
.pd-opt__value.is-unavailable.is-selected { color: var(--page-button-text-color, #fff); opacity: 0.6; }
.pd-stock { margin: 0; min-height: 1.3rem; font-size: 0.88rem; color: var(--page-text-color, var(--surface-600)); }
.pd-stock.is-in { color: #15803d; font-weight: 600; }
.pd-stock.is-out { color: #b91c1c; font-weight: 600; }
.pd-stock.is-low { color: #b45309; font-weight: 600; }
/* Stock Display (render/stock-line.ts): a simple product's line sits under
   its price, so it gets the space the variant picker's line gets from its
   own block. */
.product-detail__price + .pd-stock { margin: -0.25rem 0 0.75rem; }
.product-card__stock { display: flex; align-items: center; gap: 0.35rem; margin: 0.3rem 0 0; font-size: 0.78rem; font-weight: 600; color: #15803d; }
.product-card__stock span { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; flex: none; }
.product-card__stock.is-low { color: #b45309; }
.product-card__stock.is-out { color: #b91c1c; }
.product-card__add-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.product-detail__actions .btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------------------------------------------------------------------
   Product sorting (render/product-listing.ts): "Showing N products" and
   the "Sort by" menu, top right above the grid.
   --------------------------------------------------------------------- */
.product-listing__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.4rem; }
.product-listing__bar .product-listing__count { margin: 0; }
.listing-sort { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.listing-sort__label { font-size: 0.88rem; color: var(--page-text-color, var(--surface-600)); white-space: nowrap; }
.listing-sort__select {
  padding: 0.5rem 2rem 0.5rem 0.75rem; border: 1px solid var(--surface-200, #e2e8f0); border-radius: 0.6rem;
  background: var(--surface-0, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
  appearance: none; -webkit-appearance: none; color: inherit; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.listing-sort__select:focus-visible { outline: 2px solid var(--page-button-color, var(--accent)); outline-offset: 2px; }
.listing-sort__go { padding: 0.45rem 0.8rem; border-radius: 0.6rem; border: 0; background: var(--page-button-color, var(--accent)); color: #fff; font: inherit; }
@media (max-width: 520px) { .listing-sort { margin-left: 0; width: 100%; } .listing-sort__select { flex: 1; } }

/* Facebook Tracking consent banner (facebook-tracking/pixel-script.ts) —
   shown only when the store requires consent and the shopper hasn't chosen. */
.kt-consent {
  position: fixed; z-index: 1000; left: 50%; bottom: 1rem; transform: translateX(-50%);
  width: min(40rem, calc(100% - 2rem)); box-sizing: border-box;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.15rem; border-radius: 0.875rem;
  background: #0f172a; color: #f8fafc; box-shadow: 0 18px 48px rgb(2 6 23 / 0.3);
  font-size: 0.875rem; line-height: 1.45;
  animation: ktConsentIn 0.3s ease-out both;
}
.kt-consent p { margin: 0; flex: 1 1 16rem; }
.kt-consent__actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.kt-consent__btn {
  min-height: 2.5rem; padding: 0 1.1rem; border-radius: 0.6rem; border: 1px solid transparent;
  background: var(--accent, #4f46e5); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.kt-consent__btn--ghost { background: transparent; border-color: rgb(248 250 252 / 0.3); color: #f8fafc; }
.kt-consent__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes ktConsentIn { from { opacity: 0; transform: translate(-50%, 0.75rem); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 30rem) {
  .kt-consent { bottom: 0.5rem; padding: 0.9rem; }
  .kt-consent__actions { width: 100%; }
  .kt-consent__btn { flex: 1; min-height: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) { .kt-consent { animation: none; } }
