/* Tiyak Product Detail + Seller Storefront — TYK-UI4 v0.21.0 */
/* TYK-UI4 — canonical product-detail and seller-storefront pages */
.entity-page {
  width: 100%;
  min-height: calc(100vh - var(--tyk-header-height));
  padding: clamp(1rem, 2.2vw, 2rem) var(--tyk-page-gutter) clamp(4.5rem, 8vw, 7rem);
  background: var(--tyk-ivory);
}
.entity-page > div {
  width: min(100%, var(--tyk-content-max));
  margin-inline: auto;
}
.entity-breadcrumbs {
  width: min(100%, var(--tyk-content-max));
  margin: 0 auto clamp(1rem, 2vw, 1.6rem);
  display: flex;
  align-items: center;
  gap: .55rem;
  overflow: hidden;
  color: var(--tyk-text-muted);
  font-size: .76rem;
  line-height: 1.3;
}
.entity-breadcrumbs a { color: var(--tyk-teal-800); font-weight: 750; text-decoration: none; }
.entity-breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.entity-breadcrumbs span[aria-current="page"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entity-page-loading {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr);
  gap: clamp(1rem, 3vw, 2.2rem);
}
.entity-page-loading__media,
.entity-page-loading__cover,
.entity-page-loading > div > span {
  display: block;
  border-radius: var(--tyk-radius-lg);
  background: linear-gradient(100deg, #ebe7dd 20%, #f7f3eb 38%, #ebe7dd 56%);
  background-size: 200% 100%;
  animation: entity-shimmer 1.3s linear infinite;
}
.entity-page-loading__media { min-height: 520px; }
.entity-page-loading > div { display: grid; align-content: start; gap: .9rem; padding: 1rem 0; }
.entity-page-loading > div > span:nth-child(1) { width: 62%; height: 38px; }
.entity-page-loading > div > span:nth-child(2) { width: 90%; height: 84px; }
.entity-page-loading > div > span:nth-child(3) { width: 46%; height: 52px; }
.entity-page-loading--storefront { display: block; min-height: 440px; }
.entity-page-loading__cover { min-height: 220px; margin-bottom: 1.2rem; }
.entity-page-loading--storefront > div { max-width: 520px; }
.entity-page-error {
  min-height: 55vh;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 3rem 1rem;
}
.entity-page-error > span { color: var(--tyk-danger); font-size: .74rem; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.entity-page-error h1 { max-width: 760px; margin: .8rem 0; font-size: clamp(2.1rem, 5vw, 4.5rem); line-height: .98; }
.entity-page-error p { max-width: 620px; margin: 0 0 1.4rem; color: var(--tyk-text-muted); }
@keyframes entity-shimmer { to { background-position-x: -200%; } }

.product-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(350px, .82fr);
  gap: clamp(1rem, 2.8vw, 2.6rem);
  align-items: start;
}
.product-detail-media { min-width: 0; }
.product-gallery {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: .8rem;
  min-width: 0;
}
.product-gallery__rail {
  display: grid;
  align-content: start;
  gap: .65rem;
  max-height: 655px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.product-gallery__rail button {
  width: 82px;
  height: 82px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--tyk-radius-md);
  background: var(--tyk-surface);
}
.product-gallery__rail button[aria-pressed="true"] { border-color: var(--tyk-teal-700); box-shadow: 0 0 0 2px var(--tyk-teal-100); }
.product-gallery__rail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery__stage {
  position: relative;
  min-height: clamp(440px, 48vw, 650px);
  overflow: hidden;
  border: 1px solid var(--tyk-border);
  border-radius: var(--tyk-radius-lg);
  background: #eeeae1;
}
.product-gallery__stage img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; display: block; }
.product-gallery__count {
  position: absolute;
  right: .85rem;
  bottom: .85rem;
  padding: .38rem .62rem;
  border-radius: var(--tyk-radius-pill);
  background: rgba(18,24,23,.78);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  backdrop-filter: blur(5px);
}
.product-gallery__empty {
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .4rem;
  border: 1px solid var(--tyk-border);
  border-radius: var(--tyk-radius-lg);
  background: var(--tyk-surface-warm);
  color: var(--tyk-text-muted);
  text-align: center;
}
.product-gallery__empty span { color: var(--tyk-ink); font-weight: 800; }
.product-purchase-card {
  position: sticky;
  top: calc(var(--tyk-header-height) + 1rem);
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  border: 1px solid var(--tyk-border);
  border-radius: var(--tyk-radius-xl);
  background: var(--tyk-surface);
  box-shadow: var(--tyk-shadow-card);
}
.product-purchase-card__heading .eyebrow { display: block; margin-bottom: .65rem; }
.product-purchase-card__heading h1 {
  max-width: none;
  margin: 0 0 .65rem;
  font-family: var(--tyk-font-display);
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.product-purchase-card__heading p,
.product-offer-note { margin: 0; color: var(--tyk-text-muted); line-height: 1.55; }
.product-price { display: block; color: var(--tyk-teal-950); font-family: var(--tyk-font-display); font-size: clamp(2rem, 3vw, 2.75rem); letter-spacing: -.035em; }
.product-offer-note { font-size: .82rem; }
.product-primary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.product-primary-actions .primary-button { grid-column: 1 / -1; }
.product-primary-actions button { min-height: var(--tyk-touch-target-min); }
.product-primary-actions .badge { grid-column: 1 / -1; justify-self: start; }
.product-trust-card {
  margin-top: .2rem;
  padding: 1rem;
  border: 1px solid #bcd8d2;
  border-radius: var(--tyk-radius-lg);
  background: var(--tyk-teal-050);
}
.product-trust-card__head { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .75rem; }
.product-trust-card__head p { margin: .15rem 0 0; color: var(--tyk-text-muted); font-size: .76rem; line-height: 1.45; }
.product-trust-card__shield,
.product-trust-item__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tyk-teal-800);
  color: #fff;
  font-weight: 900;
}
.product-trust-card__shield { width: 34px; height: 34px; }
.product-trust-card__items { display: grid; gap: .05rem; border-top: 1px solid #cde0dc; border-bottom: 1px solid #cde0dc; padding: .45rem 0; margin-bottom: .7rem; }
.product-trust-item { display: flex; gap: .6rem; padding: .55rem 0; }
.product-trust-item__icon { width: 22px; height: 22px; margin-top: .05rem; font-size: .68rem; }
.product-trust-item__icon--neutral { background: var(--tyk-stone); color: var(--tyk-ink); }
.product-trust-item strong { font-size: .78rem; }
.product-trust-item p { margin: .15rem 0 0; color: var(--tyk-text-muted); font-size: .71rem; line-height: 1.45; }
.product-trust-card > a { color: var(--tyk-teal-800); font-size: .73rem; font-weight: 800; text-decoration: none; }
.product-seller-card {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) auto;
  gap: .7rem;
  align-items: center;
  padding: .75rem;
  border: 1px solid var(--tyk-border);
  border-radius: var(--tyk-radius-lg);
  background: var(--tyk-surface-warm);
  color: var(--tyk-ink);
  text-align: left;
}
.product-seller-card:hover { border-color: var(--tyk-teal-600); }
.product-seller-card__avatar,
.storefront-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tyk-teal-900);
  color: #fff;
  font-family: var(--tyk-font-display);
  font-weight: 850;
}
.product-seller-card__avatar { width: 46px; height: 46px; }
.product-seller-card__copy { min-width: 0; display: grid; gap: .1rem; }
.product-seller-card__copy small { color: var(--tyk-text-soft); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.product-seller-card__copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-seller-card__copy > span { color: var(--tyk-text-muted); font-size: .72rem; }
.product-seller-card__arrow { color: var(--tyk-teal-800); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.product-detail-lower {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.2rem, 3vw, 2.4rem);
}
.product-info-card,
.product-safety-panel {
  padding: clamp(1.15rem, 2.4vw, 1.8rem);
  border: 1px solid var(--tyk-border);
  border-radius: var(--tyk-radius-lg);
  background: var(--tyk-surface);
}
.product-info-card__heading h2 { margin: .35rem 0 1rem; font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.08; }
.product-fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin: 0; border-top: 1px solid var(--tyk-border); }
.product-fact-grid > div { padding: .8rem .7rem .8rem 0; border-bottom: 1px solid var(--tyk-border); }
.product-fact-grid dt { color: var(--tyk-text-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.product-fact-grid dd { margin: .25rem 0 0; font-weight: 760; overflow-wrap: anywhere; }
.product-description { margin: 0; color: #3d4744; line-height: 1.72; white-space: pre-wrap; }
.product-fulfillment-list { display: grid; gap: .7rem; }
.product-fulfillment-list article { display: flex; gap: .65rem; align-items: flex-start; padding: .75rem; border-radius: var(--tyk-radius-md); background: var(--tyk-teal-050); }
.product-fulfillment-list article > span { color: var(--tyk-teal-800); font-weight: 900; }
.product-fulfillment-list p { margin: .12rem 0 0; color: var(--tyk-text-muted); font-size: .78rem; line-height: 1.5; }
.product-safety-panel { grid-column: 1 / -1; display: flex; gap: 1rem; align-items: baseline; border-color: #e0c99f; background: #fff9ed; }
.product-safety-panel strong { color: #7b5520; white-space: nowrap; }
.product-safety-panel p { margin: 0; color: #665c4f; line-height: 1.55; font-size: .82rem; }

.storefront-hero {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  border-radius: var(--tyk-radius-xl);
  background: linear-gradient(128deg, var(--tyk-teal-950), var(--tyk-teal-700));
  color: #fff;
  box-shadow: var(--tyk-shadow-card);
}
.storefront-hero__pattern {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image: radial-gradient(circle at 18% 28%, rgba(255,255,255,.38) 0 2px, transparent 2.5px), linear-gradient(120deg, transparent 55%, rgba(255,255,255,.11));
  background-size: 34px 34px, auto;
  pointer-events: none;
}
.storefront-hero__identity,
.storefront-hero__actions { position: relative; z-index: 1; }
.storefront-hero__identity { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.storefront-avatar { width: 86px; height: 86px; flex: 0 0 auto; border: 3px solid rgba(255,255,255,.65); background: #fff; color: var(--tyk-teal-900); font-size: 1.5rem; }
.storefront-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.storefront-name-row h1 { max-width: none; margin: 0; color: #fff; font-size: clamp(2rem, 4.3vw, 4.2rem); line-height: .98; }
.storefront-hero__identity p { margin: .55rem 0 0; color: rgba(255,255,255,.8); }
.storefront-verified,
.storefront-own-label {
  display: inline-flex;
  align-items: center;
  padding: .38rem .65rem;
  border-radius: var(--tyk-radius-pill);
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.34);
  color: #fff;
  font-size: .7rem;
  font-weight: 850;
}
.storefront-hero__actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.storefront-hero__actions .secondary-button { border-color: rgba(255,255,255,.72); color: #fff; background: transparent; }
.storefront-hero__actions .primary-button { background: #fff; color: var(--tyk-teal-900); }
.storefront-follow-button[data-following="true"] { background: rgba(255,255,255,.14); }
.storefront-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  margin: 1rem 0 0;
  border: 1px solid var(--tyk-border);
  border-radius: var(--tyk-radius-lg);
  overflow: hidden;
  background: var(--tyk-surface);
}
.storefront-stats > div { min-height: 88px; display: grid; place-content: center; gap: .15rem; padding: .85rem; text-align: center; border-right: 1px solid var(--tyk-border); }
.storefront-stats > div:last-child { border-right: 0; }
.storefront-stats strong { color: var(--tyk-teal-950); font-family: var(--tyk-font-display); font-size: 1.45rem; }
.storefront-stats span { color: var(--tyk-text-muted); font-size: .7rem; }
.storefront-tabs {
  display: flex;
  gap: .25rem;
  margin: 1.2rem 0 0;
  border-bottom: 1px solid var(--tyk-border);
  overflow-x: auto;
}
.storefront-tabs button {
  min-height: 46px;
  flex: 0 0 auto;
  padding: .7rem 1rem;
  border-radius: var(--tyk-radius-md) var(--tyk-radius-md) 0 0;
  background: transparent;
  color: var(--tyk-text-muted);
  font-size: .8rem;
}
.storefront-tabs button[aria-selected="true"] { color: var(--tyk-teal-900); background: var(--tyk-teal-050); box-shadow: inset 0 -2px 0 var(--tyk-teal-700); }
.storefront-tab-panel { padding-top: 1.15rem; }
.storefront-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: .8rem; }
.storefront-toolbar h2 { margin: 0; font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.storefront-toolbar p { margin: .3rem 0 0; color: var(--tyk-text-muted); font-size: .8rem; }
.storefront-toolbar > span { color: var(--tyk-teal-800); font-size: .72rem; font-weight: 800; }
.storefront-listings { margin-top: 0; grid-template-columns: repeat(4, minmax(0,1fr)); }
.storefront-load-more { display: flex; justify-content: center; padding: 1.4rem 0 .3rem; }
.storefront-empty { grid-column: 1/-1; padding: 2rem; border: 1px dashed var(--tyk-border-strong); border-radius: var(--tyk-radius-lg); color: var(--tyk-text-muted); text-align: center; }
.storefront-reviews-layout { display: grid; grid-template-columns: minmax(230px,.32fr) minmax(0,.68fr); gap: 1rem; align-items: start; }
.storefront-rating-summary,
.storefront-review-card,
.storefront-about-grid > article {
  border: 1px solid var(--tyk-border);
  border-radius: var(--tyk-radius-lg);
  background: var(--tyk-surface);
  box-shadow: var(--tyk-shadow-card);
}
.storefront-rating-summary { position: sticky; top: calc(var(--tyk-header-height) + 1rem); padding: 1.2rem; }
.storefront-rating-summary > strong { display: block; color: var(--tyk-teal-950); font-family: var(--tyk-font-display); font-size: 3rem; line-height: 1; }
.storefront-rating-summary > span { display: block; margin: .25rem 0 1rem; color: var(--tyk-text-muted); font-size: .75rem; }
.storefront-rating-row { display: grid; grid-template-columns: 28px minmax(0,1fr) 28px; gap: .45rem; align-items: center; margin: .45rem 0; font-size: .68rem; color: var(--tyk-text-muted); }
.storefront-rating-row > span:nth-child(2) { height: 6px; overflow: hidden; border-radius: var(--tyk-radius-pill); background: var(--tyk-ivory-deep); }
.storefront-rating-row i { display: block; height: 100%; border-radius: inherit; background: var(--tyk-proof-gold); }
.storefront-no-reviews { margin: 1rem 0 0; color: var(--tyk-text-muted); font-size: .75rem; line-height: 1.5; }
.storefront-review-list { display: grid; gap: .75rem; }
.storefront-review-card { padding: 1rem 1.1rem; }
.storefront-review-card__head { display: flex; justify-content: space-between; gap: 1rem; }
.storefront-review-card__head span { color: #9b7126; letter-spacing: .02em; }
.storefront-review-card p { color: #394541; line-height: 1.58; }
.storefront-review-card small { color: var(--tyk-text-muted); }
.storefront-about-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.storefront-about-grid > article { padding: clamp(1.1rem, 2.5vw, 1.7rem); }
.storefront-about-grid h2 { margin: .4rem 0 .8rem; font-size: clamp(1.65rem, 2.5vw, 2.3rem); }
.storefront-about-grid p { color: var(--tyk-text-muted); line-height: 1.65; }
.storefront-about-grid dl { margin: 1.1rem 0 0; border-top: 1px solid var(--tyk-border); }
.storefront-about-grid dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--tyk-border); }
.storefront-about-grid dt { color: var(--tyk-text-muted); }
.storefront-about-grid dd { margin: 0; text-align: right; font-weight: 750; }
.storefront-policy-card { background: var(--tyk-teal-050) !important; border-color: #c6ded9 !important; }
.storefront-policy-card a { color: var(--tyk-teal-800); font-weight: 800; text-decoration: none; }
.storefront-confidence-banner {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--tyk-radius-lg);
  background: var(--tyk-teal-950);
  color: #fff;
}
.storefront-confidence-banner > span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: rgba(255,255,255,.16); font-weight: 900; }
.storefront-confidence-banner p { margin: .2rem 0 0; color: rgba(255,255,255,.76); font-size: .78rem; line-height: 1.5; }

@media (max-width: 1100px) {
  .storefront-listings { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .entity-page-loading { grid-template-columns: 1fr; }
  .product-detail-shell { grid-template-columns: 1fr; }
  .product-purchase-card { position: static; }
  .product-detail-lower { grid-template-columns: 1fr; }
  .product-safety-panel { grid-column: auto; }
  .storefront-hero { align-items: flex-start; flex-direction: column; }
  .storefront-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .storefront-stats > div { border-bottom: 1px solid var(--tyk-border); }
  .storefront-stats > div:nth-child(2n) { border-right: 0; }
  .storefront-stats > div:nth-last-child(-n+2) { border-bottom: 0; }
  .storefront-listings { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .storefront-reviews-layout,
  .storefront-about-grid { grid-template-columns: 1fr; }
  .storefront-rating-summary { position: static; }
}
@media (max-width: 640px) {
  .entity-page { padding-inline: .85rem; }
  .entity-breadcrumbs { font-size: .68rem; }
  .product-gallery { grid-template-columns: 1fr; }
  .product-gallery__rail { grid-row: 2; display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: .2rem; }
  .product-gallery__rail button { flex: 0 0 66px; width: 66px; height: 66px; }
  .product-gallery__stage { min-height: min(108vw, 490px); }
  .product-purchase-card { padding: 1rem; }
  .product-purchase-card__heading h1 { font-size: clamp(1.8rem, 9vw, 2.65rem); }
  .product-primary-actions { grid-template-columns: 1fr; }
  .product-primary-actions .primary-button { grid-column: auto; }
  .product-seller-card { grid-template-columns: 42px minmax(0,1fr); }
  .product-seller-card__avatar { width: 42px; height: 42px; }
  .product-seller-card__arrow { grid-column: 2; }
  .product-fact-grid { grid-template-columns: 1fr; }
  .product-safety-panel { display: grid; gap: .35rem; }
  .product-safety-panel strong { white-space: normal; }
  .storefront-hero { min-height: 300px; padding: 1rem; }
  .storefront-hero__identity { align-items: flex-start; }
  .storefront-avatar { width: 66px; height: 66px; font-size: 1.1rem; }
  .storefront-name-row h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .storefront-hero__actions { width: 100%; }
  .storefront-hero__actions button { flex: 1 1 120px; }
  .storefront-stats { border-radius: var(--tyk-radius-md); }
  .storefront-stats > div { min-height: 76px; }
  .storefront-tabs { margin-top: .9rem; }
  .storefront-listings { grid-template-columns: 1fr; }
  .storefront-toolbar { align-items: flex-start; }
  .storefront-about-grid dl > div { display: grid; gap: .2rem; }
  .storefront-about-grid dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .entity-page-loading__media,
  .entity-page-loading__cover,
  .entity-page-loading > div > span { animation: none; }
}


/* TYK-UI9 exact acceptance breakpoints */
@media (max-width: 768px) {
  .product-detail-shell { gap: .9rem; }
  .product-gallery__stage { border-radius: .8rem; }
  .product-purchase-card { border-radius: .8rem; }
  .storefront-tabs { overflow-x: auto; scrollbar-width: none; }
  .storefront-tabs::-webkit-scrollbar { display: none; }
  .storefront-tabs button { flex: 0 0 auto; min-height: 44px; }
}
@media (max-width: 390px) {
  .entity-breadcrumbs { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .product-gallery__stage { min-height: 320px; }
  .product-purchase-card__heading h1 { font-size: 1.75rem; }
  .storefront-hero__identity { display: grid; grid-template-columns: 58px minmax(0,1fr); }
  .storefront-avatar { width: 58px; height: 58px; }
  .storefront-stats { grid-template-columns: 1fr 1fr; }
}

/* TYK-CONV3 — Product detail + seller storefront convergence */
body[data-route="listing"] .entity-page,
body[data-route="storefront"] .entity-page {
  max-width: 1240px;
}

.product-detail-shell {
  grid-template-columns: minmax(0, 1.52fr) minmax(340px, .68fr);
  gap: clamp(1.25rem, 3vw, 2.4rem);
  align-items: start;
}
.product-detail-media {
  min-width: 0;
  border-radius: var(--tyk-radius-xl);
}
.product-gallery {
  gap: .8rem;
}
.product-gallery__stage {
  min-height: clamp(430px, 51vw, 650px);
  border: 1px solid var(--tyk-border);
  border-radius: var(--tyk-radius-xl);
  background: #f7f4ed;
  box-shadow: 0 14px 35px rgba(18, 60, 56, .08);
}
.product-gallery__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(.5rem, 1.5vw, 1rem);
}
.product-gallery__rail button {
  border-radius: var(--tyk-radius-md);
  background: #fff;
}
.product-gallery__rail button[aria-pressed="true"] {
  border-color: var(--tyk-teal-700);
  box-shadow: 0 0 0 2px rgba(7, 91, 87, .12);
}
.product-purchase-card {
  position: sticky;
  top: calc(var(--tyk-header-height) + 1rem);
  padding: clamp(1.15rem, 2vw, 1.55rem);
  border: 1px solid var(--tyk-border);
  border-radius: var(--tyk-radius-xl);
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 42px rgba(18, 60, 56, .11);
}
.product-purchase-card__heading h1 {
  margin: .45rem 0 .5rem;
  font-size: clamp(1.75rem, 2.4vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.product-purchase-card__heading > p {
  color: var(--tyk-text-muted);
  font-size: .82rem;
}
.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .8rem;
  margin-top: 1rem;
}
.product-price {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  letter-spacing: -.035em;
}
.product-price-context {
  color: var(--tyk-text-muted);
  font-size: .72rem;
  white-space: nowrap;
}
.product-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .6rem;
  margin: 1rem 0;
}
.product-primary-actions .primary-button { grid-column: 1 / -1; min-height: 48px; font-size: .9rem; }
.product-primary-actions .secondary-button { min-height: 44px; }
.product-confidence-strip {
  display: grid;
  gap: .42rem;
  margin: .15rem 0 .9rem;
  padding: .75rem .8rem;
  border: 1px solid #d9e8e5;
  border-radius: var(--tyk-radius-md);
  background: var(--tyk-teal-050);
  color: var(--tyk-teal-900);
  font-size: .7rem;
  font-weight: 760;
}
.product-trust-card {
  margin-top: 0;
  border-radius: var(--tyk-radius-lg);
}
.product-trust-item p { line-height: 1.45; }
.product-seller-card {
  margin-top: .85rem;
  padding: .9rem;
  border-radius: var(--tyk-radius-lg);
  background: #fffdf8;
}
.product-seller-card__copy em {
  display: block;
  margin-top: .16rem;
  color: var(--tyk-text-muted);
  font-size: .65rem;
  font-style: normal;
  font-weight: 560;
}
.product-detail-lower {
  margin-top: clamp(1.5rem, 3vw, 2.6rem);
  gap: 1rem;
}
.product-info-card {
  box-shadow: 0 8px 24px rgba(18, 60, 56, .05);
}
.product-safety-panel {
  border-radius: var(--tyk-radius-lg);
}

.storefront-hero {
  min-height: 270px;
  padding: clamp(1.6rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 85% 18%, rgba(220,177,93,.18), transparent 31%),
    linear-gradient(128deg, var(--tyk-teal-950), var(--tyk-teal-700));
}
.storefront-name-row h1 {
  font-size: clamp(2rem, 4vw, 3.65rem);
  letter-spacing: -.035em;
}
.storefront-verified {
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
}
.storefront-proof-line {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.1rem;
  margin: .85rem 0;
  padding: .75rem 1rem;
  border: 1px solid #d9e8e5;
  border-radius: var(--tyk-radius-lg);
  background: var(--tyk-teal-050);
  color: var(--tyk-teal-900);
  font-size: .72rem;
  font-weight: 760;
}
.storefront-stats {
  overflow: hidden;
  border-radius: var(--tyk-radius-lg);
  box-shadow: 0 8px 24px rgba(18, 60, 56, .05);
}
.storefront-stats > div {
  min-height: 96px;
  background: #fff;
}
.storefront-stats strong { font-size: 1.55rem; }
.storefront-tabs {
  position: sticky;
  top: var(--tyk-header-height);
  z-index: 5;
  margin-top: .85rem;
  padding-top: .45rem;
  background: var(--tyk-bg);
}
.storefront-tabs button {
  min-height: 44px;
  padding-inline: 1rem;
  font-size: .78rem;
}
.storefront-listings { gap: .9rem; }
.storefront-toolbar { padding-top: .45rem; }
.storefront-confidence-banner {
  border-radius: var(--tyk-radius-lg);
}

@media (max-width: 980px) {
  .product-detail-shell { grid-template-columns: 1fr; }
  .product-purchase-card { position: static; }
  .product-gallery__stage { min-height: min(70vw, 620px); }
  .storefront-tabs { position: static; }
}

@media (max-width: 768px) {
  .product-detail-shell { gap: 1rem; }
  .product-gallery { grid-template-columns: 1fr; }
  .product-gallery__rail { order: 2; grid-auto-flow: column; grid-auto-columns: 70px; overflow-x: auto; }
  .product-gallery__stage { min-height: 62vw; }
  .product-primary-actions { grid-template-columns: 1fr; }
  .product-primary-actions .primary-button { grid-column: auto; }
  .storefront-hero { min-height: 235px; }
  .storefront-proof-line { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
  .product-purchase-card { padding: 1rem; border-radius: var(--tyk-radius-lg); }
  .product-gallery__stage { min-height: 86vw; }
  .product-price-row { align-items: flex-start; flex-direction: column; gap: .15rem; }
  .product-confidence-strip { font-size: .68rem; }
  .storefront-name-row h1 { font-size: 2rem; }
  .storefront-tabs { overflow-x: auto; justify-content: flex-start; }
  .storefront-tabs button { flex: 0 0 auto; }
}
