/* Biolojee storefront core
 * Shared structure and components. Theme files may define --sf-* tokens only.
 */

/* === base.css === */
:root {
  --sf-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --sf-font-heading: var(--sf-font-family);
  --sf-color-background: #f6f7f9;
  --sf-color-page-background: var(--sf-color-background);
  --sf-color-surface-muted: #f9fafb;
  --sf-color-surface: #ffffff;
  --sf-color-border: #dfe4ea;
  --sf-color-text: #17202a;
  --sf-color-text-muted: #667085;
  --sf-color-accent: #0e8067;
  --sf-color-accent-hover: #0b684a;
  --sf-color-accent-soft: #eefbf6;
  --sf-color-on-accent: #ffffff;
  --sf-color-input: #ffffff;
  --sf-color-input-focus: #ffffff;
  --sf-color-input-disabled: #f3f4f6;
  --sf-color-success-border: #bdebd8;
  --sf-color-success-surface: #eafaf3;
  --sf-color-success-text: #0b684a;
  --sf-color-danger-border: #ffc7c7;
  --sf-color-danger-surface: #fff1f1;
  --sf-color-danger-text: #9f2d2b;
  --sf-color-pending-surface: #fef3c7;
  --sf-color-pending-text: #92400e;
  --sf-space-xs: 4px;
  --sf-space-sm: 8px;
  --sf-space-md: 16px;
  --sf-space-lg: 24px;
  --sf-space-xl: 32px;
  --sf-radius-sm: 10px;
  --sf-radius-md: 16px;
  --sf-radius-lg: 24px;
  --sf-radius-card: 18px;
  --sf-shadow-card: 0 14px 34px rgba(15, 23, 42, 0.08);
  --sf-shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.08);
  --sf-shadow-md: 0 24px 80px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--sf-font-family);
  font-size: 15px;
  line-height: 1.55;
  color: var(--sf-color-text);
  background: var(--sf-color-page-background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--sf-font-heading);
  color: var(--sf-color-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  color: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--sf-color-accent);
  color: var(--sf-color-on-accent);
}

/* === utilities.css === */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sf-space-md); }
.grid { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sf-space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sf-space-md); }
.mt-sm { margin-top: var(--sf-space-sm); }
.mt-md { margin-top: var(--sf-space-md); }
.mt-lg { margin-top: var(--sf-space-lg); }
.p-sm { padding: var(--sf-space-sm); }
.p-md { padding: var(--sf-space-md); }
.p-lg { padding: var(--sf-space-lg); }
.text-center { text-align: center; }
.text-muted { color: var(--sf-color-text-muted); }
.text-bold { font-weight: 800; }
.w-full { width: 100%; }
.max-container { max-width: 1180px; }
.stack { display: grid; gap: var(--sf-space-md); }
.stack-lg { display: grid; gap: var(--sf-space-lg); }
.cluster { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sf-space-sm); }
.span-2 { grid-column: 1 / -1; }

@media (max-width: 768px) {
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}

/* === layout.css === */
.container,
.page-shell,
.detail-shell,
.checkout-shell,
.single-checkout-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.page-shell,
.detail-shell,
.checkout-shell,
.single-checkout-shell {
  padding-block: var(--sf-space-xl);
}

.section {
  margin-top: var(--sf-space-lg);
  padding: var(--sf-space-lg);
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-md);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(13, 19, 34, 0.94));
  box-shadow: var(--sf-shadow-sm);
}

.page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sf-space-md);
  margin-bottom: var(--sf-space-lg);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.65fr);
  gap: var(--sf-space-lg);
  align-items: start;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: var(--sf-space-lg);
  align-items: start;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sf-space-md);
}

.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sf-space-md);
}

.col { grid-column: span 12; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }

@media (max-width: 1024px) {
  .detail-layout,
  .checkout-layout { grid-template-columns: 1fr; }
  .col-4,
  .col-6,
  .col-8 { grid-column: span 12; }
}

@media (max-width: 768px) {
  .container,
  .page-shell,
  .detail-shell,
  .checkout-shell,
  .single-checkout-shell { width: min(100% - 20px, 1180px); }
  .page-shell,
  .detail-shell,
  .checkout-shell,
  .single-checkout-shell { padding-block: var(--sf-space-md); }
  .page-topbar { display: grid; align-items: start; }
  .section { padding: var(--sf-space-md); }
  .card-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* === components.css === */
.card {
  min-width: 0;
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-md);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(13, 19, 34, 0.96));
  box-shadow: var(--sf-shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: var(--sf-space-lg) var(--sf-space-lg) 0;
}

.card-body {
  display: grid;
  gap: var(--sf-space-sm);
  padding: var(--sf-space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sf-space-sm);
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--sf-color-text);
  font-weight: 900;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.btn-primary,
.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--sf-color-accent), var(--sf-color-accent-hover));
  color: #fff;
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.24);
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.1);
}

.btn.disabled,
.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: var(--sf-space-xs);
  min-height: 26px;
  border: 1px solid var(--sf-color-border);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(124, 58, 237, 0.14);
  color: #d8b4fe;
  font-size: 12px;
  font-weight: 900;
}

.badge.ok { background: rgba(34, 197, 94, 0.12); color: #08b145; }
.badge.warn { background: rgba(245, 158, 11, 0.12); color: #fcd34d; }
.badge.danger { background: rgba(239, 68, 68, 0.12); color: #fca5a5; }

.label,
.field label,
.form-group label {
  color: var(--sf-color-text);
  font-size: 13px;
  font-weight: 900;
}

.field,
.form-group {
  display: grid;
  gap: var(--sf-space-sm);
}

.input,
input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-sm);
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.42);
  color: var(--sf-color-text);
  outline: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.uppercase-input {
  text-transform: uppercase;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(2, 6, 23, 0.62);
}

.gallery {
  display: grid;
  gap: var(--sf-space-sm);
}

.thumbnail,
.gallery-thumb {
  width: 76px;
  height: 76px;
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-sm);
  padding: 0;
  overflow: hidden;
  background: var(--sf-color-surface);
}

.thumbnail img,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.active,
.thumbnail.active {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.toast {
  margin-bottom: var(--sf-space-md);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: var(--sf-radius-sm);
  padding: var(--sf-space-sm) var(--sf-space-md);
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
  font-weight: 900;
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
}

/* === pages.css === */
.product-page,
.service-page,
.checkout-page,
.profile-page,
.storefront-page {
  font-size: 13px;
  font-weight: 400;
  color: var(--sf-color-text);
}

body.storefront-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.storefront-page .container {
  width: min(860px, calc(100% - 24px));
  flex: 1 0 auto;
  padding-block: var(--sf-space-md);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--sf-color-border);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--sf-color-accent-soft);
  color: var(--sf-color-text);
  font-weight: 900;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.back-link:hover {
  border-color: var(--sf-color-accent);
  background: var(--sf-color-accent-soft);
  color: var(--sf-color-text);
}

.muted {
  color: var(--sf-color-text-muted);
}

.storefront-page .detail-shell {
  width: min(1000px, calc(100% - 32px));
}

@media (min-width: 900px) {
  .storefront-page .detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 18px 20px;
    align-items: start;
  }

  .storefront-page .profile,
  .storefront-page .smart-offers,
  .storefront-page .storefront-social-proof,
  .storefront-page .contact-lead {
    grid-column: 1 / -1;
  }

  .storefront-page .storefront-about-business,
  .storefront-page .reviews-section {
    margin-block: 0;
  }

  .storefront-page .detail-shell:not(:has(.storefront-about-business)) .reviews-section {
    grid-column: 1 / -1;
  }
}

.profile {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  justify-items: center;
  align-items: center;
  margin-block-end: var(--sf-space-xl);
  padding: 44px 0 22px;
  color: var(--sf-color-text);
  text-align: center;
}

.storefront-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  justify-items: center;
  align-items: start;
  width: 100%;
  margin-bottom: var(--sf-space-md);
  padding: 18px;
  color: var(--sf-color-text);
  text-align: center;
}

.profile-img {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid var(--sf-color-surface);
}

.profile-initial {
  display: grid;
  place-items: center;
  background: var(--sf-color-accent-soft);
  color: var(--sf-color-accent);
  font-size: 34px;
  font-weight: 900;
}

.profile-identity {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-avatar-wrap {
  position: relative;
  display: grid;
  width: 172px;
  height: 172px;
  padding: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sf-color-accent), var(--sf-color-accent-hover));
  box-shadow: var(--sf-shadow-card);
}

.profile-full-name {
  max-width: 100%;
  color: var(--sf-color-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.profile-content {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding-right: 0;
}

.profile-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.profile-name {
  margin: 0;
  color: var(--sf-color-text);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.profile-handle,
.detail-eyebrow {
  color: var(--sf-color-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.detail-title {
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.detail-title {
  font-size: 56px;
  line-height: 0.98;
  letter-spacing: 0;
}

.profile-bio {
  display: -webkit-box;
  max-width: 54ch;
  overflow: hidden;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-bio,
.detail-copy,
.rich-text,
.storefront-footer {
  color: var(--sf-color-text-muted);
}

.cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: var(--sf-space-sm);
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: var(--sf-space-sm);
}

.profile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.social-links a,
.section-count,
.card-type,
.profile-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border: 1px solid var(--sf-color-border);
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--sf-color-accent-soft);
  color: var(--sf-color-accent);
  font-size: 10px;
  font-weight: 600;
}

.social-links a {
  min-height: 30px;
  padding-inline: 11px;
}

.social-link__icon {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  font-weight: 700;
  line-height: 1;
}

.social-link__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-actions .btn.active,
.profile-actions .btn[aria-pressed="true"] {
  border-color: transparent;
  background: var(--sf-color-accent);
  color: #fff;
}

.smart-offers .profile-actions[role="tablist"] {
  display: grid;
  grid-template-columns: repeat(var(--offer-tab-count, 1), minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
  gap: var(--sf-space-sm);
  width: min(100%, 520px);
  margin-inline: auto;
}

.smart-offers .profile-actions[role="tablist"] .btn {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-verified-dot {
  position: absolute;
  right: 6%;
  bottom: 9%;
  display: inline-grid;
  place-items: center;
  width: clamp(28px, 17%, 34px);
  height: clamp(28px, 17%, 34px);
  background: var(--sf-color-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  border-radius: 30% 38% 32% 42% / 36% 28% 42% 34%;
  clip-path: polygon(50% 2%, 61% 12%, 74% 8%, 80% 20%, 93% 27%, 89% 41%, 98% 50%, 89% 59%, 93% 73%, 80% 80%, 74% 92%, 61% 88%, 50% 98%, 39% 88%, 26% 92%, 20% 80%, 7% 73%, 11% 59%, 2% 50%, 11% 41%, 7% 27%, 20% 20%, 26% 8%, 39% 12%);
  filter: drop-shadow(0 3px 8px rgba(15, 23, 42, 0.22));
}

.profile-review-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  max-width: 100%;
  color: var(--sf-color-text);
}

.profile-proof-avatars {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding-left: 0;
}

.profile-proof-avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: -16px;
  border: 2px solid var(--sf-color-background);
  border-radius: 999px;
  background: var(--sf-color-accent-soft);
  color: var(--sf-color-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--sf-shadow-card);
}

.profile-proof-avatar:first-child {
  margin-left: 0;
}

.profile-proof-avatar:nth-child(2) {
  background: rgba(14, 165, 233, 0.14);
}

.profile-proof-avatar:nth-child(3) {
  background: rgba(245, 158, 11, 0.14);
}

.profile-proof-text {
  max-width: 25ch;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.profile-proof-divider {
  width: 1px;
  height: 30px;
  background: var(--sf-color-border);
}

.profile-proof-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sf-color-text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.profile-proof-rating strong {
  font-size: 18px;
  font-weight: 700;
}

.profile-proof-rating span:last-child {
  color: var(--sf-color-text-muted);
  font-size: 13px;
  font-weight: 600;
}

.profile-proof-star {
  color: #fbbf24;
  font-size: 22px;
  line-height: 1;
}

.profile-share-btn {
  position: absolute;
  top: 44px;
  right: 0;
  min-width: 0;
  min-height: 36px;
  border-radius: var(--sf-radius-card);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

.storefront-social-proof {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-block: var(--sf-space-md) var(--sf-space-xl);
  color: var(--sf-color-text);
}

.storefront-social-proof__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 260px));
  justify-content: center;
  gap: 8px;
}

.storefront-social-proof__item {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--sf-color-accent) 18%, var(--sf-color-border));
  border-radius: var(--sf-radius-card);
  padding: 14px;
  background: color-mix(in srgb, var(--sf-color-accent) 5%, var(--sf-color-surface-muted));
  text-align: center;
}

.storefront-social-proof__item strong {
  min-width: 0;
  color: var(--sf-color-accent);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  overflow-wrap: anywhere;
}

.storefront-social-proof__item span {
  min-width: 0;
  color: var(--sf-color-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.storefront-social-proof__item p {
  color: var(--sf-color-text-muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.storefront-about-business {
  display: grid;
  justify-items: start;
  gap: 12px;
  width: 100%;
  margin-block: var(--sf-space-xl);
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-card);
  padding: 18px;
  background: var(--sf-color-surface);
  color: var(--sf-color-text);
  text-align: left;
}

.storefront-about-business h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.storefront-about-business p {
  max-width: 68ch;
  color: var(--sf-color-text-muted);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.storefront-about-business .social-links,
.storefront-about-business .profile-actions {
  justify-content: flex-start;
}

.storefront-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  z-index: 50;
}

.storefront-modal.open {
  display: grid;
}

.storefront-modal:target {
  display: grid;
}

.storefront-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .52);
}

.storefront-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-card);
  background: var(--sf-color-surface);
  color: var(--sf-color-text);
  padding: 18px;
  box-shadow: var(--sf-shadow-card);
}

.storefront-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.storefront-modal__head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.storefront-modal__close {
  flex: 0 0 auto;
}

.contact-form {
  display: grid;
  gap: 12px;
  text-align: left;
}

.contact-form .field {
  display: grid;
  gap: 6px;
}

.contact-form label {
  font-size: 12px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-card);
  background: var(--sf-color-input);
  color: var(--sf-color-text);
  padding: 11px 12px;
  font: inherit;
  caret-color: var(--sf-color-accent);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--sf-color-accent);
  background: var(--sf-color-input-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sf-color-accent) 18%, transparent);
  outline: 0;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

