/* Shared catalog sizing and basket behavior for the eight themes. */
.store-body .skip-link:not(:focus) { clip-path: inset(50%); }
.store-body {
  --hero-photo-height: clamp(245px, 34vw, 410px);
  --catalog-photo-height: clamp(125px, 17vw, 180px);
  --catalog-gap: clamp(12px, 1.8vw, 22px);
}

.store-body .store-hero { padding-block: clamp(16px, 3vw, 40px) clamp(26px, 4vw, 52px); }
.store-body .store-hero :is(h1, .boutique-hero h1, .studio-hero h1) {
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.04;
}
.store-body.store-font-sans .store-hero h1 { font-size: clamp(36px, 4.7vw, 68px); }
html[lang=ar] .store-body .store-hero h1,
html[lang=ar] .store-body.store-font-serif .store-hero h1 {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.24;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
}
.store-body .store-hero .hero-description { margin-block: 14px 21px; line-height: 1.55; }
html[lang=ar] .store-body .store-hero .hero-description { line-height: 1.68; }
.store-body .store-hero .store-eyebrow { margin-bottom: 12px; }
.store-body .store-hero figure { min-block-size: 0; }
.store-body .store-hero figure img {
  display: block;
  inline-size: 100%;
  block-size: var(--hero-photo-height);
  min-block-size: 0;
  max-block-size: none;
  height: var(--hero-photo-height);
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
}
.store-body.store-victorian .victorian-hero figure img { block-size: clamp(150px, 27vw, 345px); height: clamp(150px, 27vw, 345px); }
.store-body .heritage-hero-art { align-self: center; padding: 14px; }
.store-body .heritage-hero-art img { border-radius: 8px; }
.store-body :is(.heritage-hero-copy, .minimal-hero-content, .fresh-hero-copy) { padding: clamp(18px, 3.4vw, 50px); }
.store-body .bakery-hero-row { padding-block-end: 0; }
.store-body .beauty-booking-note { margin-bottom: 0; }
.demo-theme-bar {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) minmax(0, 20rem);
  align-items: center;
  gap: 8px 20px;
  padding: 10px max(18px, calc((100% - 1180px) / 2));
  background: #231e2e;
  color: #f9f7ff;
  font: .8125rem/1.45 var(--font);
}
.demo-theme-bar > a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-block-size: 44px;
  white-space: nowrap;
}
.demo-theme-bar > a .icon { flex: none; inline-size: 18px; transform: rotate(180deg); }
html[dir=rtl] .demo-theme-bar > a .icon { transform: none; }
.demo-theme-bar > p { margin: 0; color: inherit; overflow-wrap: normal; }
.demo-theme-bar > p span { display: block; color: #c7c0d3; font-size: .75rem; }
.demo-theme-bar form {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
  min-inline-size: 0;
}
.demo-theme-bar label { color: #ded6e9; }
.demo-theme-bar select,
.demo-theme-bar button { min-block-size: 44px; border-radius: 8px; }
.demo-theme-bar select {
  inline-size: 100%;
  min-inline-size: 0;
  padding: 6px 8px;
  color-scheme: dark;
  color: #f7f3ff;
  background: #3b3449;
  border: 1px solid #756784;
}
.demo-theme-bar button {
  min-inline-size: 60px;
  padding: 6px 12px;
  white-space: nowrap;
  color: #251d34;
  background: #dfd0ff;
  border: 0;
}

.store-body .store-catalog .store-section-header { margin-bottom: 20px; padding-top: 18px; }
.store-body .store-catalog .store-section-header h2 { margin: 0; }
.store-body .store-catalog .store-catalog-layout { display: block; }
.store-body .store-catalog .store-categories {
  flex-flow: row nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-block: 0 8px;
  gap: 8px;
}
.store-body .store-catalog .store-category { min-height: 44px; flex: none; white-space: nowrap; }
.store-body .store-catalog .store-catalog-layout .store-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  align-items: stretch;
  gap: var(--catalog-gap);
  margin: 0 0 clamp(30px, 5vw, 60px);
}
.store-body .store-catalog .store-product {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  padding: 0;
  background: var(--store-surface);
  color: var(--store-ink);
  border: 1px solid var(--store-line);
  border-radius: 12px;
  text-align: start;
  overflow: hidden;
}
.store-body.store-corners-soft .store-catalog .store-product { border-radius: 18px; }
.store-body.store-corners-square .store-catalog .store-product { border-radius: 0; }
.store-body .store-catalog .store-product-image {
  flex: none;
  align-self: stretch;
  height: var(--catalog-photo-height);
  min-height: 0;
  inline-size: 100%;
  max-width: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: var(--store-wash);
}
.store-body .store-catalog .store-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
}
.store-body .store-catalog .store-product-copy {
  container: catalog-item / inline-size;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(10px, 1.5vw, 17px);
}
.store-body .store-catalog .store-product-copy h3 {
  margin: 0;
  min-height: 0;
  font-family: var(--store-copy);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: 0;
}
html[lang=ar] .store-body .store-catalog .store-product-copy h3 { font-weight: 800; }
.store-body .store-catalog .store-product-copy > p {
  min-height: 0;
  margin: 7px 0 0;
  color: var(--store-muted);
  font-size: clamp(13px, 1.35vw, 15px);
  line-height: 1.5;
}
.store-body .store-catalog .store-product-state { align-self: flex-start; margin-block-start: 6px; }
.store-body .store-catalog .store-product-copy .form-field { margin: 10px 0 0; }
.store-body .store-catalog .store-product-bottom {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  justify-items: start;
  margin-top: auto;
  padding-top: 12px;
  min-width: 0;
  gap: 7px;
}
.store-body .store-catalog .store-product-price { font-size: clamp(13px, 1.3vw, 16px); font-weight: 800; text-align: start; }
.store-body .store-catalog .add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  inline-size: auto;
  min-width: 44px;
  min-height: 44px;
  height: auto;
  padding: 6px 10px;
  gap: 4px;
  border-radius: 8px;
  color: var(--store-accent-text);
  background: var(--store-accent);
  border-color: transparent;
  font-family: var(--store-copy);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  overflow-wrap: normal;
}
.store-body .store-catalog .add-button .icon { flex: none; }
.store-body .store-catalog .add-button:not(:disabled):hover { filter: brightness(1.12); }
.store-body .store-catalog .add-button:disabled { opacity: .65; }
.store-body .store-catalog .add-button:focus-visible { outline-color: var(--store-ink); }
.store-body .store-catalog .add-button span { display: inline; }
.store-body .store-catalog .store-empty { grid-column: 1/-1; }

