/* Storefront typography, surfaces and spacing. The catalog and detail views share these tokens. */
:root {
    --ink: #202320;
    --paper: #fff;
    --muted: #5d625c;
    --line: #dadcd6;
    --soft: #f2f2ee;
    --accent: #273e36;
    --display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gutter: clamp(16px, 4vw, 64px);
}
body { font-family: var(--display); }
.site-header { background: rgba(255,255,255,.96); }
.site-header .brand, .site-footer .footer-brand {
    flex-direction: row;
    align-items: baseline;
    gap: .18em;
    font: 740 clamp(17px, 1.8vw, 26px)/1 var(--display);
    letter-spacing: -.065em;
    white-space: nowrap;
}
.site-header .brand span:last-child, .site-footer .brand span:last-child { font-weight: 390; }
.cart-link { border-color: transparent; background: var(--soft); }
.cart-link b { background: var(--ink); }
.site-footer { background: #202923; }
.simple-page h1, .product-buy h1 { font-weight: 540; }
.store-home, .collection-page { max-width: 1550px; margin-inline: auto; padding-inline: var(--gutter); }
.feature-cover, .fabric-feature { overflow: hidden; border-radius: 22px; display: grid; }
.feature-cover {
    margin-top: clamp(10px, 1.45vw, 24px);
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    background: #24372e;
    color: #fafbf4;
}
.cover-copy { align-self: center; padding: clamp(34px, 5vw, 90px); }
.cover-copy h1, .store-heading h2, .fabric-feature h2, .guide-links h2, .collection-heading h1 {
    margin: 0;
    font-family: var(--display);
    font-weight: 520;
    letter-spacing: -.062em;
    line-height: 1.02;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.cover-copy h1 { font-size: clamp(46px, 5.2vw, 82px); }
.cover-copy p, .fabric-feature p, .collection-heading p, .guide-links p {
    margin: 20px 0 0;
    font-size: clamp(15px, 1.25vw, 19px);
    line-height: 1.55;
}
.cover-copy p { max-width: 31em; color: #e1e6d9; }
.cover-image { position: relative; min-height: clamp(390px, 38vw, 590px); }
.cover-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 48px;
    margin-top: 28px;
    padding: 11px 12px 11px 22px;
    border-radius: 100px;
    background: white;
    color: #23362c;
    font-size: 15px;
    font-weight: 600;
}
.cover-action span, .collection-caption span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 50%;
    font: 500 19px/1 var(--display);
    background: #e8ede5;
    color: #263d31;
}
.store-section, .fabric-feature { margin-block: clamp(48px, 6.2vw, 98px); }
.store-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(16px, 2vw, 32px); }
.store-heading h2, .fabric-feature h2, .guide-links h2 { font-size: clamp(32px, 3.6vw, 59px); }
.store-heading > a { flex: none; font-weight: 550; font-size: 14px; padding: 10px 0; }
.collection-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(12px,1.8vw,28px); }
.collection-grid .category-card { position: relative; border-radius: 15px; aspect-ratio: 1.85; background: #dddcd6; }
.collection-grid .category-card:only-child { grid-column: 1/-1; max-height: 420px; width: 100%; }
.collection-grid .category-card > img { width: 100%; height: 100%; object-fit: cover; }
.collection-grid .category-card::after { background: linear-gradient(0deg, rgba(13,19,13,.8), rgba(13,19,13,0) 67%); }
.collection-caption { position: absolute; z-index: 1; inset: auto 0 0; padding: clamp(16px,2.2vw,34px); display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #fff; }
.collection-caption h3 { margin: 0; font-size: clamp(21px,2.4vw,39px); font-weight: 530; line-height: 1.14; letter-spacing: -.045em; overflow-wrap: anywhere; }
.collection-caption span { background: white; width: 36px; height: 36px; }
.product-photo, .catalog-products .product-photo { border-radius: 12px; background: var(--soft); }
.product-meta { padding-top: 13px; }
.product-meta .cat { font-size: 12px; color: var(--muted); letter-spacing: 0; text-transform: none; }
.product-meta h2, .product-meta h3 { font: 600 clamp(16px,1.45vw,22px)/1.22 var(--display); letter-spacing: -.028em; margin: 0 0 6px; overflow-wrap: anywhere; }
.product-meta strong { font-weight: 520; font-size: 14px; color: var(--ink); }
.fabric-feature { background: #ede9e1; grid-template-columns: 1.05fr .95fr; }
.fabric-feature > img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; }
.fabric-feature > div { align-self: center; padding: clamp(26px,4.3vw,70px); }
.fabric-feature p { color: #4b4e46; }
.guide-links { display: grid; grid-template-columns: .95fr 1.05fr; column-gap: 30px; border-top: 1px solid var(--line); padding-top: clamp(24px,3vw,48px); }
.guide-links > div { grid-column: 2; grid-row: 1 / 3; }
.guide-links > div a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 48px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(16px,1.45vw,22px); }
.guide-links > div a:first-child { padding-top: 3px; }
.guide-links p { color: var(--muted); max-width: 29em; margin-top: 15px; }
.collection-page { padding-block: clamp(35px,5vw,75px) clamp(56px,7vw,112px); }
.collection-heading h1 { font-size: clamp(44px, 5.6vw, 86px); }
.collection-heading p { color: var(--muted); max-width: 65ch; }
.collection-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 26px 30px; padding-block: 3px 19px; border-bottom: 1px solid var(--line); }
.collection-filters a { min-height: 42px; padding: 10px 16px; border-radius: 50px; font-size: 14px; line-height: 1.45; border: 1px solid var(--line); overflow-wrap: anywhere; }
.collection-filters a[aria-current] { color: white; background: var(--ink); border-color: var(--ink); }
.collection-filters small { font-size: 11px; margin-left: 4px; }
.catalog-empty { color: var(--muted); padding: 24px; background: var(--soft); border-radius: 12px; }
.catalog-empty a { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 800px) {
    .feature-cover { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    .cover-copy { padding: 26px; }
    .cover-copy h1 { font-size: clamp(34px, 5vw, 45px); }
    .cover-image { min-height: 340px; }
}
@media (max-width: 620px) {
    .feature-cover, .fabric-feature { grid-template-columns: minmax(0,1fr); border-radius: 16px; }
    .cover-image { grid-row: 1; min-height: 0; aspect-ratio: 1.7; }
    .cover-copy { padding: 25px; }
    .cover-copy h1 { font-size: clamp(35px, 8.7vw, 48px); }
    .cover-copy p { margin-top: 12px; }
    .cover-action { margin-top: 18px; }
    .collection-grid { grid-template-columns: minmax(0,1fr); }
    .store-heading { align-items: end; }
    .store-heading > a { padding-bottom: 0; }
    .fabric-feature > img { aspect-ratio: 2.35; }
    .guide-links { grid-template-columns: minmax(0,1fr); }
    .guide-links > div { grid-area: auto; margin-top: 22px; }
    .guide-links p { font-size: 14px; }
    .collection-filters { margin-block: 20px; }
    .collection-filters a { font-size: 13px; padding-inline: 12px; }
}

.store-search { max-width: 660px; margin: 28px 0 42px; }
.store-search label { display: block; font-weight: 550; margin: 0 0 8px; }
.store-search > div { display: flex; gap: 8px; }
.store-search input { flex: 1; min-width: 0; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: white; }
.guide-hero > .guide-copy:only-child { grid-column: 1 / -1; }

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .collection-caption span, .cover-action span { transition: transform 180ms ease-out; }
    .category-card:hover .collection-caption span, .cover-action:hover span { transform: translate(2px,-2px); }
    .collection-filters a { transition: background-color 140ms ease, border-color 140ms ease; }
    .collection-filters a:not([aria-current]):hover { background: var(--soft); border-color: #a2aaa1; }
}