body.modal-open {
  overflow: hidden;
}

.reviews-section {
  display: grid;
  gap: 14px;
  margin-block: var(--sf-space-xl);
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-card);
  padding: 18px;
  background: var(--sf-color-surface);
  scroll-margin-top: 18px;
}

.reviews-head {
  align-items: center;
  margin-bottom: 0;
}

.reviews-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.reviews-summary {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 116px;
  color: var(--sf-color-text-muted);
  font-size: 11px;
  line-height: 1.2;
  text-align: right;
}

.reviews-summary strong {
  color: var(--sf-color-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--sf-color-accent);
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1;
}

.review-form {
  display: grid;
  gap: 14px;
}

.review-form--modal {
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-card);
  padding: 16px;
  background: var(--sf-color-surface);
}

.review-modal__panel {
  width: min(100% - 24px, 520px);
}

.review-modal__head {
  align-items: start;
}

.review-modal__head p {
  margin-top: 4px;
  color: var(--sf-color-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.review-rating-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.review-rating-field legend {
  color: var(--sf-color-text);
  font-size: 12px;
  font-weight: 700;
}

.review-rating-options {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
}

.review-rating-option {
  display: inline-grid;
  cursor: pointer;
}

.review-rating-option input {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.review-rating-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sf-color-border);
  border-radius: 999px;
  background: var(--sf-color-surface);
  color: color-mix(in srgb, var(--sf-color-text-muted) 58%, #fff);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.review-rating-option input:checked + span,
.review-rating-option:has(input:checked) ~ .review-rating-option span,
.review-rating-option:hover span,
.review-rating-option:hover ~ .review-rating-option span {
  border-color: var(--sf-color-accent);
  background: var(--sf-color-accent-soft);
  color: var(--sf-color-accent);
  box-shadow: var(--sf-shadow-card);
}

.review-rating-option input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--sf-color-accent) 26%, transparent);
  outline-offset: 2px;
}

.review-rating-option:hover span {
  transform: translateY(-1px) scale(1.03);
}

.review-list {
  display: grid;
  gap: 8px;
}

.review-list-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.review-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 12px 0 0;
  background: transparent;
  color: var(--sf-color-text);
}

.review-card + .review-card {
  border-top: 1px solid var(--sf-color-border);
}

.review-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.review-card__head strong {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.review-card__date {
  flex: 0 0 auto;
  color: var(--sf-color-text-muted);
  font-size: 11px;
}

.review-card p,
.review-empty p {
  color: var(--sf-color-text-muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.review-empty {
  display: grid;
  min-height: 92px;
  place-items: center;
  border: 1px dashed var(--sf-color-border);
  border-radius: var(--sf-radius-card);
  padding: 16px;
  text-align: center;
}

.section {
  margin-top: 12px;
  padding: var(--sf-space-md);
  background: var(--sf-color-surface);
}

.section-head h2 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.service-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sf-space-sm);
}

.product-card,
.service-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  min-width: 0;
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-card);
  background: var(--sf-color-surface);
  color: var(--sf-color-text);
  box-shadow: var(--sf-shadow-card);
  padding: 10px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.offer-featured-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  font-size: 13px;
  line-height: 1;
}

.product-card--featured.product-card--text .card-body {
  padding-right: 40px;
}

.product-card:hover,
.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--sf-color-accent);
  box-shadow: var(--sf-shadow-card);
}

.card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--sf-color-surface-muted);
}

.product-card--text {
  grid-template-columns: minmax(0, 1fr) auto;
}

.product-card--text .card-img {
  display: none;
}

.card-price {
  color: var(--sf-color-accent);
  font-size: 15px;
  font-weight: 800;
}

.product-card > .btn,
.service-card > .btn {
  margin: 0;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: var(--sf-space-lg);
  color: var(--sf-color-text-muted);
  font-weight: 900;
  text-align: center;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sf-space-md);
  margin-bottom: 12px;
}

.section-head h2 {
  margin-top: var(--sf-space-xs);
}

.smart-offers {
  display: grid;
  gap: 12px;
  margin-block: var(--sf-space-xl);
  scroll-margin-top: 12px;
}

.smart-offers__head {
  align-items: center;
}

.smart-panel {
  display: none;
}

.smart-panel.active {
  display: block;
}

.offer-list {
  display: grid;
  gap: 10px;
}

.offer-card.product-card,
.offer-card.service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  align-items: center;
  min-height: 86px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.offer-card.offer-card--with-image {
  grid-template-columns: 86px minmax(0, 1fr) auto;
  padding: 5px;
}

.offer-card .offer-card__thumb {
  width: 86px;
  height: 86px;
  min-height: 86px;
  aspect-ratio: 1;
  object-fit: cover;
}

.offer-card .offer-card__body {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 12px;
  text-align: center;
}

.offer-card .offer-card__body h3 {
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.offer-card .card-price {
  font-size: 11px;
  font-weight: 500;
}

.offer-card .offer-card__cta {
  align-self: center;
  min-width: 88px;
  min-height: 36px;
  margin: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.contact-lead {
  scroll-margin-top: 18px;
}

.products .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.product-card .card-body {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 6px 0;
}

.product-card .card-body p,
.service-card .card-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card .detail-key-points,
.service-card .detail-key-points {
  gap: 5px;
}

.product-card .detail-key-points li,
.service-card .detail-key-points li {
  padding: 4px 7px;
  font-size: 11px;
}

.service-list {
  display: grid;
  gap: var(--sf-space-sm);
}

.service-card {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  align-items: center;
  min-height: 0;
}

.service-card--with-image {
  grid-template-columns: 86px minmax(0, 1fr) auto;
}

.service-card .card-img {
  width: 86px;
  height: 86px;
  min-height: 86px;
  aspect-ratio: 1;
  object-fit: cover;
}

.service-card .card-body {
  padding: var(--sf-space-sm) 0;
}

.service-card > .btn {
  align-self: center;
  min-height: 36px;
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.service-meta-line {
  justify-content: space-between;
}

.offer-card.product-card .offer-card__thumb,
.offer-card.service-card .offer-card__thumb {
  width: 86px;
  height: 86px;
  min-height: 86px;
  aspect-ratio: 1;
}

.offer-card.product-card > .offer-card__cta,
.offer-card.service-card > .offer-card__cta {
  align-self: center;
  min-width: 88px;
  min-height: 36px;
  margin: 12px;
  padding: 8px 12px;
}

.detail-hero {
  min-width: 0;
}

.detail-panel,
.purchase-card {
  min-width: 0;
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-card);
  padding: var(--sf-space-lg);
  background: var(--sf-color-surface);
  color: var(--sf-color-text);
  box-shadow: var(--sf-shadow-card);
}

.media-gallery {
  display: grid;
  gap: var(--sf-space-sm);
}

.media-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-card);
  background: var(--sf-color-surface-muted);
  box-shadow: var(--sf-shadow-card);
}

.media-main {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.media-placeholder {
  display: grid;
  place-items: center;
  color: var(--sf-color-text);
  font-size: 72px;
  font-weight: 900;
}

.purchase-card,
.checkout-summary {
  display: grid;
  gap: var(--sf-space-md);
}

.product-page .purchase-card,
.service-page .purchase-card {
  align-content: start;
  gap: 16px;
  box-sizing: border-box;
}

.product-page .purchase-card .cluster,
.service-page .purchase-card .cluster {
  justify-content: flex-end;
}

.product-page .purchase-card .cluster {
  justify-content: center;
}

.service-page .purchase-card .cluster {
  gap: 8px;
}

.service-page .purchase-card .cluster .badge {
  min-height: 28px;
  padding-inline: 12px;
}

@media (min-width: 1025px) {
  .purchase-card,
  .checkout-summary {
    position: sticky;
    top: var(--sf-space-lg);
  }
}

.checkout-panel {
  align-self: start;
}

.detail-key-points {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.detail-key-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--sf-color-accent) 24%, var(--sf-color-border));
  border-radius: 999px;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--sf-color-accent) 7%, var(--sf-color-surface));
  color: var(--sf-color-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.detail-key-points li::before {
  content: "\2713";
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--sf-color-accent);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.detail-info-grid,
.info-grid {
  display: grid;
  gap: var(--sf-space-sm);
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: var(--sf-space-md);
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-card);
  padding: var(--sf-space-sm);
  background: var(--sf-color-accent-soft);
}

.info-row span {
  color: var(--sf-color-text-muted);
  text-align: right;
}

.seat-callout {
  display: grid;
  gap: var(--sf-space-sm);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: var(--sf-radius-card);
  padding: var(--sf-space-md);
  background: rgba(34, 197, 94, 0.08);
}

.service-page .purchase-card .seat-callout {
  order: 0;
  width: 100%;
}

.seat-callout.urgent {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.08);
}

.price-display {
  font-size: 30px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0;
}

