: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; }
/* The hidden attribute always hides. Component rules that set display
   (flex/grid) otherwise beat the browser's own [hidden] rule — checkout's
   payment panels, empty error banner and zero discount rows all showed. */
[hidden] { display: none !important; }

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;
  /* Hero Layout → Slider → Size & spacing (shared slideThemeVars). */
  aspect-ratio: var(--slides-aspect, 21 / 9);
  max-height: 40rem;
  overflow: hidden;
  background: var(--surface-50);
  border-radius: var(--slides-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;
}

/* "Show the whole image": the photo is contained, over a soft blurred copy of
   itself that fills the rest of the banner (no empty bars, any photo size). */
.store-slides[data-slides-fit="contain"] .store-slides__slide { position: relative; overflow: hidden; }
.store-slides[data-slides-fit="contain"] .store-slides__slide img:not(.store-slides__backdrop) { position: relative; object-fit: contain; }
.store-slides:not([data-slides-fit="contain"]) .store-slides__backdrop { display: none; }
.store-slides__backdrop {
  position: absolute; inset: -6%; width: 112% !important; height: 112% !important;
  object-fit: cover; filter: blur(28px) saturate(1.15); opacity: 0.55; transform: translateZ(0);
}

.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) {
  /* Phones: their own shape and side space; without a phone value the side
     space is the computer one, capped at 24px. */
  .store-slides {
    aspect-ratio: var(--slides-aspect-phone, 4 / 3);
    margin-left: var(--slides-mobile-side, min(var(--slides-margin-left, 0px), 1.5rem));
    margin-right: var(--slides-mobile-side, min(var(--slides-margin-right, 0px), 1.5rem));
  }
  .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;
}

/* 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;
}

.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 {
  display: block;
  width: 100%;
  /* responsiveImage() sets width/height attributes (for layout stability);
     without height:auto the height attribute wins and aspect-ratio is
     ignored, so photos rendered taller than the square and were cropped. */
  height: auto;
  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 photo column (Product Details Page, 2026-11-27): the main photo sits
   in a framed "stage"; extra photos are thumbnails below it or beside it
   (left / right), and the zoom view opens beside the column. */
.product-detail__media { position: relative; display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.pd-gallery--left.has-thumbs, .pd-gallery--right.has-thumbs { flex-direction: row; align-items: flex-start; }
.pd-gallery--left .pd-thumbs { order: -1; }
.pd-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--surface-200);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface-0);
  box-shadow: 0 12px 30px rgb(15 23 42 / 0.07);
}
.pd-stage img,
.product-detail__placeholder {
  display: block;
  width: 100%;
  height: auto; /* see .product-card img */
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface-50) var(--placeholder-icon) center/4rem no-repeat;
  transition: transform 0.35s ease;
}
.pd-gallery:not([data-zoom]) .pd-stage:hover .pd-main { transform: scale(1.04); }

/* Product photos are shown whole inside the square frame — any size or
   shape fits without being cropped or stretched (a square photo fills it
   edge to edge; the admin upload guide recommends 1200 × 1200). */
.product-card__media img,
.pd-stage img {
  object-fit: contain;
  background-color: var(--surface-0);
}

.pd-thumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.6rem; overflow-x: auto; scrollbar-width: thin; }
.pd-gallery--left .pd-thumbs, .pd-gallery--right .pd-thumbs { flex-direction: column; overflow-x: visible; overflow-y: auto; max-height: 34rem; width: 4.75rem; flex-shrink: 0; }
.pd-thumb {
  display: block; width: 4.5rem; height: 4.5rem; padding: 0; border: 1px solid var(--surface-200); border-radius: 0.65rem;
  overflow: hidden; background: var(--surface-0); cursor: pointer; opacity: 0.72;
  transition: opacity 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.pd-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pd-thumb:hover { opacity: 1; }
.pd-thumb.is-active { opacity: 1; border-color: var(--page-button-color, var(--accent)); box-shadow: 0 0 0 1px var(--page-button-color, var(--accent)); }
.pd-thumb:focus-visible { outline: 2px solid var(--page-button-color, var(--accent)); outline-offset: 2px; }

/* Zoom: a lens over the photo and the magnified view beside it (or the
   photo zooming in place when there's no room — product-page-script.ts). */
.pd-gallery[data-zoom] .pd-stage { cursor: crosshair; }
.pd-lens {
  position: absolute; display: none; pointer-events: none; border-radius: 0.5rem;
  border: 1px solid rgb(255 255 255 / 0.9); background: rgb(255 255 255 / 0.25); box-shadow: 0 0 0 1px rgb(15 23 42 / 0.15);
}
.pd-zoom {
  position: absolute; z-index: 30; top: 0; left: calc(100% + 1.5rem); width: 100%; aspect-ratio: 1; display: none;
  border: 1px solid var(--surface-200); border-radius: 1rem; background-color: var(--surface-0); background-repeat: no-repeat;
  box-shadow: 0 18px 40px rgb(15 23 42 / 0.16); pointer-events: none;
}
.pd-gallery.is-zooming .pd-lens, .pd-gallery.is-zooming .pd-zoom { display: block; }
.pd-gallery.is-zooming-in .pd-main { transition: transform 0.1s ease-out; }
.pd-gallery.has-thumbs.pd-gallery--left .pd-zoom, .pd-gallery.has-thumbs.pd-gallery--right .pd-zoom { width: calc(100% - 5.5rem); }

.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));
}
/* The label wraps its input, so a plain ::after landed on its own line under
   the field. A two-column grid keeps the * beside the label text; the input
   and error take full rows below. */
.checkout-page__label--required { display: grid; grid-template-columns: auto 1fr; column-gap: 0.25rem; }
.checkout-page__label--required > * { grid-column: 1 / -1; }
.checkout-page__label--required::after { grid-row: 1; grid-column: 2; justify-self: start; }
.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; }
/* display:flex above beat the hidden attribute, so every method's panel
   showed at once. */
.checkout-pay__panel[hidden] { display: none; }
.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; } }

/* Delivery area picker (checkout, Delivery Charges section). Same card
   language as the payment options above. */
