/* Hallmark · source: supplied FrontendTemplate · catalogue, wave masthead and footer · pre-emit critique: P4 H4 E4 S5 R5 V4 */
@font-face {
    font-family: Quicksand;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/quicksand-regular.ttf") format("truetype");
}
@font-face {
    font-family: Quicksand;
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/quicksand-semibold.ttf") format("truetype");
}
@font-face {
    font-family: Quicksand;
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
    src: url("fonts/quicksand-bold.ttf") format("truetype");
}
:root {
    --color-ink: #1d2a4d;
    --color-paper: #fff;
    --color-panel: #edf9ff;
    --color-muted: #626773;
    --color-line: #e3e8ef;
    --color-signal: #379eff;
    --color-signal-ink: #fff;
    --color-price: #e11925;
    --color-link: #0874c9;
    --color-footer: #1d2a4d;
    --color-footer-ink: #fff;
    --color-card-shadow: #dce8ff;
    --font-display: Quicksand, "Segoe UI", sans-serif;
    --font-body: Quicksand, "Segoe UI", sans-serif;
    --shell: 1110px;
    --text-base: 15px;
    --text-lg: 18px;
    --text-xl: clamp(28px, 3.8vw, 52px);
    --text-section: 30px;
    --radius: 10px;
}
body { font-weight: 500; line-height: 1.5; }
a { text-decoration: none; }
a:hover { color: var(--color-link); }
.masthead {
    position: relative;
    z-index: 30;
    display: flex;
    min-height: 72px;
    padding-inline: max(16px, calc((100% - var(--shell)) / 2));
    border: 0;
    border-top: 10px solid var(--color-signal);
    background: var(--color-paper);
}
.masthead::before { content: ""; position: absolute; inset: 0 auto 0 0; width: max(16px, calc((100% - var(--shell)) / 2)); background: var(--color-signal); z-index: -1; }
.masthead__identity { min-height: 62px; flex: 0 0 190px; padding-right: 18px; background: var(--color-signal); border-bottom-right-radius: 34px; }
.wordmark { color: var(--color-paper); font-size: 20px; line-height: 1.15; letter-spacing: -0.4px; }
.wordmark:hover { color: var(--color-paper); }
.wordmark > span { max-width: 180px; white-space: normal; overflow-wrap: anywhere; }
.masthead__nav { flex: 1; min-width: 0; border: 0; background: var(--color-paper); border-top-left-radius: 30px; padding-left: 24px; }
.nav-row { min-height: 62px; display: flex; align-items: center; gap: 12px; }
.nav-menu { min-width: 0; flex: 1; }
.nav-list { border: 0; gap: 20px; }
.nav-list > li { border: 0; }
.nav-list a { font-size: 15px; text-transform: none; padding: 12px 0; font-weight: 700; }
.nav-list a:hover, .nav-list a:focus-visible { color: var(--color-signal); background: var(--color-paper); }
.subnav { border: 1px solid var(--color-line); border-radius: 8px; padding: 12px 18px; box-shadow: 0 4px 18px var(--color-card-shadow); }
.locale-list { padding: 0; gap: 8px; }
.header-contact { display: grid; place-items: center; width: 36px; min-width: 36px; height: 44px; }
.header-contact svg { width: 24px; height: 24px; }
.button { border: 0; border-radius: 8px; font-weight: 600; padding: 10px 22px; }
.button:hover { background: var(--color-ink); color: var(--color-paper); }
.water-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; fill: var(--color-paper); pointer-events: none; }
.hero { border: 0; background: var(--color-panel); }
.hero__slide { min-height: 640px; max-width: 100%; padding-inline: max(16px, calc((100% - var(--shell)) / 2)); align-items: center; }
.hero__copy { min-height: 0; padding: 48px 16px 72px 0; }
.hero h1 { max-width: 17ch; font-size: var(--text-xl); line-height: 1.25; font-weight: 700; letter-spacing: 0; text-transform: none; }
.hero__media { min-height: 0; height: 540px; background: transparent; }
.hero__media img { object-fit: contain; }
.hero__controls { bottom: 40px; right: max(16px, calc((100% - var(--shell)) / 2)); z-index: 1; }
.hero__controls button, .hero__controls span { border: 0; border-radius: 24px; }
.page-banner { position: relative; background: var(--color-panel); min-height: 280px; padding: 76px 16px 84px; text-align: center; }
.page-banner__title { font-size: 28px; font-weight: 700; text-transform: uppercase; margin: 0; overflow-wrap: anywhere; }
.breadcrumb { border: 0; justify-content: center; padding-block: 6px; color: var(--color-signal); font-weight: 700; }
.breadcrumb > span:first-child a { border-radius: 18px; background: var(--color-signal); color: var(--color-paper); padding: 2px 12px; }
.breadcrumb > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.page-hero { padding: 0; }
.page-hero h1, .page-hero > .eyebrow { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.catalog-section, .partner-section { padding-block: 40px; }
.section-heading, .section-heading--indexed { flex-direction: column; align-items: center; border: 0; padding: 0; gap: 12px; margin-bottom: 28px; text-align: center; }
.section-heading h2, .section-heading > .eyebrow { font-size: var(--text-section); font-weight: 700; letter-spacing: 0; line-height: 1.3; margin: 0; color: var(--color-ink); }
.section-index { display: none; }
.section-heading .text-link { color: var(--color-link); font-size: 14px; }
.card-grid { gap: 24px; border: 0; }
.catalog-section > .card-grid:has(.product-card) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-card { border: 1px solid var(--color-panel); border-radius: var(--radius); box-shadow: 0 0 8px var(--color-card-shadow); overflow: hidden; }
.catalog-card__media { background: var(--color-paper); }
.product-card .catalog-card__media { aspect-ratio: 1; padding: 12px; }
.product-card .catalog-card__media img { object-fit: contain; }
.catalog-card__body { padding: 14px; }
.product-card .catalog-card__body { text-align: center; }
.catalog-card h3 { font-size: 16px; line-height: 1.5; font-weight: 600; }
.product-card h3 { font-weight: 500; }
.catalog-card .price { color: var(--color-price); margin: 8px 0 0; font-size: 16px; font-weight: 700; }
.product-card .text-link { color: var(--color-link); font-weight: 700; font-size: 14px; }
.catalogue-layout { grid-template-columns: 315px minmax(0, 1fr); gap: 28px; padding-top: 24px; }
.category-panel { border: 0; border-radius: var(--radius); padding: 16px; box-shadow: 0 0 14px var(--color-card-shadow); }
.category-panel h2 { text-transform: uppercase; color: var(--color-ink); margin: 0 0 14px; font-size: 22px; }
.category-panel li { border: 0; }
.category-panel a { white-space: normal; overflow-wrap: anywhere; font-size: 15px; padding-block: 8px; }
.statement-section { padding-block: 40px; text-align: center; }
.statement-section .eyebrow { font-size: var(--text-section); letter-spacing: 0; }
.statement-section--dark { color: var(--color-ink); background: var(--color-panel); }
.prose--lead { margin-inline: auto; font-size: 18px; line-height: 1.6; font-weight: 400; letter-spacing: 0; }
.prose img { display: block; max-width: 100%; height: auto; margin: 20px auto; }
.prose figure { margin: 24px 0; }
.prose figcaption { text-align: center; font-size: 14px; }
.detail { gap: 32px; padding-block: 32px; }
.detail__media { min-height: 0; aspect-ratio: 1; border-radius: var(--radius); background: var(--color-paper); box-shadow: 0 0 12px var(--color-card-shadow); }
.detail__media img { object-fit: contain; padding: 16px; }
.detail h1, .editorial-detail h1, .contact-layout h1 { max-width: none; font-size: 28px; line-height: 1.4; letter-spacing: 0; }
.detail__intro { align-self: start; }
.detail__intro .price { color: var(--color-price); font-size: 26px; }
.detail__content { max-width: none; padding: 24px; border-radius: var(--radius); box-shadow: 0 0 12px var(--color-card-shadow); }
.partner-grid { gap: 18px; border: 0; }
.partner-grid a { border: 1px solid var(--color-line); border-radius: var(--radius); min-height: 100px; padding: 16px; }
.partner-grid img { filter: none; }
.contact-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-block: 24px 60px; }
.contact-layout > header, .contact-form { border-radius: 12px; box-shadow: 0 0 16px var(--color-card-shadow); padding: 22px; align-self: start; }
.contact-layout > header .eyebrow { display: none; }
.contact-form input, .contact-form textarea { border-color: var(--color-line); border-radius: 7px; }
.contact-form label { font-weight: 500; }
.contact-form button { justify-self: start; }
.contact-map { grid-column: 1 / -1; min-width: 0; }
.contact-map iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: 12px; }
.site-footer { position: relative; background: var(--color-footer); color: var(--color-footer-ink); border: 0; margin-top: 50px; }
.footer-wave { position: absolute; top: -31px; width: 100%; height: 32px; fill: var(--color-footer); }
.footer-grid { grid-template-columns: 1.2fr 1.2fr 0.8fr; gap: 40px; padding-block: 65px; }
.footer-grid h2, .footer-grid h3 { font-size: 16px; font-weight: 700; text-transform: uppercase; line-height: 1.5; }
.footer-menu-links { list-style: none; padding: 0; margin: 0 0 24px; }
.footer-menu-links li { margin-block: 8px; overflow-wrap: anywhere; }
.footer-lead .eyebrow { display: none; }
.site-footer a:hover { color: var(--color-signal); }
.footer-base { justify-content: center; gap: 20px; padding-block: 20px; border-color: var(--color-muted); }
@media (max-width: 1199px) {
    .masthead { padding-inline: 16px; }
    .masthead__identity { flex-basis: 150px; }
    .wordmark { font-size: 17px; }
    .nav-list { gap: 14px; }
    .nav-list a { font-size: 14px; }
    .catalogue-layout { grid-template-columns: 250px minmax(0, 1fr); }
}
@media (max-width: 959px) {
    .masthead__nav { padding-left: 16px; }
    .nav-menu > summary { display: flex; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
    .nav-menu > summary span { width: 22px; height: 2px; background: var(--color-ink); }
    .nav-menu:not([open]) > nav { display: none; }
    .nav-menu[open] > nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--color-paper); border-bottom: 1px solid var(--color-line); padding: 16px; max-height: 70dvh; overflow: auto; }
    .nav-list { display: block; }
    .nav-list a { display: block; }
    .subnav { position: static; display: block; min-width: 0; box-shadow: none; border: 0; padding: 0 16px; }
    .hero__slide { min-height: 460px; }
    .hero__media { height: 360px; }
    .catalogue-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 20px; }
    .catalogue-layout .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-section > .card-grid:has(.product-card) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .hero__slide { grid-template-columns: minmax(0, 1fr); padding: 24px 16px 70px; }
    .hero__copy { order: 1; padding: 20px 0; }
    .hero__media { height: 300px; }
    .hero h1 { font-size: 30px; max-width: none; }
    .hero__controls { bottom: 30px; }
    .page-banner { min-height: 200px; padding-top: 42px; padding-bottom: 65px; }
    .page-banner__title { font-size: 23px; }
    .catalogue-layout, .contact-layout, .detail { grid-template-columns: minmax(0, 1fr); }
    .category-panel ul { display: flex; flex-wrap: wrap; gap: 8px 16px; }
    .category-panel h2 { font-size: 19px; }
    .card-grid, .catalog-section > .card-grid:has(.product-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .catalog-card__body { padding: 10px; }
    .catalog-card h3 { font-size: 14px; }
    .product-card .text-link { white-space: normal; }
    .section-heading h2, .section-heading > .eyebrow { font-size: 24px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 36px; }
    .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-base { flex-direction: column; text-align: center; }
    .contact-form, .contact-layout > header { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}

/* Product search uses the existing FrontendTemplate colours and controls. */
.header-search { position: relative; flex-shrink: 0; }
.header-search > summary { display: flex; align-items: center; justify-content: center; width: 40px; height: 44px; cursor: pointer; list-style: none; }
.header-search > summary::-webkit-details-marker { display: none; }
.header-search svg { width: 22px; height: 22px; }
.product-search { margin-bottom: 24px; }
.product-search label { display: block; margin-bottom: 8px; font-weight: 600; }
.product-search__fields { display: flex; gap: 8px; }
.product-search input { min-width: 0; width: 100%; border: 1px solid var(--color-line); border-radius: 7px; padding: 10px 12px; font: inherit; background: var(--color-paper); color: var(--color-ink); }
.product-search button { flex-shrink: 0; white-space: nowrap; }
.header-search .product-search { position: absolute; z-index: 30; top: 100%; right: 0; width: min(420px, calc(100vw - 32px)); padding: 20px; background: var(--color-paper); border-radius: var(--radius); box-shadow: 0 4px 20px var(--color-card-shadow); }
@media (max-width: 767px) {
    .header-search { position: static; }
    .header-search .product-search { top: 72px; right: 16px; }
    .product-search__fields { flex-wrap: wrap; }
}

.favorite-toggle { border: 1px solid var(--color-line); background: var(--color-paper); color: var(--color-ink); font: inherit; border-radius: 8px; padding: 6px 10px; cursor: pointer; margin-bottom: 10px; }
.favorite-toggle[aria-pressed="true"] { color: var(--color-link); background: var(--color-panel); }
.favorite-shortcuts { display: flex; gap: 2px; flex-shrink: 0; }
.favorite-shortcuts button { border: 0; background: transparent; color: var(--color-ink); min-width: 40px; height: 44px; cursor: pointer; font: inherit; }
.favorite-shortcuts button > span:first-child { font-size: 22px; }
.favorite-shortcuts [data-favorite-count] { font-size: 11px; color: var(--color-link); }
.favorites-dialog { width: min(900px, calc(100vw - 32px)); max-height: 85dvh; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-paper); color: var(--color-ink); padding: 24px; }
.favorites-dialog::backdrop { background: #1d2a4d80; }
.favorites-dialog > form { display: flex; justify-content: flex-end; }
.favorites-dialog h2 { font-size: 24px; }
.favorites-dialog .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.favorite-announcement { position: fixed; bottom: 12px; left: 16px; right: 16px; z-index: 45; margin: 0 auto; width: fit-content; max-width: calc(100% - 32px); border-radius: 8px; background: var(--color-panel); color: var(--color-ink); }
.favorite-announcement:not(:empty) { padding: 10px 16px; }
.favorite-shortcuts[hidden], .favorite-toggle[hidden], .favorites-dialog [hidden] { display: none; }
@media (max-width: 959px) {
    .masthead:has(.favorite-shortcuts:not([hidden])) { flex-wrap: wrap; }
    .masthead:has(.favorite-shortcuts:not([hidden])) .masthead__identity { flex-basis: 140px; }
    .masthead:has(.favorite-shortcuts:not([hidden])) .masthead__nav { flex-basis: 100%; padding-left: 0; }
    .masthead:has(.favorite-shortcuts:not([hidden])) .nav-row { justify-content: space-between; min-height: 48px; }
    .masthead:has(.favorite-shortcuts:not([hidden])) .nav-menu[open] > nav,
    .masthead:has(.favorite-shortcuts:not([hidden])) .header-search .product-search { top: 100%; }
    .favorites-dialog .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .favorites-dialog { padding: 16px; }
    .favorites-dialog .card-grid { grid-template-columns: minmax(0, 1fr); }
}
.masthead.is-compact { flex-wrap: wrap; }
.masthead.is-compact .masthead__nav { flex-basis: 100%; padding-left: 0; }
.masthead.is-compact .nav-row { justify-content: space-between; min-height: 48px; }
.masthead.is-compact .nav-menu > summary { display: flex; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
.masthead.is-compact .nav-menu > summary span { width: 22px; height: 2px; background: var(--color-ink); }
.masthead.is-compact .nav-menu:not([open]) > nav { display: none; }
.masthead.is-compact .nav-menu[open] > nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--color-paper); padding: 16px; max-height: 65dvh; overflow: auto; }
.masthead.is-compact .nav-list { display: block; }
.masthead.is-compact .nav-list a { display: block; }
.masthead.is-compact .subnav { position: static; display: block; min-width: 0; padding: 0 16px; border: 0; box-shadow: none; }
.masthead.is-compact .header-search { position: static; }
.masthead.is-compact .header-search .product-search { top: 100%; right: 16px; }
.product-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.product-tabs a { padding: 8px 14px; border: 1px solid var(--color-line); border-radius: 8px; color: var(--color-ink); }
.product-tabs a[aria-selected="true"] { background: var(--color-signal); color: var(--color-signal-ink); }
[data-product-panel][hidden] { display: none; }
.gallery-dialog { width: min(1100px, calc(100vw - 24px)); max-height: 95dvh; padding: 16px; border: 0; border-radius: var(--radius); background: var(--color-paper); color: var(--color-ink); }
.gallery-dialog::backdrop { background: #1d2a4dcc; }
.gallery-dialog > form { display: flex; justify-content: flex-end; }
.gallery-dialog > img { width: 100%; height: 70dvh; object-fit: contain; }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 12px; }
.detail__media > a { display: block; width: 100%; height: 100%; }
a[data-gallery-link] { cursor: zoom-in; }
.price-original { margin-left: 8px; color: var(--color-muted); font-size: 0.8em; font-weight: 500; white-space: nowrap; }
.quick-contact { position: fixed; bottom: 16px; right: 16px; z-index: 40; display: flex; align-items: flex-end; gap: 8px; }
.quick-contact summary, .quick-contact__top { cursor: pointer; padding: 10px 16px; border-radius: 10px; background: var(--color-signal); color: var(--color-signal-ink); box-shadow: 0 2px 10px var(--color-card-shadow); }
.quick-contact nav { position: absolute; right: 0; bottom: 56px; display: grid; min-width: 180px; max-height: 60dvh; overflow: auto; padding: 12px; background: var(--color-paper); border: 1px solid var(--color-line); border-radius: 10px; box-shadow: 0 2px 12px var(--color-card-shadow); }
.quick-contact nav a { padding: 8px 12px; }
.section-description { margin-block: 0 24px; }