.old-price {
  color: var(--sf-color-text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  white-space: nowrap;
}

.price-box,
.pricing-box {
  display: grid;
  gap: 10px;
}

.price-row,
.pricing-box > div {
  display: flex;
  justify-content: space-between;
  gap: var(--sf-space-md);
  color: var(--sf-color-text-muted);
}

.product-page .purchase-card .price-row,
.service-page .purchase-card .price-row,
.product-page .purchase-card .pricing-box > div,
.service-page .purchase-card .pricing-box > div {
  align-items: baseline;
}

.product-page .purchase-card .price-row--pricing,
.service-page .purchase-card .price-row--pricing {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  padding-bottom: 6px;
}

.product-page .purchase-card .price-row span,
.service-page .purchase-card .price-row span,
.product-page .purchase-card .pricing-box > div span,
.service-page .purchase-card .pricing-box > div span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-page .purchase-card .price-values,
.service-page .purchase-card .price-values {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px 10px;
  min-width: 0;
  text-align: right;
}

.product-page .purchase-card .pricing-box,
.service-page .purchase-card .pricing-box {
  gap: 12px;
}

.product-page .purchase-card .pricing-box .price-row:not(.price-row--pricing),
.service-page .purchase-card .pricing-box .price-row:not(.price-row--pricing) {
  min-height: 28px;
}

.price-row strong,
.pricing-box strong {
  color: var(--sf-color-text);
}

.total-row {
  margin-top: var(--sf-space-sm);
  padding-top: var(--sf-space-sm);
  border-top: 1px solid var(--sf-color-border);
}

.quantity-control {
  display: grid;
  grid-template-columns: 44px minmax(72px, 1fr) 44px;
  gap: var(--sf-space-sm);
}

.quantity-control input {
  text-align: center;
}

.service-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sf-space-sm);
}

.meta-card {
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-card);
  padding: var(--sf-space-sm);
  background: var(--sf-color-accent-soft);
}

.meta-card span {
  display: block;
  color: var(--sf-color-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.meta-card strong {
  display: block;
  margin-top: var(--sf-space-xs);
}

.seat-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.seat-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sf-color-accent), var(--sf-color-accent-hover));
}

.checkout-main-form {
  display: grid;
  gap: var(--sf-space-lg);
  padding: var(--sf-space-lg);
}

.checkout-main-form section {
  display: grid;
  gap: var(--sf-space-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sf-space-md);
}

.checkout-summary {
  padding: var(--sf-space-lg);
}

.checkout-summary img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-card);
}

.payment-options {
  display: grid;
  gap: var(--sf-space-sm);
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: var(--sf-space-sm);
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-card);
  padding: var(--sf-space-sm);
  color: var(--sf-color-text-muted);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: var(--sf-space-sm);
  color: var(--sf-color-text-muted);
}

.checkout-cta {
  width: 100%;
}

.product-page,
.service-page,
.checkout-page {
  font-size: 13px;
  font-weight: 400;
}

.product-page .detail-shell,
.service-page .detail-shell,
.checkout-page .checkout-shell {
  width: min(760px, calc(100% - 24px));
  padding-block: var(--sf-space-md);
}

.product-page .page-topbar,
.service-page .page-topbar,
.checkout-page .page-topbar {
  margin-bottom: 12px;
}

.product-page .back-link,
.service-page .back-link,
.checkout-page .back-link {
  min-height: 34px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

.product-page .detail-layout,
.service-page .detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  gap: 12px;
}

.checkout-page .checkout-layout {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 12px;
}

.product-page .detail-hero,
.service-page .detail-hero,
.product-page .media-gallery,
.service-page .media-gallery,
.checkout-page .checkout-main-form,
.checkout-page .checkout-summary {
  gap: 10px;
}

.product-page .detail-eyebrow,
.service-page .detail-eyebrow {
  font-size: 10px;
  font-weight: 600;
}

.product-page .detail-title,
.service-page .detail-title {
  margin-top: 2px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.product-page .detail-copy,
.service-page .detail-copy,
.product-page .rich-text,
.service-page .rich-text,
.checkout-page .muted,
.checkout-page .payment-options label {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.product-page .rich-text,
.service-page .rich-text {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-page .rich-text img,
.service-page .rich-text img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: var(--sf-radius-card);
  object-fit: contain;
}

.product-page .rich-text ul,
.product-page .rich-text ol,
.service-page .rich-text ul,
.service-page .rich-text ol {
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding-left: 1.25rem;
  overflow-wrap: anywhere;
}

.product-page .rich-text li,
.service-page .rich-text li {
  max-width: 100%;
  margin-bottom: 6px;
  padding-left: 0.1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-page .rich-text a,
.service-page .rich-text a {
  color: var(--sf-color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-page .rich-text blockquote,
.service-page .rich-text blockquote {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--sf-color-primary);
  border-radius: 0 var(--sf-radius-control) var(--sf-radius-control) 0;
  background: var(--sf-color-surface-muted);
}

.product-page .media-main,
.service-page .media-main,
.product-page .media-placeholder,
.service-page .media-placeholder {
  border-radius: var(--sf-radius-card);
}

.product-page .media-main,
.service-page .media-main {
  aspect-ratio: auto;
  object-fit: contain;
}

.product-page .media-video,
.service-page .media-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--sf-radius-card);
  background: var(--sf-color-surface-muted);
}

.product-page .media-embed,
.service-page .media-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.media-stage {
  width: 100%;
}

.media-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-card);
  background: var(--sf-color-surface-muted);
  box-shadow: var(--sf-shadow-card);
}

.media-slider-track {
  display: flex;
  align-items: center;
  transition: transform 0.36s ease;
  will-change: transform;
}

.media-slide {
  display: grid;
  flex: 0 0 100%;
  place-items: center;
  min-width: 0;
  margin: 0;
}

.media-slide .media-main {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.media-slider-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 4px 0;
}

.media-slider-dot {
  width: 28px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: color-mix(in srgb, var(--sf-color-text) 22%, transparent);
  cursor: pointer;
  transition: width 0.22s ease, background-color 0.22s ease;
}

.media-slider-dot.active {
  width: 46px;
  background: var(--sf-color-accent);
}

.product-page .media-stage .media-video,
.service-page .media-stage .media-video {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--sf-color-border);
  box-shadow: var(--sf-shadow-card);
}

.video-thumb {
  display: grid;
  place-items: center;
  color: var(--sf-color-text);
  font-size: 11px;
  font-weight: 800;
}

.video-thumb span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--sf-color-accent-soft);
}

.product-page .media-placeholder,
.service-page .media-placeholder {
  font-size: 42px;
  font-weight: 600;
}

.product-page .detail-panel,
.service-page .detail-panel,
.product-page .purchase-card,
.service-page .purchase-card,
.checkout-page .checkout-main-form,
.checkout-page .checkout-summary {
  border-radius: var(--sf-radius-card);
  padding: 16px;
}

.product-page .detail-panel h2,
.service-page .detail-panel h2,
.checkout-page .checkout-main-form h1,
.checkout-page .checkout-main-form h2,
.checkout-page .checkout-summary h2 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.product-page .badge,
.service-page .badge,
.checkout-page .badge {
  min-height: 24px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
}

.product-page .pricing-box,
.service-page .pricing-box,
.checkout-page .pricing-box {
  gap: 8px;
  font-size: 12px;
}

.product-page .price-display,
.service-page .price-display,
.checkout-page .total-row strong {
  font-size: 24px;
  font-weight: 600;
}

.product-page .purchase-card,
.service-page .purchase-card {
  padding: 20px;
}

.product-page .purchase-card .quantity-control {
  width: 100%;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
}

.product-page .quantity-control {
  grid-template-columns: 38px minmax(56px, 1fr) 38px;
  gap: 8px;
}

.product-page .quantity-control .btn {
  min-height: 38px;
  padding: 8px;
}

.service-page .service-meta {
  gap: 8px;
}

.service-page .meta-card {
  border-radius: var(--sf-radius-card);
  padding: 9px 10px;
}

.service-page .meta-card span {
  font-size: 10px;
  font-weight: 600;
}

