/* One continuous collection, with large signature pieces and quiet native motion. */
:root { --flow-radius: 26px; }
.header-shell { background: #f3ecd8ed; box-shadow: 0 1px 0 #183e2b0b; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.page-progress { display: none; position: absolute; inset: auto 0 -1px; height: 2px; pointer-events: none; background: var(--green); transform-origin: left; }
.hero { padding-block: clamp(48px, 7vw, 104px) clamp(64px, 9vw, 128px); gap: clamp(32px, 5vw, 80px); }
.hero h1 { font-size: clamp(56px, 6.2vw, 96px); letter-spacing: -.065em; line-height: 1.03; }
.hero-intro { font-size: 18px; line-height: 1.8; max-width: 35ch; }
.hero-art { min-height: 540px; margin-right: 0; }
.hero-photo { border-radius: 100px 26px 26px 26px; }
.hero-photo-caption { inset: auto 24px 24px; letter-spacing: .08em; }
.love-stamp { right: -14px; bottom: 38px; box-shadow: 0 8px 24px #183e2b0a; }
.hero-points { max-width: 37ch; }
.hero-points .small-coin { flex-shrink: 0; }
.shop-benefits { background: #f9f5e950; }
.benefits-inner { padding-block: 22px; }
.benefits-inner a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.benefits-inner a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer { flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.collection { padding-block: 88px 64px; }
.collection .section-heading { gap: 32px; margin-bottom: 32px; }
.collection .section-heading h2 { font-size: clamp(38px, 4.6vw, 66px); line-height: 1.08; }
.collection-intro { margin: 16px 0 0; max-width: 45ch; font-size: 16px; line-height: 1.75; color: var(--muted); }
.collection-toolbar { position: relative; top: auto; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 24px; padding-block: 20px; background: transparent; box-shadow: none; }
.collection-toolbar::before { display: none; }
.collection-toolbar > .favorites-filter { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 8px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 24px; background: transparent; color: var(--ink); font-size: 13px; transition: background .2s, color .2s; }
.collection-toolbar > .favorites-filter:hover { background: var(--paper-light); }
.collection-toolbar > .favorites-filter.selected { background: var(--ink); color: var(--paper-light); border-color: var(--ink); }
.collection-tools { margin-left: auto; width: auto; gap: 12px; }
.product-search input { width: 250px; border-radius: 24px; background: #f9f5e977; }
#product-sort { border-color: transparent; background-color: transparent; }
.collection-results { min-height: 72px; }
.collection-results { scroll-margin-top: calc(var(--header-height) + 16px); }
.collection-toolbar { scroll-margin-top: calc(var(--header-height) + 16px); }
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.product-card { container-type: normal; overflow: clip; border: 1px solid #183e2b0d; border-radius: var(--flow-radius); background: var(--paper-light); scroll-margin-top: calc(var(--header-height) + 24px); }
.product-card-copy { container-type: inline-size; display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 28px; }
.product-card .product-image { aspect-ratio: 1.08; border-radius: 0; }
.product-card .product-image:focus-visible { outline-offset: -6px; }
.product-card .product-image > .product-visual { width: 94%; }
.product-card .product-heading { margin-top: 0; }
.product-card .product-heading h3 { font-size: 22px; line-height: 1.35; min-height: 2.7em; letter-spacing: -.025em; }
.product-card .product-subtitle { margin-block: 12px 24px; font-size: 15px; line-height: 1.7; min-height: 3.4em; }
.product-card .product-bottom { gap: 20px; }
.product-card .product-cta { min-height: 50px; border-color: #183e2b33; border-radius: 8px; }
.product-card .stock-note { margin-top: 16px; }
.product-card .favorite-button { top: 18px; right: 18px; background: #f9f5e9e8; }
.product-card .product-badge { top: 18px; left: 18px; font-size: 11px; letter-spacing: .04em; }
.product-card--signature, .product-card--finale { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 540px; }
.product-card--signature .product-card-media, .product-card--finale .product-card-media { min-width: 0; display: grid; background: var(--product-bg); }
.product-card--signature .product-image, .product-card--finale .product-image { height: 100%; min-height: 100%; aspect-ratio: auto; }
.product-card--signature .product-image > .product-visual, .product-card--finale .product-image > .product-visual { width: 100%; max-width: 640px; }
.product-card--signature .product-card-copy, .product-card--finale .product-card-copy { justify-content: center; padding: clamp(28px, 4.2vw, 64px); }
.product-card--signature .product-heading h3, .product-card--finale .product-heading h3 { min-height: 0; max-width: 14ch; font-size: clamp(30px, 3.5vw, 48px); line-height: 1.13; letter-spacing: -.045em; }
.product-card--signature .product-subtitle, .product-card--finale .product-subtitle { min-height: 0; max-width: 34ch; font-size: 16px; line-height: 1.8; margin-block: 20px 28px; }
.product-card--signature .product-bottom, .product-card--finale .product-bottom { margin-top: 0; width: 100%; max-width: 340px; gap: 24px; }
.product-card--signature .product-cta { border-color: var(--ink); color: var(--paper-light); background: var(--ink); }
.product-card--signature .product-cta:hover { background: var(--green); }
.product-card--concept .product-image { aspect-ratio: 1; }
.product-card--concept .product-image > .product-visual { width: 100%; }
.product-card--concept .product-cta { border-color: var(--ink); color: var(--paper-light); background: var(--ink); }
.product-card--concept .product-cta:hover { background: var(--green); }
.product-card--reverse .product-card-media { grid-column: 2; grid-row: 1; }
.product-card--reverse .product-card-copy { grid-column: 1; grid-row: 1; }
.collection-continuation { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 170px; padding: 40px 20px 16px; text-align: center; }
.collection-continuation p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.load-more-products { display: inline-flex; align-items: center; gap: 24px; min-height: 48px; padding: 12px 22px; border: 1px solid var(--line); border-radius: 28px; color: var(--ink); background: transparent; font-size: 14px; font-weight: 600; }
.load-more-products:hover { background: var(--paper-light); border-color: var(--ink); }
.load-more-products > span { font-size: 20px; }
.collection-end-mark { font-size: 28px; color: var(--green); }
.collection-footnote { margin-top: 24px; }
.points-inner { padding-block: 100px; gap: 80px; }
.points-copy h2 { font-size: clamp(44px, 5.4vw, 78px); }
.points-card { border-radius: 16px; transform: rotate(1deg); padding-block: 44px; box-shadow: 8px 12px 0 #0c2b1d; }
.details { padding-block: 100px; }
.back-to-top { position: fixed; z-index: 25; right: max(24px, env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; min-height: 48px; padding: 12px 16px; border: 1px solid #183e2b26; border-radius: 28px; color: var(--ink); background: var(--paper-light); box-shadow: 0 4px 20px #183e2b12; font-size: 12px; font-weight: 600; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.back-to-top svg { flex: none; width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.back-to-filters { right: max(156px, calc(132px + env(safe-area-inset-right))); }
body:has(dialog[open]) .back-to-top { opacity: 0; visibility: hidden; pointer-events: none; }
.product-image > .product-visual { transition: transform .55s cubic-bezier(.2,.7,.25,1); }
@media (hover: hover) {
  .product-image:hover > .product-visual { transform: scale(1.025); }
  .back-to-top:hover { background: var(--ink); color: var(--paper-light); border-color: var(--ink); }
}
@media (prefers-reduced-motion: no-preference) {
  .product-cta:active, .favorite-button:active { transform: scale(.97); }
  .product-cta, .favorite-button { transition: background .18s, color .18s, transform .18s; }
}
@media (max-width: 1100px) {
  .hero-art { min-height: 430px; }
  .hero h1 { font-size: clamp(48px, 6.6vw, 72px); }
  .hero-intro { font-size: 16px; }
  .product-card--signature, .product-card--finale { min-height: 460px; }
  .collection-tools { width: auto; }
  .product-search input { width: 220px; }
  .product-card-copy { padding: 24px; }
}
@media (max-width: 760px) {
  :root { --flow-radius: 20px; }
  .product-dialog-info { display: flex; flex-direction: column; }
  #product-form { order: 1; }
  .product-feedback, .detail-cart-link { order: 2; }
  .product-facts, .product-fit-note { order: 3; }
  .product-production { order: 4; }
  .cart-dialog[open] { display: flex; flex-direction: column; height: var(--cart-viewport-height, 100dvh); max-height: 100dvh; overflow: clip; }
  .cart-header { position: relative; flex: 0 0 auto; padding-block: 16px; }
  .cart-header h2 { font-size: 32px; }
  .cart-header .eyebrow { margin-bottom: 4px; }
  .cart-header .dialog-close { top: 20px; }
  .cart-body { position: relative; display: block; min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: 20px; }
  .cart-mobile-bar { flex: 0 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 12px; padding: 13px 20px max(13px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper-light); box-shadow: 0 -8px 25px #183e2b06; }
  .cart-mobile-bar > div { display: grid; gap: 2px; }
  .cart-mobile-bar span, .cart-mobile-bar small { font-size: 12px; line-height: 1.5; color: var(--muted); }
  .cart-mobile-bar strong { font-size: 22px; line-height: 1.3; font-variant-numeric: tabular-nums; }
  .cart-mobile-bar .button { width: 100%; min-height: 51px; padding-inline: 14px; gap: 8px; }
  .cart-mobile-bar .button > span { color: inherit; font-size: 18px; }
  #demo-checkout { display: none; }
  .header-shell { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .back-to-top { right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); width: 46px; min-width: 46px; min-height: 46px; padding: 12px; }
  .back-to-top > span { display: none; }
  .back-to-filters { right: calc(72px + env(safe-area-inset-right)); width: auto; gap: 7px; padding-inline: 14px; }
  .back-to-filters > span { display: inline; }
  .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  #product-sort { font-size: 16px; }
  .hero { padding-block: 40px 64px; gap: 36px; }
  .hero h1 { font-size: clamp(44px, 10.6vw, 70px); }
  .hero-intro { font-size: 16px; }
  .hero-art { min-height: 0; aspect-ratio: 1.08; margin-right: 8px; }
  .hero-photo { border-radius: 72px 20px 20px 20px; }
  .love-stamp { right: -10px; }
  .benefits-inner { gap: 10px; padding-block: 20px; }
  .collection { padding-block: 56px 40px; }
  .collection .section-heading { margin-bottom: 24px; }
  .collection .section-heading h2 { font-size: clamp(36px, 8vw, 48px); }
  .collection-intro { font-size: 15px; }
  .collection-toolbar { flex-wrap: wrap; gap: 12px; padding-block: 16px; }
  .collection-toolbar > .favorites-filter { min-height: 44px; }
  .collection-tools { width: 100%; margin-left: 0; }
  .product-search input { width: 100%; }
  .collection-results { min-height: 64px; }
  .product-grid { gap: 24px; }
  .product-card--signature, .product-card--finale { min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .product-card--signature .product-card-media, .product-card--finale .product-card-media { grid-column: 1; grid-row: auto; }
  .product-card--signature .product-card-copy, .product-card--finale .product-card-copy { grid-column: 1; grid-row: auto; padding: 28px; }
  .product-card--signature .product-image, .product-card--finale .product-image { height: auto; min-height: 0; aspect-ratio: 1.12; }
  .product-card--signature .product-image > .product-visual, .product-card--finale .product-image > .product-visual { width: 88%; }
  .product-card--signature .product-heading h3, .product-card--finale .product-heading h3 { max-width: 18ch; font-size: 32px; }
  .product-card--signature .product-subtitle, .product-card--finale .product-subtitle { margin-block: 16px 24px; font-size: 15px; }
  .product-card--signature .product-bottom, .product-card--finale .product-bottom { max-width: none; gap: 20px; }
  .points-inner, .details { padding-block: 64px; gap: 40px; }
  .points-card { padding-block: 32px; }
}
@media (max-width: 480px) {
  .collection-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #product-sort { width: 100%; max-width: none; padding-inline: 16px 34px; border: 1px solid var(--line); border-radius: 24px; }
  .product-search, #product-sort { min-width: 0; }
}
@media (hover: none) {
  .product-image:hover > .product-visual { transform: none; }
  body:has(input:focus, textarea:focus, select:focus) .back-to-top { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (max-width: 620px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-card .product-heading h3 { min-height: 0; }
  .product-card .product-subtitle { min-height: 0; }
  .product-card .product-image { aspect-ratio: 1.08; }
  .product-card-copy, .product-card--signature .product-card-copy, .product-card--finale .product-card-copy { padding: 24px; }
}
@media (max-width: 370px) {
  .product-card-copy, .product-card--signature .product-card-copy, .product-card--finale .product-card-copy { padding: 20px; }
  .product-card--signature .product-heading h3, .product-card--finale .product-heading h3 { font-size: 29px; }
  .product-card .favorite-button { top: 12px; right: 12px; }
  .product-card .product-badge { top: 12px; left: 12px; font-size: 10px; }
  .collection-tools { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .page-progress { display: block; animation: reading-progress linear both; animation-timeline: scroll(root block); }
    @keyframes reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
  @supports (animation-timeline: view()) {
    @media (min-width: 900px) {
      .hero-art { animation: hero-drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
      @keyframes hero-drift { from { transform: translateY(0); } to { transform: translateY(24px); } }
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-progress { display: none; }
  .back-to-top { transition: none; transform: none; }
  .hero-art, .product-card, .product-image > .product-visual { animation: none !important; transition: none !important; transform: none !important; }
}
