/* Scoped to a product page by the storefront entry point. */
html[data-product-store="lianna"] { --product-accent: #492333; }
html[data-product-store="hunter"] { --product-accent: #344333; }
html[data-product-store="rosewood"] { --product-accent: #642c38; }
html[data-product-store] :is(.q4-mobile-purchase,.rw-pinned-buy,.mbar,main nav[aria-label="Breadcrumb"],main #reviews,main [href="#reviews"],main .oe-editorial-reviews) { display:none !important; }
html[data-product-store] .product-offer {
  display:flex !important; flex-wrap:wrap; align-items:center; gap:.45rem .7rem;
  font-size:clamp(1.6rem,3vw,2.05rem) !important; font-weight:550; line-height:1.18;
  color:var(--product-accent) !important; font-variant-numeric:lining-nums;
}
html[data-product-store] .product-offer small {display:contents !important;}
html[data-product-store] .product-offer :is(s,del) {
  order:-1; color:#756e68 !important; font-size:.70em !important; font-weight:400;
  margin:0 !important; text-decoration-thickness:1.4px;
}
html[data-product-store] .product-offer :is(.reviewed-savings,.rw-price-savings,.product-price-saving) {
  order:1; display:inline-flex; align-items:center; padding:.34em .72em;
  margin:0; border-radius:999px; font:600 .78rem/1.15 system-ui,sans-serif;
  background:var(--product-accent); color:white;
}
html[data-product-store] .stock-note.available::before {
  content:""; display:inline-block; width:7px; height:7px; margin-inline-end:.5em;
  border-radius:50%; background:#a94247; animation:product-stock-pulse 1.9s ease-out 4;
}
@keyframes product-stock-pulse { 0%,14% {box-shadow:0 0 0 0 rgb(169 66 71 / .42)} 82%,100% {box-shadow:0 0 0 7px rgb(169 66 71 / 0)} }
@media(prefers-reduced-motion:reduce){ html[data-product-store] .stock-note.available::before {animation:none} }
.product-facts {border-block:1px solid #cfc8bf; margin:12px 0;}
.product-facts>summary {cursor:pointer; padding:16px 4px; font:inherit; font-weight:600;}
.product-facts>summary:focus-visible,.product-photo-nav button:focus-visible {outline:2px solid var(--product-accent);outline-offset:2px;}
.product-photo-nav {display:flex;align-items:center;justify-content:center;gap:12px;margin:8px auto 0;font:500 .82rem/1.25 system-ui,sans-serif;}
.product-photo-nav button {font:inherit;display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid #cfc8bf;background:transparent;color:inherit;border-radius:50%;cursor:pointer;}
.product-photo-nav button svg {display:block;width:17px;height:17px;}
.product-photo-nav output {min-width:7em;text-align:center;}
html[data-product-store] .promise-points a {overflow-wrap:anywhere;}
@media(max-width:767px){
  html[data-product-store] main :is(.buy,.rw-info){box-sizing:border-box;padding-inline:clamp(16px,5vw,24px) !important;min-width:0;}
  html[data-product-store] main .prow {padding-inline:0 !important;}
  html[data-product-store] main .phead .desc {line-height:1.5;}
  html[data-product-store] .boutique-note {column-gap:0;row-gap:24px;}
  html[data-product-store] .boutique-letter {min-width:0;padding-inline:clamp(16px,5vw,24px);}
  html[data-product-store] .promise-points {padding-inline-start:0;}
  html[data-product-store] .rw-info .rw-btn, html[data-product-store] .buy [data-add-to-bag], html[data-product-store] .buy .cta {position:static !important;inset:auto !important;}
  html[data-product-store] .rw-close .product-facts, html[data-product-store] .pdt .product-facts {margin-inline:0;}
}
.product-gallery-stage {width:100%;min-width:0;position:relative;}
.product-gallery-stage .photo-track {display:flex;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;border:0;}
.product-gallery-stage .photo-track::-webkit-scrollbar {display:none;}
.product-gallery-stage .photo-track figure {margin:0;flex:0 0 100%;min-width:0;scroll-snap-align:start;}
.product-gallery-stage .photo-track img {display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:contain;background:transparent;}
@media(min-width:768px){.product-gallery-stage .photo-track img {max-height:min(80vh,760px);}}
[data-product-gallery-ready] > :is(.gal,.gal1,.galnav,.galcount,.rw-gal,.rw-galn,.rw-th) {display:none !important;}

html[data-product-store] [data-product-stock] {margin:0;font-size:.84rem;line-height:1.5;}
/* Native buttons retain focus, selection and click handlers. */
html[data-product-store] button[data-swatch-mode] {position:relative;background:transparent!important;background-image:none!important;}
html[data-product-store] button[data-swatch-mode] > * {visibility:hidden!important;background-image:none!important;}
html[data-product-store] button[data-swatch-mode]::before {content:none!important;}
html[data-product-store] button[data-swatch-mode="color"]::after {
  content:"";display:block;position:absolute;inset:4px;border-radius:50%;
  background:var(--product-swatch-fill)!important;box-shadow:inset 0 0 0 1px rgb(0 0 0 / .12);pointer-events:none;
}
html[data-product-store] button[data-swatch-mode][aria-pressed="true"] {outline:1.5px solid currentColor;outline-offset:0;}
html[data-product-store] button[data-swatch-mode]:focus-visible {outline:2px solid currentColor;outline-offset:3px;}
html[data-product-store] button[data-swatch-mode="label"] {width:auto!important;min-width:44px;height:auto!important;min-height:44px;padding:6px 10px!important;border-radius:8px!important;}
html[data-product-store] button[data-swatch-mode="label"] > * {display:none!important;}
html[data-product-store] button[data-swatch-mode="label"]::after {content:attr(data-swatch-label);font:500 .8rem/1.2 system-ui,sans-serif;}

/* Lianna Charles: compact gallery and product information. */
html[data-product-store="lianna"] .product-offer :is(s,del),
html[data-product-store="hunter"] .product-offer :is(s,del) {
  font:500 clamp(17px,1.4vw,22px)/1.25 system-ui,sans-serif!important;
  text-decoration:line-through solid currentColor 1.7px!important;color:#665d57!important;
}
html[data-product-store="lianna"] [data-size-label] {margin-inline-start:.5rem;font:500 1rem/1.2 system-ui,sans-serif;}
html[data-product-store="lianna"] :is([data-lianna-intro],[data-lianna-fact]) {display:none!important;}
html[data-product-store="lianna"] .lc-description {border-top:1px solid #d6cfc6;color:#26211f;}
.lc-description > summary,.hc-product-accordions summary {
  display:flex;justify-content:space-between;align-items:center;gap:16px;list-style:none;cursor:pointer;
}
.lc-description > summary {min-height:56px;font:500 13px/1.35 "Barlow Condensed","Arial Narrow",sans-serif;text-transform:uppercase;letter-spacing:.14em;}
.lc-description > summary::-webkit-details-marker,.hc-product-accordions summary::-webkit-details-marker {display:none;}
.lc-description > summary::after {content:'+';font:400 20px/1 system-ui;}
.lc-description[open] > summary::after {content:'−';}
.lc-description > p {font:400 14px/1.55 system-ui,sans-serif!important;margin:4px 0 16px!important;}
html[data-product-store="lianna"] .stock-note {padding:0!important;margin:0!important;line-height:1.35;font-size:13px;}
html[data-product-store="lianna"] .buy div:has(> [data-add-to-bag]) {gap:10px!important;}
html[data-product-store="lianna"] .buy [data-add-to-bag] {height:48px!important;min-height:44px;font-size:15px!important;letter-spacing:.09em!important;}
html[data-product-store] .product-photo-nav {position:absolute;inset:auto 8px 6px;justify-content:space-between;margin:0;pointer-events:none;}
html[data-product-store] .product-photo-nav button {pointer-events:auto;background:transparent;border:0;position:relative;isolation:isolate;color:#26221f;}
html[data-product-store] .product-photo-nav button::before {content:'';position:absolute;inset:7px;border-radius:50%;background:#fffffff0;box-shadow:0 1px 4px #32241422;z-index:-1;}
html[data-product-store] .product-photo-nav output {min-width:0;padding:4px 9px;border-radius:12px;background:#ffffffe8;color:#302a27;font:500 12px/1 system-ui,sans-serif;}
@media(max-width:767px){
  html[data-product-store="lianna"] .product-gallery-stage .photo-track img {height:min(104vw,57svh);aspect-ratio:auto;object-fit:contain;}
  html[data-product-store="lianna"] main .buy {padding-block:18px 24px!important;gap:16px!important;}
  html[data-product-store="lianna"] .q4-source-sizes {gap:6px!important;}
  html[data-product-store="lianna"] .q4-source-sizes button {height:44px!important;min-width:0;}
}

/* Hunter & Chase: one product information stack and a quieter footer. */
html[data-product-store="hunter"] :is(body,.pg,main.pmain,.prow,.buy) {background:#fbfaf7!important;background-image:none!important;}
html[data-product-store="hunter"] .phead .desc,
html[data-product-store="hunter"] section.pd[data-organized],
html[data-product-store="hunter"] .prow + div:empty {display:none!important;}
html[data-product-store="hunter"] .buy .stock-note {display:flex;align-items:center;gap:9px;margin:0 0 8px!important;padding:0!important;background:none!important;border:0!important;font:550 13px/1.45 system-ui,sans-serif;}
html[data-product-store="hunter"] .buy .stock-note.available::before {display:block;flex:none;margin:0!important;animation:product-stock-pulse 2.1s ease-out infinite!important;}
@media(prefers-reduced-motion:reduce){html[data-product-store="hunter"] .buy .stock-note.available::before{animation:none!important;}}
html[data-product-store="hunter"] .buy .cta {margin-block:0 16px;padding:0;}
html[data-product-store="hunter"] .hc-product-accordions {border-top:1px solid #d5d5cd;}
html[data-product-store="hunter"] .hc-product-accordions .acc {margin:0;padding:0;border:0;border-bottom:1px solid #d5d5cd;}
html[data-product-store="hunter"] .hc-product-accordions summary {padding:14px 0;min-height:44px;box-sizing:border-box;font:550 15px/1.4 system-ui,sans-serif;}
.hc-product-accordions .accb {padding:0 0 17px;font-size:14px;line-height:1.55;}
.hc-product-accordions .accb :is(p,ul,dl){margin:4px 0 10px;}
html[data-product-store="hunter"] footer {background:#233329!important;color:#f6f5ed!important;}
html[data-product-store="hunter"] footer>.pad {max-width:1280px;margin:auto;gap:32px!important;padding:44px clamp(20px,5vw,72px) 20px!important;}
html[data-product-store="hunter"] footer>.pad>div:first-child:has(+ .g2) {display:none!important;}
html[data-product-store="hunter"] footer .fcol {gap:7px!important;font:400 14px/1.5 system-ui,sans-serif;}
html[data-product-store="hunter"] footer .fcol>.eb {font-size:12px!important;letter-spacing:.09em;color:#d3dbcf!important;margin-bottom:6px;}
html[data-product-store="hunter"] footer :is(.fcare,form)>span {color:#d3dbcf!important;}
html[data-product-store="hunter"] footer>.pad>div:last-child {border-top:1px solid #ffffff33;padding-top:16px;line-height:1.6;}
html[data-product-store="hunter"] footer>a {display:block;max-width:1280px;margin:auto;padding:0 clamp(20px,5vw,72px) 24px;box-sizing:border-box;font-size:12px;}
@media(max-width:767px){
  html[data-product-store="hunter"] footer>.pad {gap:24px!important;}
  html[data-product-store="hunter"] footer .g2 {grid-template-columns:minmax(0,1fr)!important;gap:28px!important;}
  html[data-product-store="hunter"] footer .g2>div {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 16px!important;}
  html[data-product-store="hunter"] footer .fcare {grid-column:1/-1;border-top:1px solid #ffffff33;padding-top:18px;}
  html[data-product-store="hunter"] .buy {padding-bottom:24px!important;}
}

html[data-product-store="lianna"] a[href^="mailto:support@liannacharles.com"] {text-decoration:underline!important;text-underline-offset:3px;}
html[data-product-store="lianna"] .buy .stock-note.available::before {animation:product-stock-pulse 2.1s ease-out infinite!important;}
@media(prefers-reduced-motion:reduce){html[data-product-store="lianna"] .buy .stock-note.available::before {animation:none!important;}}
html[data-product-store="hunter"] main figure.pdw {display:none!important;}
html[data-product-store="hunter"] .buy .stock-note.available {color:#3d382e;font-weight:600;font-size:14px;line-height:20px;gap:9px;margin:0!important;}
html[data-product-store="hunter"] .buy .cta {gap:8px;margin:0;}
html[data-product-store="hunter"] .buy .stock-note.available::before {width:8px;height:8px;}
@media(max-width:767px){
  html[data-product-store="hunter"] main .prow {gap:0!important;}
  html[data-product-store="hunter"] main .pgal {margin:0;padding:0;max-width:100%;flex-basis:100%;}
  html[data-product-store="hunter"] main .buy {padding:18px 16px 24px!important;gap:16px!important;}
  html[data-product-store="hunter"] main .opt {margin:0;}
  html[data-product-store="hunter"] .photo-track img {width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;}
  html[data-product-store="hunter"] main .phead {gap:8px;}
}

/* Keep the social proof on the price baseline and the policy rows in one stack. */
html:is([data-product-store="lianna"],[data-product-store="hunter"]) .product-offer {
  width:100%;box-sizing:border-box;align-items:center;column-gap:clamp(5px,1.4vw,10px);
}
.store-shopper-note {
  order:2;margin-inline-start:auto;white-space:nowrap;text-align:right;
  font:500 clamp(11px,2.8vw,13px)/1.3 system-ui,sans-serif;color:var(--product-accent);
}
.store-shopper-note [role="img"] {font-weight:650;}
html[data-product-store="lianna"] .return-guarantee-note {
  align-self:flex-start;font:500 13px/1.35 system-ui,sans-serif;color:inherit;
}
html[data-product-store="lianna"] #lianna-promise {scroll-margin-top:80px;}
html[data-product-store="lianna"] .buy button[hidden] {display:none!important;}
html[data-product-store="lianna"] .buy :is(.lc-policy,.lc-description) {margin:0;padding:0;}
html[data-product-store="lianna"] .buy :is(.lc-policy > summary,.lc-description > summary,#size-fit > button) {
  display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;list-style:none;
  min-height:48px!important;padding:0!important;cursor:pointer;
  font:500 13px/1.35 "Barlow Condensed","Arial Narrow",sans-serif;letter-spacing:.14em;text-transform:uppercase;
}
.lc-policy > summary::-webkit-details-marker {display:none;}
.lc-policy > summary::after {content:'+';font:300 18px/1 system-ui;}
.lc-policy[open] > summary::after {content:'−';}
.lc-policy p {margin:0 0 14px;font:400 14px/1.5 system-ui,sans-serif;}
.lc-policy a {color:inherit;text-decoration:underline;text-underline-offset:3px;}
html[data-product-store="hunter"] .boutique-note {
  background-image:linear-gradient(to bottom,#fbfaf7 0,transparent clamp(48px,8vw,100px))!important;
}
@media(max-width:767px){
  html:is([data-product-store="lianna"],[data-product-store="hunter"]) main .pgal {
    padding:0!important;margin:0!important;max-width:100%!important;flex:0 0 100%!important;
  }
  html[data-product-store="lianna"] .product-gallery-stage .photo-track img {
    width:100%;height:auto;aspect-ratio:auto;object-fit:contain;
  }
  html:is([data-product-store="lianna"],[data-product-store="hunter"]) .product-offer {
    font-size:clamp(21px,6vw,28px)!important;row-gap:5px;
  }
  html:is([data-product-store="lianna"],[data-product-store="hunter"]) .product-offer :is(.reviewed-savings,.product-price-saving) {
    font-size:11px;padding:.32em .55em;
  }
}
html:is([data-product-store="lianna"],[data-product-store="hunter"]) .product-offer {
  flex-wrap:nowrap;gap:clamp(4px,1vw,8px);font-size:clamp(21px,5.6vw,28px)!important;letter-spacing:normal;
}
html:is([data-product-store="lianna"],[data-product-store="hunter"]) .store-shopper-note {
  font-size:clamp(10px,2.7vw,12px);letter-spacing:normal;text-transform:none;
}
@media(max-width:374px){
  html:is([data-product-store="lianna"],[data-product-store="hunter"]) .product-offer :is(s,del) {font-size:15px!important;}
  html:is([data-product-store="lianna"],[data-product-store="hunter"]) .product-offer :is(.product-price-saving,.reviewed-savings) {font-size:10px;padding:.28em .4em;}
}

html[data-product-store="rosewood"] .rw-info .rw-facts,
html[data-product-store="rosewood"] .rw-product .rw-material {display:none;}
html[data-product-store="rosewood"] .product-photo-nav button:disabled {opacity:.5;cursor:default;}
html[data-product-store="rosewood"] .rw-info .rw-size {margin-bottom:0;}
html[data-product-store="rosewood"] .rw-info .stock-note {
  justify-content:flex-start;align-items:center;gap:8px;border:0;margin:0;padding:0;color:#522e36;
  font:550 13px/18px system-ui,sans-serif;
}
html[data-product-store="rosewood"] .rw-info .stock-note::before {margin:0;}
html[data-product-store="rosewood"] .rw-info .stock-note + .rw-btn {margin-top:-10px;}
html[data-product-store="rosewood"] .rw-info .rw-btn {margin:0 0 12px;}
html[data-product-store="rosewood"] .rw-csec[aria-label="Wear it with"] {padding-top:clamp(40px,6vw,84px);}
html[data-product-store="rosewood"] .product-gallery-stage {color:#482a32;}
html[data-product-store="rosewood"] .photo-track {scroll-snap-type:x proximity;touch-action:pan-x pan-y pinch-zoom;}

.store-shopper-note .rating-star {color:#946b19;}
html[data-product-store="rosewood"] :is(.rw-info,.boutique-letter,.rw-csec) {text-align:start;}
html[data-product-store="rosewood"] .rw-info {align-items:stretch;}
html[data-product-store="rosewood"] .rw-info :is(.rw-sz,.rw-sw,.rw-pr) {justify-content:flex-start;}
html[data-product-store="rosewood"] .photo-track img {object-position:left center;}
html[data-product-store="rosewood"] .rw-info .store-shopper-note {
  font:500 clamp(11px,2.8vw,13px)/1.3 system-ui,sans-serif;letter-spacing:normal;
}
@media(max-width:767px){
  html[data-product-store="rosewood"] main .rw-info {padding-inline:0!important;}
  html[data-product-store="rosewood"] .rw-pr.product-offer {gap:6px;font-size:clamp(22px,6vw,28px)!important;}
  html[data-product-store="rosewood"] .rw-pr .rw-price-savings {font-size:11px;}
}

/* Desktop product spread. The gallery and purchase panel share one bounded grid. */
@media (width > 767px) {
  html:root main :is(.prow:has(> .pgal), .rw-pdp:has(> .rw-gw)) {
    --photo-width: clamp(420px, 64vh, 610px);
    display: grid !important;
    grid-template-columns: minmax(0, var(--photo-width)) minmax(0, 430px) !important;
    justify-content: center;
    align-items: start;
    gap: clamp(32px, 4vw, 64px) !important;
    width: 100%;
    max-width: 1250px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: clamp(20px, 3vh, 36px) 32px 52px !important;
  }
  html:root main :is(.prow, .rw-pdp) > :is(.pgal, .rw-gw, .buy, .rw-info) {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
  }
  html:root main :is(.prow, .rw-pdp) .product-gallery-stage {
    width: 100%;
    margin: 0;
  }
  html:root main .product-gallery-stage .photo-track {
    aspect-ratio: 4 / 5;
    max-height: none;
  }
  html:root main .product-gallery-stage .photo-track figure { height: 100%; }
  html:root main .product-gallery-stage .photo-track img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }
  html:root main :is(.prow, .rw-pdp) > :is(.buy, .rw-info) {
    padding: 8px 0 0 !important;
    gap: 18px !important;
    position: static !important;
  }
  html:root main :is(.buy, .rw-info) h1 {
    font-size: clamp(32px, 2.6vw, 44px) !important;
    line-height: 1.08 !important;
    text-wrap: balance;
  }
  html:root main .product-offer .store-shopper-note { margin-inline-start: 12px; }
  html[data-product-store="hunter"] main .buy .sizes {
    display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px;
  }
  html[data-product-store="hunter"] main .buy .sizes .sz { flex: none; min-width: 48px; width: auto; padding-inline: 12px; }
  html[data-product-store="hunter"] main .buy .cta { gap: 10px; }
}

/* At tablet widths give size choices and the gallery comparable space. */
@media (767px < width < 960px) {
  html:root main :is(.prow:has(> .pgal), .rw-pdp:has(> .rw-gw)) {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) !important;
    gap: clamp(24px, 3vw, 32px) !important;
    padding: 24px clamp(16px, 2.5vw, 24px) 40px !important;
  }
}

/* Product-page surfaces also apply before the gallery initializes. */
html:has(main.q4-product) {
  --pdp-paper: #f0e9e0;
  --pdp-inset: #e8dfd4;
  --pdp-rule: #cfc4b8;
}
html:has(header.hdr):has(main .prow) {
  --pdp-paper: #ede7dc;
  --pdp-inset: #e4dece;
  --pdp-rule: #c9bfad;
}
html:has(main.rw-product) {
  --pdp-paper: #f0e8e3;
  --pdp-inset: #e8deda;
  --pdp-rule: #d1c4be;
}
html:root:has(main :is(.prow > .pgal, .rw-pdp > .rw-gw)) {
  background: var(--pdp-paper);
}
html:root:has(main :is(.prow > .pgal, .rw-pdp > .rw-gw)) :is(body, .pg, main.pmain, main.rw-product, main .prow, main .rw-pdp, main .buy, main .rw-info) {
  background: var(--pdp-paper) !important;
}
html:root:has(main .rw-pdp) .rw-handoff {
  --paper: var(--pdp-paper);
  --line: var(--pdp-rule);
}
html:root:has(main.q4-product) { --oe-paper: var(--pdp-paper); }
html:root:has(header.hdr):has(main .prow) { --paper: var(--pdp-paper); }
html:root:has(main :is(.prow, .rw-pdp)) .boutique-note {
  background: linear-gradient(to bottom, var(--pdp-paper), var(--pdp-inset) 5rem) !important;
}
html:root:has(main :is(.prow, .rw-pdp)) main .product-photo-nav button::before {
  background: var(--pdp-paper);
}
html:root:has(main :is(.prow, .rw-pdp)) main .product-photo-nav output {
  background: var(--pdp-paper);
}
@media (max-width: 767px) {
  html:root[data-product-store] main :is(.buy, .rw-info) {
    text-align: start;
    min-width: 0;
  }
  html:root[data-product-store] main .product-photo-nav { inset-inline: 4px; }
  html:root[data-product-store] main .product-offer { align-items: baseline; }
}
