/* Published designs and the admin preview share these styles and the same renderer. */
.has-page-design, .designed-storefront { background: var(--design-background, #fff7f5); color: var(--design-text, #39131f); font-family: var(--design-body-font, 'DM Sans', Arial, sans-serif); }
.st-storefront.has-page-design :is(h1, h2, h3, h4, h5, h6), .designed-storefront :is(h1, h2, h3, h4, h5, h6) { font-family: var(--design-heading-font, 'DM Sans', Arial, sans-serif); color: var(--design-text, #39131f); }
.has-page-design :is(button, input, select, textarea), .designed-storefront :is(button, input, select, textarea) { font-family: inherit; }
.st-storefront.has-page-design .page-shell { width: min(var(--design-width, 1160px), calc(100% - 80px)); }
.st-storefront.has-page-design .button, .st-storefront.has-page-design .product-card-action, .designed-storefront .button { border-radius: var(--design-button-radius, 999px); }
.st-storefront.has-page-design :is(.button-primary, .button-dark, .product-card-action) { background: var(--design-primary); border-color: var(--design-primary); color: var(--design-on-primary); }
.st-storefront.has-page-design :is(.button-primary, .button-dark, .product-card-action):hover { filter: brightness(.94); }
.st-storefront.has-page-design .product-card-action:disabled { background: var(--design-accent); color: var(--design-on-accent); border-color: var(--line); filter: none; }
.st-storefront.has-page-design .st-header { background: var(--design-background); color: var(--design-text); }
.st-storefront.has-page-design .st-footer { background: var(--design-surface); color: var(--design-text); }
.st-storefront.has-page-design .wordmark { color: var(--design-text); font-family: var(--design-heading-font); max-width: 260px; white-space: normal; overflow-wrap: anywhere; }
.st-storefront.has-page-design .wordmark small { font-family: var(--design-body-font); color: var(--design-muted); }
.st-storefront.has-page-design .st-desktop-nav { min-width: 0; flex-wrap: wrap; column-gap: 20px; row-gap: 0; white-space: normal; }
.st-storefront.has-page-design .st-desktop-nav a { max-width: 170px; overflow-wrap: anywhere; text-align: center; }
.st-storefront.has-page-design .st-bag-label { max-width: 120px; white-space: normal; overflow-wrap: anywhere; }
.st-storefront.has-page-design .st-masthead .bag-link { border-radius: var(--design-button-radius); }
.st-storefront.has-page-design .st-masthead .icon-button:hover { background: var(--design-accent); color: var(--design-on-accent); }
.st-storefront.has-page-design .announcement-bar { background: var(--design-primary); color: var(--design-on-primary); }
.st-storefront.has-page-design .st-announcement a:hover { color: inherit; }
.st-storefront.has-page-design .st-announcement-message { border-right-color: currentColor; overflow-wrap: anywhere; }
.st-storefront.has-page-design .st-search-panel { background: var(--design-surface); color: var(--design-text); }
.st-storefront.has-page-design .mobile-nav a { overflow-wrap: anywhere; }
.st-storefront.has-page-design .catalog-intro { border-radius: var(--design-radius); background: var(--design-accent); color: var(--design-on-accent); }
.st-storefront.has-page-design .catalog-intro :is(h1, p, .eyebrow) { color: inherit; }
.st-storefront.has-page-design .st-footer .footer-grid h3 { font-family: var(--design-heading-font); color: var(--design-text); }
.st-storefront.has-page-design .st-footer .footer-grid > div > a:not(.wordmark), .st-storefront.has-page-design .st-footer :is(.footer-brand p, .footer-location, .footer-bottom, .footer-shipping) { color: var(--design-muted); overflow-wrap: anywhere; }
.st-storefront.has-page-design .shop-product-grid { grid-template-columns: repeat(var(--design-columns, 4), minmax(0, 1fr)); }
.has-page-design.design-heading-serif :is(h1, h2, h3, h4, h5, h6), .designed-storefront.design-heading-serif :is(h1, h2, h3, h4, h5, h6) { font-weight: 500; letter-spacing: -.035em; }
.has-page-design.design-cards-bordered .product-card, .designed-storefront.design-cards-bordered .product-card { border: 1px solid var(--line); border-radius: var(--design-radius); padding: 12px; background: var(--design-surface); }
.has-page-design.design-cards-elevated .product-card, .designed-storefront.design-cards-elevated .product-card { border-radius: var(--design-radius); padding: 12px; background: var(--design-surface); box-shadow: 0 8px 30px color-mix(in srgb, var(--design-text) 8%, transparent); }
.has-page-design .product-image-wrap { border-radius: var(--design-radius); }
.st-storefront.has-page-design .product-image-wrap { background: var(--design-accent); }
.st-storefront.has-page-design .product-card:nth-child(n) .product-image-wrap { background: var(--design-accent); }
.st-storefront.has-page-design .product-card :is(.product-price, .product-meta) { color: var(--design-primary); }
.st-storefront.has-page-design .product-card :is(.product-label, .favorite-button) { background: var(--design-surface); color: var(--design-text); }
.st-storefront.has-page-design .product-card :is(.sale-label, .group-product-label) { background: var(--design-accent); color: var(--design-on-accent); }

.designed-storefront { container: storefront-design / inline-size; min-width: 0; overflow: clip; padding: 1px 0; }
.designed-storefront[inert] { user-select: none; }
.designed-storefront .design-shell { width: min(var(--design-width, 1160px), calc(100% - 80px)); margin-inline: auto; }
.designed-storefront .design-section { margin-block: var(--design-space, 56px); scroll-margin-top: 30px; }
.designed-storefront .design-eyebrow { display: block; margin-bottom: 18px; color: var(--design-primary); font-size: 11px; font-weight: 700; letter-spacing: .15em; line-height: 1.7; text-transform: uppercase; overflow-wrap: anywhere; }
.designed-storefront .design-body { margin: 18px 0 0; max-width: 64ch; color: var(--design-muted); font-size: 16px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.designed-storefront .design-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.designed-storefront .design-section-heading h2 { margin: 0; font-size: clamp(26px, 3.6cqi, 40px); font-weight: 650; letter-spacing: -.045em; line-height: 1.2; overflow-wrap: anywhere; }
.designed-storefront .design-section-heading h2 span { color: var(--design-primary); }
.designed-storefront .design-section-heading .design-eyebrow { margin-bottom: 10px; }
.designed-storefront .design-section-heading .design-body { font-size: 15px; margin-top: 12px; }
.designed-storefront .design-text-link { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding-block: 8px; color: var(--design-primary); font-size: 13px; line-height: 1.5; font-weight: 650; text-decoration: none; }
.designed-storefront .design-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.designed-storefront :is(a, button):focus-visible { outline: 2px solid var(--design-primary); outline-offset: 5px; }
.designed-storefront :is(.design-hero, .design-story, .design-banner) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5cqi, 70px); }
.designed-storefront .design-hero { padding-top: 8px; }
.designed-storefront .design-editorial-copy { min-width: 0; }
.designed-storefront .design-editorial-title { margin: 0; font-size: clamp(36px, 5.6cqi, 68px); font-weight: 700; letter-spacing: -.055em; line-height: 1.08; overflow-wrap: anywhere; text-wrap: balance; }
.designed-storefront .design-editorial-title span { color: var(--design-primary); }
.designed-storefront .design-hero .design-editorial-title span { display: block; }
.designed-storefront :is(.design-story, .design-banner) .design-editorial-title { font-size: clamp(28px, 4.2cqi, 46px); }
.designed-storefront .design-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.designed-storefront .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 13px 24px; border: 1px solid var(--design-primary); font-size: 13px; line-height: 1.5; font-weight: 650; text-decoration: none; text-align: center; white-space: normal; }
.designed-storefront .button-primary { background: var(--design-primary); color: var(--design-on-primary); }
.designed-storefront .design-secondary-button { background: transparent; color: var(--design-primary); border-color: color-mix(in srgb, var(--design-primary) 55%, var(--design-background)); }
.designed-storefront .design-editorial-image { min-width: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--design-accent); }
.designed-storefront .design-hero .design-editorial-image { aspect-ratio: 1672 / 941; }
.designed-storefront .design-editorial-image img, .designed-storefront .design-category-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.designed-storefront .design-image-rounded { border-radius: var(--design-radius); }
.designed-storefront .design-image-arch { border-radius: 44% 44% var(--design-radius) var(--design-radius); }
.designed-storefront .design-image-square { border-radius: 0; }
.designed-storefront .design-image-contain img { object-fit: contain; }
.designed-storefront .design-image-left .design-editorial-image { grid-column: 1; grid-row: 1; }
.designed-storefront .design-image-left .design-editorial-copy { grid-column: 2; grid-row: 1; }
.designed-storefront .design-stacked { grid-template-columns: minmax(0, 1fr); text-align: center; }
.designed-storefront .design-stacked .design-editorial-copy { max-width: 800px; margin-inline: auto; }
.designed-storefront .design-stacked .design-body { margin-inline: auto; }
.designed-storefront .design-stacked .design-actions { justify-content: center; }
.designed-storefront .design-stacked .design-editorial-image { width: 100%; aspect-ratio: 16 / 9; }
.designed-storefront .design-no-image { grid-template-columns: minmax(0, 1fr); }
.designed-storefront .design-no-image .design-editorial-copy { grid-column: 1; }
.designed-storefront .design-banner { background: var(--design-accent); padding: clamp(24px, 4cqi, 48px); border-radius: var(--design-radius); }
.designed-storefront .design-banner .design-body { color: var(--design-on-accent); }
.designed-storefront .design-banner .design-editorial-title { color: var(--design-on-accent); }
.designed-storefront .design-banner .design-editorial-title span { color: var(--design-on-accent); }
.designed-storefront .design-banner .design-eyebrow { color: var(--design-on-accent); }
.designed-storefront .design-banner .design-secondary-button { color: var(--design-on-accent); border-color: currentColor; }
.designed-storefront .design-story-values { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; padding-top: 10px; text-align: start; }
.designed-storefront .design-value { padding-top: 20px; border-top: 1px solid var(--line); }
.designed-storefront .design-value-icon { display: inline-flex; color: var(--design-primary); margin-bottom: 15px; }
.designed-storefront .design-value h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; }
.designed-storefront .design-value p { margin: 0; color: var(--design-muted); line-height: 1.75; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.designed-storefront .design-value-image { display: block; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 18px; border-radius: var(--design-radius); object-fit: cover; }
.designed-storefront .design-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.designed-storefront .design-category { display: flex; flex-direction: column; min-width: 0; color: var(--design-text); text-decoration: none; background: var(--design-surface); border: 1px solid var(--line); border-radius: var(--design-radius); overflow: hidden; }
.designed-storefront a.design-category:hover { border-color: var(--design-primary); }
.designed-storefront .design-category-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--design-accent); }
.designed-storefront .design-category-copy { padding: 24px; }
.designed-storefront .design-category h3 { margin: 0; font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.designed-storefront .design-category p { margin: 10px 0 0; font-size: 14px; color: var(--design-muted); line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.designed-storefront .design-category-copy > span { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 26px; color: var(--design-primary); font-size: 12px; font-weight: 650; }
.designed-storefront .design-products-grid { grid-template-columns: repeat(var(--design-columns, 4), minmax(0, 1fr)); gap: 30px 24px; }
.designed-storefront .design-products-grid .product-card { min-width: 0; }
.designed-storefront .design-products-grid .product-image-wrap { border-radius: var(--design-radius); background: var(--design-accent); aspect-ratio: 1; }
.designed-storefront .design-products-grid .product-card h3 { font-size: 16px; line-height: 1.45; }
.designed-storefront .design-products-grid .product-card-copy { padding-top: 15px; }
.designed-storefront .design-benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 20px; }
.designed-storefront .design-benefit { padding: 26px; border-radius: var(--design-radius); border: 1px solid var(--line); background: var(--design-surface); }
.designed-storefront .design-benefit-icon { display: inline-flex; align-items: center; justify-content: center; padding: 12px; margin-bottom: 20px; color: var(--design-primary); border-radius: 50%; background: var(--design-accent); }
.designed-storefront .design-benefit > img { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--design-radius); margin-bottom: 20px; object-fit: cover; }
.designed-storefront .design-benefit h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.designed-storefront .design-benefit p { margin: 0; color: var(--design-muted); line-height: 1.75; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.designed-storefront .design-empty { padding: 36px 24px; border: 1px dashed var(--line); border-radius: var(--design-radius); color: var(--design-muted); text-align: center; font-size: 14px; line-height: 1.7; }
.designed-storefront .design-empty h3 { margin: 16px 0 10px; font-size: 20px; }
.designed-storefront .design-empty p { margin: 0; }
.designed-storefront .design-group-buys > .featured-group-buys { width: min(var(--design-width, 1160px), calc(100% - 80px)); margin: 0 auto; padding-top: 0; padding-bottom: 0; }
.designed-storefront .design-group-buys :is(.group-buy-invitation, .group-buy-steps, .featured-group-buy-card) { border-radius: var(--design-radius); }
.designed-storefront .design-group-buys .group-buy-invitation { background: var(--design-accent); color: var(--design-on-accent); }
.designed-storefront .design-group-buys :is(.group-buy-heading, .group-buy-heading em, .group-buy-eyebrow, .group-buy-intro p) { color: inherit; }
.designed-storefront .design-group-buys .group-buy-explore { background: var(--design-primary); color: var(--design-on-primary); border-color: var(--design-primary); border-radius: var(--design-button-radius); }
.designed-storefront .design-group-buys .group-buy-steps { background: var(--design-surface); }
.designed-storefront .design-group-buys .featured-group-buy-card { background: var(--design-surface); color: var(--design-text); }
.designed-storefront .design-group-buys .featured-group-buy-cart { background: var(--design-primary); color: var(--design-on-primary); border-radius: var(--design-button-radius); }
.designed-storefront .design-group-buys :is(h2, h3) { font-family: var(--design-heading-font); }

@container storefront-design (max-width: 850px) {
    .designed-storefront .design-shell, .designed-storefront .design-group-buys > .featured-group-buys { width: calc(100% - 48px); }
    .designed-storefront :is(.design-hero, .design-story, .design-banner) { gap: 30px; }
    .designed-storefront .design-editorial-title { font-size: clamp(34px, 6.3cqi, 52px); }
    .designed-storefront .design-category-grid { gap: 14px; }
    .designed-storefront .design-category-copy { padding: 20px; }
    .designed-storefront .design-category h3 { font-size: 20px; }
    .designed-storefront .design-products-grid { gap: 24px 16px; }
    .designed-storefront .design-story-values { gap: 20px; }
    .designed-storefront .design-group-buys .featured-group-buy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container storefront-design (max-width: 620px) {
    .designed-storefront .design-shell, .designed-storefront .design-group-buys > .featured-group-buys { width: calc(100% - 36px); }
    .designed-storefront .design-section { margin-block: calc(var(--design-space) * .7); }
    .designed-storefront :is(.design-hero, .design-story, .design-banner) { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .designed-storefront .design-image-left .design-editorial-image, .designed-storefront .design-image-left .design-editorial-copy { grid-column: 1; grid-row: auto; }
    .designed-storefront .design-image-left .design-editorial-image { order: -1; }
    .designed-storefront .design-editorial-title { font-size: clamp(32px, 9cqi, 50px); }
    .designed-storefront :is(.design-story, .design-banner) .design-editorial-title { font-size: clamp(28px, 8cqi, 40px); }
    .designed-storefront .design-body { font-size: 15px; line-height: 1.75; }
    .designed-storefront .design-actions { margin-top: 24px; gap: 10px; }
    .designed-storefront .button { padding: 12px 20px; }
    .designed-storefront .design-section-heading { gap: 12px; align-items: start; flex-wrap: wrap; margin-bottom: 24px; }
    .designed-storefront .design-section-heading h2 { font-size: 28px; }
    .designed-storefront .design-section-heading .design-body { font-size: 14px; }
    .designed-storefront .design-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .designed-storefront .design-category-copy { padding: 18px 15px; }
    .designed-storefront .design-category h3 { font-size: 18px; }
    .designed-storefront .design-category-copy > span { margin-top: 20px; font-size: 11px; }
    .designed-storefront .design-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
    .designed-storefront .design-products-grid .product-card h3 { font-size: 14px; }
    .designed-storefront .product-card-action { font-size: 12px; padding: 10px 8px; gap: 6px; }
    .designed-storefront .design-story-values { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .designed-storefront .design-value { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; }
    .designed-storefront .design-value-icon { grid-column: 1; grid-row: 1 / 4; }
    .designed-storefront .design-value :is(h3, p, a) { grid-column: 2; }
    .designed-storefront .design-value-image { grid-column: 1 / -1; }
    .designed-storefront .design-value:has(.design-value-image) :is(h3, p, a) { grid-column: 1 / -1; }
    .designed-storefront .design-banner { padding: 26px 22px; }
    .designed-storefront .design-benefit-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .designed-storefront .design-benefit { padding: 24px; }
    .designed-storefront .design-group-buys .group-buy-invitation { flex-direction: column; align-items: start; padding: 26px 22px; gap: 24px; }
    .designed-storefront .design-group-buys .group-buy-heading { font-size: 36px; }
    .designed-storefront .design-group-buys .group-buy-steps { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 20px; }
    .designed-storefront .design-group-buys .group-buy-step-arrow { display: none; }
    .designed-storefront .design-group-buys .featured-group-buy-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 740px) {
    .st-storefront.has-page-design .page-shell { width: calc(100% - 36px); }
    .st-storefront.has-page-design .shop-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .st-storefront.has-page-design .wordmark { max-width: 160px; }
    .st-storefront.has-page-design .st-bag-label { max-width: 75px; }
}
@media (prefers-reduced-motion: reduce) {
    .designed-storefront *, .has-page-design .product-card-action { scroll-behavior: auto; transition: none; }
}
