/* Shared storefront, checkout and Studio colours. */
:root {
  color-scheme: var(--es-native-scheme, light);
  --paper: var(--es-canvas);
  --white: var(--es-surface);
  --ink: var(--es-text);
  --muted: var(--es-muted);
  --olive: var(--es-primary);
  --wood: var(--es-link);
  --sand: var(--es-tint);
  --brass: var(--es-accent);
  --line: var(--es-border);
  --home-surface: var(--es-tint);
  --hc-paper: var(--es-canvas);
  --hc-panel: var(--es-surface);
  --hc-ink: var(--es-text);
  --hc-soft: var(--es-muted);
  --hc-border: var(--es-border);
  --hc-green: var(--es-primary);
  --hc-focus: var(--es-focus);
}

.brand-mark {
  display: inline-block;
  width: 29px;
  height: 30px;
  flex: none;
  background: currentColor;
  mask: url("/favicon.svg") center / contain no-repeat;
}
.header .brand-mark, .footer .brand-mark, .studio-brand > .brand-mark {
  display: inline-block;
  flex: 0 0 auto;
  width: 29px;
  height: 30px;
  border: 0;
  border-radius: 0;
}
.header .logo, .studio-brand, .studio-theme-logo { color: var(--es-link); }
.studio-auth-brand { margin-bottom: 14px; color: var(--es-link); }
.studio-auth-brand .brand-mark { width: 43px; height: 45px; }
.footer .logo { color: var(--es-on-brand); }

:is(.eyebrow,.pdp-category-link,.pdp-sale-name) { color: var(--es-link); }
.btn:not(.secondary,.light), .pdp-purchase-line .pdp-add {
  background: var(--es-primary);
  color: var(--es-on-primary);
  border-color: var(--es-primary-edge);
}
.btn:not(.secondary,.light):hover, .pdp-purchase-line .pdp-add:hover {
  background: var(--es-primary-hover);
  color: var(--es-on-primary);
}
.btn.secondary { border-color: var(--es-border); color: var(--es-text); }
.btn.secondary:hover { background: var(--es-tint); color: var(--es-on-tint); }
.text-link { border-color: var(--es-border); }
.offline-notice, #toast, .bag-count, .header .bag-count, body.home-page .header:not(.is-scrolled) .bag-count {
  background: var(--es-primary);
  color: var(--es-on-primary);
}

.header, body.home-page .header:not(.is-scrolled) { background:transparent; color:var(--es-text); backdrop-filter:none; }
.header.is-scrolled, body.home-page .header.is-scrolled {
  background:var(--es-canvas); color:var(--es-text); box-shadow:0 3px 20px #3823110e;
}
.header:not([data-navigation="glass"]) .header-search {
  background: var(--es-surface);
  border-color: var(--es-border);
  color: var(--es-text);
}
.header:not([data-navigation="glass"]) .header-search:is(:hover,:focus-visible),
.header .header-actions .icon-btn:hover { background: var(--es-tint); color: var(--es-on-tint); }
.nav-dropdown-panel, .header-menu nav { background: var(--es-surface); border-color: var(--es-border); color: var(--es-text); }
.header .nav-dropdown-panel a:hover, .header-menu nav a:hover,
.shop-menu-quick { background: var(--es-tint); color: var(--es-on-tint); }
.shop-menu-tabs button[aria-pressed=true], .shop-menu-collections a:is(:hover,:focus-visible,.is-previewed) {
  background: var(--es-soft-accent);
  color: var(--es-on-soft-accent);
}
.shop-menu-picks .product-photo { background:transparent; }
.room-status-tag { background: var(--es-soft-accent); color: var(--es-on-soft-accent); }