@container catalog-item (max-width: 10rem) {
  .store-body .store-catalog .store-product-bottom { grid-template-columns: minmax(0, 1fr); }
  .store-body .store-catalog .add-button { justify-self: stretch; }
}

.store-body .store-about {
  align-items: start;
  gap: clamp(18px, 6vw, 70px);
  padding: clamp(22px, 4vw, 44px) 0;
  background: transparent;
  border-radius: 0;
  border-block: 1px solid var(--store-line);
}
.store-body .store-about h2 { margin-bottom: 8px; font-size: clamp(23px, 3.1vw, 38px); }
.store-body .store-about p { margin-block: 0 7px; line-height: 1.6; }
.store-body .store-contact .store-share { min-height: 44px; }
.store-body .store-contact .store-social-links:empty { display: none; }

.store-body .cart-panel {
  width: min(460px, 100%);
  padding: 0 clamp(18px, 4vw, 28px) max(20px, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  font-family: var(--store-copy);
}
.store-body .cart-panel .cart-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  margin-bottom: 12px;
  padding: max(12px, env(safe-area-inset-top)) 0 10px;
  background: var(--store-surface);
  border-bottom: 1px solid var(--store-line);
}
.store-body .cart-panel .cart-header h2 { margin: 0; font: 800 1.45rem/1.3 var(--store-copy); }
.store-body .cart-panel .cart-item {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}
.store-body .cart-panel .cart-item img { width: 44px; height: 44px; }
.store-body .cart-panel .cart-item > strong { grid-column: auto; text-align: end; font-size: .84rem; }
.store-body .cart-panel .cart-item h3 { font-family: var(--store-copy); font-size: .93rem; }
.store-body .cart-panel .quantity-controls button { min-width: 44px; min-height: 44px; }
.store-body .cart-panel .cart-empty { display: grid; justify-items: start; gap: 12px; }
.store-body .cart-panel .cart-preview-continue { width: auto; margin-block-start: 8px; }
.store-body .cart-panel .cart-total { margin-top: 12px; }
.store-body .floating-cart-mobile.active { display: none; }