/* Hallmark · homepage blocks · supplied template tokens · P4 H5 E4 S4 R5 V4 */
.home-values, .home-process { padding-block: 56px; text-align: left; }
.home-values .section-heading, .home-process .section-heading { justify-content: flex-start; margin-bottom: 32px; }
.home-values h2, .home-process h2 { margin: 0; font-size: var(--text-section); line-height: 1.3; text-transform: none; }
.value-grid, .process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.value-item { border-top: 2px solid var(--color-signal); padding-top: 24px; }
.value-mark { display: inline-grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--color-panel); color: var(--color-link); margin-bottom: 16px; }
.value-mark svg { width: 26px; height: 26px; }
.home-values h3, .home-process h3 { font-size: 21px; line-height: 1.35; margin: 0 0 16px; }
.home-values .prose, .home-process .prose { max-width: none; text-align: left; font-size: var(--text-base); line-height: 1.8; }
.home-values .prose p, .home-process .prose p { margin: 0; }
.home-process { background: var(--color-panel); }
.process-grid { list-style: none; margin: 0; padding: 0; }
.process-item { position: relative; border-top: 1px solid var(--color-line); padding-top: 24px; }
.process-number { display: block; font-size: 44px; font-weight: 700; line-height: 1; color: var(--color-link); margin-bottom: 24px; }
@media (max-width: 767px) {
    .home-values, .home-process { padding-block: 36px; }
    .value-grid, .process-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .home-values h2, .home-process h2 { font-size: 26px; }
    .value-item { padding-top: 20px; }
    .process-item { padding-left: 64px; min-height: 72px; }
    .process-number { position: absolute; left: 0; top: 24px; font-size: 32px; }
}

