/* Shared print-shop palette and type for the pages beyond the storefront. */
.shop-page {
  --shop-paper: #faf8f3; --shop-ink: #252320; --shop-russet: #963e29; --shop-russet-dark: #74301e;
  --shop-faint: #f0ebe2; --shop-rule: #c9c1b8; --shop-muted: #5d554e;
  --shop-display: Bricolage, 'Segoe UI', sans-serif; --shop-serif: 'Instrument Serif', Instrument, Georgia, serif;
  --porcelain: var(--shop-paper); --espresso: var(--shop-ink); --cypress: var(--shop-russet); --winewood: var(--shop-russet);
  --sage: var(--shop-paper); --blush: var(--shop-faint); --line: var(--shop-rule); --muted: var(--shop-muted); --focus: var(--shop-russet);
  --paper: var(--shop-paper); --ink: var(--shop-ink); --edge: var(--shop-rule); --cream: var(--shop-faint); --control-line: #857c74;
  --gutter: clamp(17px,4.6vw,74px); --margin: var(--gutter); --content: 1450px;
  background: var(--shop-paper); color: var(--shop-ink); font-family: var(--shop-display);
}
.shop-page :is(.detail-brand,.brand-name,.word,.brand) {
  color: var(--shop-ink); font: 770 clamp(1.13rem,1.55vw,1.45rem)/1.03 var(--shop-display);
  font-variant: normal; letter-spacing: -.043em;
}
.shop-page :is(.detail-header,.request-header,.mast,.bar) { min-height: 66px; }
.shop-page :is(.detail-header nav,.mast nav,.request-tools,.masthead nav) { font: 560 .89rem/1.28 var(--shop-display); }
.shop-page :is(.mast nav,.detail-header nav) a { text-decoration: none; }
.shop-page :is(.mast nav,.detail-header nav) a:hover { text-decoration: underline; text-underline-offset: .24em; }
.shop-page :is(.detail-header,.mast,.masthead,.header) { background: var(--shop-paper); border-color: var(--shop-rule); }
.shop-page a:focus-visible, .shop-page button:focus-visible { outline: 3px solid var(--shop-russet); outline-offset: 3px; }

/* Product detail */
.product-shop .wrap { width: min(var(--content),calc(100% - 2 * var(--gutter))); }
.product-shop .detail-header { padding-block: 6px; }
.product-shop .detail-brand::before, .request-shop .wordmark::before { width: 25px; height: 25px; flex-basis: 25px; }
.product-shop .breadcrumbs { padding-block: 17px; gap: 4px 11px; color: var(--shop-muted); }
.product-shop .product-detail {
  display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,.9fr);
  grid-template-areas: 'image lead' 'image copy'; grid-template-rows: auto 1fr;
  gap: 0 clamp(32px,4.6vw,78px); align-items: start;
}
.product-shop .product-lead { grid-area: lead; min-width: 0; padding-top: clamp(4px,1.2vw,20px); }
.product-shop .product-lead .eyebrow { color: var(--shop-muted); font-size: .76rem; letter-spacing: .08em; margin-bottom: 9px; }
.product-shop .product-lead h1 { margin: 0; font: 720 clamp(2.7rem,4.5vw,5.6rem)/.96 var(--shop-display); letter-spacing: -.045em; overflow-wrap: anywhere; }
.product-shop .product-lead .detail-line { margin: 13px 0 0; font: 670 clamp(1.24rem,1.7vw,1.65rem)/1.15 var(--shop-display); color: var(--shop-ink); }
.product-shop .detail-visual { grid-area: image; min-width: 0; top: 14px; }
.product-shop .detail-visual .design-stage { border-radius: 0; background: var(--shop-faint); }
.product-shop .detail-visual .design-stage:not(.room-photo) { aspect-ratio: 3/2; min-height: 0; }
.product-shop .image-tools { display: flex; align-items: center; justify-content: space-between; column-gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--shop-rule); }
.product-shop .image-tools .visual-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.product-shop .visual-tabs button { color: var(--shop-muted); background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 0; font: 550 .91rem/1.25 var(--shop-display); }
.product-shop .visual-tabs button[aria-pressed='true'] { background: transparent; color: var(--shop-ink); border-bottom-color: var(--shop-ink); font-weight: 700; }
.product-shop #full-art { display: inline-flex; align-items: center; min-height: 44px; border: 0; color: var(--shop-russet); font: 650 .9rem/1.3 var(--shop-display); text-decoration: underline; text-underline-offset: .2em; }
.product-shop .visual-note { margin: 6px 0 0; color: var(--shop-muted); }
.product-shop .detail-copy { grid-area: copy; min-width: 0; padding: 0; }
.product-shop .palette { margin: 12px 0; gap: 3px; }
.product-shop .palette span { width: 27px; height: 6px; border: 0; border-radius: 0; }
.product-shop #product-description { margin: 12px 0; line-height: 1.5; max-width: 46ch; }
.product-shop .planned-options { margin: 16px 0 4px; }
.product-shop .planned-options legend { margin-bottom: 6px; }
.product-shop .planned-options span { border-radius: 0; }
.product-shop .planned-options input:checked + span { color: var(--shop-ink); background: var(--shop-paper); border: 2px solid var(--shop-ink); padding: 7px 15px; }
.product-shop .availability-note { margin: 5px 0; }
.product-shop #product-action, .request-shop .request-form .button { border-radius: 0; background: var(--shop-russet); color: white; }
.product-shop #product-action { margin: 11px 0 22px; min-height: 48px; font-weight: 665; }
.product-shop #product-action:hover, .request-shop .request-form .button:hover { background: var(--shop-russet-dark); }
.product-shop .detail-copy details { padding: 12px 0; }
.product-shop .detail-copy summary { font: 650 1rem/1.48 var(--shop-display); }
.product-shop .detail-copy details p, .product-shop .detail-copy ul { margin-top: 6px; }
.product-shop .detail-explore a { color: var(--shop-russet); }
.product-shop .piece-viewer { --viewer-ink: var(--shop-ink); --viewer-paper: var(--shop-paper); --viewer-rule: var(--shop-rule); }
.product-shop .viewer-image-column, .product-shop .viewer-window { background: var(--shop-faint); }
.product-shop .piece-viewer::backdrop { background: rgb(30 24 19 / 72%); }