.product-page .checkout-cta,
.service-page .checkout-cta,
.checkout-page .checkout-cta {
  width: 100%;
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

.checkout-page .checkout-main-form {
  gap: 14px;
}

.checkout-page .checkout-main-form section {
  gap: 10px;
}

.checkout-page .form-grid {
  gap: 10px;
}

.checkout-page input,
.checkout-page textarea,
.checkout-page select,
.checkout-page .input {
  min-height: 40px;
  border-radius: var(--sf-radius-card);
  padding: 9px 11px;
  font-size: 12px;
}

.checkout-page textarea.input {
  min-height: 92px;
}

.checkout-page .field label,
.checkout-page .form-group label {
  font-size: 12px;
  font-weight: 600;
}

.checkout-page .payment-options {
  gap: 8px;
}

.checkout-page .payment-options label,
.checkout-page .toggle-row {
  border-radius: var(--sf-radius-card);
  padding: 9px 10px;
}

.checkout-page .checkout-summary img {
  border-radius: var(--sf-radius-card);
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.storefront-footer {
  width: min(1180px, calc(100% - 32px));
  flex-shrink: 0;
  margin: auto auto var(--sf-space-xl);
  font-size: 12px;
  font-weight: 400;
  text-align: center;
}

.rich-text,
.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text p,
.rich-text li {
  line-height: 2;
}

.product-page .full-description .rich-text,
.service-page .full-description .rich-text,
.product-page .full-description .rich-text h1,
.product-page .full-description .rich-text h2,
.product-page .full-description .rich-text h3,
.product-page .full-description .rich-text p,
.product-page .full-description .rich-text li,
.service-page .full-description .rich-text h1,
.service-page .full-description .rich-text h2,
.service-page .full-description .rich-text h3,
.service-page .full-description .rich-text p,
.service-page .full-description .rich-text li {
  line-height: 2;
}

@media (max-width: 1024px) {
  .purchase-card,
  .checkout-summary { position: static; }
}

@media (max-width: 768px) {
  :root {
    --mobile-purchase-card-height: 0px;
  }

  .storefront-page .container {
    width: min(100% - 20px, 860px);
    padding-block: var(--sf-space-md);
  }
  .profile {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
    padding: 32px 0 20px;
    text-align: center;
  }
  .profile-share-btn {
    position: static;
    justify-self: end;
    min-height: 34px;
    padding: 7px 10px;
  }
  .profile-share-btn span + span {
    display: none;
  }
  .profile-content {
    justify-items: center;
    padding-right: 0;
  }
  .profile-title-row,
  .profile-review-row {
    justify-content: center;
  }
  .profile-review-row {
    gap: 10px 12px;
  }
  .profile-proof-divider {
    display: none;
  }
  .profile-proof-text {
    max-width: min(100%, 24ch);
    font-size: 14px;
    text-align: left;
  }
  .profile-avatar-wrap {
    width: 152px;
    height: 152px;
  }
  .profile-initial {
    font-size: 34px;
  }
  .detail-title {
    font-size: 38px;
  }
  .service-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  .service-card--with-image {
    grid-template-columns: 74px minmax(0, 1fr);
  }
  .service-card .card-img {
    width: 74px;
    height: 74px;
    min-height: 74px;
    aspect-ratio: 1;
  }
  .service-card > .btn {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }
  .form-grid,
  .service-meta {
    grid-template-columns: 1fr;
  }
  .media-main,
  .media-placeholder {
    border-radius: var(--sf-radius-md);
  }
  .smart-offers__head {
    justify-items: stretch;
  }
  .offer-card.product-card,
  .offer-card.service-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .offer-card.offer-card--with-image {
    grid-template-columns: 74px minmax(0, 1fr) auto;
  }
  .offer-card.product-card .offer-card__thumb,
  .offer-card.service-card .offer-card__thumb {
    width: 74px;
    height: 74px;
    min-height: 74px;
  }
  .offer-card.product-card > .offer-card__cta,
  .offer-card.service-card > .offer-card__cta {
    grid-column: auto;
    width: auto;
    min-width: 76px;
    margin: 8px;
    padding: 7px 9px;
    font-size: 11px;
  }
  .info-row span {
    text-align: left;
  }
  .checkout-main-form,
  .detail-panel,
  .purchase-card,
  .checkout-summary {
    padding: var(--sf-space-md);
  }
  .storefront-footer {
    width: min(100% - 20px, 1180px);
  }
  .product-page .storefront-footer,
  .service-page .storefront-footer {
    margin-bottom: calc(var(--sf-space-xl) + var(--mobile-purchase-card-height) + env(safe-area-inset-bottom, 0px));
  }
  .product-page .detail-shell,
  .service-page .detail-shell,
  .checkout-page .checkout-shell {
    width: min(100% - 20px, 820px);
    padding-block: var(--sf-space-md);
  }
  .product-page .detail-shell,
  .service-page .detail-shell {
    padding-bottom: calc(var(--sf-space-md) + var(--mobile-purchase-card-height) + env(safe-area-inset-bottom, 0px));
  }
  .product-page .detail-layout,
  .service-page .detail-layout,
  .checkout-page .checkout-layout {
    grid-template-columns: 1fr;
  }
  .product-page .detail-title,
  .service-page .detail-title {
    max-width: none;
    font-size: 23px;
  }
  .product-page .detail-panel,
  .service-page .detail-panel,
  .product-page .purchase-card,
  .service-page .purchase-card,
  .checkout-page .checkout-main-form,
  .checkout-page .checkout-summary {
    padding: var(--sf-space-md);
  }
  .product-page .purchase-card,
  .service-page .purchase-card {
    position: fixed;
    right: auto;
    bottom: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    width: min(100% - 20px, 820px);
    max-height: calc(62vh - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    gap: 8px;
    border-radius: var(--sf-radius-card);
    padding: 10px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
    transform: translateX(-50%);
  }
  .product-page .purchase-card .toast,
  .service-page .purchase-card .toast {
    grid-column: 1 / -1;
    margin: 0;
    padding: 8px 10px;
  }
  .product-page .purchase-card .cluster,
  .service-page .purchase-card .cluster {
    order: 2;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 8px;
  }
  .product-page .purchase-card .cluster {
    justify-content: center;
  }
  .product-page .purchase-card .cluster:empty,
  .service-page .purchase-card .cluster:empty {
    display: none;
  }
  .product-page .purchase-card .badge,
  .service-page .purchase-card .badge {
    min-height: 24px;
    padding: 5px 9px;
    font-size: 10px;
  }
  .product-page .purchase-card > .badge,
  .service-page .purchase-card > .badge {
    order: 4;
    grid-column: 1 / -1;
    justify-self: start;
  }
  .product-page .purchase-card .pricing-box,
  .service-page .purchase-card .pricing-box {
    order: 3;
    grid-column: 1 / -1;
    gap: 8px;
    min-width: 0;
  }
  .service-page .purchase-card .seat-callout {
    order: 1;
    grid-column: 1 / -1;
    padding: 9px 10px;
  }
  .product-page .purchase-card .price-row,
  .service-page .purchase-card .price-row,
  .product-page .purchase-card .pricing-box > div,
  .service-page .purchase-card .pricing-box > div {
    gap: 8px;
  }
  .product-page .purchase-card .price-row--pricing,
  .service-page .purchase-card .price-row--pricing {
    grid-template-columns: minmax(58px, auto) minmax(0, 1fr);
    padding-bottom: 0;
  }
  .product-page .purchase-card .price-values,
  .service-page .purchase-card .price-values {
    gap: 4px 8px;
  }
  .service-page .purchase-card .price-values {
    justify-content: flex-start;
    text-align: left;
  }
  .product-page .purchase-card .price-row > *,
  .service-page .purchase-card .price-row > *,
  .product-page .purchase-card .pricing-box > div > *,
  .service-page .purchase-card .pricing-box > div > * {
    min-width: 0;
  }
  .product-page .purchase-card .price-display,
  .service-page .purchase-card .price-display {
    font-size: 21px;
    overflow-wrap: anywhere;
    text-align: right;
  }
  .product-page .purchase-card .checkout-cta,
  .service-page .purchase-card .checkout-cta {
    order: 7;
    grid-column: 1 / -1;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    min-width: 0;
    padding: 8px 12px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }
  .product-page .purchase-card > .muted,
  .service-page .purchase-card > .muted {
    order: 6;
    grid-column: 1 / -1;
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
  }
  .product-page .purchase-card .quantity-control {
    order: 5;
    grid-column: 1 / -1;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    justify-self: stretch;
    gap: 6px;
  }
  .product-page .purchase-card .quantity-control .btn,
  .product-page .purchase-card .quantity-control input {
    min-height: 34px;
    padding: 6px;
  }
  .service-page .purchase-card .service-meta {
    order: 4;
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 6px;
  }
  .service-page .purchase-card .meta-card {
    padding: 7px 8px;
  }
  .service-page .purchase-card .meta-card span {
    font-size: 9px;
  }
  .service-page .purchase-card .meta-card strong {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .service-page .purchase-card .service-meta + .cluster {
    order: 5;
  }
  .checkout-page .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .product-page .purchase-card,
  .service-page .purchase-card {
    width: calc(100% - 16px);
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 9px;
  }
  .product-page .purchase-card .price-row,
  .service-page .purchase-card .price-row,
  .product-page .purchase-card .pricing-box > div,
  .service-page .purchase-card .pricing-box > div {
    gap: 6px;
  }
  .product-page .purchase-card .price-display,
  .service-page .purchase-card .price-display {
    font-size: 19px;
  }
  .product-page .purchase-card .checkout-cta,
  .service-page .purchase-card .checkout-cta {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .profile-actions {
    display: flex;
  }
  .social-links {
    width: 100%;
    display: flex;
  }
  .social-links a {
    justify-content: center;
  }
  .service-card {
    grid-template-columns: 1fr;
  }
  .service-card .card-img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
  }
  .offer-card.product-card .offer-card__thumb,
  .offer-card.service-card .offer-card__thumb {
    width: 74px;
    height: 74px;
    min-height: 74px;
    aspect-ratio: 1;
  }
  .offer-card.product-card > .offer-card__cta,
  .offer-card.service-card > .offer-card__cta {
    grid-column: auto;
    width: auto;
    min-width: 76px;
    margin: 8px;
    padding: 7px 9px;
    font-size: 11px;
  }
}

/* === shared theme presentation (formerly default theme structure) === */
body, h1, h2, h3, h4, h5, h6, p, label, span, strong, small, li, td, th,
.profile-name, .detail-title, .section-head h2, .checkout-main-form h1, .checkout-main-form h2,
.price-row strong, .pricing-box strong, .meta-card strong, .card-body h3 {
  color: var(--sf-color-text);
}

.section, .product-card, .service-card, .empty-state, .detail-panel, .purchase-card, .checkout-panel, .checkout-summary, .checkout-main-form, .listing-detail, .listing-description, .booking-details, .form-section, .listing-summary, .card {
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-card);
  background: var(--sf-color-surface);
  color: var(--sf-color-text);
  box-shadow: var(--sf-shadow-card);
}

.profile-img, .media-main, .media-placeholder, .card-img, .main-image, .summary-image img, .checkout-summary img, .gallery-thumb, .gallery .gallery-thumb {
  border-color: var(--sf-color-border);
  border-radius: var(--sf-radius-card);
  background: var(--sf-color-surface-muted);
}

.profile-img { border-radius: 999px; color: var(--sf-color-accent); }
.profile-handle, .detail-eyebrow, .card-type, .card-price, .price-display { color: var(--sf-color-accent); }
.profile-bio, .detail-copy, .rich-text, .card-body p, .muted, .storefront-footer { color: var(--sf-color-text-muted); }
.profile-badge, .section-count, .card-type, .social-links a, .time-slot-badge, .free-badge, .badge {
  border: 1px solid var(--sf-color-border);
  background: var(--sf-color-accent-soft);
  color: var(--sf-color-accent);
}

.btn, .back-link {
  border-color: var(--sf-color-accent);
  border-radius: 7px;
  background: var(--sf-color-accent-soft);
  color: var(--sf-color-text);
}
.btn:hover, .back-link:hover { background: var(--sf-color-accent-soft); color: var(--sf-color-text); }
.btn-primary, .btn.primary { background: var(--sf-color-accent); color: var(--sf-color-on-accent); }
input, textarea, select, .input, .form-control, .form-select {
  border-color: var(--sf-color-border);
  border-radius: 7px;
  background: var(--sf-color-input);
  color: var(--sf-color-text);
}
.toast {
  border-color: var(--sf-color-success-border);
  background: var(--sf-color-success-surface);
  color: var(--sf-color-success-text);
}
.toast.error {
  border-color: var(--sf-color-danger-border);
  background: var(--sf-color-danger-surface);
  color: var(--sf-color-danger-text);
}

/* Shared compact mini-commerce link-in-bio layout. */
.storefront-page {
  font-size: 13px;
  font-weight: 400;
  font-family: var(--sf-font-family);
  background: var(--sf-color-page-background);
}

.storefront-page .container {
  width: min(760px, calc(100% - 24px));
  padding-block: 16px;
}

.storefront-page .detail-shell {
  width: min(1000px, calc(100% - 32px));
}

.storefront-page .social-links {
  gap: 8px;
}

.storefront-page .profile-actions .btn {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(80, 52, 26, 0.08);
}

.storefront-page .profile-actions .btn.active,
.storefront-page .profile-actions .btn[aria-pressed="true"] {
  background: var(--sf-color-accent);
  color: #fff;
}

.storefront-page .social-links a {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(80, 52, 26, 0.08);
  color: var(--sf-color-accent);
  font-size: 0;
}

.storefront-page .social-link__icon {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  font-weight: 700;
  line-height: 1;
}

.storefront-page .social-link__icon svg {
  width: 17px;
  height: 17px;
}

.storefront-page .profile-badge,
.storefront-page .section-count,
.storefront-page .card-type {
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
}

.storefront-page .section {
  margin-top: 12px;
  padding: 16px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(80, 52, 26, 0.08);
}

.storefront-page .section-head {
  margin-bottom: 12px;
}

.storefront-page .section-head h2 {
  font-family: var(--sf-font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.storefront-page .product-card p,
.storefront-page .service-card p {
  font-size: 12px;
  line-height: 1.45;
}

.storefront-page .products .card-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.storefront-page .smart-offers .profile-actions[role="tablist"] {
  width: min(100%, 520px);
  margin-inline: auto;
}

.storefront-page .card-grid {
  gap: 12px;
}

.storefront-page .offer-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.storefront-page .offer-card.product-card,
.storefront-page .offer-card.service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  align-items: center;
  min-height: 86px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(80, 52, 26, 0.07);
}

.storefront-page .offer-card.offer-card--with-image {
  grid-template-columns: 86px minmax(0, 1fr) auto;
  padding: 5px;
}

.storefront-page .offer-card .offer-card__thumb {
  width: 86px;
  height: 86px;
  min-height: 86px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}

.storefront-page .offer-card .offer-card__body {
  justify-items: center;
  padding: 12px;
  text-align: center;
}

.storefront-page .offer-card .offer-card__body h3 {
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.storefront-page .offer-card .card-price {
  font-size: 11px;
  font-weight: 500;
}

.storefront-page .offer-card .offer-card__cta {
  min-width: 88px;
  min-height: 36px;
  margin: 12px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.storefront-page .product-card,
.storefront-page .service-card {
  border: 0;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(80, 52, 26, 0.07);
}

.storefront-page .product-card {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  align-items: center;
  min-height: 112px;
}

.storefront-page .product-card--with-image {
  grid-template-columns: 112px minmax(0, 1fr) auto;
}

.storefront-page .product-card--text {
  grid-template-columns: minmax(0, 1fr) auto;
}

.storefront-page .product-card--text .card-img {
  display: none;
}

.storefront-page .product-card .card-img {
  width: 112px;
  height: 112px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}

.storefront-page .product-card .card-body,
.storefront-page .service-card .card-body {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 6px 0;
}

.storefront-page .product-card h3,
.storefront-page .service-card h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

.storefront-page .card-price {
  font-size: 15px;
  font-weight: 800;
}

.storefront-page .product-card > .btn {
  min-width: 94px;
  min-height: 36px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.storefront-page .service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.storefront-page .service-card {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
}

.storefront-page .service-card--with-image {
  grid-template-columns: 1fr;
}

.storefront-page .service-card .card-img {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}

.storefront-page .service-card > .btn {
  min-height: 36px;
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.product-page,
.checkout-page {
  font-size: 13px;
  font-weight: 400;
  font-family: var(--sf-font-family);
  background: var(--sf-color-page-background);
}

.product-page .detail-shell,
.checkout-page .checkout-shell {
  width: min(760px, calc(100% - 24px));
  padding-block: 16px;
}

.product-page .page-topbar,
.checkout-page .page-topbar {
  margin-bottom: 12px;
}

.product-page .back-link,
.checkout-page .back-link {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--sf-color-accent-soft);
  box-shadow: 0 10px 24px rgba(80, 52, 26, 0.08);
}

.product-page .detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  gap: 12px;
}

.checkout-page .checkout-layout {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 12px;
}

.product-page .detail-hero,
.product-page .media-gallery,
.checkout-page .checkout-main-form,
.checkout-page .checkout-summary {
  gap: 10px;
}

.product-page .detail-eyebrow {
  font-size: 10px;
  font-weight: 600;
}

.product-page .detail-title {
  max-width: 16ch;
  margin-top: 2px;
  font-family: var(--sf-font-heading);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.product-page .detail-copy,
.product-page .rich-text,
.checkout-page .muted,
.checkout-page .payment-options label {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.product-page .media-main,
.product-page .media-placeholder {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(80, 52, 26, 0.07);
}

.product-page .media-placeholder {
  font-size: 42px;
  font-weight: 600;
}

.product-page .detail-panel,
.product-page .purchase-card,
.checkout-page .checkout-main-form,
.checkout-page .checkout-summary {
  border: 0;
  border-radius: 30px;
  padding: 16px;
  background: var(--sf-color-surface);
  box-shadow: 0 12px 30px rgba(80, 52, 26, 0.07);
}

.product-page .detail-panel h2,
.checkout-page .checkout-main-form h1,
.checkout-page .checkout-main-form h2,
.checkout-page .checkout-summary h2 {
  font-family: var(--sf-font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.product-page .badge,
.checkout-page .badge {
  min-height: 24px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
}

.product-page .pricing-box,
.checkout-page .pricing-box {
  gap: 8px;
  font-size: 12px;
}

.product-page .price-display,
.checkout-page .total-row strong {
  font-size: 20px;
  font-weight: 600;
}

.product-page .quantity-control {
  grid-template-columns: 38px minmax(56px, 1fr) 38px;
  gap: 8px;
}

.product-page .quantity-control .btn {
  min-height: 38px;
  padding: 8px;
}

.product-page .checkout-cta,
.checkout-page .checkout-cta {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

.checkout-page .checkout-main-form {
  gap: 14px;
}

.checkout-page .checkout-main-form section {
  gap: 10px;
}

.checkout-page .form-grid {
  gap: 10px;
}

.checkout-page input,
.checkout-page textarea,
.checkout-page select,
.checkout-page .input {
  min-height: 40px;
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 12px;
}

.checkout-page textarea.input {
  min-height: 92px;
}

.checkout-page .field label,
.checkout-page .form-group label {
  font-size: 12px;
  font-weight: 600;
}

.checkout-page .payment-options {
  gap: 8px;
}

.checkout-page .payment-options label {
  border-radius: 14px;
  padding: 9px 10px;
}

.checkout-page .checkout-summary img {
  border: 0;
  border-radius: 24px;
  aspect-ratio: 1;
}

@media (max-width: 768px) {
  .storefront-page .container,
  .storefront-page .detail-shell {
    width: min(100% - 20px, 820px);
    padding-block: 14px;
  }

  .storefront-page .smart-offers__head {
    justify-items: stretch;
  }

  .storefront-page .service-card {
    grid-template-columns: 1fr;
  }

  .storefront-page .service-card--with-image {
    grid-template-columns: 1fr;
  }

  .storefront-page .service-card .card-img {
    width: 100%;
    min-height: 0;
  }

  .storefront-page .service-card > .btn {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }

  .storefront-page .offer-card.product-card,
  .storefront-page .offer-card.service-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .storefront-page .offer-card.offer-card--with-image {
    grid-template-columns: 74px minmax(0, 1fr) auto;
  }

  .storefront-page .offer-card .offer-card__thumb {
    width: 74px;
    height: 74px;
    min-height: 74px;
  }

  .storefront-page .offer-card .offer-card__cta {
    grid-column: auto;
    width: auto;
    min-width: 76px;
    margin: 8px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .product-page .detail-shell,
  .checkout-page .checkout-shell {
    width: min(100% - 20px, 820px);
    padding-block: 14px;
  }

  .product-page .detail-layout,
  .checkout-page .checkout-layout {
    grid-template-columns: 1fr;
  }

  .product-page .detail-title {
    max-width: none;
    font-size: 23px;
  }

  .product-page .detail-panel,
  .product-page .purchase-card,
  .checkout-page .checkout-main-form,
  .checkout-page .checkout-summary {
    padding: 14px;
  }

  .checkout-page .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .storefront-page .service-card,
  .storefront-page .service-card--with-image {
    grid-template-columns: 1fr;
  }

  .storefront-page .service-card .card-img {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1;
  }
}

@media (max-width: 560px) {
  .storefront-page .product-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .storefront-page .product-card--with-image {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .storefront-page .product-card .card-img {
    width: 88px;
    height: 88px;
  }

  .storefront-page .product-card > .btn {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }

  .storefront-page .offer-card .offer-card__thumb {
    width: 74px;
    height: 74px;
    min-height: 74px;
    aspect-ratio: 1;
  }

  .storefront-page .offer-card .offer-card__cta {
    grid-column: auto;
    width: auto;
    min-width: 76px;
    margin: 8px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .storefront-page .service-list {
    grid-template-columns: 1fr;
  }
}

/* === compact responsive storefront refinements === */
.product-page,
.service-page,
.checkout-page {
  font-size: 13px;
  font-weight: 400;
}

.product-page .detail-shell,
.service-page .detail-shell,
.checkout-page .checkout-shell {
  padding-block: var(--sf-space-md);
}

.product-page .detail-shell.storefront-item-shell,
.service-page .detail-shell.storefront-item-shell {
  width: min(1000px, calc(100% - 32px));
}

.checkout-page .checkout-shell {
  width: min(760px, calc(100% - 24px));
}

.product-page .page-topbar,
.service-page .page-topbar,
.checkout-page .page-topbar {
  margin-bottom: 12px;
}

.product-page .page-topbar,
.service-page .page-topbar {
  align-items: center;
  justify-content: flex-start;
}

.product-page .back-link,
.service-page .back-link,
.checkout-page .back-link {
  min-height: 34px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

.seller-topbar-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--sf-color-border) 86%, transparent);
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  background: color-mix(in srgb, var(--sf-color-surface) 90%, transparent);
  color: var(--sf-color-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.seller-topbar-link:hover {
  border-color: color-mix(in srgb, var(--sf-color-accent) 36%, var(--sf-color-border));
  background: var(--sf-color-accent-soft);
  color: var(--sf-color-text);
}

.seller-topbar-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--sf-color-accent) 32%, transparent);
  outline-offset: 3px;
}

.seller-topbar-arrow,
.seller-topbar-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
}

.seller-topbar-arrow {
  width: 32px;
  height: 32px;
  color: var(--sf-color-text);
}

.seller-topbar-arrow svg,
.media-slider-nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seller-topbar-avatar {
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--sf-color-border);
  background: var(--sf-color-accent-soft);
  color: var(--sf-color-accent);
  font-size: 13px;
  font-weight: 800;
}

.seller-topbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-topbar-username {
  min-width: 0;
  max-width: min(46vw, 240px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-page .detail-layout,
.service-page .detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  gap: 12px;
}

.checkout-page .checkout-layout {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 12px;
}

.product-page .detail-hero,
.service-page .detail-hero,
.product-page .media-gallery,
.service-page .media-gallery,
.checkout-page .checkout-main-form,
.checkout-page .checkout-summary {
  gap: 10px;
}

.product-page .detail-eyebrow,
.service-page .detail-eyebrow {
  font-size: 10px;
  font-weight: 600;
}

.product-page .detail-title,
.service-page .detail-title {
  max-width: none;
  margin-top: 2px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.product-page .detail-copy,
.service-page .detail-copy,
.product-page .rich-text,
.service-page .rich-text,
.checkout-page .muted,
.checkout-page .payment-options label {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.product-page .rich-text,
.service-page .rich-text {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-page .rich-text img,
.service-page .rich-text img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: var(--sf-radius-card);
  object-fit: contain;
}

.product-page .rich-text ul,
.product-page .rich-text ol,
.service-page .rich-text ul,
.service-page .rich-text ol {
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding-left: 1.25rem;
  overflow-wrap: anywhere;
}

.product-page .rich-text li,
.service-page .rich-text li {
  max-width: 100%;
  margin-bottom: 6px;
  padding-left: 0.1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-page .full-description {
  gap: 16px;
}

.product-page .full-description .rich-text {
  font-size: 15px;
  line-height: 1.85;
}

.product-page .full-description .rich-text p {
  margin: 0 0 18px;
  line-height: 1.85;
}

.product-page .full-description .rich-text h1,
.product-page .full-description .rich-text h2,
.product-page .full-description .rich-text h3,
.product-page .full-description .rich-text h4,
.product-page .full-description .rich-text h5,
.product-page .full-description .rich-text h6 {
  margin: 30px 0 12px;
  line-height: 1.35;
  letter-spacing: 0;
}

.product-page .full-description .rich-text h1:first-child,
.product-page .full-description .rich-text h2:first-child,
.product-page .full-description .rich-text h3:first-child,
.product-page .full-description .rich-text h4:first-child,
.product-page .full-description .rich-text h5:first-child,
.product-page .full-description .rich-text h6:first-child {
  margin-top: 0;
}

.product-page .full-description .rich-text h1 {
  font-size: 26px;
}

.product-page .full-description .rich-text h2 {
  font-size: 22px;
}

.product-page .full-description .rich-text h3 {
  font-size: 19px;
}

.product-page .full-description .rich-text h4,
.product-page .full-description .rich-text h5,
.product-page .full-description .rich-text h6 {
  font-size: 17px;
}

.product-page .full-description .rich-text ul,
.product-page .full-description .rich-text ol {
  margin: 4px 0 22px;
  padding-left: 1.6rem;
}

.product-page .full-description .rich-text li {
  margin: 0 0 10px;
  padding-left: 0.25rem;
  line-height: 1.75;
}

.product-page .full-description .rich-text li:last-child {
  margin-bottom: 0;
}

.product-page .full-description .rich-text li > ul,
.product-page .full-description .rich-text li > ol {
  margin: 10px 0 4px;
}

.product-page .full-description .rich-text img {
  margin: 26px auto 28px;
}

.product-page .full-description .rich-text figure {
  margin: 26px 0 28px;
}

.product-page .full-description .rich-text figure img {
  margin: 0 auto;
}

.product-page .full-description .rich-text figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.product-page .full-description .rich-text hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid var(--sf-color-border);
}

.product-page .full-description .rich-text > :last-child {
  margin-bottom: 0;
}

.product-page .media-main,
.service-page .media-main,
.product-page .media-placeholder,
.service-page .media-placeholder,
.product-page .media-video,
.service-page .media-video {
  border-radius: var(--sf-radius-card);
}

.product-page .media-main,
.service-page .media-main {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  aspect-ratio: auto;
  object-fit: contain;
}

.product-page .media-slider,
.service-page .media-slider {
  border-radius: var(--sf-radius-card);
}

.product-page .media-slider[data-adaptive-media-slider],
.service-page .media-slider[data-adaptive-media-slider] {
  width: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  background: color-mix(in srgb, var(--sf-color-surface) 92%, var(--sf-color-text));
}

.product-page .media-slider-track,
.service-page .media-slider-track,
.product-page .media-slide,
.service-page .media-slide {
  height: 100%;
}

.product-page .media-slide .media-main,
.service-page .media-slide .media-main {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.product-page .media-slider[data-adaptive-media-slider] .media-slider-track,
.service-page .media-slider[data-adaptive-media-slider] .media-slider-track {
  position: relative;
  display: block;
  height: auto;
  transform: none;
}

.product-page .media-slider[data-adaptive-media-slider] .media-slide,
.service-page .media-slider[data-adaptive-media-slider] .media-slide {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity 0.26s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.32s;
}

.product-page .media-slider[data-adaptive-media-slider] .media-slide.active,
.service-page .media-slider[data-adaptive-media-slider] .media-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.product-page .media-slider[data-adaptive-media-slider] .media-slide .media-main,
.service-page .media-slider[data-adaptive-media-slider] .media-slide .media-main {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-position: center;
  object-fit: contain;
  transform: none;
}

.product-page .media-slider-pagination,
.service-page .media-slider-pagination {
  justify-content: center;
  gap: 0;
  width: 100%;
  padding: 2px 0 0;
}

.product-page .media-slider-pagination .media-slider-dot,
.product-page .media-slider-pagination .media-slider-dot.active,
.service-page .media-slider-pagination .media-slider-dot,
.service-page .media-slider-pagination .media-slider-dot.active {
  width: 28px;
  height: 36px;
}

.media-slider-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--sf-color-border) 80%, transparent);
  border-radius: 999px;
  padding: 0;
  background: color-mix(in srgb, var(--sf-color-surface) 92%, transparent);
  color: var(--sf-color-text);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.media-slider-nav:hover {
  border-color: color-mix(in srgb, var(--sf-color-accent) 38%, var(--sf-color-border));
  background: var(--sf-color-surface);
}

.media-slider-nav:focus-visible,
.media-slider-thumb:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--sf-color-accent) 32%, transparent);
  outline-offset: 3px;
}

.media-slider-nav--prev {
  left: 10px;
}

.media-slider-nav--next {
  right: 10px;
}

.media-slider-thumbs {
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px 2px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.media-slider-thumb {
  display: block;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 2px;
  background: var(--sf-color-surface);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.media-slider-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.media-slider-thumb.active {
  border-color: var(--sf-color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sf-color-accent) 18%, transparent);
}

.product-page .media-placeholder,
.service-page .media-placeholder {
  font-size: 42px;
  font-weight: 600;
}

.product-page .media-stage .media-video,
.service-page .media-stage .media-video {
  aspect-ratio: 16 / 9;
}

.product-page .media-stage .media-video--instagram,
.service-page .media-stage .media-video--instagram {
  width: min(100%, 45vh, 540px);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}

.product-page .detail-panel,
.service-page .detail-panel,
.product-page .purchase-card,
.service-page .purchase-card,
.checkout-page .checkout-main-form,
.checkout-page .checkout-summary {
  border-radius: var(--sf-radius-card);
  padding: 16px;
}

.product-page .detail-panel,
.service-page .detail-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.product-page .full-description,
.service-page .full-description {
  display: grid;
  gap: 10px;
  width: 100%;
}

.product-page .full-description h2,
.service-page .full-description h2 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.product-page .detail-panel h2,
.service-page .detail-panel h2,
.checkout-page .checkout-main-form h1,
.checkout-page .checkout-main-form h2,
.checkout-page .checkout-summary h2 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.product-page .badge,
.service-page .badge,
.checkout-page .badge {
  min-height: 24px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
}

.product-page .pricing-box,
.service-page .pricing-box,
.checkout-page .pricing-box {
  gap: 8px;
  font-size: 12px;
}

.product-page .purchase-card,
.service-page .purchase-card {
  align-content: start;
  gap: 16px;
  box-sizing: border-box;
}

.product-page .purchase-card .cluster,
.service-page .purchase-card .cluster {
  justify-content: flex-end;
}

.product-page .purchase-card .cluster {
  justify-content: center;
}

.service-page .purchase-card .cluster {
  gap: 8px;
}

.service-page .purchase-card .cluster .badge {
  min-height: 28px;
  padding-inline: 12px;
}

.product-page .purchase-card .price-row,
.service-page .purchase-card .price-row,
.product-page .purchase-card .pricing-box > div,
.service-page .purchase-card .pricing-box > div {
  align-items: baseline;
}

.product-page .purchase-card .price-row--pricing,
.service-page .purchase-card .price-row--pricing {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  padding-bottom: 6px;
}

.product-page .purchase-card .price-row span,
.service-page .purchase-card .price-row span,
.product-page .purchase-card .pricing-box > div span,
.service-page .purchase-card .pricing-box > div span {
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-page .purchase-card .price-values,
.service-page .purchase-card .price-values {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px 10px;
  min-width: 0;
  text-align: right;
}

.product-page .purchase-card .pricing-box,
.service-page .purchase-card .pricing-box {
  gap: 12px;
}

.product-page .purchase-card .pricing-box .price-row:not(.price-row--pricing),
.service-page .purchase-card .pricing-box .price-row:not(.price-row--pricing) {
  min-height: 28px;
}

.service-page .purchase-card .seat-callout {
  order: 0;
  width: 100%;
}

.product-page .price-display,
.service-page .price-display,
.checkout-page .total-row strong {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
}

.product-page .purchase-card,
.service-page .purchase-card {
  padding: 20px;
}

.product-page .purchase-card .quantity-control {
  width: 100%;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
}

.product-page .quantity-control {
  grid-template-columns: 38px minmax(56px, 1fr) 38px;
  gap: 8px;
}

.product-page .quantity-control .btn {
  min-height: 38px;
  padding: 8px;
}

.service-page .service-meta {
  gap: 8px;
}

.service-page .meta-card {
  border-radius: var(--sf-radius-card);
  padding: 9px 10px;
}

.service-page .meta-card span {
  font-size: 10px;
  font-weight: 600;
}

.product-page .checkout-cta,
.service-page .checkout-cta,
.checkout-page .checkout-cta {
  width: 100%;
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

.product-page .purchase-card .checkout-cta,
.product-page .purchase-card .checkout-cta:hover,
.product-page .purchase-card .checkout-cta:active,
.service-page .purchase-card .checkout-cta,
.service-page .purchase-card .checkout-cta:hover,
.service-page .purchase-card .checkout-cta:active {
  box-shadow: none;
}

.checkout-page .checkout-main-form {
  gap: 14px;
}

.checkout-page .checkout-main-form section {
  gap: 10px;
}

.checkout-page .form-grid {
  gap: 10px;
  align-items: start;
}

.checkout-page .field,
.checkout-page .form-group {
  align-content: start;
  align-items: start;
}

.checkout-page input,
.checkout-page textarea,
.checkout-page select,
.checkout-page .input {
  min-height: 40px;
  border: 1px solid var(--sf-color-border);
  border-radius: var(--sf-radius-card);
  background: var(--sf-color-input);
  color: var(--sf-color-text);
  padding: 9px 11px;
  font-size: 12px;
  caret-color: var(--sf-color-accent);
}

.checkout-page input::placeholder,
.checkout-page textarea::placeholder {
  color: var(--sf-color-text-muted);
  opacity: 0.82;
}

.checkout-page input:focus,
.checkout-page textarea:focus,
.checkout-page select:focus,
.checkout-page .input:focus {
  border-color: var(--sf-color-accent);
  background: var(--sf-color-input-focus);
  color: var(--sf-color-text);
  box-shadow: 0 0 0 4px rgba(15, 139, 111, 0.14);
}

.checkout-page select option,
.checkout-page select optgroup {
  background: var(--sf-color-input);
  color: var(--sf-color-text);
}

.checkout-page select option:checked {
  background: var(--sf-color-accent-soft);
  color: var(--sf-color-text);
}

.checkout-page input[readonly],
.checkout-page textarea[readonly],
.checkout-page select[readonly],
.checkout-page input:disabled,
.checkout-page textarea:disabled,
.checkout-page select:disabled {
  background: var(--sf-color-input-disabled);
  color: var(--sf-color-text);
  opacity: 1;
}

.checkout-page input[type="radio"],
.checkout-page input[type="checkbox"] {
  width: auto;
  min-height: 0;
  accent-color: var(--sf-color-accent);
}

.checkout-page textarea.input {
  min-height: 92px;
}

.checkout-page .field label,
.checkout-page .form-group label {
  font-size: 12px;
  font-weight: 600;
}

.checkout-page .payment-options {
  gap: 8px;
}

.checkout-page .payment-options label,
.checkout-page .toggle-row {
  border-radius: var(--sf-radius-card);
  padding: 9px 10px;
}

.checkout-page .checkout-summary img {
  border-radius: var(--sf-radius-card);
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.rich-text,
.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text p,
.rich-text li {
  line-height: 2;
}

@media (max-width: 768px) {
  .product-page .detail-shell,
  .service-page .detail-shell,
  .checkout-page .checkout-shell {
    width: min(100% - 20px, 820px);
    padding-block: var(--sf-space-md);
  }
  .product-page .detail-shell,
  .service-page .detail-shell {
    padding-bottom: calc(var(--sf-space-md) + var(--mobile-purchase-card-height, 0px) + env(safe-area-inset-bottom, 0px));
  }

  .product-page .storefront-footer,
  .service-page .storefront-footer {
    margin-bottom: calc(var(--sf-space-xl) + var(--mobile-purchase-card-height, 0px) + env(safe-area-inset-bottom, 0px));
  }

  .product-page .detail-layout,
  .service-page .detail-layout,
  .checkout-page .checkout-layout {
    grid-template-columns: 1fr;
  }

  .product-page .detail-title,
  .service-page .detail-title {
    max-width: none;
    font-size: 23px;
  }

  .product-page .detail-panel,
  .service-page .detail-panel,
  .product-page .purchase-card,
  .service-page .purchase-card,
  .checkout-page .checkout-main-form,
  .checkout-page .checkout-summary {
    padding: var(--sf-space-md);
  }
  .product-page .purchase-card,
  .service-page .purchase-card {
    position: fixed;
    right: auto;
    bottom: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    width: min(100% - 20px, 820px);
    max-height: calc(62vh - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    gap: 8px;
    border-radius: var(--sf-radius-card);
    padding: 10px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
    transform: translateX(-50%);
  }
  .product-page .purchase-card .toast,
  .service-page .purchase-card .toast {
    grid-column: 1 / -1;
    margin: 0;
    padding: 8px 10px;
  }
  .product-page .purchase-card .cluster,
  .service-page .purchase-card .cluster {
    order: 2;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 8px;
  }
  .product-page .purchase-card .cluster {
    justify-content: center;
  }
  .product-page .purchase-card .cluster:empty,
  .service-page .purchase-card .cluster:empty {
    display: none;
  }
  .product-page .purchase-card .badge,
  .service-page .purchase-card .badge {
    min-height: 24px;
    padding: 5px 9px;
    font-size: 10px;
  }
  .product-page .purchase-card > .badge,
  .service-page .purchase-card > .badge {
    order: 4;
    grid-column: 1 / -1;
    justify-self: start;
  }
  .product-page .purchase-card .pricing-box,
  .service-page .purchase-card .pricing-box {
    order: 3;
    grid-column: 1 / -1;
    gap: 8px;
    min-width: 0;
  }
  .service-page .purchase-card .seat-callout {
    order: 1;
    grid-column: 1 / -1;
    padding: 9px 10px;
  }
  .product-page .purchase-card .price-row,
  .service-page .purchase-card .price-row,
  .product-page .purchase-card .pricing-box > div,
  .service-page .purchase-card .pricing-box > div {
    gap: 8px;
  }
  .product-page .purchase-card .price-row--pricing,
  .service-page .purchase-card .price-row--pricing {
    grid-template-columns: minmax(58px, auto) minmax(0, 1fr);
    padding-bottom: 0;
  }
  .product-page .purchase-card .price-values,
  .service-page .purchase-card .price-values {
    gap: 4px 8px;
  }
  .service-page .purchase-card .price-values {
    justify-content: flex-start;
    text-align: left;
  }
  .product-page .purchase-card .price-row > *,
  .service-page .purchase-card .price-row > *,
  .product-page .purchase-card .pricing-box > div > *,
  .service-page .purchase-card .pricing-box > div > * {
    min-width: 0;
  }
  .product-page .purchase-card .price-display,
  .service-page .purchase-card .price-display {
    font-size: 21px;
    overflow-wrap: anywhere;
    text-align: right;
  }
  .product-page .purchase-card .checkout-cta,
  .service-page .purchase-card .checkout-cta {
    order: 7;
    grid-column: 1 / -1;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    min-width: 0;
    padding: 8px 12px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }
  .product-page .purchase-card > .muted,
  .service-page .purchase-card > .muted {
    order: 6;
    grid-column: 1 / -1;
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
  }
  .product-page .purchase-card .quantity-control {
    order: 5;
    grid-column: 1 / -1;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    justify-self: stretch;
    gap: 6px;
  }
  .product-page .purchase-card .quantity-control .btn,
  .product-page .purchase-card .quantity-control input {
    min-height: 34px;
    padding: 6px;
  }
  .service-page .purchase-card .service-meta {
    order: 4;
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 6px;
  }
  .service-page .purchase-card .meta-card {
    padding: 7px 8px;
  }
  .service-page .purchase-card .meta-card span {
    font-size: 9px;
  }
  .service-page .purchase-card .meta-card strong {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .service-page .purchase-card .service-meta + .cluster {
    order: 5;
  }

  .checkout-page .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .product-page .purchase-card,
  .service-page .purchase-card {
    width: calc(100% - 16px);
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 9px;
  }
  .product-page .purchase-card .price-row,
  .service-page .purchase-card .price-row,
  .product-page .purchase-card .pricing-box > div,
  .service-page .purchase-card .pricing-box > div {
    gap: 6px;
  }
  .product-page .purchase-card .price-display,
  .service-page .purchase-card .price-display {
    font-size: 19px;
  }
  .product-page .purchase-card .checkout-cta,
  .service-page .purchase-card .checkout-cta {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .product-page .full-description {
    gap: 14px;
  }

  .product-page .full-description .rich-text p {
    margin-bottom: 16px;
  }

  .product-page .full-description .rich-text h1,
  .product-page .full-description .rich-text h2,
  .product-page .full-description .rich-text h3,
  .product-page .full-description .rich-text h4,
  .product-page .full-description .rich-text h5,
  .product-page .full-description .rich-text h6 {
    margin-top: 24px;
    margin-bottom: 10px;
  }

  .product-page .full-description .rich-text ul,
  .product-page .full-description .rich-text ol {
    margin-bottom: 18px;
    padding-left: 1.45rem;
  }

  .product-page .full-description .rich-text li {
    margin-bottom: 8px;
  }

  .product-page .full-description .rich-text img,
  .product-page .full-description .rich-text figure {
    margin-top: 22px;
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {
  .product-page .detail-shell,
  .service-page .detail-shell {
    padding-bottom: var(--sf-space-md);
  }

  .product-page .storefront-footer,
  .service-page .storefront-footer {
    margin-bottom: var(--sf-space-xl);
  }

  .product-page .purchase-card,
  .service-page .purchase-card {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    width: auto;
    max-height: none;
    overflow: visible;
    transform: none;
  }
}

.mobile-purchase-backdrop,
.mobile-purchase-bar,
.mobile-purchase-sheet-close {
  display: none;
}

@media (max-width: 768px) {
  .mobile-purchase-ready.product-page,
  .mobile-purchase-ready.service-page {
    --mobile-purchase-card-height: 74px;
  }

  .mobile-purchase-ready.product-page .detail-shell,
  .mobile-purchase-ready.service-page .detail-shell {
    padding-bottom: calc(var(--sf-space-md) + var(--mobile-purchase-card-height, 74px) + env(safe-area-inset-bottom, 0px));
  }

  .mobile-purchase-ready.product-page .storefront-footer,
  .mobile-purchase-ready.service-page .storefront-footer {
    margin-bottom: calc(var(--sf-space-xl) + var(--mobile-purchase-card-height, 74px) + env(safe-area-inset-bottom, 0px));
  }

  .mobile-purchase-ready.product-page .purchase-card,
  .mobile-purchase-ready.service-page .purchase-card {
    position: fixed;
    right: 8px;
    bottom: 0;
    left: 8px;
    z-index: 92;
    display: grid;
    width: auto;
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: 10px;
    border-radius: 18px 18px 0 0;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -18px 44px rgba(15, 23, 42, 0.26);
    transform: translateY(110%);
    transition: transform 0.22s ease;
    visibility: hidden;
    pointer-events: none;
  }

  .mobile-purchase-ready.product-page.purchase-sheet-open .purchase-card,
  .mobile-purchase-ready.service-page.purchase-sheet-open .purchase-card {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-purchase-sheet-close {
    position: sticky;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    min-height: 34px;
    border: 1px solid var(--sf-color-border);
    border-radius: 999px;
    padding: 6px 12px;
    background: var(--sf-color-surface);
    color: var(--sf-color-text-muted);
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-purchase-backdrop {
    position: fixed;
    inset: 0;
    z-index: 91;
    display: block;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  .mobile-purchase-ready.purchase-sheet-open .mobile-purchase-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-purchase-bar {
    position: fixed;
    bottom: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    z-index: 90;
    display: none;
    grid-template-rows: 13px 44px;
    gap: 3px;
    width: min(100% - 16px, 820px);
    max-height: 74px;
    box-sizing: border-box;
    border: 1px solid var(--sf-color-border);
    border-radius: 16px;
    padding: 6px 10px 8px;
    background: var(--sf-color-surface);
    color: var(--sf-color-text);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.24);
    transform: translateX(-50%);
  }

  .mobile-purchase-ready.product-page:not(.purchase-sheet-open) .mobile-purchase-bar,
  .mobile-purchase-ready.service-page:not(.purchase-sheet-open) .mobile-purchase-bar {
    display: grid;
  }

  .mobile-purchase-bar__meta,
  .mobile-purchase-bar__price,
  .mobile-purchase-bar__cta {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-purchase-bar__meta {
    align-self: end;
    color: var(--sf-color-text-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
  }

  .mobile-purchase-bar__bottom {
    display: grid;
    grid-template-columns: minmax(78px, 0.42fr) minmax(142px, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .mobile-purchase-bar__price {
    font-size: 18px;
    font-weight: 850;
    line-height: 1;
  }

  .mobile-purchase-bar__cta {
    width: 100%;
    min-height: 44px;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.1;
  }

  .mobile-purchase-bar--disabled .mobile-purchase-bar__cta {
    opacity: 0.56;
  }
}

/* Storefront UX polish: late-loaded accessibility and conversion refinements. */
.storefront-page,
.product-page,
.service-page,
.checkout-page {
  font-size: 15px;
  line-height: 1.55;
  text-size-adjust: 100%;
}

.storefront-page a,
.storefront-page button,
.storefront-page label[role="tab"],
.product-page a,
.product-page button,
.service-page a,
.service-page button,
.checkout-page a,
.checkout-page button,
.checkout-page label,
.media-slider-dot {
  touch-action: manipulation;
}

.btn,
.back-link,
.profile-actions .btn,
.product-page .back-link,
.service-page .back-link,
.checkout-page .back-link,
.product-page .checkout-cta,
.service-page .checkout-cta,
.checkout-page .checkout-cta {
  min-height: 44px;
  padding: 10px 15px;
  font-size: 14px;
  line-height: 1.2;
}

.storefront-page[data-page="public-profile"] .profile-actions .btn {
  min-height: 36px;
  padding: 7px 11px;
  gap: 5px;
  font-size: 12px;
  line-height: 1.1;
  box-shadow: none;
}

.storefront-page[data-page="public-profile"] .reviews-head-actions .btn {
  min-height: 36px;
  padding: 7px 11px;
  gap: 5px;
  font-size: 12px;
  line-height: 1.1;
}

.btn:focus-visible,
.back-link:focus-visible,
.product-card:focus-visible,
.service-card:focus-visible,
.social-links a:focus-visible,
.media-slider-dot:focus-visible,
.offer-tab-input:focus-visible + label,
.profile-actions [role="tab"]:focus-visible,
.storefront-modal__backdrop:focus-visible,
.mobile-purchase-backdrop:focus-visible,
.mobile-purchase-sheet-close:focus-visible,
.checkout-page input:focus-visible,
.checkout-page textarea:focus-visible,
.checkout-page select:focus-visible,
.checkout-page .input:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.review-rating-option input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--sf-color-accent) 36%, transparent);
  outline-offset: 3px;
}

.btn:active,
.back-link:active,
.product-card:active,
.service-card:active,
.social-links a:active {
  transform: translateY(0);
}

.storefront-page .profile {
  margin-block-end: 28px;
  padding-top: 36px;
}

.storefront-page .profile-avatar-wrap {
  box-shadow: 0 18px 50px color-mix(in srgb, var(--sf-color-accent) 18%, transparent);
}

.storefront-page .profile-bio {
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.65;
  -webkit-line-clamp: 3;
}

.storefront-page .profile .profile-share-btn,
.storefront-page .profile .profile-share-btn:hover {
  border-color: var(--sf-color-accent);
  background: transparent;
  box-shadow: none;
}

.storefront-page .profile-proof-text,
.storefront-page .profile-proof-rating {
  font-size: 14px;
}

.storefront-page .social-links {
  gap: 10px;
}

.storefront-page .social-links a {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
}

.storefront-page .social-link__icon svg {
  width: 19px;
  height: 19px;
}

.storefront-page .storefront-social-proof__grid {
  --social-proof-columns: 1;
  display: grid;
  grid-template-columns: repeat(var(--social-proof-columns), minmax(0, 1fr));
  justify-content: stretch;
  width: 100%;
  max-width: min(100%, 320px);
  margin-inline: auto;
  gap: 10px;
}

.storefront-page .storefront-social-proof__grid--count-2 {
  --social-proof-columns: 2;
  max-width: min(100%, 560px);
}

.storefront-page .storefront-social-proof__grid--count-3 {
  --social-proof-columns: 3;
  max-width: min(100%, 780px);
}

.storefront-page .storefront-social-proof__item {
  min-width: 0;
}

.storefront-page .storefront-about-business,
.storefront-page .reviews-section {
  grid-column: 1 / -1;
  width: 100%;
}

.storefront-page .storefront-about-business .detail-copy {
  max-width: 82ch;
}

.product-card,
.service-card,
.storefront-about-business,
.reviews-section,
.storefront-social-proof__item,
.checkout-page .checkout-main-form,
.checkout-page .checkout-summary,
.product-page .purchase-card,
.service-page .purchase-card {
  border-color: color-mix(in srgb, var(--sf-color-border) 78%, var(--sf-color-accent) 22%);
}

.product-card,
.service-card {
  gap: 10px;
  padding: 12px;
}

.product-card:hover,
.service-card:hover {
  border-color: var(--sf-color-accent);
}

.checkout-page .checkout-summary img {
  aspect-ratio: 4 / 3;
}

.checkout-page .checkout-summary img {
  background: var(--sf-color-surface-muted);
  object-fit: contain;
}

.card-body h3,
.product-card .card-body h3,
.service-card .card-body h3 {
  font-size: 16px;
  line-height: 1.25;
}

.card-body p,
.product-card .detail-copy,
.service-card .detail-copy {
  font-size: 13px;
  line-height: 1.55;
}

.product-page .detail-title,
.service-page .detail-title {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.08;
}

.product-page .detail-copy,
.service-page .detail-copy,
.product-page .rich-text,
.service-page .rich-text {
  font-size: 15px;
  line-height: 1.7;
}

.product-page .full-description h2,
.service-page .full-description h2,
.checkout-page .checkout-main-form h1,
.checkout-page .checkout-main-form h2,
.checkout-page .checkout-summary h2 {
  font-size: 19px;
  line-height: 1.2;
}

.product-page .badge,
.service-page .badge,
.checkout-page .badge,
.section-count,
.card-type,
.profile-badge {
  min-height: 28px;
  padding: 5px 10px;
  font-size: 11px;
}

.product-page .quantity-control {
  grid-template-columns: 44px minmax(64px, 1fr) 44px;
}

.product-page .quantity-control .btn,
.product-page .quantity-control input {
  min-height: 44px;
}

.checkout-page input,
.checkout-page textarea,
.checkout-page select,
.checkout-page .input,
.contact-form input,
.contact-form textarea {
  min-height: 44px;
  font-size: 14px;
}

.checkout-page .field label,
.checkout-page .form-group label,
.checkout-page .question-label,
.contact-form label {
  font-size: 13px;
  line-height: 1.35;
}

.checkout-page .payment-options label,
.checkout-page .toggle-row,
.prepaid-gateway-options label {
  min-height: 44px;
  cursor: pointer;
}

.checkout-page input[type="radio"],
.checkout-page input[type="checkbox"] {
  min-width: 18px;
  width: 18px;
  height: 18px;
}

.storefront-modal {
  padding: 16px;
}

.storefront-modal__backdrop {
  background: rgba(15, 23, 42, 0.58);
}

.storefront-modal__panel {
  width: min(590px, 100%);
  padding: 22px;
}

.media-slider-dot {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.media-slider-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sf-color-text) 24%, transparent);
  transform: translate(-50%, -50%);
  transition: width 0.22s ease, background-color 0.22s ease;
}

.media-slider-dot.active {
  width: 44px;
  background: transparent;
}

.media-slider-dot.active::before {
  width: 18px;
  background: var(--sf-color-accent);
}

@media (max-width: 768px) {
  .storefront-page,
  .product-page,
  .service-page,
  .checkout-page {
    font-size: 15px;
  }

  .storefront-page .container,
  .product-page .detail-shell,
  .service-page .detail-shell,
  .checkout-page .checkout-shell {
    width: min(100% - 24px, 820px);
  }

  .storefront-page .storefront-social-proof__grid--count-3 {
    --social-proof-columns: 2;
    max-width: min(100%, 560px);
  }

  .smart-offers .profile-actions[role="tablist"] {
    gap: 10px;
  }

  .smart-offers .profile-actions[role="tablist"] .btn {
    min-height: 36px;
    white-space: normal;
  }

  .offer-card.product-card > .offer-card__cta,
  .offer-card.service-card > .offer-card__cta,
  .product-card > .btn,
  .service-card > .btn {
    min-height: 44px;
    font-size: 13px;
  }

  .product-page .purchase-card .checkout-cta,
  .service-page .purchase-card .checkout-cta,
  .product-page .purchase-card .quantity-control .btn,
  .product-page .purchase-card .quantity-control input {
    min-height: 44px;
  }

  .product-page .purchase-card > .muted,
  .service-page .purchase-card > .muted {
    font-size: 13px;
  }

  .service-page .purchase-card .meta-card span,
  .service-page .purchase-card .meta-card strong {
    font-size: 12px;
  }

  .mobile-purchase-ready.product-page,
  .mobile-purchase-ready.service-page {
    --mobile-purchase-card-height: 82px;
  }

  .mobile-purchase-sheet-close {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .mobile-purchase-bar {
    grid-template-rows: 16px 48px;
    max-height: 82px;
    padding: 8px 10px 10px;
  }

  .mobile-purchase-bar__meta {
    font-size: 12px;
  }

  .mobile-purchase-bar__cta {
    min-height: 48px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .storefront-page .storefront-social-proof__grid,
  .storefront-page .storefront-social-proof__grid--count-2,
  .storefront-page .storefront-social-proof__grid--count-3 {
    --social-proof-columns: 1;
    max-width: min(100%, 340px);
  }

  .product-page .purchase-card .checkout-cta,
  .service-page .purchase-card .checkout-cta {
    min-height: 44px;
    font-size: 13px;
  }

  .mobile-purchase-bar__bottom {
    grid-template-columns: minmax(76px, 0.42fr) minmax(132px, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .btn:hover,
  .back-link:hover,
  .product-card:hover,
  .service-card:hover,
  .review-rating-option:hover span,
  .mobile-purchase-ready.product-page .purchase-card,
  .mobile-purchase-ready.service-page .purchase-card {
    transform: none !important;
  }
}

/* === storefront view-specific structures === */
.offer-tab-input {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.smart-offers .offer-tab-panel {
  display: none !important;
}

.prepaid-gateway-panel {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--sf-color-border);
  border-radius: 12px;
  background: var(--sf-color-input-disabled);
}

.prepaid-gateway-title {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.prepaid-gateway-options {
  display: grid;
  gap: 8px;
}

.prepaid-gateway-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--sf-color-border);
  border-radius: 10px;
  background: var(--sf-color-input);
  color: var(--sf-color-text);
}

.checkout-success-page {
  margin: 0;
  background: var(--sf-color-page-background);
  color: var(--sf-color-text);
}

.success-shell {
  width: min(560px, calc(100% - 28px));
  margin: 40px auto;
}

.success-card {
  padding: 24px;
  border: 1px solid var(--sf-color-border);
  border-radius: 22px;
  background: var(--sf-color-surface);
  color: var(--sf-color-text);
  box-shadow: var(--sf-shadow-card);
}

.success-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.success-card p {
  margin: 0 0 16px;
  color: var(--sf-color-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.success-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--sf-color-border);
  border-radius: 14px;
  background: var(--sf-color-input-disabled);
}

.success-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.success-row span:first-child {
  color: var(--sf-color-text-muted);
}

.success-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.success-actions {
  display: grid;
  gap: 10px;
}

.success-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.success-actions .primary {
  background: var(--sf-color-accent);
  color: var(--sf-color-on-accent);
}

.success-actions .secondary {
  border: 1px solid var(--sf-color-border);
  background: var(--sf-color-accent-soft);
  color: var(--sf-color-text);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}

.status-pill--paid {
  background: var(--sf-color-success-surface);
  color: var(--sf-color-success-text);
}

.status-pill--pending {
  background: var(--sf-color-pending-surface);
  color: var(--sf-color-pending-text);
}

@media (max-width: 420px) {
  .success-shell {
    margin-block: 20px;
  }

  .success-card {
    padding: 18px;
  }

  .success-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .success-row strong {
    text-align: left;
  }
}

.storefront-page .smart-offers .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  justify-content: center;
  gap: 12px;
}

.storefront-page .smart-offers .offer-card.product-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "thumb"
    "body";
  align-items: start;
  gap: 0;
  min-height: 0;
  min-width: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--sf-color-border) 82%, transparent);
  border-radius: 14px;
  background: var(--sf-color-surface);
  color: var(--sf-color-text);
  box-shadow: var(--sf-shadow-card);
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  touch-action: manipulation;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.storefront-page .smart-offers .offer-card.product-card:hover {
  border-color: color-mix(in srgb, var(--sf-color-accent) 58%, var(--sf-color-border));
  box-shadow: var(--sf-shadow-md);
  transform: translateY(-1px);
}

.storefront-page .smart-offers .offer-card.product-card:active {
  transform: translateY(0);
}

.storefront-page .smart-offers .offer-card.product-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--sf-color-accent) 55%, transparent);
  outline-offset: 3px;
}

.storefront-page .smart-offers .offer-card.product-card.offer-card--text {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "body";
}

.storefront-page .smart-offers .offer-card.product-card .offer-card__thumb {
  grid-area: thumb;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 14px 14px 0 0;
  object-fit: cover;
  background: var(--sf-color-surface-muted);
}

.storefront-page .smart-offers .offer-card.product-card.offer-card--text .offer-card__thumb {
  display: none;
}

.storefront-page .smart-offers .offer-card.product-card .offer-card__body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  justify-self: stretch;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: none;
  min-height: 214px;
  box-sizing: border-box;
  padding: 12px;
  text-align: left;
}

.storefront-page .smart-offers .offer-card.product-card.offer-card--with-image .offer-card__body {
  min-height: 188px;
}

.storefront-page .smart-offers .offer-card.product-card .offer-card__body h3 {
  display: -webkit-box;
  width: 100%;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--sf-color-text);
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.storefront-page .smart-offers .offer-card.product-card .offer-card__body .detail-copy {
  width: 100%;
  margin: 0;
  color: var(--sf-color-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.storefront-page .smart-offers .offer-card.product-card .offer-key-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.storefront-page .smart-offers .offer-card.product-card .offer-key-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--sf-color-accent) 18%, var(--sf-color-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--sf-color-accent) 6%, var(--sf-color-surface));
  color: color-mix(in srgb, var(--sf-color-text) 86%, var(--sf-color-text-muted));
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.storefront-page .smart-offers .offer-card.product-card .offer-key-points li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--sf-color-accent);
}

.storefront-page .smart-offers .offer-card.product-card .card-price {
  margin-top: 0;
  color: var(--sf-color-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.storefront-page .smart-offers .offer-card.product-card .offer-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin-top: auto;
}

.storefront-page .smart-offers .offer-card.product-card .offer-card__footer > * {
  align-self: center;
}

.storefront-page .smart-offers .offer-card.product-card .offer-card__cta {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
  min-height: 34px;
  margin: 0;
  border: 1px solid var(--sf-color-accent);
  padding: 6px 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--sf-color-accent);
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.storefront-page .smart-offers .offer-card.product-card .offer-card__cta-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.storefront-page .smart-offers .offer-card.product-card .offer-card__cta-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 14px;
  height: 14px;
}

.storefront-page .smart-offers .offer-card.product-card .offer-card__cta-icon svg,
.storefront-page .smart-offers .offer-card.product-card .offer-featured-icon svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.storefront-page .smart-offers .offer-card.product-card .offer-featured-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  left: auto;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  max-width: 28px;
  padding: 0;
  border-color: color-mix(in srgb, var(--sf-color-accent) 24%, var(--sf-color-border));
  background: color-mix(in srgb, var(--sf-color-surface) 92%, transparent);
  color: var(--sf-color-text);
  line-height: 1;
  backdrop-filter: blur(10px);
}

.storefront-page .smart-offers .offer-card.product-card .offer-featured-icon svg {
  width: 15px;
  height: 15px;
}

.storefront-page .smart-offers .offer-card.product-card.offer-card--featured .offer-card__thumb {
  filter: saturate(1.04);
}

@media (max-width: 768px) {
  .storefront-page .smart-offers .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }

  .storefront-page .smart-offers .offer-card.product-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 0;
  }

  .storefront-page .smart-offers .offer-card.product-card.offer-card--text {
    grid-template-columns: minmax(0, 1fr);
  }

  .storefront-page .smart-offers .offer-card.product-card .offer-card__thumb {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .storefront-page .smart-offers .offer-card.product-card .offer-card__body {
    min-height: 0;
    padding: 11px;
  }

  .storefront-page .smart-offers .offer-card.product-card .offer-card__body h3 {
    font-size: 14px;
  }

  .storefront-page .smart-offers .offer-card.product-card .offer-card__body .detail-copy {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12px;
    line-height: 1.4;
  }

  .storefront-page .smart-offers .offer-card.product-card .offer-key-points li {
    font-size: 11px;
  }

  .storefront-page .smart-offers .offer-card.product-card .offer-card__cta {
    width: auto;
    min-width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 6px 9px;
    font-size: 11px;
  }

  .storefront-page .smart-offers .offer-card.product-card .offer-featured-icon {
    top: 7px;
    right: 7px;
  }
}

@media (max-width: 420px) {
  .storefront-page .smart-offers .card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .storefront-page .smart-offers .offer-card.product-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    border-radius: 12px;
  }

  .storefront-page .smart-offers .offer-card.product-card.offer-card--text {
    grid-template-columns: minmax(0, 1fr);
  }

  .storefront-page .smart-offers .offer-card.product-card .offer-card__thumb {
    width: 100%;
    height: auto;
    min-height: 0;
    border-radius: 12px 12px 0 0;
  }

  .storefront-page .smart-offers .offer-card.product-card .offer-key-points {
    gap: 4px;
  }

  .storefront-page .smart-offers .offer-card.product-card .offer-key-points li {
    padding-inline: 7px;
  }

  .storefront-page .smart-offers .offer-card.product-card .card-price {
    font-size: 13px;
  }

  .storefront-page .smart-offers .offer-card.product-card .offer-featured-icon {
    top: 6px;
    right: 6px;
  }
}
