/* The generated visual identity follows the store across shopping pages. */
body[data-store-visual] {
  --store-display: system-ui, sans-serif;
  --store-weight: 740;
  --store-tracking: -.045em;
  --store-radius: 12px;
  --store-button-radius: 9px;
  --store-gap: clamp(28px, 5vw, 68px);
  --store-card-gap: clamp(12px, 2vw, 24px);
  --store-hero-space: clamp(28px, 5vw, 68px);
  --store-canvas: #fff;
  --store-panel: #fff;
  --store-band: var(--wash);
  --store-band-text: var(--ink);
  --paper: var(--store-canvas);
  background: var(--store-canvas);
}
[data-store-visual][data-typography="serif"] {
  --store-display: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --store-weight: 500;
  --store-tracking: -.055em;
}
[data-store-visual][data-typography="poster"] {
  --store-display: Impact, 'Arial Narrow', 'Liberation Sans Narrow', system-ui, sans-serif;
  --store-weight: 600;
  --store-tracking: -.018em;
}
[data-store-visual][data-typography="mono"] {
  --store-display: 'Cascadia Mono', 'Courier New', monospace;
  --store-weight: 700;
  --store-tracking: -.055em;
}
[data-store-visual][data-surface="white"] { --store-band: #f4f5f5; }
[data-store-visual][data-surface="paper"] {
  --store-canvas: #faf5eb;
  --store-panel: #fffaf2;
  --store-band: #efe4d2;
}
[data-store-visual][data-surface="tinted"] {
  --store-canvas: var(--brand-paper);
  --store-panel: color-mix(in srgb, var(--wash) 35%, white);
  --store-band: color-mix(in srgb, var(--brand-accent) 23%, var(--wash));
}
[data-store-visual][data-surface="contrast"] {
  --store-band: var(--brand-strong);
  --store-band-text: #fff;
}
body[data-store-visual][data-store-palette] {
  --store-canvas: var(--brand-paper);
  --store-panel: var(--brand-paper);
}
[data-store-visual][data-store-palette]:not([data-surface="contrast"]) { --store-band: var(--wash); }
.shop-page[data-store-visual][data-store-palette] .shop-hero .primary {
  background: var(--brand-action);
  color: #fff;
  border-color: color-mix(in srgb, currentColor 26%, transparent);
}
[data-store-visual][data-edges="sharp"] { --store-radius: 0px; --store-button-radius: 0px; }
[data-store-visual][data-edges="round"] { --store-radius: 27px; --store-button-radius: 999px; }
[data-store-visual][data-spacing="compact"] {
  --store-gap: clamp(20px, 3vw, 44px);
  --store-card-gap: clamp(8px, 1.4vw, 16px);
  --store-hero-space: clamp(20px, 3vw, 42px);
}
[data-store-visual][data-spacing="open"] {
  --store-gap: clamp(40px, 7vw, 100px);
  --store-card-gap: clamp(16px, 3vw, 42px);
  --store-hero-space: clamp(36px, 7vw, 102px);
}
.shop-page[data-store-visual] .shop-name,
.shop-page[data-store-visual] #shop-main :is(h1, h2, .product h3, .guide-card h3, .lineup-heading) {
  font-family: var(--store-display);
  font-weight: var(--store-weight);
  letter-spacing: var(--store-tracking);
}
.shop-page[data-store-visual] #shop-main h1 { overflow-wrap: anywhere; }
.shop-page[data-store-visual][data-typography="poster"] .shop-hero h1 { text-transform: uppercase; }
.shop-page[data-store-visual] .announcement {
  background: var(--brand-action);
  letter-spacing: .06em;
}
.shop-page[data-store-visual] :is(.primary, .add-button, .filter-chip) { border-radius: var(--store-button-radius); }
.shop-page[data-store-visual] .primary { background: var(--brand-action); color: #fff; }
.shop-page[data-store-visual] .shop-footer {
  background: var(--store-band);
  color: var(--store-band-text);
  padding-block: clamp(28px, 5vw, 62px);
}
.shop-page[data-store-visual] .template-banner {
  --feature-background: var(--store-band);
  --feature-foreground: var(--store-band-text);
}
.shop-page[data-store-visual] :is(.template-banner, .template-comparison, .template-editorial-card, .guide-card, .guide-product-card, .collection-page .filters, .product-page .gallery-zoom) {
  border-radius: var(--store-radius);
}
.shop-page[data-store-visual] :is(.product, .guide-card, .guide-product-card) {
  border-radius: var(--store-radius);
}
.shop-page[data-store-visual] .guide-card { background: var(--store-panel); }
.shop-page[data-store-visual] :is(.product, .hero-art, .template-banner, .guide-product-card) :is(.product-art, .template-photo) {
  border-radius: var(--store-radius);
}
.shop-page[data-store-visual] .template-sections { gap: var(--store-gap); padding-block: var(--store-gap); }
.shop-page[data-store-visual] :is(.product-grid, .guide-grid) { gap: var(--store-card-gap); }
.shop-page[data-store-visual] .template-banner-text { grid-template-columns: minmax(0, 1fr); }
.shop-page[data-store-visual] .shop-hero-grid { padding-block: var(--store-hero-space); gap: var(--store-card-gap); }
.shop-page[data-store-visual] .shop-hero:not(.template-has-hero-art) .shop-intro { grid-area: auto; }
.shop-page[data-store-visual] .shop-hero:not(.template-has-hero-art) .shop-hero-grid {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}
.shop-page[data-store-visual]:not([data-generated-hero="cinematic"]) .shop-hero {
  background: var(--store-band);
  color: var(--store-band-text);
}
.shop-page[data-store-visual]:not([data-generated-hero="cinematic"]) .shop-hero :is(h1, .kicker, .return-link) {
  color: var(--store-band-text);
}
.shop-page[data-store-visual]:not([data-generated-hero="cinematic"]) .shop-intro > p:not(.kicker) {
  color: var(--store-band-text);
}
.shop-page[data-store-visual][data-generated-hero="centered"] .hero-art {
  justify-self: center;
  max-width: min(100%, 980px);
}
.shop-page[data-store-visual][data-generated-hero="centered"] .hero-art .template-photo { aspect-ratio: 2.35; }
.shop-page[data-store-visual][data-generated-hero="cinematic"] .hero-art .template-photo { border-radius: 0; }
.shop-page[data-store-visual][data-generated-hero="cinematic"] .shop-hero::after {
  background: linear-gradient(90deg, #111018e8, #111018ac 70%);
}
@media (max-width: 650px) {
  .shop-page[data-store-visual] { --store-card-gap: clamp(8px, 3vw, 15px); }
  .shop-page[data-store-visual][data-generated-hero="centered"] .hero-art .template-photo { aspect-ratio: 1.6; }
  .shop-page[data-store-visual][data-generated-hero="cinematic"] .shop-hero::after {
    background: linear-gradient(0deg, #111018ed, #111018ac);
  }
}

/* Homepage composition is separate from the editable order of the sections. */
.shop-page[data-home-layout="flow"] .template-sections { grid-template-columns: minmax(0, 1fr); }
.shop-page[data-home-layout="modular"] .template-sections {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(14px, 2.5vw, 32px);
}
.shop-page[data-home-layout="modular"] .template-sections > :is(.template-text, .store-resource-section, .template-banner) {
  padding: clamp(16px, 3vw, 34px);
  border-radius: var(--store-radius, 12px);
}
.shop-page[data-home-layout="modular"] .template-sections > :is(.template-text, .store-resource-section) {
  background: var(--store-panel, var(--paper));
}
.shop-page[data-home-layout="modular"] .template-banner { grid-template-columns: minmax(0, 1fr); }
.shop-page[data-home-layout="modular"] .template-banner :is(.template-photo, .template-art) { grid-row: 1; }
.shop-page[data-home-layout="modular"] .template-sections > :is(.template-lineup, .template-comparison, .template-lead-story) {
  grid-column: 1 / -1;
}
.shop-page[data-home-layout="modular"] .store-resource-section .guide-grid { grid-template-columns: minmax(0, 1fr); }

.shop-page[data-home-layout="journal"] .template-sections {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.shop-page[data-home-layout="journal"] .template-sections > * {
  margin: 0;
  padding-block: clamp(22px, 4vw, 54px);
}
.shop-page[data-home-layout="journal"] .template-sections > :is(.template-text, .store-resource-section) {
  max-width: none;
  text-align: start;
}
@media (min-width: 750px) {
  .shop-page[data-home-layout="modular"] .template-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-page[data-home-layout="journal"] .template-sections > :is(.template-text, .store-resource-section):has(> h2 + *) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    align-items: start;
    column-gap: clamp(20px, 5vw, 68px);
  }
  .shop-page[data-home-layout="journal"] .template-sections > :is(.template-text, .store-resource-section) > h2 {
    grid-column: 1;
    grid-row: 1 / span 3;
  }
  .shop-page[data-home-layout="journal"] .template-sections > :is(.template-text, .store-resource-section) > :not(h2) {
    grid-column: 2;
  }
}

/* Editorial sections alternate surfaces while catalog photo areas stay white. */
.shop-page[data-home-layout] .template-sections > .store-resource-section {
  color: var(--ink);
  background: #fff;
  border-radius: var(--store-radius, 14px);
  padding: clamp(20px, 4.5vw, 58px);
}
.shop-page[data-home-layout] .template-sections > .store-resource-section:is([data-resource-type="highlights"], [data-resource-type="guides"]) {
  background: var(--wash);
}
.shop-page[data-home-layout] .template-sections > .store-resource-section[data-resource-type="checklist"] {
  background: color-mix(in srgb, var(--wash) 65%, white);
}
.shop-page[data-home-layout="journal"] .template-sections > .store-resource-section + .store-resource-section {
  margin-block-start: clamp(14px, 2vw, 26px);
}
.shop-page[data-home-layout] .store-resource-section[data-resource-type="highlights"] .guide-card {
  background: #fff;
}
.store-resource-section > p { max-width: 65ch; }
.store-resource-section .resource-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.store-resource-section .resource-faq summary::-webkit-details-marker { display: none; }
.store-resource-section .resource-faq summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  margin-inline-end: 4px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.store-resource-section .resource-faq details[open] summary::after { transform: rotate(225deg); }

.resource-product-photo {
  display: block;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: var(--store-radius, 10px);
  background: #fff;
}
.resource-product-photo .supplier-photo { aspect-ratio: 4 / 3; }

.home-product-shelf { grid-column: 1 / -1; min-width: 0; }
.home-product-shelf .lineup-heading {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
}
.home-product-shelf .lineup-heading :is(h2, .return-link) { margin: 0; }
.shop-page .home-product-shelf .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .shop-page .home-product-shelf .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.store-section-blocks {
  grid-column: 1 / -1;
  display: grid;
  gap: clamp(12px, 2.4vw, 26px);
  min-width: 0;
  margin-top: clamp(14px, 2.5vw, 30px);
}
.store-section-blocks h3 { margin: 0 0 5px; color: inherit; }
.store-section-blocks .store-content-text p { margin: 0; max-width: 65ch; white-space: pre-line; overflow-wrap: anywhere; }
.store-content-image {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--store-radius, 10px);
}