/* Collection spreads */
.collection-shop { overflow-wrap: anywhere; }
.collection-shop :is(.mast,footer,.mast nav) { flex-wrap: wrap; }
.collection-shop .mast { padding-block: 8px; }
.collection-shop .cover { background: var(--shop-paper); color: var(--shop-ink); grid-template-columns: minmax(0,.76fr) minmax(0,1.24fr); max-width: 1800px; margin: auto; }
.collection-shop .cover-copy { padding: clamp(32px,4vw,72px) var(--margin); }
.collection-shop .crumb { color: var(--shop-muted); }
.collection-shop .cover h1 { font: 740 clamp(3rem,6vw,7rem)/.93 var(--shop-display); letter-spacing: -.045em; margin: clamp(18px,2.2vw,36px) 0 18px; }
.collection-shop .cover-copy p { max-width: 38ch; line-height: 1.5; }
.collection-shop .jump { color: white; background: var(--shop-russet); min-height: 46px; margin-top: 19px; }
.collection-shop .jump:hover { background: var(--shop-russet-dark); }
.collection-shop .cover figure > img { max-height: min(38vw,570px); min-height: 340px; object-fit: cover; }
.collection-shop .cover figcaption { left: 12px; right: auto; bottom: 12px; }
.collection-shop .cover figcaption a { background: var(--shop-paper); color: var(--shop-ink); padding: 8px 12px; font-weight: 630; }
.collection-shop .pieces { padding-block: clamp(30px,3.7vw,65px); border-top: 1px solid var(--shop-rule); }
.collection-shop .pieces h2, .collection-shop .related h2 { font: 400 clamp(2.45rem,3.75vw,4.3rem)/1 var(--shop-serif); }
.collection-shop .shelf { margin-top: 20px; gap: 30px clamp(14px,2vw,32px); }
.collection-shop .room-photo img { aspect-ratio: 3/2; }
.collection-shop .eyebrow { margin-block: 9px 4px; color: var(--shop-muted); }
.collection-shop .card-heading h3 { font: 660 clamp(1.12rem,1.8vw,1.65rem)/1.08 var(--shop-display); letter-spacing: -.046em; }
.collection-shop .product-view { color: var(--shop-russet); font-weight: 600; }
.collection-shop .related { padding-block: clamp(30px,3vw,48px); background: var(--shop-faint); }
.collection-shop .related a { color: var(--shop-russet); }