.checkout-ship { border: none; margin: 0.25rem 0 1rem; padding: 0; min-width: 0; }
.checkout-ship__legend { padding: 0; margin-bottom: 0.5rem; }
.checkout-ship__options { display: grid; gap: 0.5rem; }
.checkout-ship__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.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-ship__option:hover { border-color: var(--page-button-color, var(--accent)); }
.checkout-ship__option input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--page-button-color, var(--accent)); flex-shrink: 0; }
.checkout-ship__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-ship__option:has(input:focus-visible) { outline: 2px solid var(--page-button-color, var(--accent)); outline-offset: 2px; }
.checkout-ship__text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.checkout-ship__text strong { font-weight: 650; }
.checkout-ship__text small { color: var(--surface-500, #64748b); font-size: 0.8rem; font-weight: 500; }
.checkout-ship__fee { flex-shrink: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.checkout-page__pending { color: var(--surface-500, #64748b); font-size: 0.85rem; font-weight: 500; }

/* bKash / Nagad payment drawer: from the right on wider screens, a bottom
   sheet on phones. Opened only for a mobile wallet — never for COD. */
html.pay-drawer-open { overflow: hidden; }
.pay-drawer { position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: flex-end; }
.pay-drawer[hidden] { display: none; }
.pay-drawer__backdrop { position: absolute; inset: 0; background: rgb(15 23 42 / 0.45); opacity: 0; transition: opacity 0.2s ease; }
.pay-drawer__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(27rem, 100%);
  height: 100%;
  background: var(--page-bg, #fff);
  color: var(--page-text-color, inherit);
  box-shadow: -12px 0 32px rgb(15 23 42 / 0.16);
  transform: translateX(100%);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  outline: none;
}
.pay-drawer.is-open .pay-drawer__backdrop { opacity: 1; }
.pay-drawer.is-open .pay-drawer__panel { transform: none; }
.pay-drawer__panel--bkash { border-top: 3px solid #e2136e; }
.pay-drawer__panel--nagad { border-top: 3px solid #f7941d; }
.pay-drawer__head { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--surface-200); }
.pay-drawer__title { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.pay-drawer__title strong { font-size: 1.05rem; font-weight: 650; color: var(--page-heading-color, inherit); }
.pay-drawer__title small { color: var(--surface-500, #64748b); font-size: 0.8rem; }
.pay-drawer__close {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  border: none;
  border-radius: 0.6rem;
  background: none;
  color: var(--surface-500, #64748b);
  cursor: pointer;
}
.pay-drawer__close:hover { background: var(--surface-100, #f1f5f9); color: inherit; }
.pay-drawer__close:focus-visible { outline: 2px solid var(--page-button-color, var(--accent)); outline-offset: 2px; }
.pay-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.1rem; display: flex; flex-direction: column; gap: 1rem; }
.pay-drawer__facts { display: grid; border: 1px solid var(--surface-200); border-radius: 0.8rem; overflow: hidden; }
.pay-drawer__fact { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0.9rem; background: var(--surface-50); }
.pay-drawer__fact + .pay-drawer__fact { border-top: 1px solid var(--surface-200); }
.pay-drawer__fact > span:first-child { color: var(--surface-600, #475569); font-size: 0.85rem; }
.pay-drawer__fact strong { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.pay-drawer__number { display: inline-flex; align-items: center; gap: 0.5rem; }
.pay-drawer__number strong { letter-spacing: 0.03em; }
.pay-drawer__number .checkout-pay__copy { min-height: 2.25rem; padding: 0 0.8rem; font-size: 0.8rem; }
.pay-drawer__steps { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.9rem; }
.pay-drawer__note { margin: 0; padding: 0.65rem 0.85rem; border-radius: 0.6rem; background: var(--surface-50); color: var(--surface-600, #475569); font-size: 0.85rem; }
.pay-drawer__body .checkout-page__label { margin: 0; }
.pay-drawer__foot { padding: 0.9rem 1.1rem calc(0.9rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--surface-200); display: grid; gap: 0.5rem; }
.pay-drawer__done { width: 100%; min-height: 2.9rem; }
.pay-drawer__error { margin: 0; color: #b91c1c; font-size: 0.85rem; font-weight: 600; }
.pay-drawer__hint { margin: 0; text-align: center; color: var(--surface-500, #64748b); font-size: 0.78rem; }
@media (max-width: 48rem) {
  .pay-drawer { align-items: flex-end; justify-content: center; }
  .pay-drawer__panel { width: 100%; height: auto; max-height: 92dvh; border-radius: 1.1rem 1.1rem 0 0; transform: translateY(100%); box-shadow: 0 -12px 32px rgb(15 23 42 / 0.16); }
  .pay-drawer__panel--bkash, .pay-drawer__panel--nagad { border-top-width: 4px; }
  .pay-drawer__body input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pay-drawer__panel, .pay-drawer__backdrop { transition: 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 {
  display: block;
  width: 100%;
  height: auto; /* see .product-card img */
  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%;
  height: auto; /* see .product-card img */
  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%;
  height: auto; /* see .product-card img */
  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(--drawer-rec-bg, var(--page-button-color, var(--accent)));
  border-radius: var(--global-button-radius, 999px);
  background: var(--drawer-rec-bg, transparent);
  color: var(--drawer-rec-color, var(--page-button-color, var(--accent)));
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}


/* 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));
}
/* Shown only where the header has no search box of its own (render/search.ts). */
@media (min-width: 48.01rem) { .search-page__form--no-desktop { display: none; } }
@media (max-width: 48rem) { .search-page__form--no-mobile { display: none; } }

.search-page__head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
}
.search-page__head .search-page__summary { margin: 0; }
.search-page__clear {
  font-size: 0.85rem;
  color: var(--surface-500);
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 4px;
  transition: color 0.15s ease;
}
.search-page__clear:hover { color: var(--surface-900); }
.search-page__clear:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.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; } }

/* ------------------------------------------------------------------------
   2026-11-24: Products Design (shared types/product-design.ts) + Order Now.
   Card border and product-button hover read --pd-* custom properties and
   <body data-pd-hover>; with nothing saved none are set, so every fallback
   below is the storefront's original look.
   ------------------------------------------------------------------------ */
.product-card {
  border: var(--pd-card-border-width, 1px) var(--pd-card-border-style, solid) var(--pd-card-border, var(--surface-200));
  border-radius: var(--pd-card-radius, 0.75rem);
}
.product-card:hover { border-color: var(--pd-card-border-hover, var(--page-button-color, var(--accent))); }

/* 2026-11-30, saved designs only (the attributes are absent otherwise).
 * Border with hover = an inset outline over the card's edge: a thicker hover
 * line never moves the content and shows even with the always-on border
 * off; the always-on border keeps its own colour underneath. */
body[data-pd-border-hover] .product-card { outline: 0 solid transparent; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, outline-color 0.15s ease; }
body[data-pd-border-hover] .product-card:hover { border-color: var(--pd-card-border, var(--surface-200)); }
body[data-pd-border-hover="on"] .product-card:hover {
  outline: var(--pd-card-hover-width, 1px) solid var(--pd-card-border-hover, var(--page-button-color, var(--accent)));
  outline-offset: calc(-1 * var(--pd-card-hover-width, 1px));
}
/* Product card hover: how far the card rises and its shadow, or nothing. */
body[data-pd-card-hover="on"] .product-card:hover { transform: translateY(var(--pd-card-lift, -2px)); box-shadow: var(--pd-card-shadow, 0 8px 20px rgb(15 23 42 / 0.08)); }
body[data-pd-card-hover="off"] .product-card:hover { transform: none; box-shadow: 0 1px 2px rgb(15 23 42 / 0.04); }
/* Product image hover: only the photo zooms, clipped by its own frame. */
body[data-pd-img-hover] .product-card__media { overflow: hidden; }
body[data-pd-img-hover] .product-card__media :is(img, .product-card__placeholder) { transition: transform var(--pd-img-speed, 400ms) ease; }
body[data-pd-img-hover] .product-card:hover .product-card__media :is(img, .product-card__placeholder) { transform: scale(var(--pd-img-zoom, 1.08)); }
@media (prefers-reduced-motion: reduce) {
  body[data-pd-card-hover="on"] .product-card:hover { transform: none; }
  body[data-pd-img-hover] .product-card:hover .product-card__media :is(img, .product-card__placeholder) { transform: none; }
}

/* Product buttons: the card's Add to cart and the product page's two. */
.product-card__add-btn,
.product-detail__actions .btn {
  position: relative;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}
body:not([data-pd-hover="off"]) :is(.product-card__add-btn, .product-detail__actions .btn):hover:not(:disabled):not(.is-loading):not(.is-in-cart) {
  opacity: 1;
  filter: brightness(0.92);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgb(15 23 42 / 0.14);
}
body[data-pd-hover="lift"] :is(.product-card__add-btn, .product-detail__actions .btn):hover:not(:disabled):not(.is-loading):not(.is-in-cart) { transform: translateY(-2px); }
body[data-pd-hover="grow"] :is(.product-card__add-btn, .product-detail__actions .btn):hover:not(:disabled):not(.is-loading):not(.is-in-cart) { transform: scale(1.03); }
body[data-pd-hover="glow"] :is(.product-card__add-btn, .product-detail__actions .btn):hover:not(:disabled):not(.is-loading):not(.is-in-cart) {
  transform: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pd-btn-hover-bg, var(--page-button-color, var(--accent))) 25%, transparent);
}
body[data-pd-hover="color"] :is(.product-card__add-btn, .product-detail__actions .btn):hover:not(:disabled):not(.is-loading):not(.is-in-cart) { transform: none; box-shadow: none; }
body[data-pd-hover-bg] :is(.product-card__add-btn, .product-detail__actions .btn):hover:not(:disabled):not(.is-loading):not(.is-in-cart) {
  filter: none;
  background-color: var(--pd-btn-hover-bg);
}
body:not([data-pd-hover="off"]) :is(.product-card__add-btn, .product-detail__actions .btn):hover:not(:disabled):not(.is-loading):not(.is-in-cart) {
  color: var(--pd-btn-hover-text, var(--page-button-text-color, #fff));
}
/* Hover switched off: the button stays exactly as it is at rest. */
body[data-pd-hover="off"] :is(.product-card__add-btn, .product-detail__actions .btn):hover { filter: none; transform: none; opacity: 1; box-shadow: none; }
:is(.product-card__add-btn, .product-detail__actions .btn):active:not(:disabled):not(.is-in-cart) { transform: scale(0.98); filter: brightness(0.88); box-shadow: none; }
:is(.product-card__add-btn, .product-detail__actions .btn):focus-visible { outline: 2px solid var(--page-button-color, var(--accent)); outline-offset: 2px; }

/* Products Design (2026-11-30): name & price colour, their hover colours,
 * and the badges on the product photo. Badges stack top left (the wishlist
 * heart is top right); a running Limited Time Offer's badge joins the stack.
 * The discount percentage is always in the card's HTML and only shown while
 * Products Design → Offer percentage is on (<body data-pd-pct="minus|off">). */
.product-card__body h3, .product-card__price, .product-card__price .price-now { transition: color 0.18s ease; }
body[data-pd-text] .product-card__body h3 { color: var(--pd-name); }
body[data-pd-text] .product-card__price { color: var(--pd-price); opacity: 1; }
body[data-pd-text] .product-card__price :is(.price-now, .lto-now) { color: var(--pd-offer-price); }
body[data-pd-name-hover] .product-card:is(:hover, :focus-within) .product-card__body h3 { color: var(--pd-name-hover); }
/* Price and offer price are separate: with only the price's hover on, a
 * discounted price keeps its own colour (pinned at rest, so it can't inherit
 * the price's hover colour). */
body[data-pd-price-hover] .product-card__price .price-now { color: var(--pd-offer-price, var(--page-text-color, var(--surface-600))); }
body[data-pd-price-hover] .product-card:is(:hover, :focus-within) .product-card__price { color: var(--pd-price-hover); opacity: 1; }
body[data-pd-offer-hover] .product-card:is(:hover, :focus-within) .product-card__price :is(.price-now, .lto-now) { color: var(--pd-offer-price-hover); }

.product-card__badges {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem;
  max-width: calc(100% - 3.6rem); pointer-events: none;
}
.product-card__badges .lto-badge { position: static; }
.pd-pct, .product-card__label {
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 0.2rem 0.5rem; border-radius: 0.375rem;
  font-size: 0.72rem; font-weight: 700; line-height: 1.35; letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.pd-pct { display: none; background: var(--pd-pct-bg, #dc2626); color: var(--pd-pct-text, #ffffff); }
body[data-pd-pct] .pd-pct { display: inline-block; }
body[data-pd-pct="minus"] .pd-pct__off, body[data-pd-pct="off"] .pd-pct__minus { display: none; }
.product-card__label { background: var(--pd-label-bg, rgb(17 24 39 / 0.88)); color: var(--pd-label-text, #ffffff); }
.product-card__label[hidden] { display: none; }

/* Order Now: a solid button at rest, on hover, while pressed and while it
 * opens checkout. It used to be an outline that only filled on hover, so a
 * tap or click made its background look like it vanished. Its colour is the
 * page's button colour — or Customization's own "Order Now" colour. */
.btn.btn--buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background-color: var(--page-button-color, var(--accent));
  color: var(--page-button-text-color, #ffffff);
  border: 1px solid transparent;
}
.btn.btn--buy { white-space: nowrap; }
.btn--buy__icon { width: 1.05rem; height: 1.05rem; flex-shrink: 0; transition: transform 0.18s ease; }
body:not([data-pd-hover="off"]) .btn--buy:hover:not(:disabled) .btn--buy__icon { transform: translateX(3px); }
.btn--buy.is-loading { cursor: progress; filter: none; transform: none; }
.btn--buy.is-loading .btn--buy__icon { display: none; }
.btn--buy.is-loading::after {
  content: ""; width: 1rem; height: 1rem; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: kt-btn-spin 0.7s linear infinite;
}
@keyframes kt-btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .product-card__add-btn, .product-detail__actions .btn, .btn--buy__icon { transition: none; }
  body :is(.product-card__add-btn, .product-detail__actions .btn):hover { transform: none !important; }
  .btn--buy.is-loading::after { animation-duration: 2s; }
}

/* ------------------------------------------------------------------------
   2026-11-24: floating WhatsApp / phone button (render/contact-button.ts).
   ------------------------------------------------------------------------ */
.kt-contact {
  position: fixed; z-index: 60; bottom: calc(var(--kt-contact-offset, 20px) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem;
  font-family: var(--global-font-family, inherit);
}
.kt-contact--right { right: 1.25rem; }
.kt-contact--left { left: 1.25rem; align-items: flex-start; }
.kt-contact__main {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--kt-contact-color, #25d366); color: #ffffff; cursor: pointer; list-style: none;
  box-shadow: 0 10px 24px rgb(15 23 42 / 0.22), 0 2px 6px rgb(15 23 42 / 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: kt-contact-in 0.35s ease-out both;
}
.kt-contact__main::-webkit-details-marker { display: none; }
.kt-contact__main::marker { content: ""; }
.kt-contact__main:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 30px rgb(15 23 42 / 0.26); }
.kt-contact__main:active { transform: scale(0.96); }
.kt-contact__main:focus-visible { outline: 3px solid var(--kt-contact-color, #25d366); outline-offset: 3px; }
.kt-contact__main--wa { background: #25d366; }
.kt-contact__icon-close { display: none; }
details.kt-contact[open] .kt-contact__icon-open { display: none; }
details.kt-contact[open] .kt-contact__icon-close { display: block; }
/* <details> puts the summary first; the menu opens above it. */
details.kt-contact { flex-direction: column-reverse; }
.kt-contact__menu {
  width: min(16rem, calc(100vw - 2.5rem)); padding: 0.6rem; border-radius: 1rem;
  background: #ffffff; color: #0f172a; border: 1px solid rgb(15 23 42 / 0.08);
  box-shadow: 0 18px 40px rgb(15 23 42 / 0.18);
  transform-origin: bottom right; animation: kt-contact-menu 0.2s ease-out;
}
.kt-contact--left .kt-contact__menu { transform-origin: bottom left; }
.kt-contact__title { margin: 0.2rem 0.5rem 0.5rem; font-size: 0.8rem; font-weight: 650; color: #64748b; }
.kt-contact__opt {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.65rem; border-radius: 0.75rem;
  color: inherit; text-decoration: none; transition: background-color 0.15s ease;
}
.kt-contact__opt:hover, .kt-contact__opt:focus-visible { background: #f1f5f9; outline: none; }
.kt-contact__opt-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: 50%; color: #ffffff; }
.kt-contact__opt--wa .kt-contact__opt-icon { background: #25d366; }
.kt-contact__opt--tel .kt-contact__opt-icon { background: var(--kt-contact-color, #25d366); }
.kt-contact__opt-icon svg { width: 1.3rem; height: 1.3rem; }
.kt-contact__opt-text { display: flex; flex-direction: column; min-width: 0; }
.kt-contact__opt-text strong { font-size: 0.92rem; }
.kt-contact__opt-text small { font-size: 0.78rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes kt-contact-in { from { opacity: 0; transform: translateY(8px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes kt-contact-menu { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (max-width: 48rem) {
  .kt-contact--right { right: 1rem; }
  .kt-contact--left { left: 1rem; }
  .kt-contact__main { width: 3.25rem; height: 3.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .kt-contact__main, .kt-contact__menu { animation: none; transition: none; }
}

/* ── Live Chat (2026-11-25, features/live-chat/widget.ts) ──────────────
   The contact button's chat option + badge, and the chat panel. The panel
   takes the owner's button colour (--kt-chat-accent, copied from the
   contact button by the widget). A side panel on desktop, a full-height
   sheet on phones. */
.kt-contact__main, .kt-contact__opt { position: relative; }
button.kt-contact__main { border: 0; font: inherit; }
button.kt-contact__opt { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.kt-contact__opt--chat .kt-contact__opt-icon { background: var(--kt-contact-color, #25d366); }
.kt-contact__main[aria-busy="true"] { filter: saturate(0.6); }
.kt-contact__badge {
  position: absolute; top: -0.15rem; right: -0.15rem; min-width: 1.25rem; height: 1.25rem; padding: 0 0.3rem;
  display: grid; place-items: center; border-radius: 999px; background: #dc2626; color: #ffffff;
  font-size: 0.7rem; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px #ffffff;
}
.kt-contact__opt .kt-contact__badge { position: static; margin-left: auto; box-shadow: none; }
.kt-contact__badge[hidden] { display: none; }
html.kt-chat-active .kt-contact { visibility: hidden; }

.kt-chat {
  --kt-chat-accent: var(--accent, #4f46e5);
  position: fixed; z-index: 70; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  width: min(24rem, calc(100vw - 2rem)); height: min(40rem, calc(100vh - 2.5rem)); height: min(40rem, calc(100dvh - 2.5rem));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface-0, #ffffff); color: var(--surface-900, #0f172a);
  border: 1px solid var(--surface-200, #e2e8f0); border-radius: 1rem;
  box-shadow: 0 24px 60px rgb(15 23 42 / 0.18), 0 2px 6px rgb(15 23 42 / 0.06);
  font-family: var(--global-font-family, inherit); font-size: 0.92rem;
  opacity: 0; transform: translateY(10px) scale(0.98); transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.kt-chat--left { right: auto; left: 1.25rem; transform-origin: bottom left; }
.kt-chat.is-open { opacity: 1; transform: none; }
.kt-chat[hidden] { display: none; }
.kt-chat__head { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 0.9rem; border-bottom: 1px solid var(--surface-200, #e2e8f0); }
.kt-chat__avatar {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex-shrink: 0; border-radius: 50%;
  background: var(--kt-chat-accent); color: #ffffff; font-weight: 650;
}
.kt-chat__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.kt-chat__name { font-size: 0.975rem; font-weight: 650; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-chat__sub { font-size: 0.78rem; color: var(--surface-500, #64748b); }
.kt-chat__icon-btn {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; border: 0; border-radius: 0.6rem;
  background: none; color: var(--surface-600, #475569); cursor: pointer;
}
.kt-chat__icon-btn:hover { background: var(--surface-100, #f1f5f9); }
.kt-chat :focus-visible { outline: 2px solid var(--kt-chat-accent); outline-offset: 2px; }
.kt-chat__body { flex: 1; min-height: 0; overflow-y: auto; padding: 0.9rem; background: var(--surface-50, #f8fafc); overscroll-behavior: contain; }
.kt-chat__body[hidden] { display: none; }
.kt-chat__older { display: block; margin: 0 auto 0.75rem; padding: 0.35rem 0.8rem; border: 1px solid var(--surface-200, #e2e8f0); border-radius: 999px; background: var(--surface-0, #fff); color: var(--surface-600, #475569); font: inherit; font-size: 0.8rem; cursor: pointer; }
.kt-chat__older[hidden], .kt-chat__empty[hidden] { display: none; }
.kt-chat__empty { padding: 0.25rem 0 0.75rem; }
.kt-chat__greeting { margin: 0; padding: 0.7rem 0.85rem; max-width: 85%; border-radius: 0.9rem 0.9rem 0.9rem 0.3rem; background: var(--surface-0, #fff); border: 1px solid var(--surface-200, #e2e8f0); line-height: 1.45; }
.kt-chat__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.kt-chat-day { align-self: center; margin: 0.35rem 0; font-size: 0.72rem; color: var(--surface-500, #64748b); }
.kt-chat-msg { display: flex; flex-direction: column; max-width: 86%; min-width: 0; }
.kt-chat-msg--mine { align-self: flex-end; align-items: flex-end; }
.kt-chat-msg--theirs { align-self: flex-start; }
.kt-chat-msg--system { align-self: center; max-width: 92%; }
.kt-chat-msg__who { display: flex; align-items: center; gap: 0.35rem; margin: 0 0 0.2rem 0.2rem; font-size: 0.74rem; color: var(--surface-500, #64748b); }
.kt-chat-msg__tag { padding: 0 0.3rem; border-radius: 0.3rem; background: var(--surface-200, #e2e8f0); color: var(--surface-600, #475569); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.02em; }
.kt-chat-msg__tag--test { background: var(--warning-100, #fef3c7); color: var(--warning-700, #b45309); }
.kt-chat-msg__text { margin: 0; padding: 0.6rem 0.8rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 0.9rem; }
.kt-chat-msg--theirs .kt-chat-msg__text { background: var(--surface-0, #fff); border: 1px solid var(--surface-200, #e2e8f0); border-bottom-left-radius: 0.3rem; }
.kt-chat-msg--mine .kt-chat-msg__text { background: var(--kt-chat-accent); color: #ffffff; border-bottom-right-radius: 0.3rem; }
.kt-chat-msg__note { margin: 0; padding: 0.35rem 0.7rem; border-radius: 999px; background: var(--surface-100, #f1f5f9); color: var(--surface-600, #475569); font-size: 0.78rem; text-align: center; }
.kt-chat-msg__meta, .kt-chat-seen { margin: 0.2rem 0.3rem 0; font-size: 0.7rem; color: var(--surface-500, #64748b); font-variant-numeric: tabular-nums; }
.kt-chat-msg.is-pending { opacity: 0.7; }
.kt-chat-msg.is-failed .kt-chat-msg__text { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; cursor: pointer; }
.kt-chat-msg.is-failed .kt-chat-msg__meta { color: #b91c1c; }
.kt-chat__typing { display: inline-flex; gap: 0.25rem; margin-top: 0.55rem; padding: 0.65rem 0.8rem; border-radius: 0.9rem; background: var(--surface-0, #fff); border: 1px solid var(--surface-200, #e2e8f0); }
.kt-chat__typing[hidden] { display: none; }
.kt-chat__typing span { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--surface-400, #94a3b8); animation: kt-chat-dot 1s infinite ease-in-out; }
.kt-chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.kt-chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes kt-chat-dot { 0%, 80%, 100% { opacity: 0.35; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }

/* Product cards and the suggested cart (AI Sales). */
.kt-chat-cards { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.45rem; width: 100%; }
.kt-chat-card {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0.6rem; align-items: center;
  padding: 0.55rem; border-radius: 0.8rem; background: var(--surface-0, #fff); border: 1px solid var(--surface-200, #e2e8f0);
}
.kt-chat-card__img { width: 3.5rem; height: 3.5rem; border-radius: 0.55rem; object-fit: contain; background: var(--surface-100, #f1f5f9); }
.kt-chat-card__info { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.kt-chat-card__name { color: inherit; font-weight: 600; font-size: 0.86rem; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-chat-card__name:hover { text-decoration: underline; }
.kt-chat-card__price { margin: 0; display: flex; gap: 0.4rem; align-items: baseline; font-variant-numeric: tabular-nums; font-size: 0.86rem; }
.kt-chat-card__price s { color: var(--surface-400, #94a3b8); font-size: 0.78rem; }
.kt-chat-card__stock { font-size: 0.74rem; color: #15803d; }
.kt-chat-card.is-unavailable .kt-chat-card__stock { color: #b91c1c; }
.kt-chat-card__act, .kt-chat-co__qty { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 0.4rem; }
.kt-chat-cart { width: 100%; margin-top: 0.45rem; padding: 0.7rem; border-radius: 0.9rem; background: var(--surface-0, #fff); border: 1px solid var(--surface-200, #e2e8f0); display: flex; flex-direction: column; gap: 0.45rem; }
.kt-chat-cart .kt-chat-card { border: 0; padding: 0; }
.kt-chat-cart__title { margin: 0; font-weight: 650; font-size: 0.86rem; }
.kt-chat-cart__sum { margin: 0.2rem 0 0; padding-top: 0.5rem; border-top: 1px solid var(--surface-200, #e2e8f0); display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.kt-chat-cart__note { margin: 0; font-size: 0.74rem; color: var(--surface-500, #64748b); }
.kt-chat-cart__actions, .kt-chat-co__actions { display: flex; gap: 0.45rem; }
.kt-chat-cart__actions > *, .kt-chat-co__actions > * { flex: 1; }

.kt-chat__primary, .kt-chat__ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.45rem 0.9rem;
  border-radius: 0.65rem; font: inherit; font-size: 0.86rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, filter 0.15s ease;
}
.kt-chat__primary { border: 0; background: var(--surface-900, #0f172a); color: #ffffff; }
.kt-chat__primary:hover { filter: brightness(1.15); }
.kt-chat__ghost { border: 1px solid var(--surface-200, #e2e8f0); background: var(--surface-0, #fff); color: var(--surface-900, #0f172a); }
.kt-chat__ghost:hover { background: var(--surface-100, #f1f5f9); }
/* Maya's "Would you like a person?" — one tap, same as the footer link. */
.kt-chat-msg__offer { margin-top: 0.5rem; }
.kt-chat__primary:disabled, .kt-chat__ghost:disabled { opacity: 0.5; cursor: default; filter: none; }

/* Start form, compose bar, footer. */
.kt-chat__start { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem; border-top: 1px solid var(--surface-200, #e2e8f0); }
.kt-chat__start[hidden], .kt-chat__compose[hidden], .kt-chat__checkout[hidden], .kt-chat__foot[hidden] { display: none; }
.kt-chat__start-title { margin: 0; font-weight: 650; }
.kt-chat__start label, .kt-chat-co__form label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; font-weight: 550; color: var(--surface-600, #475569); }
.kt-chat__start label[hidden] { display: none; }
.kt-chat__start input, .kt-chat__start textarea, .kt-chat-co__form input, .kt-chat-co__form textarea, .kt-chat-co__form select, .kt-chat__compose textarea {
  width: 100%; box-sizing: border-box; padding: 0.6rem 0.7rem; border: 1px solid var(--surface-300, #cbd5e1); border-radius: 0.6rem;
  background: var(--surface-0, #fff); color: inherit; font: inherit; font-size: 0.92rem; resize: none;
}
.kt-chat__error { margin: 0; color: #b91c1c; font-size: 0.8rem; }
.kt-chat__error[hidden] { display: none; }
.kt-chat__compose { display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.65rem 0.75rem 0.35rem; border-top: 1px solid var(--surface-200, #e2e8f0); }
.kt-chat__compose textarea { max-height: 8.25rem; }
.kt-chat__send { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0; border: 0; border-radius: 0.7rem; background: var(--kt-chat-accent); color: #ffffff; cursor: pointer; }
.kt-chat__send:disabled { opacity: 0.45; cursor: default; }
.kt-chat__foot { display: flex; align-items: center; justify-content: space-between; min-height: 1.6rem; padding: 0 0.85rem 0.5rem; font-size: 0.74rem; color: var(--surface-500, #64748b); }
.kt-chat__link { padding: 0.2rem 0; border: 0; background: none; color: var(--surface-600, #475569); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.kt-chat__link[hidden] { display: none; }
.kt-chat__count { margin-left: auto; font-variant-numeric: tabular-nums; }
.kt-chat__vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Order inside the chat. */
.kt-chat__checkout { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; padding: 0.75rem 0.9rem 0.9rem; }
.kt-chat-co__head { display: flex; align-items: center; gap: 0.4rem; margin-left: -0.4rem; }
.kt-chat-co__items { display: flex; flex-direction: column; gap: 0.45rem; }
.kt-chat-co__qty { align-items: center; }
.kt-chat-co__qty button { width: 2.25rem; height: 2.25rem; border: 1px solid var(--surface-200, #e2e8f0); border-radius: 0.55rem; background: var(--surface-0, #fff); font: inherit; cursor: pointer; }
.kt-chat-co__qty span { min-width: 1.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.kt-chat-co__empty { margin: 0; color: var(--surface-500, #64748b); }
.kt-chat-co__form { display: flex; flex-direction: column; gap: 0.6rem; }
.kt-chat-co__pay { margin: 0; font-size: 0.84rem; color: var(--surface-600, #475569); }
.kt-chat-co__summary { display: flex; flex-direction: column; gap: 0.3rem; }
.kt-chat-co__summary:empty { display: none; }
.kt-chat-co__row { margin: 0; display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; font-size: 0.86rem; }
.kt-chat-co__row.is-total { padding-top: 0.45rem; border-top: 1px solid var(--surface-200, #e2e8f0); font-size: 0.95rem; }

@media (max-width: 48rem) {
  .kt-chat, .kt-chat--left { inset: 0; width: auto; height: auto; border-radius: 0; border: 0; transform-origin: bottom center; }
  .kt-chat__start input, .kt-chat__start textarea, .kt-chat-co__form input, .kt-chat-co__form textarea, .kt-chat-co__form select, .kt-chat__compose textarea { font-size: 16px; }
  .kt-chat__compose { padding-bottom: calc(0.35rem + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .kt-chat { transition: none; }
  .kt-chat__typing span { animation: none; }
}

/* ---------------------------------------------------------------------
   Category bar (Header & Category → Category, 2026-11-27): a row of
   category links under the header. Colours/size from --cbar-* (set inline
   by render/category-bar.ts), falling back to the header's own look.
   Scrolls sideways on narrow screens; never wraps into several rows.
   --------------------------------------------------------------------- */
.store-catbar {
  background: var(--cbar-bg, var(--header-bg, var(--surface-0)));
  color: var(--cbar-text, var(--header-text-color, var(--surface-700)));
  border-bottom: 1px solid var(--surface-200);
  font-size: var(--cbar-font-size, 14px);
}
.store-catbar--sticky { position: sticky; top: 0; z-index: 45; }
.store-top--sticky { position: sticky; top: 0; z-index: 50; }
.store-catbar__inner {
  max-width: 72rem; margin: 0 auto; padding: 0 1.5rem;
  display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.store-catbar__inner::-webkit-scrollbar { display: none; }
.store-catbar__link {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 2.75rem;
  padding: 0 0.8rem; color: inherit; font-weight: 550; white-space: nowrap;
  border-bottom: 2px solid transparent; opacity: 0.82;
  transition: opacity 150ms ease, border-color 150ms ease;
}
.store-catbar__link:hover { opacity: 1; }
.store-catbar__link.is-active { opacity: 1; border-bottom-color: currentColor; }
.store-catbar__link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 0.35rem; }
@media (max-width: 48rem) { .store-catbar__inner { padding: 0 0.75rem; } }

/* ---------------------------------------------------------------------
   All Products sidebar (All Products → Sorting & Filtering, 2026-11-27).
   Two columns on desktop (side left or right), one column below 56rem with
   the panel folded behind a "Filters & sort" button (checkbox, no JS).
   --------------------------------------------------------------------- */
.listing-layout { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 2rem; align-items: start; margin-top: 1.25rem; }
.products-page--side-right .listing-layout { grid-template-columns: minmax(0, 1fr) 15.5rem; }
.products-page--side-right .listing-side { order: 2; }
.listing-layout__main { min-width: 0; }
.listing-side { position: sticky; top: 1rem; min-width: 0; }
.listing-side__check { position: absolute; opacity: 0; pointer-events: none; }
.listing-side__toggle { display: none; }
.listing-side__panel {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1.1rem; border: 1px solid var(--surface-200); border-radius: 0.9rem; background: var(--surface-0);
}
.listing-side__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.listing-side__group + .listing-side__group { border-top: 1px solid var(--surface-200); padding-top: 1.1rem; }
.listing-side__title + * { clear: both; }
.listing-side__title { float: left; width: 100%; padding: 0; margin-bottom: 0.6rem; font-size: 0.82rem; font-weight: 650; color: var(--page-heading-color, var(--surface-900)); }
.listing-side__select {
  width: 100%; padding: 0.55rem 2rem 0.55rem 0.75rem; border: 1px solid var(--surface-200); border-radius: 0.6rem;
  background: var(--surface-0) 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; cursor: pointer;
}
.listing-side__cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; max-height: 18rem; overflow-y: auto; }
.listing-side__cat { display: flex; align-items: center; gap: 0.6rem; min-height: 2.25rem; padding: 0 0.35rem; border-radius: 0.45rem; cursor: pointer; font-size: 0.92rem; }
.listing-side__cat:hover { background: var(--surface-50); }
.listing-side__cat input { width: 1.05rem; height: 1.05rem; accent-color: var(--page-button-color, var(--accent)); flex-shrink: 0; }
.listing-side__cat span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-side__price { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 0.4rem; }
.listing-side__price label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.75rem; color: var(--surface-500); min-width: 0; }
.listing-side__price input {
  width: 100%; padding: 0.5rem 0.6rem; border: 1px solid var(--surface-200); border-radius: 0.55rem;
  font: inherit; font-size: 0.92rem; color: var(--surface-900); background: var(--surface-0); font-variant-numeric: tabular-nums;
}
.listing-side__dash { padding-bottom: 0.55rem; color: var(--surface-400); }
.listing-side__apply {
  margin-top: 0.7rem; width: 100%; min-height: 2.5rem; border: 0; 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; cursor: pointer;
}
/* "N filters on · Clear filters" — the panel's first row while a filter is on. */
.listing-side__active {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap;
  margin: -0.2rem -0.2rem 0; padding: 0.55rem 0.55rem 0.55rem 0.8rem; border-radius: 0.65rem;
  background: var(--surface-50); border: 1px solid var(--surface-200); font-size: 0.86rem; color: var(--surface-700);
}
.listing-side__active strong { font-variant-numeric: tabular-nums; color: var(--surface-900); }
.listing-side__clear {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.25rem; padding: 0 0.8rem; border-radius: 999px;
  background: var(--surface-0); border: 1px solid var(--surface-300); color: var(--surface-900);
  font-size: 0.85rem; font-weight: 600; white-space: nowrap; transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.listing-side__clear:hover { border-color: var(--page-button-color, var(--accent)); color: var(--page-button-color, var(--accent)); }
.listing-side__clear:focus-visible { outline: 2px solid var(--page-button-color, var(--accent)); outline-offset: 2px; }

/* Price bar: two range inputs stacked on one track; only their thumbs take
   the pointer, the fill runs between --lo and --hi (set by priceSliderScript). */
.listing-side__slider { position: relative; height: 2.25rem; margin: 0 0.35rem; --lo: 0%; --hi: 100%; }
.listing-side__track { position: absolute; left: 0; right: 0; top: 50%; height: 0.3rem; margin-top: -0.15rem; border-radius: 999px; background: var(--surface-200); }
.listing-side__fill { position: absolute; top: 0; bottom: 0; left: var(--lo); right: calc(100% - var(--hi)); border-radius: 999px; background: var(--page-button-color, var(--accent)); }
.listing-side__slider input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: none; pointer-events: none;
  -webkit-appearance: none; appearance: none;
}
.listing-side__slider input[type="range"]::-webkit-slider-runnable-track { background: none; height: 100%; }
.listing-side__slider input[type="range"]::-moz-range-track { background: none; }
.listing-side__slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 1.35rem; height: 1.35rem; margin-top: calc((2.25rem - 1.35rem) / 2);
  border-radius: 50%; background: var(--surface-0); border: 2px solid var(--page-button-color, var(--accent));
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.2); cursor: grab; transition: transform 150ms ease;
}
.listing-side__slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--surface-0);
  border: 2px solid var(--page-button-color, var(--accent)); box-shadow: 0 1px 3px rgb(15 23 42 / 0.2); cursor: grab;
}
.listing-side__slider input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; }
.listing-side__slider input[type="range"]:focus-visible { outline: none; }
.listing-side__slider input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgb(79 70 229 / 0.25); }
.listing-side__slider input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgb(79 70 229 / 0.25); }
.listing-side__slider-values { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.15rem; font-size: 0.85rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--surface-700); }
.listing-side__slider-values + .listing-side__price { margin-top: 0.75rem; }
.listing-side__select:focus-visible, .listing-side__price input:focus-visible, .listing-side__apply:focus-visible,
.listing-side__cat:focus-within, .listing-side__check:focus-visible + .listing-side__toggle {
  outline: 2px solid var(--page-button-color, var(--accent)); outline-offset: 2px;
}
.listing-side__count {
  display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.35rem; margin-left: 0.4rem;
  border-radius: 999px; background: var(--page-button-color, var(--accent)); color: #fff; font-size: 0.75rem; font-variant-numeric: tabular-nums;
}
@media (max-width: 56rem) {
  .listing-layout, .products-page--side-right .listing-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .products-page--side-right .listing-side { order: 0; }
  .listing-side { position: static; }
  .listing-side__toggle {
    display: flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1rem;
    border: 1px solid var(--surface-200); border-radius: 0.7rem; background: var(--surface-0); font-weight: 600; cursor: pointer;
  }
  .listing-side__panel { display: none; margin-top: 0.6rem; }
  .listing-side__check:checked ~ .listing-side__panel { display: flex; }
  .listing-side__price input, .listing-side__select { font-size: 16px; }
}

/* ---------------------------------------------------------------------
   Featured Categories (Header & Category → Featured Categories, placed by
   Homepage UI, 2026-11-27): category tiles, image above, name below.
   Size/text/colours from --fc-* (render/featured-categories.ts).
   --------------------------------------------------------------------- */
.featured-cats { background: var(--fc-bg, transparent); padding: 2rem 0; border-radius: 1rem; }
.featured-cats[style*="--fc-bg"] { padding: 2rem 1.25rem; }
.featured-cats__title { margin: 0 0 1.25rem; text-align: center; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--page-heading-color, var(--surface-900)); }
.featured-cats__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 1.25rem;
}
.featured-cats__item { flex: 0 0 auto; width: var(--fc-size, 140px); min-width: 0; }
.featured-cats__link { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; color: inherit; text-decoration: none; border-radius: 0.75rem; }
.featured-cats__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.featured-cats__media {
  display: block; width: var(--fc-size, 140px); aspect-ratio: 1; overflow: hidden;
  background: var(--surface-100); border: 1px solid var(--surface-200);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.featured-cats--square .featured-cats__media { border-radius: 0.25rem; }
.featured-cats--rounded .featured-cats__media { border-radius: 1rem; }
.featured-cats--circle .featured-cats__media { border-radius: 999px; }
.featured-cats__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.featured-cats__ph {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-size: calc(var(--fc-size, 140px) * 0.36); font-weight: 700; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-0));
}
.featured-cats__name {
  max-width: 100%; text-align: center; line-height: 1.3;
  font-size: var(--fc-text-size, 15px); font-weight: var(--fc-text-weight, 550); color: var(--fc-text, var(--surface-900));
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.featured-cats--upper .featured-cats__name { text-transform: uppercase; letter-spacing: 0.04em; }
.featured-cats__link:hover .featured-cats__media { transform: translateY(-3px); box-shadow: 0 10px 24px -12px rgb(15 23 42 / 0.35); border-color: var(--surface-300); }
.featured-cats__link:hover .featured-cats__img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .featured-cats__media, .featured-cats__img { transition: none; }
  .featured-cats__link:hover .featured-cats__media, .featured-cats__link:hover .featured-cats__img { transform: none; }
}
@media (max-width: 48rem) {
  .featured-cats { padding: 1.5rem 0; }
  .featured-cats__title { font-size: 1.25rem; margin-bottom: 1rem; }
  /* One sideways-scrolling row instead of a tall wrap; tiles cap at 7rem. */
  .featured-cats__list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 0.25rem 0.25rem 0.75rem; scroll-snap-type: x proximity; scrollbar-width: none; }
  .featured-cats__list::-webkit-scrollbar { display: none; }
  .featured-cats__item { width: min(var(--fc-size, 140px), 7rem); scroll-snap-align: start; }
  .featured-cats__media { width: min(var(--fc-size, 140px), 7rem); }
}

/* ---------------------------------------------------------------------
   Customer Reviews (render/customer-reviews.ts, 2026-11-27): the owner's
   testimonials — photo + name on the left, stars + text on the right.
   Arrow / auto slider = a scroll-snap track (swipes on phones, works
   without JS); list = every card, top to bottom.
   --------------------------------------------------------------------- */
.cust-reviews { background: var(--cr-bg, transparent); padding: 2.5rem 0; border-radius: 1rem; container: cust-reviews / inline-size; }
.cust-reviews[style*="--cr-bg"] { padding: 2.5rem 1.25rem; }
.cust-reviews__head { text-align: center; margin: 0 auto 1.75rem; max-width: 40rem; }
.cust-reviews__title {
  margin: 0; font-size: var(--cr-title-size, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em;
  color: var(--cr-title-color, var(--page-heading-color, var(--surface-900)));
}
.cust-reviews__subtitle { margin: 0.5rem 0 0; font-size: var(--cr-subtitle-size, 16px); line-height: 1.5; color: var(--cr-subtitle-color, var(--surface-500)); }
.cust-reviews__viewport { position: relative; display: flex; align-items: center; gap: 0.75rem; }
.cust-reviews__track {
  list-style: none; margin: 0; padding: 0.25rem 0.125rem 0.5rem;
  flex: 1; min-width: 0;
  display: flex; gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.cust-reviews__track::-webkit-scrollbar { display: none; }
.cust-reviews__card {
  flex: 0 0 calc((100% - 1.25rem) / 2); min-width: 0; scroll-snap-align: start;
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start;
  padding: 1.5rem; background: var(--cr-card-bg, var(--surface-0));
  border: 1px solid var(--surface-200); border-radius: 1rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
  transition: border-color 200ms ease, box-shadow 200ms ease, opacity 450ms ease, transform 450ms ease;
}
.cust-reviews__card:hover { border-color: var(--surface-300); box-shadow: 0 2px 6px rgb(15 23 42 / 0.06); }
.cust-reviews__person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.2rem; min-width: 0; }
.cust-reviews__avatar {
  display: block; width: 88px; height: 88px; margin-bottom: 0.55rem; border-radius: 999px; overflow: hidden;
  background: var(--surface-100); border: 1px solid var(--surface-200); flex-shrink: 0;
}
.cust-reviews__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cust-reviews__initial {
  display: grid; place-items: center; width: 100%; height: 100%; font-size: 2rem; font-weight: 700; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-0));
}
.cust-reviews__name { max-width: 100%; font-size: 0.975rem; font-weight: 650; color: var(--surface-900); overflow-wrap: anywhere; }
.cust-reviews__role { max-width: 100%; font-size: 0.8rem; color: var(--surface-500); overflow-wrap: anywhere; }
.cust-reviews__body { min-width: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.cust-reviews__stars { font-size: 1.1rem; line-height: 1; }
.cust-reviews__text { margin: 0; font-size: 0.975rem; line-height: 1.65; color: var(--surface-700); overflow-wrap: anywhere; white-space: pre-line; }
.cust-reviews__text::before { content: "\201C"; }
.cust-reviews__text::after { content: "\201D"; }
.cust-reviews__arrow {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1px solid var(--surface-200); border-radius: 999px; background: var(--surface-0); color: var(--surface-700);
  cursor: pointer; transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.cust-reviews__arrow:hover { border-color: var(--surface-300); color: var(--surface-900); background: var(--surface-50, #f8fafc); }
.cust-reviews__arrow:focus-visible, .cust-reviews__dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cust-reviews__dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.cust-reviews__dot {
  width: 0.5rem; height: 0.5rem; padding: 0; border: none; border-radius: 999px; cursor: pointer;
  background: var(--surface-300); transition: width 250ms ease, background 250ms ease;
}
.cust-reviews__dot.is-active { width: 1.5rem; background: var(--accent); }
/* A dot is 8px; the button around it gives a 44px tap target. */
.cust-reviews__dot { position: relative; }
.cust-reviews__dot::after { content: ""; position: absolute; inset: -18px -10px; }

/* Which controls each layout shows. */
.cust-reviews--auto .cust-reviews__arrow,
.cust-reviews--arrows .cust-reviews__dots,
.cust-reviews--list .cust-reviews__arrow,
.cust-reviews--list .cust-reviews__dots,
.cust-reviews.is-single .cust-reviews__arrow,
.cust-reviews.is-single .cust-reviews__dots { display: none; }
.cust-reviews--list .cust-reviews__track {
  flex-direction: column; overflow: visible; scroll-snap-type: none; max-width: 48rem; margin: 0 auto; gap: 1rem;
}
.cust-reviews--list .cust-reviews__card { flex: 0 0 auto; }

/* Entrance: cards rise in once when the section scrolls into view (the
   script adds .cr-anim, so without JS they are simply shown). */
.cust-reviews.cr-anim:not(.is-in) .cust-reviews__card { opacity: 0; transform: translateY(14px); }
.cust-reviews.cr-anim.is-in .cust-reviews__card { transition-delay: calc(min(var(--i, 0), 6) * 70ms); }

/* Sized by the section's own width (container queries), so it is right in
   any column — the home page, or the admin's narrow live preview. */
@container cust-reviews (max-width: 56rem) {
  .cust-reviews__card { flex-basis: 100%; }
}
@container cust-reviews (max-width: 36rem) {
  .cust-reviews__head { margin-bottom: 1.25rem; }
  .cust-reviews__title { font-size: min(var(--cr-title-size, 30px), 1.75rem); }
  .cust-reviews__viewport { gap: 0; }
  .cust-reviews--arrows .cust-reviews__viewport { flex-wrap: wrap; justify-content: center; column-gap: 1rem; row-gap: 1rem; }
  .cust-reviews--arrows .cust-reviews__track { flex: 0 0 100%; order: -1; }
  .cust-reviews__card { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem; }
  .cust-reviews__avatar { width: 64px; height: 64px; }
  .cust-reviews__text { font-size: 0.925rem; }
}
@container cust-reviews (max-width: 21rem) {
  .cust-reviews__card { grid-template-columns: minmax(0, 1fr); }
  .cust-reviews__person { flex-direction: row; text-align: left; gap: 0.75rem; flex-wrap: wrap; }
  .cust-reviews__avatar { margin-bottom: 0; }
}
@media (max-width: 48rem) {
  .cust-reviews { padding: 2rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cust-reviews__track { scroll-behavior: auto; }
  .cust-reviews__card, .cust-reviews__dot { transition: none; }
}

/* ---------------------------------------------------------------------
   Cart Settings → Cart behavior (2026-11-27, render/cart-behaviors.ts):
   the "Added / Already added" notice, the Cart box on the right edge with
   the flying product image, and the Quick order popup. Accent = the store's
   button colour.
   --------------------------------------------------------------------- */
.product-card__add-btn.is-added, .btn.is-added { filter: saturate(0.9) brightness(0.95); }
.product-card__add-btn.is-already, .btn.is-already {
  background: var(--surface-100); color: var(--surface-700); box-shadow: inset 0 0 0 1px var(--surface-300);
}

.kt-toast {
  position: fixed; z-index: 1100; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 0.65rem; max-width: calc(100vw - 2rem);
  padding: 0.7rem 0.8rem 0.7rem 1rem; border-radius: 0.8rem;
  background: var(--surface-900); color: #fff; font-size: 0.9rem; box-shadow: 0 8px 24px rgb(15 23 42 / 0.18);
  opacity: 0; transform: translate(-50%, 0.75rem); pointer-events: none;
  transition: opacity 200ms ease, transform 250ms ease;
}
.kt-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.kt-toast__dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.kt-toast--info .kt-toast__dot { background: #f59e0b; }
.kt-toast__text { min-width: 0; }
.kt-toast__link {
  flex-shrink: 0; padding: 0.35rem 0.65rem; border-radius: 0.5rem; background: rgb(255 255 255 / 0.12);
  font-weight: 600; font-size: 0.82rem; white-space: nowrap;
}
.kt-toast__link:hover { background: rgb(255 255 255 / 0.2); }
.kt-toast__link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.kt-cartbox { position: fixed; z-index: 65; right: 0; top: 50%; transform: translateY(-50%); }
.kt-cartbox__tab {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem; width: 4.25rem; padding: 0.75rem 0.4rem;
  border: 0; border-radius: 0.9rem 0 0 0.9rem; cursor: pointer; font: inherit;
  background: var(--page-button-color, var(--accent)); color: var(--page-button-text-color, #fff);
  box-shadow: 0 6px 20px rgb(15 23 42 / 0.16); transition: transform 200ms ease, box-shadow 200ms ease;
}
.kt-cartbox__tab:hover { transform: translateX(-3px); box-shadow: 0 8px 26px rgb(15 23 42 / 0.22); }
.kt-cartbox__tab:focus-visible { outline: 2px solid var(--surface-900); outline-offset: 3px; }
.kt-cartbox__count { font-size: 1.15rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kt-cartbox__word { font-size: 0.7rem; opacity: 0.85; }
.kt-cartbox.is-bump .kt-cartbox__tab { animation: ktBoxBump 450ms ease; }
@keyframes ktBoxBump { 30% { transform: translateX(-6px) scale(1.08); } 60% { transform: translateX(-2px) scale(0.97); } }
.kt-cartbox__panel {
  position: absolute; right: calc(100% + 0.6rem); top: 50%; transform: translateY(-50%);
  width: min(21rem, calc(100vw - 6rem)); max-height: min(30rem, 80vh); display: flex; flex-direction: column;
  border: 1px solid var(--surface-200); border-radius: 1rem; background: var(--surface-0); color: var(--surface-900);
  box-shadow: 0 12px 36px rgb(15 23 42 / 0.16); animation: ktPanelIn 180ms ease;
}
@keyframes ktPanelIn { from { opacity: 0; transform: translate(0.5rem, -50%); } }
.kt-cartbox__head { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 0.9rem 0.85rem 1rem; border-bottom: 1px solid var(--surface-200); }
.kt-cartbox__meta { color: var(--surface-500); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.kt-cartbox__close, .kt-cartbox__remove {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-left: auto; border: 0; border-radius: 0.55rem;
  background: transparent; color: var(--surface-500); font-size: 1.3rem; line-height: 1; cursor: pointer; flex-shrink: 0;
}
.kt-cartbox__close:hover, .kt-cartbox__remove:hover { background: var(--surface-100); color: var(--surface-900); }
.kt-cartbox__close:focus-visible, .kt-cartbox__remove:focus-visible { outline: 2px solid var(--page-button-color, var(--accent)); outline-offset: 1px; }
.kt-cartbox__list { list-style: none; margin: 0; padding: 0.35rem 0.5rem; overflow-y: auto; flex: 1; }
.kt-cartbox__line { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem; border-radius: 0.6rem; }
.kt-cartbox__line + .kt-cartbox__line { border-top: 1px solid var(--surface-100); }
.kt-cartbox__line img, .kt-cartbox__ph { width: 2.75rem; height: 2.75rem; border-radius: 0.5rem; object-fit: cover; background: var(--surface-100); flex-shrink: 0; }
.kt-cartbox__name { min-width: 0; flex: 1; display: flex; flex-direction: column; font-size: 0.88rem; font-weight: 550; }
.kt-cartbox__name small { color: var(--surface-500); font-weight: 400; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.kt-cartbox__name, .kt-cartbox__name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-cartbox__remove { margin-left: 0; width: 2rem; height: 2rem; font-size: 1.1rem; }
.kt-cartbox__empty { padding: 1.25rem 0.75rem; color: var(--surface-500); font-size: 0.88rem; text-align: center; }
.kt-cartbox__foot { padding: 0.85rem 1rem 1rem; border-top: 1px solid var(--surface-200); display: grid; gap: 0.7rem; }
.kt-cartbox__total { display: flex; justify-content: space-between; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.kt-cartbox__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.kt-cartbox__btn {
  display: flex; align-items: center; justify-content: center; min-height: 2.75rem; border-radius: var(--global-button-radius, 0.6rem);
  background: var(--page-button-color, var(--accent)); color: var(--page-button-text-color, #fff); font-weight: 600; font-size: 0.9rem;
}
.kt-cartbox__btn--ghost { background: transparent; color: var(--surface-900); box-shadow: inset 0 0 0 1px var(--surface-300); }
.kt-cartbox__btn:focus-visible { outline: 2px solid var(--surface-900); outline-offset: 2px; }
.kt-fly {
  position: fixed; z-index: 1090; margin: 0; object-fit: cover; pointer-events: none;
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.25); will-change: transform, opacity;
}
@media (max-width: 48rem) {
  .kt-cartbox__tab { width: 3.5rem; padding: 0.6rem 0.3rem; }
  .kt-cartbox__panel { right: calc(100% + 0.4rem); width: min(19rem, calc(100vw - 5rem)); }
}

.kt-qo-lock, .kt-qo-lock body { overflow: hidden; }
.kt-qo { position: fixed; inset: 0; z-index: 1050; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.kt-qo__backdrop { position: absolute; inset: 0; background: rgb(15 23 42 / 0.5); opacity: 0; transition: opacity 220ms ease; }
.kt-qo__sheet {
  position: relative; display: flex; flex-direction: column; width: min(62rem, 100%); height: min(46rem, calc(100vh - 3rem));
  border-radius: 1rem; background: var(--surface-0); box-shadow: 0 24px 60px rgb(15 23 42 / 0.3); overflow: hidden;
  opacity: 0; transform: translateY(0.75rem) scale(0.98); transition: opacity 240ms ease, transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.kt-qo.is-open .kt-qo__backdrop { opacity: 1; }
.kt-qo.is-open .kt-qo__sheet { opacity: 1; transform: none; }
.kt-qo__head { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1rem 0.9rem 1.4rem; border-bottom: 1px solid var(--surface-200); }
.kt-qo__head > div { min-width: 0; }
.kt-qo__eyebrow { margin: 0; color: var(--surface-500); font-size: 0.75rem; font-weight: 600; }
.kt-qo__title { margin: 0.1rem 0 0; font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-qo__close {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-left: auto; flex-shrink: 0; border: 0; border-radius: 0.65rem;
  background: var(--surface-100); color: var(--surface-700); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.kt-qo__close:hover { background: var(--surface-200); }
.kt-qo__close:focus-visible { outline: 2px solid var(--page-button-color, var(--accent)); outline-offset: 2px; }
.kt-qo__body { position: relative; flex: 1; min-height: 0; background: var(--surface-50); }
.kt-qo__frame { display: block; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 200ms ease; }
.kt-qo.is-loaded .kt-qo__frame { opacity: 1; }
.kt-qo__loading { position: absolute; inset: 0; display: grid; place-items: center; }
.kt-qo__loading span { width: 2rem; height: 2rem; border-radius: 50%; border: 3px solid var(--surface-200); border-top-color: var(--page-button-color, var(--accent)); animation: ktSpin 800ms linear infinite; }
.kt-qo.is-loaded .kt-qo__loading { display: none; }
@keyframes ktSpin { to { transform: rotate(360deg); } }
@media (max-width: 48rem) {
  .kt-qo { padding: 0; align-items: flex-end; }
  .kt-qo__sheet { width: 100%; height: calc(100% - 1.5rem); border-radius: 1rem 1rem 0 0; transform: translateY(2rem); }
}
/* The checkout inside the popup: the order form only. */
.is-embedded { background: var(--surface-50); }
main.main--embedded { max-width: none; margin: 0; padding: 0.75rem 1rem 1.5rem; }
.is-embedded .checkout-page > h1 { display: none; }
@media (prefers-reduced-motion: reduce) {
  .kt-toast, .kt-qo__backdrop, .kt-qo__sheet, .kt-qo__frame, .kt-cartbox__tab { transition: none; }
  .kt-cartbox.is-bump .kt-cartbox__tab, .kt-cartbox__panel, .kt-qo__loading span { animation: none; }
}

/* ---------------------------------------------------------------------
   Product Details Page → sticky buy bar (2026-11-27): fixed to the bottom
   once the page's own buttons scroll away; slides up, never covers the
   floating contact button or the notices (they move up with --pd-sticky-h).
   --------------------------------------------------------------------- */
.pd-sticky {
  position: fixed; z-index: 64; left: 0; right: 0; bottom: 0;
  padding: 0.7rem 1.25rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgb(255 255 255 / 0.96); border-top: 1px solid var(--surface-200);
  box-shadow: 0 -8px 24px rgb(15 23 42 / 0.08); backdrop-filter: saturate(1.4) blur(8px);
  transform: translateY(110%); visibility: hidden; transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 260ms;
}
.pd-sticky.is-on { transform: none; visibility: visible; transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s; }
.pd-sticky__inner { max-width: 72rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pd-sticky--buttons .pd-sticky__inner { justify-content: center; }
.pd-sticky__product { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.pd-sticky__product img, .pd-sticky__ph { width: 3rem; height: 3rem; border-radius: 0.6rem; object-fit: contain; background: var(--surface-50); border: 1px solid var(--surface-200); flex-shrink: 0; }
.pd-sticky__text { display: flex; flex-direction: column; min-width: 0; }
.pd-sticky__text strong { font-size: 0.95rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--surface-900); }
.pd-sticky__price { font-size: 0.88rem; font-weight: 600; color: var(--page-button-color, var(--accent)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-sticky__actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.pd-sticky__btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.75rem; min-width: 9.5rem; }
.pd-sticky--buttons .pd-sticky__actions { width: min(32rem, 100%); }
.pd-sticky--buttons .pd-sticky__btn { flex: 1; }
.pd-sticky-on .kt-contact { transform: translateY(calc(-1 * var(--pd-sticky-h, 0px))); transition: transform 260ms ease; }
.pd-sticky-on .kt-toast { bottom: calc(1.25rem + var(--pd-sticky-h, 0px) + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 48rem) {
  .pd-gallery--left.has-thumbs, .pd-gallery--right.has-thumbs { flex-direction: column; }
  .pd-gallery--left .pd-thumbs { order: 0; }
  .pd-gallery--left .pd-thumbs, .pd-gallery--right .pd-thumbs { flex-direction: row; width: auto; max-height: none; overflow-x: auto; overflow-y: visible; }
  .pd-thumb { width: 4rem; height: 4rem; flex-shrink: 0; }
  .pd-sticky { padding-left: 0.75rem; padding-right: 0.75rem; }
  .pd-sticky__product img, .pd-sticky__ph { width: 2.5rem; height: 2.5rem; }
  /* Phones keep both buttons: the bar shows just the price beside them. */
  .pd-sticky--full .pd-sticky__product img, .pd-sticky--full .pd-sticky__ph, .pd-sticky--full .pd-sticky__text strong { display: none; }
  .pd-sticky__actions { flex: 1; justify-content: flex-end; }
  .pd-sticky__btn { min-width: 0; flex: 1; max-width: 11rem; padding-left: 0.75rem; padding-right: 0.75rem; font-size: 0.9rem; }
  .pd-sticky__btn .btn--buy__icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-sticky, .pd-sticky.is-on, .pd-thumb, .pd-stage img { transition: none; }
}

/* ---------------------------------------------------------------------
   Product Banner (2026-11-27, render/product-banners.ts): a full-width
   banner and two side-by-side banners, placed by Homepage UI. Height, the
   width split, gap and corner radius come from --pb-*; the image fills its
   frame (object-fit: cover) and grows gently on hover when zoom is on.
   --------------------------------------------------------------------- */
.pbanner, .pbanner-split { container-type: inline-size; }
.pbanner__frame { position: relative; display: block; overflow: hidden; height: var(--pb-h, 360px); background: var(--surface-100); }
.pbanner__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.pbanner--zoom .pbanner__frame:hover .pbanner__img, .pbanner--zoom .pbanner__frame:focus-visible .pbanner__img { transform: scale(1.06); }
a.pbanner__frame:focus-visible { outline: 3px solid var(--page-button-color, var(--accent)); outline-offset: -3px; }
.pbanner__empty { display: grid; place-items: center; height: 100%; color: var(--surface-500); font-size: 0.9rem; border: 2px dashed var(--surface-300); }
.pbanner--full { margin: 0; }
.pbanner-split { margin: 2.5rem 0; }
.pbanner-split__grid { display: grid; grid-template-columns: var(--pb-left, 1fr) var(--pb-right, 1fr); gap: var(--pb-gap, 16px); }
.pbanner-split--single .pbanner-split__grid { grid-template-columns: 1fr; }
.pbanner-split .pbanner__frame { border-radius: var(--pb-radius, 16px); min-width: 0; }
@container (max-width: 40rem) {
  .pbanner__frame { height: min(var(--pb-h, 360px), 62vw); }
  .pbanner-split__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .pbanner__img { transition: none; } .pbanner--zoom .pbanner__frame:hover .pbanner__img { transform: none; } }

/* The sticky bar drawn in place inside the admin's Product Details Page preview. */
.pd-sticky.pd-sticky--preview { position: relative; inset: auto; z-index: auto; transform: none; visibility: visible; margin-top: 1.5rem; border: 1px solid var(--surface-200); border-radius: 0.9rem; box-shadow: 0 6px 18px rgb(15 23 42 / 0.08); container-type: inline-size; }
.pd-sticky--preview .pd-sticky__inner { flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   2026-11-27 (eighth request): fixed button colours.
   - "Already added" (Cart Settings → Add to cart button): --incart-* from
     the page head; identical on hover, focus and press.
   - Cart drawer: "View Cart" and the suggestions' "Add" keep their colours
     on hover (Customization → Cart Drawer: --drawer-view-*, --drawer-rec-*);
     only a soft shadow shows the pointer is on them.
   - "You may also like" rows on the product page and cart page
     (Homepage & Design → Recommendations): .recs-row with --rec-*. Without
     "Change on hover" the button stays exactly as it is.
   --------------------------------------------------------------------- */
:is(.product-card__add-btn, .btn, .cart-drawer-rec__add, .pd-sticky__btn).is-in-cart,
:is(.product-card__add-btn, .btn, .cart-drawer-rec__add, .pd-sticky__btn).is-in-cart:is(:hover, :focus, :active) {
  background: var(--incart-bg, var(--surface-100));
  color: var(--incart-color, var(--surface-700));
  border-color: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--incart-color, var(--surface-700)) 22%, transparent);
  filter: none;
  transform: none;
  opacity: 1;
}

.cart-drawer .cart-drawer__view,
.cart-drawer .cart-drawer__view:hover {
  background: var(--drawer-view-bg, transparent);
  color: var(--drawer-view-color, var(--page-button-color, var(--accent)));
  border-color: var(--drawer-view-bg, var(--page-button-color, var(--accent)));
  filter: none;
  transform: none;
}
.cart-drawer .cart-drawer__view { transition: box-shadow 0.15s ease; }
.cart-drawer .cart-drawer__view:hover, .cart-drawer-rec__add:hover:not(.is-in-cart) { box-shadow: 0 2px 8px rgb(15 23 42 / 0.12); }

.recs-row .product-card { background: var(--rec-card-bg, var(--page-bg, var(--surface-0))); }
.recs-row .product-card__add-btn:not(.is-in-cart) {
  background-color: var(--rec-btn-bg, var(--page-button-color, var(--accent)));
  color: var(--rec-btn-color, var(--page-button-text-color, #fff));
}
.recs-row:not(.recs-row--hover) .product-card__add-btn:hover:not(:disabled):not(.is-loading):not(.is-in-cart) {
  background-color: var(--rec-btn-bg, var(--page-button-color, var(--accent)));
  color: var(--rec-btn-color, var(--page-button-text-color, #fff));
  filter: none;
  transform: none;
  box-shadow: none;
  opacity: 1;
}
.recs-row--hover .product-card__add-btn:not(.is-in-cart) { transition: background-color 0.2s ease, color 0.2s ease; }
.recs-row--hover .product-card__add-btn:hover:not(:disabled):not(.is-loading):not(.is-in-cart) {
  background-color: var(--rec-btn-hover-bg, var(--rec-btn-bg, var(--page-button-color, var(--accent))));
  color: var(--rec-btn-hover-color, var(--rec-btn-color, var(--page-button-text-color, #fff)));
  filter: none;
  transform: none;
  opacity: 1;
}

/* ---------------------------------------------------------------------
   Homepage UI product rows (2026-11-27, ninth request): heading left or
   centred with "View all" on the right; a sideways slider (auto and/or
   ← →) instead of the grid. render/home-sections.ts.
   --------------------------------------------------------------------- */
.home-row__head--center { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; }
.home-row__head--center h2 { grid-column: 2; text-align: center; }
.home-row__head--center .home-row__all { grid-column: 3; justify-self: end; }
.home-row__viewport { position: relative; }
.product-grid.home-row__track {
  display: grid; grid-auto-flow: column; grid-template-columns: none;
  grid-auto-columns: calc((100% - 3 * 1.5rem) / 4);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 0.25rem 0.1rem 0.5rem;
}
.home-row__track::-webkit-scrollbar { display: none; }
.home-row__track > .product-card { scroll-snap-align: start; min-width: 0; }
.home-row__arrow {
  position: absolute; z-index: 2; top: 40%; transform: translateY(-50%);
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--surface-200); background: var(--surface-0); color: var(--surface-900);
  box-shadow: 0 4px 14px rgb(15 23 42 / 0.12); cursor: pointer; transition: box-shadow 0.15s ease;
}
.home-row__arrow:hover { box-shadow: 0 6px 18px rgb(15 23 42 / 0.18); }
.home-row__arrow:focus-visible { outline: 2px solid var(--page-button-color, var(--accent)); outline-offset: 2px; }
.home-row__arrow--prev { left: -1rem; }
.home-row__arrow--next { right: -1rem; }
@media (max-width: 64rem) { .product-grid.home-row__track { grid-auto-columns: calc((100% - 2 * 1.5rem) / 3); } }
@media (max-width: 48rem) {
  .product-grid.home-row__track { grid-auto-columns: 46%; gap: 0.75rem; }
  .home-row__arrow--prev { left: 0.25rem; }
  .home-row__arrow--next { right: 0.25rem; }
  .home-row__head--center { grid-template-columns: 1fr auto; }
  .home-row__head--center h2 { grid-column: 1; text-align: left; }
  .home-row__head--center .home-row__all { grid-column: 2; }
}

/* ---------------------------------------------------------------------
   Products → Products Layout (2026-11-27): [data-card-layout] on <body>
   (or on an admin preview wrapper). Default = no attribute, unchanged.
   --------------------------------------------------------------------- */
/* Side by side: photo left; name, price and button right. */
[data-card-layout="side"] .product-grid:not(.home-row__track) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
[data-card-layout="side"] .product-grid.home-row__track { grid-auto-columns: minmax(19rem, calc((100% - 1.5rem) / 2)); }
[data-card-layout="side"] .product-card { display: grid; grid-template-columns: minmax(6.5rem, 42%) minmax(0, 1fr); grid-template-rows: 1fr auto; }
[data-card-layout="side"] .product-card__media { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; }
[data-card-layout="side"] .product-card__media img, [data-card-layout="side"] .product-card__placeholder { height: 100%; }
[data-card-layout="side"] .product-card__body { grid-column: 2; grid-row: 1; align-self: end; }
[data-card-layout="side"] .product-card__add-btn { grid-column: 2; grid-row: 2; width: auto; margin: 0 1rem 1rem; align-self: start; }
@media (max-width: 48rem) { [data-card-layout="side"] .product-grid.home-row__track { grid-auto-columns: 86%; } }

/* Button on hover: the button sits on the bottom of the (square) photo,
   shown on hover / keyboard focus; always shown on touch screens. */
[data-card-layout="overlay"] .product-card { container-type: inline-size; }
[data-card-layout="overlay"] .product-card__add-btn {
  position: absolute; z-index: 3; left: 0.75rem; right: 0.75rem; top: calc(100cqw - 3.25rem);
  width: auto; margin: 0; box-shadow: 0 6px 18px rgb(15 23 42 / 0.18);
  opacity: 0; transform: translateY(0.4rem); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
[data-card-layout="overlay"] .product-card:hover .product-card__add-btn,
[data-card-layout="overlay"] .product-card:focus-within .product-card__add-btn { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: none) {
  [data-card-layout="overlay"] .product-card__add-btn { opacity: 1; transform: none; pointer-events: auto; }
}

/* No button: photo, name and price; the whole card opens the product. */
[data-card-layout="minimal"] .product-card__add-btn { display: none; }
[data-card-layout="minimal"] .product-card { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
[data-card-layout="minimal"] .product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgb(15 23 42 / 0.12); }
[data-card-layout="minimal"] .product-card__body { padding-bottom: 1.25rem; }
@media (prefers-reduced-motion: reduce) {
  [data-card-layout="overlay"] .product-card__add-btn, [data-card-layout="minimal"] .product-card { transition: none; }
  [data-card-layout="minimal"] .product-card:hover { transform: none; }
}

/* ==========================================================================
   My account (2026-11-30, storefront/account/profile-page.ts). A dark
   sidebar down the left edge of the page, from the header to the footer;
   the content on a light surface to its right. Below 64rem the sidebar
   becomes a dark tab bar above the content. Colours: Customization > User
   Profile (--page-* + --acct-*); nothing set = near-black and white.
   ========================================================================== */
.account-page.acct {
  --acct-ink: var(--acct-accent, #111111);
  --acct-line: var(--cart-card-border, var(--surface-200));
  --acct-card: var(--cart-card-bg, var(--surface-0));
  --acct-muted: var(--surface-500);
  --acct-sidebar: var(--acct-side-bg, #0c0c0e);
  --acct-sidebar-text: var(--acct-side-text, #ffffff);
  /* Full width, from the header to the footer (layout.ts fullWidthMain). */
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--page-bg, var(--surface-50));
  /* Breakpoints below are container queries on the page itself, so the same
     rules serve the store and Customization's device-size previews. */
  container: acct / inline-size;
}
.acct * { min-width: 0; }
.acct-layout { display: grid; grid-template-columns: 18rem minmax(0, 1fr); min-height: calc(100vh - 8rem); }

/* Sidebar (left) */
.acct-nav {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1.75rem 1rem 1.25rem;
  background: var(--acct-sidebar); color: var(--acct-sidebar-text);
}
.acct-nav__user { display: flex; align-items: center; gap: 0.8rem; padding: 0 0.6rem; }
.acct-nav__avatar { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.14); }
.acct-nav__avatar--initial { display: inline-flex; align-items: center; justify-content: center; background: rgb(255 255 255 / 0.12); color: var(--acct-sidebar-text); font-weight: 650; font-size: 1.1rem; }
.acct-photo__img--initial { display: inline-flex; align-items: center; justify-content: center; background: var(--acct-ink); color: #ffffff; font-weight: 650; }
.acct-nav__who { display: flex; flex-direction: column; line-height: 1.35; }
.acct-nav__who strong { font-size: 0.95rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-nav__who span { font-size: 0.78rem; opacity: 0.62; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-nav__since { margin: 0.9rem 0.6rem 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid rgb(255 255 255 / 0.1); font-size: 0.75rem; opacity: 0.5; }
.acct-nav__list { display: flex; flex-direction: column; gap: 0.2rem; }
.acct-nav__item {
  position: relative; display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 2.75rem; padding: 0.6rem 0.8rem; box-sizing: border-box;
  border: 0; border-radius: 0.7rem; background: none; font: inherit; font-size: 0.9rem; font-weight: 550;
  color: var(--acct-sidebar-text); opacity: 0.72; text-decoration: none; text-align: left; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}
.acct-nav__item:hover { opacity: 1; background: rgb(255 255 255 / 0.07); }
.acct-nav__item:focus-visible { outline: 2px solid var(--acct-sidebar-text); outline-offset: 2px; opacity: 1; }
.acct-nav__item.is-active, .acct-nav__item.is-active:hover {
  opacity: 1; background: var(--acct-tab-active-bg, #ffffff); color: var(--acct-tab-active-text, #111111);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
}
.acct-icon { flex-shrink: 0; }
.acct-nav__item--danger:not(.is-active) { color: var(--acct-danger, #f87171); }
.acct-nav__item--logout { margin-top: auto; border-top: 1px solid rgb(255 255 255 / 0.1); border-radius: 0; padding-top: 1rem; min-height: 3.25rem; }
.acct-nav__item--logout:hover { background: none; }

/* Content (right) */
.acct-main { padding: 2.25rem clamp(1.25rem, 3vw, 3rem) 3.5rem; max-width: 64rem; width: 100%; box-sizing: border-box; }
.acct-head { margin-bottom: 1.75rem; }
.acct-eyebrow { margin: 0 0 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--acct-muted); letter-spacing: 0.01em; }
.acct-head h1 { margin: 0; font-size: 1.85rem; font-weight: 650; letter-spacing: -0.03em; color: var(--page-heading-color, var(--surface-900, #0f172a)); }
.acct-head__sub { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--acct-muted); overflow: hidden; text-overflow: ellipsis; }
.acct-panel.is-entering { animation: acctIn 0.22s ease; }
@keyframes acctIn { from { opacity: 0; transform: translateY(4px); } }
.acct-panel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.acct-panel__head h2 { margin: 0; font-size: 1.1rem; font-weight: 650; letter-spacing: -0.015em; color: var(--page-heading-color, inherit); }
.acct-panel__head p { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--acct-muted); }
#acct-panel-dashboard > .acct-panel__head { display: none; }
.acct-card { border: 1px solid var(--acct-line); border-radius: 1rem; background: var(--acct-card); padding: 1.35rem; box-shadow: 0 1px 2px rgb(15 23 42 / 0.04); }

/* Dashboard: figures */
.acct-kpis { display: grid; grid-template-columns: repeat(var(--acct-kpi-cols, 4), minmax(0, 1fr)); gap: 0.9rem; margin-bottom: 1rem; }
.acct-kpi {
  display: flex; flex-direction: column; gap: 0.15rem; padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--acct-line); border-radius: 1rem; background: var(--acct-card); box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}
.acct-kpi__icon { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; margin-bottom: 0.7rem; border-radius: 0.65rem; background: var(--surface-100); color: var(--acct-ink); }
.acct-kpi__label { font-size: 0.8rem; color: var(--acct-muted); }
.acct-kpi__value { font-size: 1.65rem; font-weight: 650; letter-spacing: -0.035em; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--page-heading-color, var(--surface-900, #0f172a)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-kpi__meta { font-size: 0.75rem; color: var(--acct-muted); }
.acct-kpi--featured { background: var(--acct-ink); border-color: var(--acct-ink); color: #ffffff; }
.acct-kpi--featured .acct-kpi__icon { background: rgb(255 255 255 / 0.12); color: #ffffff; }
.acct-kpi--featured .acct-kpi__label, .acct-kpi--featured .acct-kpi__meta { color: rgb(255 255 255 / 0.66); }
.acct-kpi--featured .acct-kpi__value { color: #ffffff; }

/* Dashboard: welcome (no orders yet) */
.acct-welcome {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; padding: 1.6rem;
  border-radius: 1.1rem; background: var(--acct-ink); color: #ffffff; margin-bottom: 1rem;
}
.acct-welcome__icon { display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border-radius: 0.9rem; background: rgb(255 255 255 / 0.1); }
.acct-welcome__text h3 { margin: 0; font-size: 1.1rem; font-weight: 650; letter-spacing: -0.015em; }
.acct-welcome__text p { margin: 0.3rem 0 0; font-size: 0.88rem; color: rgb(255 255 255 / 0.7); max-width: 34rem; }
.acct-welcome .acct-btn { background: #ffffff; color: #111111; }

/* Dashboard: latest order */
.acct-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.acct-card__head h3 { margin: 0; font-size: 1.1rem; font-weight: 650; letter-spacing: -0.015em; color: var(--page-heading-color, inherit); font-variant-numeric: tabular-nums; }
.acct-card__head .acct-eyebrow { margin-bottom: 0.2rem; }
.acct-progress { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0 0 1.4rem; padding: 0; }
.acct-progress::before, .acct-progress::after { content: ""; position: absolute; top: 0.6rem; left: 10%; height: 2px; border-radius: 2px; }
.acct-progress::before { right: 10%; background: var(--acct-line); }
.acct-progress::after { width: calc(80% * var(--acct-progress, 0)); background: var(--acct-ink); }
.acct-progress__step { position: relative; z-index: 1; display: grid; justify-items: center; gap: 0.45rem; text-align: center; }
.acct-progress__dot { display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--acct-card); border: 2px solid var(--acct-line); color: #ffffff; box-sizing: border-box; }
.acct-progress__step.is-done .acct-progress__dot { background: var(--acct-ink); border-color: var(--acct-ink); }
.acct-progress__step.is-current .acct-progress__dot { border-color: var(--acct-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acct-ink) 14%, transparent); }
.acct-progress__step.is-current .acct-progress__dot::after { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--acct-ink); }
.acct-progress__label { font-size: 0.75rem; color: var(--acct-muted); line-height: 1.3; }
.acct-progress__step.is-done .acct-progress__label, .acct-progress__step.is-current .acct-progress__label { color: var(--page-heading-color, var(--surface-900, #0f172a)); font-weight: 600; }
.acct-progress__closed { margin: 0 0 1.25rem; padding: 0.65rem 0.85rem; border-radius: 0.65rem; background: var(--surface-100); font-size: 0.85rem; }
.acct-last__body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--acct-line); }
.acct-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; align-content: start; }
.acct-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.9rem; font-size: 0.9rem; }
.acct-lines li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-lines__qty { color: var(--acct-muted); font-variant-numeric: tabular-nums; }
.acct-lines__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.acct-lines__more { color: var(--acct-muted); font-size: 0.82rem; }
.acct-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1rem; margin: 0; align-content: start; }
.acct-facts__wide { grid-column: 1 / -1; }
.acct-facts dt { font-size: 0.75rem; color: var(--acct-muted); }
.acct-facts dd { margin: 0.15rem 0 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.acct-facts__wide dd { font-weight: 500; font-size: 0.88rem; }
.acct-card__foot { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.35rem; }

/* Dashboard: quick links */
.acct-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.acct-quick__item {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.95rem 1rem; border: 1px solid var(--acct-line); border-radius: 0.9rem;
  background: var(--acct-card); color: inherit; text-decoration: none; transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.acct-quick__item:hover { border-color: color-mix(in srgb, var(--acct-ink) 35%, var(--acct-line)); box-shadow: 0 2px 8px rgb(15 23 42 / 0.06); }
.acct-quick__item:focus-visible { outline: 2px solid var(--acct-ink); outline-offset: 2px; }
.acct-quick__icon { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 0.65rem; background: var(--surface-100); color: var(--acct-ink); flex-shrink: 0; }
.acct-quick__text { display: grid; gap: 0.1rem; flex: 1; }
.acct-quick__text strong { font-size: 0.88rem; font-weight: 650; color: var(--page-heading-color, inherit); }
.acct-quick__text small { font-size: 0.76rem; color: var(--acct-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-quick__arrow { color: var(--acct-muted); transition: transform 0.18s ease, color 0.18s ease; }
.acct-quick__item:hover .acct-quick__arrow { transform: translateX(2px); color: var(--acct-ink); }

/* Orders */
.acct-orders, .acct-reviews, .acct-addresses { list-style: none; margin: 0; padding: 0; }
.acct-orders { border: 1px solid var(--acct-line); border-radius: 1rem; background: var(--acct-card); }
.acct-order { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; }
.acct-order + .acct-order { border-top: 1px solid var(--acct-line); }
.acct-order__main p { margin: 0; }
.acct-order__main .acct-order__items { margin-top: 0.15rem; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-order__main .acct-order__meta { margin-top: 0.2rem; font-size: 0.78rem; color: var(--acct-muted); }
.acct-order__id { font-weight: 650; font-variant-numeric: tabular-nums; }
.acct-order__side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; flex-shrink: 0; }
.acct-order__total { font-variant-numeric: tabular-nums; }

/* Addresses */
.acct-addresses { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.9rem; }
.acct-address p { margin: 0; }
.acct-address .acct-address__name { font-weight: 650; margin-top: 0.6rem; }
.acct-address .acct-address__line { font-size: 0.88rem; color: var(--page-text-color, var(--surface-700)); margin-top: 0.15rem; overflow-wrap: anywhere; }
.acct-address .acct-btn { margin-top: 0.9rem; }
.acct-chip { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--surface-100); font-size: 0.75rem; font-weight: 600; }
.acct-add { margin-top: 1rem; display: grid; gap: 0.9rem; justify-items: start; }
.acct-add .acct-form { width: 100%; box-sizing: border-box; }
.acct-add .acct-form[hidden] { display: none; }

/* Reviews */
.acct-reviews { display: grid; gap: 0.9rem; }
.acct-review p { margin: 0; }
.acct-review__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.acct-review__product a { font-weight: 650; color: var(--page-heading-color, inherit); text-decoration: none; }
.acct-review__product a:hover { text-decoration: underline; }
.acct-review .acct-stars { margin-top: 0.35rem; color: var(--review-star-color, #f59e0b); letter-spacing: 0.08em; }
.acct-stars span { color: var(--surface-300); }
.acct-review .acct-review__title { font-weight: 600; margin-top: 0.35rem; }
.acct-review .acct-review__body { margin-top: 0.25rem; font-size: 0.9rem; white-space: pre-line; overflow-wrap: anywhere; }
.acct-review .acct-review__date { margin-top: 0.5rem; font-size: 0.78rem; color: var(--acct-muted); }

/* Forms */
.acct-form { display: grid; gap: 1rem; }
.acct-form form { display: grid; gap: 1rem; }
.acct-form label { display: grid; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--page-subheading-color, var(--surface-700)); }
.acct-form input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]), .acct-form textarea {
  width: 100%; box-sizing: border-box; min-height: 2.75rem; padding: 0.6rem 0.8rem; border: 1px solid var(--page-input-border-color, var(--surface-300));
  border-radius: 0.6rem; background: var(--surface-0); color: inherit; font: inherit; font-weight: 400;
}
.acct-form input:focus-visible, .acct-form textarea:focus-visible { outline: 2px solid var(--acct-ink); outline-offset: 1px; border-color: var(--acct-ink); }
.acct-form input:disabled:not([type="checkbox"]) { background: var(--surface-50); color: var(--acct-muted); cursor: not-allowed; }
.acct-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.acct-form__actions { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.acct-form__error { margin: 0; padding: 0.6rem 0.8rem; border-radius: 0.6rem; background: #fef2f2; color: #b91c1c; font-size: 0.85rem; }
.acct-form__error[hidden], .acct-saved[hidden] { display: none; }
.acct-hint { font-size: 0.78rem; font-weight: 400; color: var(--acct-muted); }
.acct-saved { font-size: 0.85rem; font-weight: 600; color: #15803d; }
.acct-form .acct-check { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; }
.acct-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--acct-danger, #dc2626); }
.acct-photo { display: flex; align-items: center; gap: 1.25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--acct-line); }
.acct-photo__img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; font-size: 1.5rem; }
.acct-photo__field { flex: 1; }
.acct-label { margin: 0 0 0.4rem; font-size: 0.85rem; font-weight: 600; }
.acct-danger { border-color: color-mix(in srgb, var(--acct-danger, #dc2626) 30%, var(--acct-line)); }
.acct-danger__title { margin: 0; font-weight: 650; color: var(--acct-danger, #dc2626); }
.acct-danger__list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; font-size: 0.88rem; }

/* Buttons: the account's own black, unless User Profile sets a button colour. */
.acct-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.6rem 1.15rem; box-sizing: border-box;
  border: 1px solid transparent; border-radius: var(--global-button-radius, 0.6rem);
  background: var(--acct-btn-bg, var(--acct-ink)); color: var(--acct-btn-text, #ffffff);
  font: inherit; font-size: 0.9rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}
.acct-btn:hover:not(:disabled) { opacity: 0.88; }
.acct-btn:disabled { opacity: 0.55; cursor: progress; }
.acct-btn:focus-visible { outline: 2px solid var(--acct-ink); outline-offset: 2px; }
.acct-btn--ghost { background: transparent; color: var(--acct-ink); border-color: var(--acct-line); }
.acct-btn--ghost:hover:not(:disabled) { opacity: 1; background: var(--surface-100); }
.acct-btn--quiet { min-height: 2.25rem; padding: 0.35rem 0.75rem; background: transparent; color: var(--acct-muted); border-color: var(--acct-line); font-size: 0.82rem; }
.acct-btn--danger { background: var(--acct-danger, #dc2626); color: #ffffff; }

.acct-empty { text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--acct-line); border-radius: 1rem; background: var(--acct-card); }
.acct-empty .acct-empty__title { margin: 0; font-weight: 650; color: var(--page-heading-color, inherit); }
.acct-empty .acct-empty__text { margin: 0.35rem auto 1rem; max-width: 26rem; font-size: 0.88rem; color: var(--acct-muted); }
.acct-grid { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }

@container acct (max-width: 80rem) {
  .acct-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container acct (max-width: 63.98rem) {
  .acct-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .acct-nav { flex-direction: row; align-items: center; padding: 0.6rem 0.75rem; position: sticky; top: 0; z-index: 5; }
  .acct-nav__user, .acct-nav__since { display: none; }
  .acct-nav__list { flex-direction: row; flex: 1; overflow-x: auto; scrollbar-width: none; gap: 0.25rem; }
  .acct-nav__list::-webkit-scrollbar { display: none; }
  .acct-nav__item { width: auto; flex-shrink: 0; white-space: nowrap; }
  .acct-nav__item--logout { margin-top: 0; border-top: 0; border-left: 1px solid rgb(255 255 255 / 0.12); border-radius: 0; padding: 0.6rem 0.4rem 0.6rem 0.8rem; min-height: 2.75rem; flex-shrink: 0; }
  .acct-nav__item--logout span { display: none; }
  .acct-main { max-width: none; }
  .acct-last__body { grid-template-columns: minmax(0, 1fr); }
}
@container acct (max-width: 48rem) {
  .acct-main { padding: 1.5rem 1rem 2.5rem; }
  .acct-head h1 { font-size: 1.5rem; }
  .acct-kpis { gap: 0.6rem; }
  .acct-kpi { padding: 0.95rem; }
  .acct-kpi__icon { width: 2rem; height: 2rem; margin-bottom: 0.5rem; }
  .acct-kpi__value { font-size: 1.35rem; }
  .acct-welcome { grid-template-columns: minmax(0, 1fr); padding: 1.3rem; }
  .acct-welcome .acct-btn { justify-self: start; }
  .acct-progress__label { font-size: 0.68rem; }
  .acct-form__row { grid-template-columns: minmax(0, 1fr); }
  .acct-order { flex-direction: column; align-items: flex-start; }
  .acct-order__side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .acct-card__foot > * { flex: 1; text-align: center; }
  .acct-photo { flex-direction: column; align-items: flex-start; }
  .acct-form input:not([type="checkbox"]), .acct-form textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .acct-panel.is-entering { animation: none; } }