/* Homepage sliders: preserve Bean Water typography and native touch scrolling. */
.hero .hero__title { max-width: 17ch; font-size: var(--text-xl); line-height: 1.25; font-weight: 700; letter-spacing: 0; text-transform: none; }
.hero__dots { display: flex; align-items: center; gap: 4px; }
.hero__controls .hero__dots button { width: 28px; min-width: 28px; height: 44px; min-height: 44px; padding: 0; background: transparent; display: grid; place-items: center; }
.hero__dots button::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--color-line); }
.hero__dots button[aria-current="true"]::after { background: var(--color-signal); width: 16px; border-radius: 4px; }
.partner-rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-block: 8px 16px; }
.partner-logo { flex: 0 0 calc((100% - 96px) / 5); min-height: 124px; padding: 20px; display: grid; place-items: center; scroll-snap-align: start; border: 1px solid var(--color-line); border-radius: var(--radius); text-align: center; font-weight: 700; }
.partner-logo img { width: 100%; height: 80px; object-fit: contain; }
.partner-controls { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.partner-controls[hidden] { display: none; }
.partner-controls button { width: 44px; height: 44px; border: 1px solid var(--color-line); border-radius: 50%; background: white; color: var(--color-ink); cursor: pointer; }
.partner-controls button:hover { background: var(--color-panel); }
@media (max-width: 767px) {
    .hero .hero__title { font-size: 30px; max-width: none; }
    .hero__controls { gap: 4px; }
    .partner-rail { gap: 16px; }
    .partner-logo { flex-basis: calc((100% - 16px) / 2); padding: 12px; }
}


/* Shared configured brand image, preserved proportions on both surfaces. */
.masthead__identity:has(.brand-logo) { padding-block: 10px; }
.brand-logo { display: block; width: 100px; height: 92px; object-fit: contain; border-radius: 4px; background: white; }
.masthead:has(.brand-logo) .masthead__nav { align-self: center; }
.footer-logo { display: inline-block; margin-bottom: 20px; }
.footer-logo img { width: 200px; height: auto; object-fit: contain; border-radius: 6px; }

/* Hallmark mobile refinement · existing Bean Water tokens · P4 H5 E4 S4 R5 V4 */
@media (max-width: 959px) {
    .masthead:has(.brand-logo) { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 16px; border-top-width: 6px; padding-inline: 16px; }
    .masthead:has(.brand-logo) .masthead__identity { min-height: 100px; padding: 8px 12px 8px 0; border-bottom-right-radius: 24px; }
    .masthead .brand-logo { width: 76px; height: 70px; }
    .masthead:has(.brand-logo) .masthead__nav { padding-left: 0; }
    .masthead:has(.brand-logo) .nav-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 4px; justify-items: center; padding-block: 4px; }
    .masthead:has(.brand-logo) .nav-menu { grid-column: 1; grid-row: 1; }
    .masthead:has(.brand-logo) .header-search { grid-column: 2; grid-row: 1; }
    .masthead:has(.brand-logo) .header-contact { grid-column: 4; grid-row: 1; }
    .masthead:has(.brand-logo) .favorite-shortcuts { grid-column: 1 / 3; grid-row: 2; }
    .masthead:has(.brand-logo) .locale-list { grid-column: 3 / 5; grid-row: 2; padding-left: 0; gap: 0; flex-wrap: wrap; justify-content: flex-end; }
    .locale-list a, .header-contact, .header-search > summary, .favorite-shortcuts button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .masthead .nav-menu[open] > nav, .masthead .header-search .product-search { top: 100%; }
    .masthead .header-search { position: static; }
    .masthead .header-search .product-search { right: 16px; }
    .masthead .nav-menu[open] > nav { max-height: min(65dvh, 540px); }
}
@media (max-width: 767px) {
    .shell { width: calc(100% - 32px); }
    .hero__slide { padding: 16px 16px 72px; min-height: 0; }
    .hero__copy.shell { width: 100%; padding-block: 16px 8px; }
    .hero__media { height: 230px; }
    .hero .hero__title { font-size: 26px; line-height: 1.3; margin-bottom: 20px; }
    .hero__controls { bottom: 24px; }
    .page-banner { min-height: 150px; padding-block: 28px 46px; }
    .page-banner__title { font-size: 21px; overflow-wrap: anywhere; }
    .section-heading h2, .section-heading > .eyebrow { font-size: 22px; }
    .section-heading { margin-bottom: 20px; }
    .catalog-section, .partner-section { padding-block: 28px; }
    .category-panel { padding: 14px; overflow: visible; }
    .category-panel h2 { font-size: 17px; }
    .category-panel ul { width: 100%; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 8px; scrollbar-width: thin; }
    .category-panel li { flex: 0 0 auto; }
    .category-panel a { min-height: 44px; display: flex; align-items: center; white-space: nowrap; border-radius: 6px; padding: 8px 12px; }
    .product-search { margin-bottom: 20px; }
    .product-search__fields { flex-wrap: nowrap; }
    .product-search input, .contact-form input, .contact-form textarea { font-size: 16px; }
    .product-search button { padding-inline: 12px; }
    .product-card { position: relative; }
    .product-card .favorite-toggle { position: absolute; top: 4px; right: 4px; margin: 0; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; }
    .product-card .favorite-toggle[hidden] { display: none; }
    .product-card .favorite-toggle > span[aria-hidden] { font-size: 24px; }
    .product-card [data-favorite-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .product-card .catalog-card__media { padding: 24px 10px 6px; }
    .product-card .catalog-card__body { padding: 10px; text-align: left; }
    .product-card h3 { font-weight: 600; margin-block: 0 8px; }
    .product-card .text-link { font-size: 13px; min-height: 44px; display: flex; align-items: center; }
    .detail { gap: 24px; padding-block: 24px; }
    .detail h1, .contact-layout h1 { font-size: 24px; }
    .detail__intro > p { overflow-wrap: anywhere; line-height: 1.7; }
    .detail__intro > .button { width: 100%; justify-content: center; }
    .detail__content { padding: 16px; }
    .product-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 10px; margin-bottom: 16px; scrollbar-width: thin; }
    .product-tabs a { flex: 0 0 auto; white-space: nowrap; min-height: 44px; display: flex; align-items: center; }
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery > a { min-width: 0; }
    .gallery img { height: auto; object-fit: contain; }
    .detail__media:has(> .gallery) { aspect-ratio: auto; padding: 8px; }
    .detail__media .gallery img { height: auto; padding: 4px; }
    .contact-map iframe { height: 280px; }
    .footer-logo img { width: 144px; }
    .footer-grid { gap: 28px; }
    .site-footer { padding-bottom: 72px; }
    .quick-contact { bottom: max(12px, env(safe-area-inset-bottom)); right: 12px; gap: 6px; }
    .quick-contact summary, .quick-contact__top { min-height: 44px; padding: 10px 12px; }
    .quick-contact nav a { min-height: 44px; display: flex; align-items: center; }
    body:has(.contact-form :focus) .quick-contact { visibility: hidden; }
    .favorite-announcement { bottom: 76px; }
}
@media (max-width: 767px) {
    .favorite-toggle { min-height: 44px; }
    .product-card .text-link { font-size: 14px; }
    .card-grid:has([data-favorite-type="projects"]) { grid-template-columns: minmax(0, 1fr); }
    .catalog-card:has([data-favorite-type="projects"]) .catalog-card__body { padding: 16px; }
    .catalog-card:has([data-favorite-type="projects"]) h3 { font-size: 17px; }
    .catalog-card:has([data-favorite-type="projects"]) .catalog-card__body > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (min-width: 600px) and (max-width: 959px) {
    .masthead:has(.brand-logo) .nav-row { display: flex; justify-content: flex-end; gap: 12px; }
    .masthead:has(.brand-logo) .nav-menu { flex: 0 0 44px; }
}
@media (min-width: 768px) and (max-width: 959px) {
    .favorite-toggle { min-height: 44px; }
    .product-search input, .contact-form input, .contact-form textarea { font-size: 16px; }
}
.quick-contact__icon { display: none; }
@media (max-width: 767px) {
    .quick-contact summary { list-style: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; }
    .quick-contact summary::-webkit-details-marker { display: none; }
    .quick-contact__icon { display: block; width: 24px; height: 24px; }
    .quick-contact__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .quick-contact__top { width: 44px; height: 44px; text-align: center; border-radius: 50%; }
}

/* Mobile overlay refinement: keep image controls visible in short viewports. */
@media (max-width: 959px), (max-height: 600px) {
    .gallery-dialog { max-height: calc(100dvh - 24px); padding: 12px; }
    .gallery-dialog > img { height: min(70dvh, calc(100dvh - 180px)); min-height: 80px; }
    .gallery-controls { margin-top: 8px; gap: 16px; }
    .gallery-controls button, .gallery-dialog > form button { min-width: 44px; min-height: 44px; }
    .favorites-dialog > form { position: sticky; top: 0; z-index: 1; background: var(--color-paper); padding-bottom: 8px; }
    .favorites-dialog { overscroll-behavior: contain; }
}

/* Product photos stay together above the description on every viewport. */
.product-photos { min-width: 0; align-self: start; }
.product-photos__label { margin: 16px 0 10px; font-size: 14px; font-weight: 600; }
.product-photos__label span { color: var(--color-muted); }
.product-thumbnails { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.product-thumbnails a { flex: 0 0 88px; width: 88px; height: 88px; border: 1px solid var(--color-line); border-radius: 8px; padding: 4px; scroll-snap-align: start; background: var(--color-paper); }
.product-thumbnails a:hover, .product-thumbnails a:focus-visible { border-color: var(--color-signal); }
.product-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 767px) {
    .product-thumbnails a { flex-basis: 76px; width: 76px; height: 76px; }
}