.home-hero { background:var(--es-primary); border-color:var(--es-border); }
.home-hero-frame--intro::after {
  background: linear-gradient(90deg, #170f09d4, color-mix(in srgb, var(--es-primary) 21%, #1b120c90) 42%, transparent 78%);
}
.home-hero .pill-link--light { background: var(--es-surface); color: var(--es-text); }
.home-hero .pill-link--light:hover { background: var(--es-tint); color: var(--es-on-tint); }
.home-hero .pill-link--light > span { background: var(--es-accent); color: var(--es-on-accent); }
.home-service-strip { background: var(--es-tint); color: var(--es-on-tint); }
.home-service-strip a { color: inherit; border-color: var(--es-border); }
.home-story { color: var(--es-text); }
.footer {
  background:var(--es-brand-surface);
  color:var(--es-on-brand);
  border-color:var(--es-brand-border);
  --es-focus:var(--es-on-brand);
}
.footer :is(p,.footer-note p,.footer-bottom) { color:var(--es-brand-muted); }
.footer a:not(.logo) { color:inherit; }
.footer .footer-grid a:is(:hover,:focus-visible) { text-decoration:underline; text-underline-offset:3px; }
.footer :is(.footer-bottom,.footer-note .text-link,.payment-tags span) { border-color:var(--es-brand-border); }
.footer .payment-tags span { color:var(--es-on-brand); background:transparent; }
.footer-identity,.footer .footer-social { display:flex; align-items:center; flex-wrap:wrap; }
.footer-identity { gap:4px 10px; }
.footer .footer-bottom { align-items:center; }
.footer .footer-bottom .payment-tags { flex-wrap:wrap; margin-inline-start:0; }
.footer .footer-social a {
  display:grid;
  width:44px;
  height:44px;
  place-items:center;
  margin:0;
  border-radius:8px;
  color:var(--es-on-brand);
}
.footer .footer-social a:hover { color:var(--es-brand-muted); }
.footer .footer-social svg { display:block; width:20px; height:20px; }

.theme-filters { position: absolute; width: 0; height: 0; pointer-events: none; }
/* The same filter on the base, highlight and destination keeps the hotspot edges registered. */
.room-photograph, .room-image .room-illumination.is-lit, .room-initial-photo, .room-transition-photo,
.room-card-photo, .room-coming-soon img, .design-room-grid img, .shop-menu-room img,
.studio-room-image img, .home-bath-banner > img {
  filter: var(--es-room-filter, none);
}
.room-dialog { border-color: var(--es-border); }
.room-dialog .room-caption h2::after { background: var(--es-accent); }
.room-dialog .room-caption .room-shop-link {
  background: var(--es-primary);
  color: var(--es-on-primary);
  border-color: var(--es-primary-edge);
}
.room-dialog .room-caption .room-shop-link:hover {
  background: var(--es-primary-hover);
}
.room-hover-card { background: var(--es-surface); color: var(--es-text); border-color: var(--es-border); }
.room-hover-detail { color: var(--es-muted); }

.pdp-gallery-stage { border-color: var(--es-border); }
.pdp-gallery-stage, .pdp-finish-photo,
.pdp-gallery-main .pdp-media, .pdp-thumbnails button, .pdp-thumbnails .pdp-media, .pdp-lightbox .pdp-media { background:transparent; }
.hc-offer-chip { background: var(--es-soft-accent); color: var(--es-on-soft-accent); }
.pdp-save, .pdp-purchase .variant-buttons button, .pdp-qty {
  background: var(--es-surface);
  color: var(--es-text);
  border-color: var(--es-border);
}
.pdp-story-text { background: var(--es-tint); color: var(--es-on-tint); }
.pdp-page :is(h1,h2,h3), .pdp-spec-grid dd { color: var(--es-text); }
.pdp-page :is(.pdp-description,.pdp-delivery-note,.pdp-spec-grid dt,.pdp-price del) { color: var(--es-muted); }
.pdp-purchase .variant-buttons button.active {
  border-color: var(--es-focus);
  box-shadow: inset 0 0 0 1px var(--es-focus);
  background: var(--es-soft-accent);
  color: var(--es-on-soft-accent);
}
.pdp-thumbnails button[aria-pressed=true] { border-color: var(--es-focus); }

.empty, .summary-box, .commerce-empty, .commerce-callout { background: var(--es-tint); color: var(--es-on-tint); border-color: var(--es-border); }
:is(.empty,.commerce-empty,.commerce-callout,.summary-box,.pdp-story-text) p { color: var(--es-on-tint); }
dialog:not(.splash,.room-dialog,.pdp-lightbox), .commerce-panel { background: var(--es-surface); color: var(--es-text); border-color: var(--es-border); }
.commerce-page { --commerce-line: var(--es-border); --commerce-soft: var(--es-tint); }
.commerce-page :is(.commerce-field > span,.commerce-payments legend,.commerce-consents legend) { color: var(--es-text); }
.commerce-page :is(.commerce-inline-link,.commerce-back,.commerce-confirmed,.commerce-countdown) { color: var(--es-link); }
.commerce-page :is(.commerce-muted,.commerce-save-note,.order-totals dt,.commerce-line small,.order-timeline time) { color: var(--es-muted); }
.commerce-field :is(input,select,textarea), .collection-toolbar :is(input,select), .search-input input {
  background: var(--es-canvas); color: var(--es-text); border-color: var(--es-border);
}
.commerce-field input[readonly] { background: var(--es-tint); color: var(--es-on-tint); }
:is(.commerce-page,.studio-shell) input:is([type=checkbox],[type=radio]) { accent-color: var(--es-primary); }
.commerce-error { color: var(--es-error); }
.commerce-payments label, .commerce-consents label, .commerce-lines, .commerce-line,
.order-totals > div, .collection-links a, .order-timeline li { border-color: var(--es-border); }
.collection-links a:hover { background: var(--es-tint); color: var(--es-on-tint); }
.order-timeline .is-current::before { background: var(--es-primary); }

body.admin-page, .studio-shell { background: var(--es-canvas); color: var(--es-text); }
.studio-shell { --studio-line: var(--es-border); --studio-muted: var(--es-muted); --studio-olive: var(--es-primary); }
.studio-shell :is(h1,h2,h3,.studio-field > span,.studio-search > span,.pce-field > span,.pce-upload > span) { color: var(--es-text); }
.studio-shell .eyebrow, .studio-shell .studio-code-list code { color: var(--es-link); }
.studio-sidebar, .studio-disclosure, .studio-shell .studio-sticky-save, .studio-shell .studio-save-row {
  background: var(--es-tint);
  color: var(--es-on-tint);
  border-color: var(--es-border);
}
.studio-sidebar :is(nav a, .studio-brand, .studio-brand small, .studio-sidebar-bottom, .studio-sidebar-bottom p),
.studio-disclosure > summary small, .studio-save-row > span { color: var(--es-on-tint); }
.studio-sidebar nav :is(a:hover,[aria-current],a[aria-current]:hover) {
  background: var(--es-primary);
  color: var(--es-on-primary);
}
.studio-main .studio-panel, .studio-topbar, .studio-shell .product-content-editor,
.studio-shell :is(.studio-stat,.studio-order-list,.studio-product-row,.studio-category-card,.studio-room-card) {
  background: var(--es-surface);
  color: var(--es-text);
  border-color: var(--es-border);
}
.studio-shell :is(.studio-main .studio-page-title p,.studio-topbar > span,.studio-field small,.studio-hint,
  .studio-footer,.studio-product-row p,.pce-section-heading p,.studio-discount-row small,.studio-stat small) { color: var(--es-muted); }
.studio-shell :is(.studio-field,.studio-search,.pce-field,.pce-upload) :is(input:not([type=checkbox]),select,textarea),
.studio-shell .btn.secondary, .studio-action {
  background: var(--es-surface);
  color: var(--es-text);
  border-color: var(--es-border);
}
.studio-shell :is(input,textarea,select):focus-visible { outline-color: var(--es-focus); }
.studio-shell .btn.secondary:hover, .studio-action:hover, .studio-order-row:hover {
  background: var(--es-tint);
  color: var(--es-on-tint);
}
.studio-shell :is(.studio-badge,.studio-nav-count) { background: var(--es-soft-accent); color: var(--es-on-soft-accent); border-color: var(--es-border); }
.studio-shell :is(.pce-block,.pce-color-row.is-editing,.pce-save-bar,.studio-media-tile) { background: var(--es-tint); color: var(--es-on-tint); border-color: var(--es-border); }
.studio-shell :is(.studio-error,.is-error) { color: var(--es-error) !important; }

.studio-theme-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(220px,.8fr); align-items: start; gap: 20px; }
.studio-theme-options, .studio-theme-swatch { min-width: 0; }
.studio-theme-swatches { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,170px),1fr)); gap: 12px; }
.studio-theme-swatch { padding:12px; border:1px solid var(--es-border); border-radius:12px; background:var(--es-surface); }
.studio-theme-swatch label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 650; }
.studio-theme-swatch > div { display: flex; align-items: stretch; min-width: 0; gap: 7px; }
.studio-theme-swatch input {
  min-height: 40px;
  border: 1px solid var(--es-border);
  border-radius: 8px;
  background: var(--es-surface);
  color: var(--es-text);
}
.studio-theme-swatch input[type=color] { width: 44px; flex: 0 0 44px; padding: 4px; cursor: pointer; }
.studio-theme-swatch input[type=text] { width: 100%; min-width: 0; padding: 5px 8px; font: 13px ui-monospace, monospace; }
.studio-theme-swatch input[aria-invalid=true] { border-color: var(--es-error); }
.studio-theme-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 15px; }
.studio-theme-tools .studio-check { color: var(--es-text); font-size: 12px; }
.studio-theme-preview {
  margin: 0;
  border-radius: 13px;
  padding: 18px;
  border: 1px solid var(--es-border);
  background: var(--es-canvas);
  color: var(--es-text);
}
.studio-theme-preview figcaption { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--es-muted); }
.studio-theme-logo { display: flex; gap: 9px; align-items: center; margin: 13px 0 8px; font: clamp(22px,3vw,32px)/1 var(--serif); }
.studio-theme-preview p { color: var(--es-muted); margin: 0 0 14px; }
.studio-theme-example { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.studio-theme-example span, .studio-theme-example small { padding: 7px 10px; border-radius: 100px; font-size: 11px; }
.studio-theme-example span { background: var(--es-primary); color: var(--es-on-primary); }
.studio-theme-example small { background: var(--es-soft-accent); color: var(--es-on-soft-accent); }
.studio-theme-preview .studio-room-sample { display:block; width:100%; height:auto; margin-top:14px; border-radius:10px; }

@media (max-width: 950px) {
  .studio-theme-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:1000px) {
  body .header .header-actions .header-search {
    display:grid; place-items:center; gap:0; width:38px; min-width:38px; height:44px; padding:0;
    border:0; background:transparent;
  }
  body .header:not([data-navigation="glass"]) .header-actions .header-search:is(:hover,:focus-visible) { background:var(--es-tint); }
  .header .header-actions .header-search svg { margin:0; width:18px; height:18px; }
}
@media (max-width: 640px) {
  .header .brand-mark { width: 23px; height: 25px; }
  .header .logo { gap: 6px; }
  .header .logo strong { font-size: clamp(17px,4.7vw,23px); white-space: nowrap; }
  .home-hero-frame--intro::after { background: linear-gradient(90deg,#170f09e2,#21140996 70%,#2114092a); }
  body .header .header-actions .header-search { width:33px; min-width:33px; }
}
@media (max-width: 350px) {
  .header .header-actions :is(.icon-btn,.header-search,.header-menu summary) { width: 29px; min-width: 29px; }
  body .header .header-actions .header-search { width:29px; min-width:29px; }
  .studio-theme-swatch input[type=color] { width: 33px; flex-basis: 33px; }
}
