.site-header__search {
    display: flex;
    width: 190px;
    min-width: 0;
    height: 42px;
    flex: 0 1 190px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
    overflow: hidden;
}

.product-filters {
    grid-template-columns: minmax(230px, 1.6fr) repeat(3, minmax(155px, 1fr));
    align-items: end;
    gap: 16px;
    padding: 22px;
}
.product-filters__search,
.product-filters__field { display: grid; gap: 7px; color: var(--ink); font-size: .78rem; font-weight: 700; }
.product-filters .search-field { display: block; }
.product-filters__bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding-top: 4px; }
.product-filters__actions { display: flex; align-items: center; gap: 20px; }
.product-filters__actions a { color: var(--teal); font-size: .84rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.product-filters__actions .button { white-space: nowrap; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #d2e5e9; opacity: 1; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--lime); outline-offset: 2px; border-color: var(--lime); }
.contact-form label small { color: #d2e5e9; font-size: .72rem; line-height: 1.4; }
.contact-form .field-error { color: #ffe4a8; font-weight: 700; }
.contact-form [aria-invalid="true"] { border-color: #ffe4a8; box-shadow: 0 0 0 1px #ffe4a8; }

@media (max-width: 1040px) {
    .product-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-filters__search { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .product-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
    .product-filters__search,
    .product-filters__field:first-of-type { grid-column: 1 / -1; }
    .product-filters__bottom { flex-wrap: wrap; }
    .product-filters__actions { width: 100%; justify-content: space-between; }
}

.site-nav__list > .menu-item-has-children { position: relative; }
.site-nav__list > .menu-item-has-children > a::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -14px;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
}
.site-nav__list .sub-menu {
    position: absolute;
    top: 100%;
    left: -18px;
    min-width: 220px;
    max-height: min(65vh, 440px);
    overflow-y: auto;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.site-nav__list .menu-item-has-children:hover > .sub-menu,
.site-nav__list .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.site-nav__list .sub-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 7px;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
}
.site-nav__list .sub-menu a::after { display: none; }
.site-nav__list .sub-menu a:hover,
.site-nav__list .sub-menu .current-menu-item > a { background: var(--soft); color: var(--teal); }

.site-footer .site-nav__list .sub-menu,
.site-footer .footer-nav .sub-menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0 0 0 12px;
    border: 0;
    border-left: 2px solid rgba(255,255,255,.25);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: max-height .2s ease, opacity .2s ease, visibility .2s;
}
.site-footer .site-nav__list .menu-item-has-children.is-open > .sub-menu,
.site-footer .footer-nav .menu-item-has-children.is-open > .sub-menu {
    max-height: 260px;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
}
.site-footer .site-nav__list .sub-menu a,
.site-footer .footer-nav .sub-menu a { padding: 7px 4px; color: #dbe9eb; white-space: normal; font-size: .78rem; }
.site-footer .site-nav__list .sub-menu a:hover,
.site-footer .site-nav__list .sub-menu .current-menu-item > a,
.site-footer .footer-nav .sub-menu a:hover,
.site-footer .footer-nav .sub-menu .current-menu-item > a { color: #fff; background: rgba(255,255,255,.12); }
.site-footer .footer-nav { list-style: none; }
.site-footer .menu-item-has-children > a { cursor: pointer; }
.site-footer .footer-nav .menu-item-has-children > a { display: inline-flex; align-items: center; gap: 7px; }
.site-footer .footer-nav .menu-item-has-children > a::after { content: "⌄"; font-size: 1rem; line-height: 1; }

@media (max-width: 820px) {
    .site-nav__list > .menu-item-has-children > a::before { right: 4px; }
    .site-nav__list .sub-menu {
        position: static;
        max-height: none;
        overflow: visible;
        margin: 0 0 10px 14px;
        padding: 0 0 0 14px;
        border: 0;
        border-left: 2px solid var(--line);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .site-nav__list .sub-menu a { padding: 10px 0; border-bottom: 1px solid var(--line); white-space: normal; font-size: .9rem; }
}

.site-header__search:focus-within { outline: 3px solid var(--lime); outline-offset: 2px; }
.site-header__search input { width: 100%; min-width: 0; height: 100%; padding: 0 0 0 14px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .8rem; }
.site-header__search input::placeholder { color: var(--muted); }
.site-header__search button { width: 40px; height: 40px; flex: 0 0 40px; border: 0; background: transparent; color: var(--teal); cursor: pointer; font-size: 1.5rem; line-height: 1; }
.site-header__search button:hover { background: var(--teal); color: #fff; }

@media (max-width: 820px) {
    .site-header__inner { gap: 12px; }
    .site-header__search { width: auto; flex: 1 1 auto; }
    .menu-toggle { flex: 0 0 46px; margin-left: 0; }
}

@media (max-width: 560px) {
    .site-brand { width: 125px; }
    .site-header__search { height: 38px; }
    .site-header__search input { padding-left: 10px; font-size: .72rem; }
    .site-header__search button { width: 34px; height: 36px; flex-basis: 34px; }
}

.product-share {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: .55rem;
    margin: -20px 0 32px;
    color: var(--muted);
    font-size: .82rem;
}

.product-share > span:first-child {
    grid-column: 1 / -1;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-share button,
.product-share a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    appearance: none;
    padding: .55rem .65rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--teal);
    cursor: pointer;
    font: inherit;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.product-share button:hover,
.product-share a:hover {
    transform: translateY(-1px);
    border-color: var(--teal);
    background: var(--soft);
}

.product-share button svg,
.product-share a svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-share__status { grid-column: 1 / -1; min-height: 1em; color: var(--teal); }

.product-business-note { margin: 24px 0 30px; color: var(--teal); font-weight: 700; }
.product-specs__note { margin: 18px 0 0; color: var(--muted); font-size: .82rem; font-style: italic; }

.product-share__status {
    color: var(--teal);
}

.product-gallery__stage { position: relative; }
.product-gallery__open { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.product-gallery__nav,
.product-lightbox__nav,
.product-lightbox__close { display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(27,43,50,.78); color: #fff; cursor: pointer; }
.product-gallery__nav { position: absolute; z-index: 2; top: 50%; width: 42px; height: 42px; transform: translateY(-50%); }
.product-gallery__nav svg,
.product-lightbox__nav svg,
.product-lightbox__close svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.product-gallery__nav--previous { left: 12px; }
.product-gallery__nav--next { right: 12px; }
.product-gallery__thumbs button[aria-current="true"] { border-color: var(--lime); }
.product-lightbox { position: fixed; width: min(94vw, 1200px); height: min(92vh, 900px); max-width: none; max-height: none; padding: 58px 72px 44px; border: 0; border-radius: 16px; background: #101719; color: #fff; overflow: hidden; }
.product-lightbox::backdrop { background: rgba(5,12,14,.88); }
.product-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.product-lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.product-lightbox__close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 42px; height: 42px; }
.product-lightbox__close svg { width: 18px; height: 18px; }
.product-lightbox__nav { position: absolute; z-index: 2; top: 50%; width: 50px; height: 50px; transform: translateY(-50%); }
.product-lightbox__nav svg { width: 24px; height: 24px; }
.product-lightbox__nav--previous { left: 14px; }
.product-lightbox__nav--next { right: 14px; }
.product-lightbox__count { position: absolute; bottom: 8px; left: 0; width: 100%; margin: 0; color: #fff; text-align: center; font-size: .85rem; }
body:has(.product-lightbox[open]) { overflow: hidden; }

@media (max-width: 560px) {
    .product-share { grid-template-columns: 1fr; }
    .product-share > span:first-child,
    .product-share__status { grid-column: auto; }
    .product-share button,
    .product-share a { justify-content: flex-start; }
    .product-lightbox { width: 100vw; height: 100dvh; padding: 58px 48px 48px; border-radius: 0; }
    .product-lightbox__nav--previous { left: 6px; }
    .product-lightbox__nav--next { right: 6px; }
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    margin-top: 1.25rem;
}

.footer-social a {
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

/* Keep direct contact options available when the contact layout stacks. */
@media (max-width: 1040px) {
    .contact-page .contact-details {
        display: block;
    }
}

@media (max-width: 820px) {
    .site-nav {
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

@media (max-width: 560px) {
    .contact-page__grid {
        gap: 24px;
    }

    .contact-page .contact-details {
        padding: 26px;
        overflow-wrap: anywhere;
    }
}
