/* Shared interaction states for navigation, forms, catalogue and product panels. */
:root { --focus-ring:#a8d0ff; --hover-surface:#253346; --state-blue:#235abd }
body :is(a,button,input,select,textarea,summary):focus-visible {
  outline:3px solid var(--focus-ring);outline-offset:4px;
}
.buyer-paths.wrap {
  display:flex; flex-flow:row wrap; justify-content:center; gap:8px;
  padding-block:20px 28px; border:none;
}
.buyer-paths.wrap a,.buyer-paths.wrap a+a {
  width:auto; min-height:44px; padding:9px 15px; border:1px solid #48505a;
  border-radius:24px; font-size:14px; letter-spacing:0; gap:12px;
}
#main-nav a[aria-current] { box-shadow:inset 0 -2px #91baff;color:#c7dcff }
.filters button[aria-pressed=true],#saved-filter[aria-pressed=true],.quick-add[aria-pressed=true] {
  color:white;background:var(--state-blue);border-color:#a9caff;
}
.folio-panel .folio-bottle,.folio-panel:has([aria-expanded=true]) .folio-bottle {
  display:block;object-fit:contain;width:92%;height:53%;bottom:13%;right:4%;opacity:.88;
}
.folio-panel:has([aria-expanded=true]) .folio-bottle {width:46%;height:74%;right:1%;bottom:5%;opacity:1}
.folio-panel:has([aria-expanded=true]) {box-shadow:inset 0 3px #f5c988;background:#ffffff09}
.folio-select[aria-expanded=true] {color:white;text-decoration:underline;text-underline-offset:7px;text-decoration-color:#f5c988}
.inquiry-dialog :is(input,textarea,select):focus,.search-label:focus-within {border-color:var(--focus-ring);box-shadow:0 0 0 2px #83b2ff}
@media(max-width:760px){
 .folio-panel:not(:has([aria-expanded=true])) .folio-bottle {height:54px;width:52px;right:12px;bottom:4px}
 .buyer-paths.wrap {gap:6px}.buyer-paths.wrap a,.buyer-paths.wrap a+a {font-size:13px;padding-inline:11px}
}
@media(prefers-reduced-motion:no-preference){
 .buyer-paths a,.header nav a,.filters button,.folio-panel,.button,.quick-add {transition-property:background-color,color,box-shadow,flex-grow;transition-duration:.2s}
}
/* One finish for persistent selections across the four pages. */
:root {
  --selected-fill: linear-gradient(112deg, #b54c12 0%, #8a3714 48%, #512710 100%);
  --selected-edge: #ed995f;
  --focus-ring: #ffc291;
}
#main-nav a[aria-current],
body .quick-add[aria-pressed="true"],
body button:is([aria-pressed="true"], [aria-selected="true"], [aria-expanded="true"]),
body.has-selection :is(.inquiry-button, .enquiry-dock),
body button[data-add]:disabled,
#saved-filter[aria-pressed="true"],
.filters button[aria-pressed="true"] {
  background: var(--selected-fill);
  color: white;
  border-color: var(--selected-edge);
  box-shadow: inset 0 0 0 1px #ffbc8859;
  text-decoration: none;
  opacity: 1;
}
#main-nav a { border-radius: 7px; padding-inline: 8px; }
#main-nav a[aria-current]::after { display: none; }
.folio-panel:has([aria-expanded="true"]) { box-shadow: inset 0 3px var(--selected-edge); }
.folio-panel .folio-select[aria-expanded="true"] { border-radius: 0 0 8px 0; }
.product-card:has(.quick-add[aria-pressed="true"]) .product-image {
  outline-color: var(--selected-edge);
  box-shadow: inset 0 0 0 3px #934417;
}
.product-card:has(.quick-add[aria-pressed="true"]) .product-category::after { color: #773511; }

@media (hover: hover) {
  :root { --hover-orange: #ffab69; --hover-fill: #ad4610; }
  body :is(a, button, summary):hover { color: var(--hover-orange); }
  body :is(.button, .icon-button, .inquiry-button, .enquiry-dock, .quick-add,
           .sun-cta, .sun-toggle, .mobile-quote, .motion-toggle, .folio-select,
           .vx-controls button, .filters button, .buyer-paths.wrap a):hover,
  #saved-filter:hover {
    background-color: var(--hover-fill);
    color: white;
    border-color: var(--hover-orange);
    box-shadow: inset 0 0 0 1px var(--hover-orange);
  }
  #main-nav a:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--hover-orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
  }
  #main-nav a:hover::after { display: none; }
  body :is(.product-card:hover .product-image, .product-open:hover .product-image,
           .application a:hover img, .editorial-feature:hover, .vx-card:hover) {
    outline: 2px solid var(--hover-orange);
    outline-offset: -2px;
  }
  .product-open:hover .product-view { background: var(--hover-fill); color: white; }
  body :is(.product-caption:hover h3, .application a:hover h3, .company-notes details a:hover,
           .enquiry-row > button:hover, .scene-reference:hover, .contact-link:hover,
           .text-link:hover, .reset-button:hover) { color: var(--hover-orange); }
  body :is(.text-link, .contact-link):hover::after { background: currentColor; }
  body :is(select, textarea, input):enabled:hover,
  .search-label:hover { border-color: var(--hover-orange); }
  .folio-panel:has(.folio-select:hover) { box-shadow: inset 0 3px var(--hover-orange); }
}.vx-stage .vx-controls {
  position: absolute;
  inset: 50% clamp(8px, 2vw, 32px) auto;
  z-index: 3;
  transform: translateY(-50%);
  justify-content: space-between;
  margin: 0;
  pointer-events: none;
}
.vx-stage .vx-controls button {
  pointer-events: auto;
  width: 44px;
  background-color: #241810ed;
  border-color: #eed7be99;
  color: white;
  font-size: 20px;
}
@media (hover: hover) {
  .vx-stage .vx-controls button:hover { background-color: var(--hover-fill); }
}
.cover-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:calc(100% - 50px)}
.cover-actions .sun-cta {min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.cover-actions .cover-quote {background:#a6410e;color:white}
.use-links {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding-inline:var(--gutter);background:#231b17;border:1px solid var(--selected-edge)}
.use-links a {display:flex;align-items:center;justify-content:space-between;gap:4px;padding:clamp(12px,2vw,28px);min-height:50px;color:#fff2e6;font-weight:500}
.use-links a+a {border-left:1px solid var(--selected-edge)}
@media(hover:hover){.use-links a:hover,.cover-actions .sun-cta:hover {background:#ad4610;color:white}}
@media(max-width:600px){.cover-actions{max-width:100%;gap:6px}.cover-actions .sun-cta{font-size:13px;padding-inline:10px}.use-links a{font-size:14px;padding-inline:7px}}
/* Keep the three use shortcuts visible at the bottom of the opening viewport. */
.sun-hero {height:calc(100svh - 64px)}
.use-links {min-height:64px}
.use-links a {padding-block:10px}
#sun-root + .buyer-paths {padding-block:10px;min-height:64px}
#featured-glass {
  min-height: calc(clamp(620px, 90svh, 830px) + clamp(64px, 8vw, 120px));
  padding-block: clamp(64px, 8vw, 128px);
  display:flex;flex-direction:column;justify-content:center;
  gap:clamp(12px,3vw,48px);
}
#featured-glass .vx-stage {height:clamp(250px,55svh,620px)}
@media(max-width:600px){
  #featured-glass .vx-stage {height:clamp(320px,100vw,460px)}
  #sun-root + .buyer-paths {width:100%;gap:4px}
  #sun-root + .buyer-paths a {font-size:12px;gap:4px;padding-inline:7px}
}

.use-links a span { color: var(--hover-orange, #ffab69); }