/* Shopping guide and custom work */
.rug-guide .intro { color: var(--shop-ink); background: var(--shop-paper); border-block: 1px solid var(--shop-rule); }
.rug-guide .intro-spread { padding-block: clamp(32px,4vw,68px); }
.rug-guide .intro-copy, .rug-guide .comparison { min-width: 0; }
.rug-guide .intro-copy { overflow-wrap: anywhere; }
.rug-guide h1 { max-width: none; font: 740 clamp(3.3rem,5.5vw,6.4rem)/.94 var(--shop-display); letter-spacing: -.045em; }
.rug-guide .intro-copy p { color: var(--shop-muted); }
.rug-guide .intro-copy .text-link, .rug-guide .material-list a { color: var(--shop-russet); }
.rug-guide .comparison { border: 1px solid var(--shop-rule); }
.rug-guide .materials { background: var(--shop-faint); }
.rug-guide .material-list article { border-color: var(--shop-rule); }
.rug-guide .material-list h3 { font: 660 clamp(1.42rem,2.3vw,2.6rem)/1.1 var(--shop-display); letter-spacing: -.052em; }
.request-shop .header { position: relative; }
.request-shop .request-main { padding: clamp(22px,3.4vw,58px) 0; gap: clamp(25px,5vw,80px); }
.request-shop .request-intro { padding: 0; }
.request-shop .request-intro .eyebrow { color: var(--shop-muted); }
.request-shop .request-intro h1 { font: 735 clamp(3rem,5vw,6.3rem)/.95 var(--shop-display); color: var(--shop-ink); letter-spacing: -.045em; }
.request-shop .request-intro h1 em { font: 400 1.12em/.97 var(--shop-serif); letter-spacing: -.04em; color: var(--shop-russet); }
.request-shop .request-photo { border-radius: 0; }
.request-shop .request-form { border: 1px solid var(--shop-rule); border-radius: 0; background: var(--shop-faint); }
.request-shop .request-form h2 { font-family: var(--shop-serif); color: var(--shop-ink); }
.request-shop .request-field :is(input,textarea,select) { border-color: #8b8176; border-radius: 0; background: var(--shop-paper); color: var(--shop-ink); }
.request-shop .request-header .wordmark { color: var(--shop-ink); }
.shop-page footer { color: var(--shop-ink); }

@media(max-width:800px) {
  .product-shop .product-detail { grid-template-columns: minmax(0,1fr); grid-template-areas: 'lead' 'image' 'copy'; }
  .product-shop .product-lead { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; column-gap: 12px; padding: 0 0 16px; }
  .product-shop .product-lead .eyebrow { grid-column: 1/-1; margin-bottom: 4px; }
  .product-shop .product-lead h1 { font-size: clamp(2.25rem,6.7vw,3.8rem); }
  .product-shop .product-lead .detail-line { margin: 0; font-size: 1.18rem; }
  .product-shop .detail-visual { position: static; }
  .product-shop .detail-copy { padding-top: 5px; }
  .product-shop .detail-header { align-items: center; }
  .product-shop .detail-header nav { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
  .product-shop .detail-header nav a { display: inline-flex; min-height: 44px; align-items: center; }
  .rug-guide .intro-spread { padding-block: 26px; }
}
@media(max-width:700px) {
  .collection-shop .cover { display: flex; flex-direction: column; }
  .collection-shop .cover-copy { align-self: stretch; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px 12px; align-items: baseline; padding: 19px var(--margin); }
  .collection-shop .cover-copy .crumb, .collection-shop .cover-copy p { grid-column: 1/-1; }
  .collection-shop .cover h1 { margin: 0; grid-column: 1; font-size: clamp(2.45rem,8vw,4rem); }
  .collection-shop .jump { grid-column: 2; grid-row: 2; min-height: 44px; gap: 7px; margin: 0; padding: 10px 12px; font-size: .84rem; }
  .collection-shop .cover figure > img { height: auto; min-height: 0; max-height: none; aspect-ratio: 3/2; }
  .collection-shop .shelf { grid-template-columns: repeat(auto-fit,minmax(min(100%,8.5rem),1fr)); }
  .collection-shop .card-heading { display: grid; align-items: start; row-gap: 4px; }
  .collection-shop .card-heading h3 { font-size: 1.22rem; }
  .collection-shop .product-line { font-size: .86rem; }
  .request-shop .request-intro h1 { margin-block: 9px 14px; }
}
@media(max-width:580px) {
  .shop-page :is(.detail-header,.request-header,.mast,.bar) { min-height: 58px; }
  .product-shop .detail-header { flex-wrap: wrap; gap: 0 10px; }
  .product-shop .detail-header nav { gap: 11px; font-size: .81rem; }
  .product-shop .breadcrumbs { padding-block: 11px; }
  .product-shop .detail-visual .visual-tabs { gap: 10px; }
  .product-shop .visual-tabs button, .product-shop #full-art { font-size: .84rem; }
  .rug-guide h1 { font-size: clamp(2.5rem,9vw,3.8rem); }
  .rug-guide .intro-spread { padding-block: 21px; }
}
@media(max-width:355px) {
  .collection-shop .cover-copy { grid-template-columns: minmax(0,1fr); }
  .collection-shop .jump { grid-area: auto; justify-self: start; }
  .product-shop .detail-header nav { column-gap: 10px; }
}
html[data-high-contrast] .shop-page { --shop-paper: white; --shop-ink: black; --shop-russet: #602114; --shop-faint: white; --shop-muted: #292521; --shop-rule: #3c3631; }

/* Oakfall's featured spread keeps the mat's actual proportions in both views. */
[data-piece="oakfall"] .product-detail {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .9fr);
  column-gap: clamp(30px, 5vw, 80px);
}
[data-piece="oakfall"] .product-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 14px;
  padding: 12px 0 18px;
  border-bottom: 1px solid var(--shop-rule);
}
[data-piece="oakfall"] .product-lead .eyebrow {
  flex-basis: 100%; margin: 0 0 12px;
}
[data-piece="oakfall"] .product-lead h1 {
  flex-basis: 100%;
  margin-bottom: 18px;
  color: var(--shop-ink);
  font: 400 clamp(3.5rem, 5.4vw, 5.5rem)/.96 var(--shop-serif);
  letter-spacing: -.04em;
}
[data-piece="oakfall"] .product-lead .detail-line {
  margin: 0;
  font: 660 1.28rem/1.3 var(--shop-display);
}
[data-piece="oakfall"] .product-dimensions {
  margin: 0; font-size: 1rem; color: var(--shop-muted);
}
[data-piece="oakfall"] .product-lead .availability-note {
  display: flex; align-items: center; gap: 7px;
  margin: 0; color: var(--shop-ink); font-size: .88rem;
}
[data-piece="oakfall"] .availability-note::before {
  content: ''; width: .42rem; height: .42rem;
  flex: none; border: 1px solid currentColor; border-radius: 50%;
}
[data-piece="oakfall"] .detail-visual .design-stage {
  height: auto; aspect-ratio: 3/2; padding: 0;
}
[data-piece="oakfall"] .detail-visual .design-stage > img {
  width: 100%; height: 100%; max-width: 100%; object-fit: contain; box-shadow: none;
}
[data-piece="oakfall"] .image-tools { padding: 4px 0; }
[data-piece="oakfall"] .visual-tabs button {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 0;
}
[data-piece="oakfall"] .visual-tabs img {
  width: 48px; height: 36px; object-fit: contain; background: var(--shop-faint);
}
[data-piece="oakfall"] :is(#full-art, .detail-explore a, .text-link) { color: var(--shop-ink); }
[data-piece="oakfall"] .visual-note { margin-top: 6px; font-size: .8rem; }
[data-piece="oakfall"] .palette { display: none; }
[data-piece="oakfall"] #product-description { margin: 20px 0; }
[data-piece="oakfall"] #product-action {
  justify-content: center;
  margin: 0 0 20px; padding: 12px 16px; line-height: 1.4;
}
[data-piece="oakfall"] #details-list { padding: 0; list-style: none; }
[data-piece="oakfall"] .detail-header nav a:focus-visible,
[data-piece="oakfall"] :is(a, button, summary):focus-visible {
  outline-color: var(--shop-ink);
}

@media (max-width: 800px) {
  [data-piece="oakfall"] .product-detail { grid-template-columns: minmax(0, 1fr); }
  [data-piece="oakfall"] .product-lead { padding: 8px 0 16px; border-bottom: 0; }
  [data-piece="oakfall"] .product-lead .eyebrow { margin-bottom: 5px; }
  [data-piece="oakfall"] .product-lead h1 { margin-bottom: 10px; font-size: clamp(2.75rem, 8vw, 4.8rem); }
  [data-piece="oakfall"] #product-description { margin: 13px 0; }
}
@media (max-width: 580px) {
  [data-piece="oakfall"] .product-lead { column-gap: 12px; }
  [data-piece="oakfall"] .visual-tabs img { width: 34px; height: 27px; }
}
@media (max-width: 359px) {
  [data-piece="oakfall"] .visual-tabs img { width: 24px; height: 20px; }
  [data-piece="oakfall"] .visual-tabs button { gap: 4px; }
  [data-piece="oakfall"] .image-tools { column-gap: 4px; }
}

/* Posters and other pieces shown as artwork on collection shelves */
.collection-shop .design-stage:not(.room-photo) { display: flex; align-items: center; justify-content: center; aspect-ratio: 3/2; background: var(--shop-faint); padding: 7% 14%; }
.collection-shop .design-stage:not(.room-photo) > img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; border: 6px solid #fffaf2; box-shadow: 0 8px 18px #44321d22; }
.collection-shop .cover-art figure { background: #2b2925; display: flex; align-items: center; justify-content: center; padding: clamp(18px,3vw,48px); }
.collection-shop .cover-art figure > img { width: auto; max-width: 100%; height: auto; min-height: 0; object-fit: contain; border: 8px solid #fffaf2; }
.collection-shop .cover-art figcaption { left: auto; right: 12px; }

/* Custom design path on space pages */
.collection-shop .space-custom { margin-top: clamp(30px,3.5vw,56px); padding: clamp(20px,2.6vw,36px); background: var(--shop-faint); border: 1px solid var(--shop-rule); display: grid; gap: 8px; justify-items: start; }
.collection-shop .space-custom p { max-width: 60ch; line-height: 1.5; }
.collection-shop .space-custom p:first-child { font: 640 clamp(1.15rem,1.6vw,1.45rem)/1.25 var(--shop-display); letter-spacing: -.02em; }
.collection-shop .space-custom p a { color: var(--shop-russet); }
.collection-shop .space-custom-examples { color: var(--shop-muted); }
.collection-shop .space-custom-button { display: inline-flex; align-items: center; min-height: 46px; margin-top: 6px; padding: 11px 18px; background: var(--shop-russet); color: #fff; font-weight: 650; text-decoration: none; }
.collection-shop .space-custom-button:hover { background: var(--shop-russet-dark); }

/* Footer policy links */
.shop-page .foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.shop-page .foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--shop-ink); text-underline-offset: .2em; }

/* Shipping & returns */
.policy-shop .policy { width: min(760px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding-block: clamp(30px,5vw,80px); }
.policy-shop .policy h1 { font: 740 clamp(2.6rem,5vw,4.8rem)/.98 var(--shop-display); letter-spacing: -.045em; margin: 0 0 clamp(20px,3vw,36px); }
.policy-shop .policy section { padding-block: 18px; border-top: 1px solid var(--shop-rule); }
.policy-shop .policy h2 { font: 400 clamp(1.7rem,2.6vw,2.3rem)/1.1 var(--shop-serif); }
.policy-shop .policy p { margin-top: 8px; max-width: 60ch; line-height: 1.6; }
.policy-shop .policy a { color: var(--shop-russet); }
.request-shop .request-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 18px 28px; border-top: 1px solid var(--shop-rule); }
.rug-guide footer .bar { flex-wrap: wrap; gap: 6px 22px; }
.product-shop .detail-spaces { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; margin-top: 6px; }
.product-shop .detail-spaces span { color: var(--shop-muted); }
.product-shop .detail-footer { flex-wrap: wrap; gap: 4px 22px; }
/* Product page: shipping before checkout, trust, complete the room */
.product-shop .buy-box { margin: 14px 0 0; padding: 12px 14px; background: var(--shop-faint); border-left: 3px solid var(--shop-russet); font-size: .93rem; line-height: 1.5; }
.product-shop .buy-box p + p { margin-top: 6px; }
.product-shop .trust-note { margin: -10px 0 16px; color: var(--shop-muted); font-size: .86rem; line-height: 1.5; }
.product-shop .trust-note a { color: var(--shop-russet); }
.product-shop .complete-room { padding-block: clamp(28px,4vw,60px); border-top: 1px solid var(--shop-rule); margin-top: clamp(24px,3vw,48px); }
.product-shop .complete-room h2 { font: 400 clamp(2rem,3.2vw,3.2rem)/1.05 var(--shop-serif); }
.product-shop .complete-room ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,2vw,28px); margin: 18px 0 0; padding: 0; list-style: none; }
.product-shop .complete-room a { display: flex; flex-direction: column; gap: 2px; color: var(--shop-ink); text-decoration: none; }
.product-shop .complete-room img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 8px; background: var(--shop-faint); }
.product-shop .complete-name { font: 650 1.1rem/1.2 var(--shop-display); }
.product-shop .complete-room a:hover .complete-name { text-decoration: underline; }
.product-shop .complete-meta { color: var(--shop-muted); font-size: .86rem; }
@media(max-width:699.98px) { .product-shop .complete-room ul { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .product-shop .complete-room li:nth-child(3) { display: none; } }
.collection-shop .mockup-note { margin-top: 6px; color: var(--shop-muted); font-size: .88rem; }
.collection-shop .ship-strip { margin-top: clamp(24px,3vw,40px); padding-top: 14px; border-top: 1px solid var(--shop-rule); color: var(--shop-muted); font-size: .9rem; max-width: 90ch; }
.collection-shop .ship-strip a { color: var(--shop-russet); }
.faq section { scroll-margin-top: 20px; }
