/* Shared controls and storefront presentation. */
:root {
  --hm-forest: #18392e;
  --hm-ink: #172822;
  --hm-muted: #52645a;
  --hm-line: #d6dfd7;
  --hm-surface: #f1f4ef;
}

.ui-icon,
.store-search-page [data-view]::before {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  background: currentColor;
  mask: var(--ui-glyph) center / contain no-repeat;
}

.icon-search {
  --ui-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E");
}
.icon-collection,
.store-search-page [data-view="grid"] {
  --ui-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3.5 3.5h6v6h-6zm11 0h6v6h-6zm-11 11h6v6h-6zm11 0h6v6h-6z'/%3E%3C/svg%3E");
}
.icon-box {
  --ui-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M3 8h18v4H3zm2 4v8h14v-8M3 8l2-4h14l2 4m-12 8h6'/%3E%3C/svg%3E");
}
.store-search-page [data-view="list"] {
  --ui-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M8 6h12M8 12h12M8 18h12M4 6h.1M4 12h.1M4 18h.1'/%3E%3C/svg%3E");
}
.store-search-page [data-view]::before { content: ""; vertical-align: -.23em; margin-right: .35em; }

.header-search button {
  display: grid;
  place-items: center;
  border-radius: 0 5px 5px 0;
}
.header-search button:hover { background: #e6ede5; }
.header-search .ui-icon { width: 1.25rem; height: 1.25rem; }

.shop-directory > details { padding: 0; border: 0; }
.shop-directory summary { display: inline-flex; align-items: center; gap: .6rem; }
:is(.shop-directory, .family-models, .catalog-filter-panel, .catalog-reference, .browse-reference, .ss-filter-accordion, .faq-section, .inquiry-details) summary {
  list-style: none;
}
:is(.shop-directory, .family-models, .catalog-filter-panel, .catalog-reference, .browse-reference, .ss-filter-accordion, .faq-section, .inquiry-details) summary::-webkit-details-marker { display: none; }
:is(.shop-directory, .family-models, .catalog-filter-panel, .catalog-reference, .browse-reference, .faq-section, .inquiry-details) summary::after,
.store-search-page .ss-filter-accordion:not([open]) > summary::after,
.store-search-page .ss-filter-accordion[open] > summary::after {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: .42rem;
  height: .42rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin-block: -.2rem 0;
}
.shop-directory details[open] summary::after,
.store-search-page .ss-filter-accordion[open] > summary::after,
:is(.family-models, .catalog-filter-panel, .catalog-reference, .browse-reference, .inquiry-details)[open] > summary::after,
.faq-section details[open] > summary::after { transform: rotate(225deg); margin-block: .2rem 0; }
:is(.catalog-filter-panel, .faq-section, .inquiry-details) summary::after { float: right; margin-top: .45em; }
:is(.catalog-reference, .browse-reference) summary::after { margin-inline-start: .65em; }

.streamlined-home .shopping-start {
  background: #ecf1ea;
  padding-block: clamp(1.4rem, 4vw, 3.25rem);
}
.streamlined-home .shopping-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  border: 1px solid #294739;
  border-radius: 16px;
  overflow: hidden;
  background: var(--hm-forest);
  margin-bottom: 16px;
}
.streamlined-home .shopping-heading {
  color: #fff;
  padding: clamp(1.5rem, 4.1vw, 4.25rem);
  margin: 0;
}
.streamlined-home .shopping-heading h1 {
  color: #fff;
  max-width: 13ch;
  font-size: clamp(2.65rem, 5.3vw, 5.35rem);
  line-height: .99;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.streamlined-home .shopping-subtitle {
  max-width: 37ch;
  margin: 1rem 0 1.45rem;
  color: #e1ebe1;
  font-size: 1rem;
  line-height: 1.55;
}
.hero-search {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .55rem .85rem;
  border: 1px solid #aabcad;
  border-radius: 6px;
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}
.hero-search:hover { background: #2d4c3f; }
.hero-search:focus-visible,
.work-essentials:focus-visible { outline: 2px solid #f0d2a2; outline-offset: -4px; }
.streamlined-home .work-essentials {
  display: block;
  position: relative;
  min-height: 14rem;
  height: auto;
  border-radius: 0;
  border: 0;
  background: #d5c7aa;
}
.streamlined-home .work-essentials img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.streamlined-home .work-essentials > span {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  position: absolute;
  margin: 0;
  inset: auto auto clamp(.75rem, 2.5vw, 1.5rem) clamp(.75rem, 2.5vw, 1.5rem);
  padding: .65rem .85rem;
  border-radius: 6px;
  background: #fff;
  color: var(--hm-forest);
  line-height: 1.3;
  text-decoration: none;
}
.streamlined-home .work-essentials > span .ui-icon {
  position: static;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: currentColor;
  border-radius: 0;
}
.streamlined-home .work-essentials:hover > span { background: #eef3ec; }

.streamlined-home .shopping-paths { gap: 16px; }
.streamlined-home .shopping-path {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: 12px;
  text-decoration: none;
}
.streamlined-home .shopping-path:hover { border-color: #789685; background: #fbfcfb; }
.shopping-path .path-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--hm-forest);
  background: #eaf1e9;
  mask: none;
  display: grid;
  place-items: center;
}
.shopping-path .path-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: var(--ui-glyph) center / contain no-repeat;
}
.streamlined-home .shopping-path h2 { font-size: 1.35rem; color: var(--hm-ink); }
.streamlined-home .shopping-path p { margin: .35rem 0 .55rem; color: var(--hm-muted); }
.streamlined-home .shopping-path strong { border: 0; padding: 0; color: var(--hm-forest); }
.shopping-path:hover strong { text-decoration: underline; text-underline-offset: .22em; }

.work-essentials-hero {
  display: block;
  width: 100%;
  height: auto;
  max-height: 24rem;
  object-fit: cover;
  border-radius: 12px;
}

.family-view {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .85rem;
  min-height: 44px;
  font-size: .875rem;
  color: var(--hm-forest);
  font-weight: 650;
}
.family-view input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--hm-forest);
}
.family-view:has(input:disabled) { color: var(--hm-muted); }
.family-card {
  min-width: 0;
  align-self: start;
  border: 1px solid var(--hm-line);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.family-photo {
  margin: 0;
  display: grid;
  position: relative;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #edf0eb;
}
.family-photo img { width: 88%; height: 88%; object-fit: contain; }
.family-photo figcaption {
  position: absolute;
  inset: .5rem auto auto .5rem;
  color: var(--hm-forest);
  background: #fff;
  border-radius: 4px;
  padding: .22rem .35rem;
  font-size: .71rem;
}
.family-copy { padding: .85rem; }
.family-copy > small { color: var(--hm-muted); font-weight: 650; font-size: .78rem; }
.family-copy h3 { margin: .3rem 0 .65rem; font-size: 1.03rem; line-height: 1.32; letter-spacing: -.02em; }
.family-models summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 44px;
  border-radius: 6px;
  padding: .4rem .65rem;
  background: var(--hm-surface);
  color: var(--hm-forest);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 700;
}
.family-models summary::after { flex-shrink: 0; }
.family-models summary:hover { background: #e4ede3; }
.family-models ul, .related-family ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.family-models li a, .related-family li a {
  display: grid;
  gap: .2rem;
  padding: .65rem .25rem;
  border-bottom: 1px solid var(--hm-line);
  color: var(--hm-forest);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.family-models li a:hover, .related-family li a:hover { text-decoration: underline; }
.family-models li span, .related-family li span { color: var(--hm-muted); font-size: .8rem; line-height: 1.4; }
.family-models li strong { font-size: .85rem; }
.related-family h2 { margin-bottom: 1rem; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--hm-ink); }
.related-family ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .75rem; }
.related-family li a { min-height: 100%; padding: .9rem; border: 1px solid var(--hm-line); border-radius: 8px; background: #fff; }

@media (max-width: 768px) {
  .streamlined-home .shopping-intro { grid-template-columns: 1fr; border-radius: 12px; }
  .streamlined-home .shopping-heading { padding: 1.4rem; }
  .streamlined-home .shopping-heading h1 { font-size: clamp(2.45rem, 9.5vw, 3.85rem); }
  .streamlined-home .shopping-subtitle { margin: .65rem 0 1rem; }
  .streamlined-home .work-essentials { display: block; min-height: 8.75rem; }
  .streamlined-home .work-essentials img { display: block; }
  .work-essentials-hero { max-height: 10rem; }
  .streamlined-home .shopping-path { gap: 12px; padding: .95rem; }
  .streamlined-home .shopping-paths { gap: 8px; }
  .family-copy { padding: .65rem; }
}

.hero-shop {
  background: #f6f5ed;
  color: #18392e;
  border-color: transparent;
}
.hero-shop:hover { background: #e5ece1; }
.hero-shop:focus-visible { outline-offset: 3px; }

.work-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1rem 0 .8rem;
}
.work-shortcuts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem .75rem;
  border: 1px solid #cbd8ce;
  border-radius: 6px;
  color: #254c3a;
  background: #fff;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.work-shortcuts a:hover, .work-shortcuts a[aria-current] {
  background: #e6efe7;
  border-color: #759484;
}

.shop-offer .offer-unit {
  color: #37594a;
  font-size: .875em;
  font-weight: 650;
}
.shop-offer .offer-unit::before {
  content: "·";
  padding-inline: .18em .3em;
}
.cart-add-actions [hidden], .catalog-card-copy .card-action[hidden] {
  display: none;
}

.hero-shopping-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