@media (max-width: 1000px) {
  .store-body { --hero-photo-height: clamp(195px, 34vw, 320px); }
  .store-body .store-catalog .store-catalog-layout .store-products { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 50rem) {
  .demo-theme-bar { grid-template-columns: max-content minmax(0, 1fr); }
  .demo-theme-bar form { grid-column: 1/-1; }
}
@media (max-width: 767px) {
  .store-body { --hero-photo-height: clamp(160px, 36vw, 245px); --catalog-photo-height: clamp(108px, 26vw, 156px); }
  .store-body .store-catalog .store-catalog-layout .store-products { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .store-body .store-hero h1,
  .store-body.store-font-sans .store-hero h1,
  html[lang=ar] .store-body .store-hero h1,
  html[lang=ar] .store-body.store-font-serif .store-hero h1 { font-size: clamp(30px, 7vw, 46px); }
  .store-body.store-victorian .victorian-hero figure img { height: clamp(105px, 24vw, 160px); }
  .store-body .heritage-hero-art { padding: 0; }
  .store-body .heritage-hero-art img { border-radius: 0; }
  .store-body .store-hero .hero-description { margin-block: 10px 16px; }
  .store-body .store-about { grid-template-columns: minmax(0,1fr); }
  .store-body.has-basket { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .store-body:not(.basket-open) .floating-cart-mobile.active { display: flex; }
}
@media (max-width: 420px) {
  .store-body .cart-panel .cart-item > strong { font-size: .76rem; }
}

/* Checkout follows the store's palette on both the desktop drawer and mobile sheet. */
.sample-theme-bar { grid-template-columns: max-content minmax(0, 1fr) max-content max-content; }
.sample-theme-bar .sample-apply { min-block-size: 44px; border-radius: 8px; background: #f7f5ed; color: #23231f; padding: 6px 12px; }
.store-body .store-catalog .store-product-bottom .product-quantity { min-width: 0; }
.store-body .store-catalog .product-quantity .add-button { width: 100%; }
.product-quantity .product-stepper[hidden], .product-quantity .add-button[hidden] { display: none; }
.product-stepper { display: grid; grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr); align-items: center; min-height: 44px; text-align: center; border: 1px solid var(--store-line); color: var(--store-ink); background: var(--store-wash); border-radius: 8px; }
.product-stepper button { border: 0; background: transparent; min-width: 44px; min-height: 44px; color: inherit; font-size: 1.15rem; font-weight: 800; cursor: pointer; }
.product-stepper button:disabled { opacity: .5; cursor: default; }
.product-stepper span { min-width: 1.7ch; font-weight: 800; font-variant-numeric: tabular-nums; }
.store-body .cart-panel { width: min(520px, 100%); background: var(--store-surface); color: var(--store-ink); }
.store-body .cart-panel .cart-header { padding-block-end: 10px; margin-block-end: 0; border: 0; }
.store-body .cart-panel .checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 4px 0 16px;
  padding: 0;
  list-style: none;
  color: var(--store-muted);
}
.checkout-steps li { border-block-start: 3px solid var(--store-line); padding: 8px 0; font-size: .77rem; text-align: center; }
.checkout-steps li[aria-current] { border-color: var(--store-accent); color: var(--store-ink); font-weight: 800; }
.checkout-back { min-block-size: 44px; color: var(--store-link); background: transparent; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }
.checkout-actions { display: grid; gap: 8px; margin-block: 14px; }
.checkout-fulfillment { padding: 0; margin: 0; min-width: 0; border: 0; }
.checkout-options { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--store-wash); border: 1px solid var(--store-line); border-radius: 12px; margin-block: 8px 14px; padding: 3px; }
.checkout-options label { display: grid; position: relative; margin: 0; cursor: pointer; }
.checkout-options input { position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 1px; height: 1px; opacity: 0; margin: 0; }
.checkout-options span { display: grid; place-items: center; min-block-size: 44px; padding: 4px; border-radius: 8px; color: var(--store-ink); font-weight: 700; }
.checkout-options input:checked + span { background: var(--store-accent); color: var(--store-accent-text); }
.checkout-options input:focus-visible + span { outline: 2px solid var(--store-link); outline-offset: 2px; }
.checkout-schedule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checkout-schedule input { min-inline-size: 0; }
.checkout-note { font-size: .85rem; padding: 10px 12px; margin-block: 10px; border-inline-start: 3px solid var(--store-line); background: var(--store-wash); color: var(--store-ink); }
.checkout-preview { padding: 14px; margin-block: 10px 16px; background: var(--store-wash); border-radius: 14px; }
.checkout-preview h3 { font: 800 .9rem/1.4 var(--store-copy); margin: 0 0 10px; color: var(--store-ink); }
.checkout-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: 13px; border-radius: 10px; background: #dceee2; color: #1d3828; font: inherit; font-size: .89rem; line-height: 1.6; }
.cart-form-toggle .checkbox-row { margin-block: 12px; }
.store-body .cart-panel :is(input,select,textarea) { font-size: 16px; }
.store-body .cart-panel :is(input,select,textarea):not([type="checkbox"],[type="radio"]) { color: var(--store-ink); background: var(--store-surface); border-color: var(--store-line); }
@media (max-width: 50rem) {
  .sample-theme-bar { grid-template-columns: max-content minmax(0, 1fr); }
  .sample-theme-bar form { grid-column: auto; }
}
@media (max-width: 767px) {
  .store-body .cart-panel {
    inset: auto 0 0;
    width: 100%;
    height: min(84dvh, 760px);
    max-height: 100dvh;
    border: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 44px #131d1740;
    padding-inline: clamp(12px, 4vw, 20px);
    transform: translateY(105%);
    transition: transform .25s cubic-bezier(.24,.65,.32,1);
  }
  .store-body .cart-panel.open { transform: translateY(0); }
  .store-body .cart-panel .cart-header { padding-block-start: 19px; }
  .store-body .cart-panel .cart-header::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 32px; height: 4px; border-radius: 4px; background: var(--store-line); }
  .store-body .floating-cart-mobile { inset-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); inset-block-end: max(12px, env(safe-area-inset-bottom)); padding: 13px; }
  .store-enquiry-dialog { margin: auto 0 0; inset-block: auto 0; max-height: 90dvh; max-width: none; width: 100%; border-radius: 22px 22px 0 0; padding-block-end: max(16px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .store-body .cart-panel, .store-body .cart-overlay { transition: none; }
}
.store-hero figure:has(.store-hero-video) { position: relative; }
.store-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--store-wash); border-radius: inherit; }
.store-hero-play {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-end: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-block-size: 44px;
  padding: 8px 15px;
  border: 1px solid #ffffff80;
  border-radius: 999px;
  background: #231922ee;
  color: #fff;
  font: 750 .85rem/1.35 var(--store-copy);
}
.store-hero-play .icon { inline-size: 17px; block-size: 17px; }
.store-hero-play:hover { background: #40303c; }
.store-hero-play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
[data-hero-position="top"] .store-hero-video { object-position: center top; }
[data-hero-position="bottom"] .store-hero-video { object-position: center bottom; }

.store-body .store-contact {
  padding: clamp(16px, 2.7vw, 31px);
  background: var(--store-surface);
  border: 1px solid var(--store-line);
  border-radius: 14px;
}
.store-body.store-corners-square .store-contact { border-radius: 0; }
.store-body.store-corners-soft .store-contact { border-radius: 24px; }
.store-body .store-product:focus-within {
  outline: 1px solid var(--store-accent);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  .store-body .store-hero > .store-container {
    animation: storefront-arrive .4s cubic-bezier(.22,.61,.36,1) both;
  }
  .store-body .store-product-image img { transition: transform .32s cubic-bezier(.22,.61,.36,1); }
  .store-body .store-products [data-product-stepper]:not([hidden]) {
    animation: storefront-quantity .2s ease-out both;
  }
  @keyframes storefront-arrive { from { transform: translateY(8px); } }
  @keyframes storefront-quantity { from { opacity: .6; transform: scale(.97); } }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .store-body .store-product:hover .store-product-image img { transform: scale(1.035); }
}

.store-body[data-palette-mode="dark"] { color-scheme: dark; }
.store-body[data-palette-mode="light"] { color-scheme: light; }
.store-body .checkout-submit {
  padding: 14px;
  margin-block: 14px;
  background: var(--store-surface);
  border: 1px solid var(--store-line);
  border-radius: 14px;
}
.store-body .checkout-submit .checkbox-row { margin-block-end: 12px; color: var(--store-ink); }
.store-body .checkout-submit .checkbox-row input { accent-color: var(--store-accent); }
.checkout-channels { display: grid; gap: 10px; }
.checkout-channels .store-button { min-block-size: 46px; text-align: center; }
.checkout-channels .icon { inline-size: 18px; block-size: 18px; flex: none; }
.checkout-note[data-demo-channel-result]:empty { display: none; }
.store-body .store-receipt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: clamp(14px, 3vw, 28px);
  margin-block: 20px 4px;
  border: 1px solid var(--store-line);
  border-radius: 14px;
  background: var(--store-wash);
}
.store-receipt-copy { flex: 1 1 17rem; }
.store-body .store-receipt h2 { color: var(--store-ink); font: 800 clamp(1.1rem, 2vw, 1.6rem)/1.3 var(--store-copy); margin: 0 0 5px; }
.store-body .store-receipt p { color: var(--store-muted); margin: 0; }
.store-receipt-icon { display: grid; place-items: center; inline-size: 42px; block-size: 42px; border-radius: 50%; background: var(--store-accent); color: var(--store-accent-text); }
@media (max-width: 50rem) {
  .sample-theme-bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "back apply" "title title" "palette palette"; gap: 3px 10px; padding: 6px 14px; }
  .sample-theme-bar > a:first-child { grid-area: back; }
  .sample-theme-bar .sample-apply { grid-area: apply; }
  .sample-theme-bar > p { grid-area: title; }
  .sample-theme-bar > p span { display: inline; margin-inline-start: 3px; }
  .sample-theme-bar form { grid-area: palette; }
}
.store-body.basket-open .toast { visibility: hidden; }
.store-body .floating-cart-mobile { z-index: 15; }
