/* Shared site navigation and storefront adjustments */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header-row {
    display: grid;
    position: relative;
    grid-template-columns: auto minmax(0, 1fr) minmax(125px, 275px) auto;
    align-items: center;
    gap: clamp(8px, 1.3vw, 20px);
    min-height: 59px;
}
.site-header .logo-text {
    color: #d4af37;
    font-size: 42px;
    line-height: 1;
}
.site-header .search-wrap { position: relative; margin: 0; width: 100%; min-width: 0; }
.search-history {
    position: absolute;
    inset: 100% 0 auto;
    z-index: 30;
    margin-top: 4px;
    max-height: min(320px, 50vh);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 5px;
    box-shadow: 0 5px 18px #17233126;
    text-align: start;
}
.search-history-title { padding: 9px 12px; color: var(--muted); font-size: 12px; }
.search-history ul { margin: 0; padding: 0 0 4px; list-style: none; }
.search-history a {
    display: block;
    padding: 8px 12px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-decoration: none;
}
.search-history a:is(:hover, :focus-visible) { background: #edf5fb; color: var(--blue); }
.search-history a:focus-visible { outline-offset: -2px; }
.site-header .nav-menu { flex-wrap: wrap; overflow: visible; }
.site-header .nav-item { position: static; }
.site-header .nav-link { padding: 10px 10px; font-size: 15px; white-space: nowrap; }
.site-header .catalog-mega {
    display: none;
    background: #fdf6e6;
    border: 1px solid #ecd9ae;
    box-shadow: 0 12px 30px #17233126;
    left: 50%;
    transform: translateX(-50%);
    width: min(1280px, calc(100vw - 24px));
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    padding: 22px;
    z-index: 45;
    max-height: 75vh;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: normal;
}
.site-header .has-dropdown:hover .catalog-mega,
.site-header .has-dropdown:focus-within .catalog-mega { display: none; }
.site-header .has-dropdown.catalog-open .catalog-mega { display: grid; }
.catalog-mega .mega-title { display: block; color: #14100c; text-decoration: none; font-size: 15px; border-bottom-color: #e4cf9c; }
.site-header .catalog-mega .mega-col { display: block; }
.catalog-mega .mega-title:hover { text-decoration: underline; }
.catalog-mega .mega-col li a { padding: 8px 6px; color: #38312a; font-size: 14px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.catalog-mega .mega-col li a:hover,
.catalog-mega .mega-col li a:focus-visible { background: #f6e6c2; color: #7d5000; }
.catalog-mega a:focus-visible { outline-color: #b8860f; }
.catalog-preview {
    width: 190px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 5px 18px #1723312e;
    text-align: center;
    pointer-events: none;
}
.catalog-mega .catalog-preview { position: absolute; right: auto; bottom: auto; }
.catalog-preview-float { position: fixed; z-index: 55; }
.catalog-preview-menu-float { position: fixed; z-index: 90; }
.catalog-preview img { display: block; width: 100%; height: 115px; object-fit: contain; }
.catalog-preview figcaption { padding-top: 6px; font-size: 12px; overflow-wrap: anywhere; }
.reference-categories details { border-bottom: 1px solid var(--line); }
.reference-categories summary { padding: 10px 12px; cursor: pointer; font-weight: 600; }
@media (min-width: 993px) {
    .category-sidebar {
        --sidebar-top: 76px;
        top: var(--sidebar-top);
        max-height: calc(100vh - var(--sidebar-top) - 16px);
        overflow-y: auto;
    }
    .category-sidebar .sidebar-header {
        position: sticky;
        top: 0;
        z-index: 1;
    }
    .category-sidebar :is(summary, a) { scroll-margin-top: 76px; }
}
@media (min-width: 1280px) {
    .products-grid:not(.list-view) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1360px) {
    .catalog-page .products-section > .container {
        width: min(1500px, calc(100% - 112px));
    }
    .catalog-page .products-grid:not(.list-view) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.site-header .lang-wrap { margin: 0; }
.site-header .lang-wrap { z-index: 60; }
.site-header .search-input, .site-header .search-btn, .site-header .lang-selector { font-size: 14px; }
.lang-selector { border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; }
.lang-menu button {
    display: block;
    width: 100%;
    border: 0;
    padding: 7px 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.lang-menu button:hover, .lang-menu button[aria-pressed='true'] { color: var(--blue); background: var(--soft); }
.social-section { padding: 34px 0 40px; background: var(--soft); border-top: 1px solid var(--line); }
.social-section .social-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.social-section .social-ic {
    border: 1px solid var(--line);
    background: #fff;
    text-decoration: none;
    color: var(--ink);
    min-width: 0;
}
.social-section .social-ic i { font-size: 32px; color: var(--brand-color); }
.social-section .social-ic:is(:hover,:focus-visible) { color: #fff; background: var(--brand-color); }
.social-section .social-ic:is(:hover,:focus-visible) i { color: #fff; }
.social-ic.facebook { --brand-color: #1767c9; }
.social-ic.instagram { --brand-color: #b72b69; }
.social-ic.linkedin { --brand-color: #0a66c2; }
.social-ic.youtube { --brand-color: #c81620; }
.social-ic.tiktok { --brand-color: #161823; }
.hero-carousel { background: #292a2d; }
.hero-carousel .carousel-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    touch-action: pan-y pinch-zoom;
}
.right-sidebar .sb-item:is(.whatsapp, .whatsapp-btn) {
    color: #137449;
}
.right-sidebar a[href^="tel:"] span, .right-sidebar a[href*="wa.me/"] span {
    font-variant-numeric: tabular-nums;
}
@media (min-width: 621px) {
    .right-sidebar { align-items: flex-end; }
    .right-sidebar a[href^="tel:"]:is(:hover, :focus-visible),
    .right-sidebar a[href*="wa.me/"]:is(:hover, :focus-visible) {
        width: 174px;
        justify-content: flex-start;
        padding-inline: 10px;
    }
    .right-sidebar a[href^="tel:"]:is(:hover, :focus-visible) span,
    .right-sidebar a[href*="wa.me/"]:is(:hover, :focus-visible) span { display: inline; }
    .right-sidebar a[href^="tel:"],
    .right-sidebar a[href*="wa.me/"] { transition-property: color, background; }
}
.right-sidebar .sb-item:has(.contact-label) {
    position: relative;
    width: 66px;
    min-height: 54px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    overflow: visible;
}
.right-sidebar .sb-item:has(.contact-label) i { font-size: 20px; flex: none; }
.right-sidebar .sb-item .contact-label { display: block !important; font-size: 10px; }
@media (min-width: 621px) {
    .right-sidebar a.sb-item:has(.contact-label):is(:hover, :focus-visible) {
        width: 66px;
        justify-content: center;
    }
    .right-sidebar .contact-value {
        position: absolute;
        right: calc(100% + 2px);
        top: 50%;
        transform: translateY(-50%);
        padding: 8px;
        color: var(--ink);
        background: #fff;
        border: 1px solid var(--line);
    }
}
.right-sidebar .contact-email:is(:hover, :focus-visible) .contact-value { display: block !important; }
@media (max-width: 620px) {
    .right-sidebar .contact-email .contact-value {
        position: absolute;
        right: 0;
        bottom: calc(100% + 4px);
        padding: 8px;
        color: var(--ink);
        background: #fff;
        border: 1px solid var(--line);
    }
}
@media (min-width: 900px), (orientation: landscape) and (min-aspect-ratio: 8/5) {
    .hero-carousel .carousel-wrap { aspect-ratio: 150 / 43; }
}
.hero-carousel .carousel-slide-photo { transition: none; }
.hero-carousel .carousel-slide-photo picture,
.hero-carousel .carousel-slide-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.hero-carousel .brand-badges {
    z-index: 2;
    right: max(12px, calc((100% - 1200px) / 3));
    top: clamp(8px, 1.2vw, 18px);
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}
.hero-carousel .badge {
    padding: clamp(5px, .6vw, 9px) clamp(7px, .8vw, 12px);
    color: white;
    background: #162434c4;
    border: 1px solid #ffffff3d;
    border-radius: 4px;
    box-shadow: none;
    backdrop-filter: blur(3px);
    font-size: clamp(11px, 1.1vw, 16px);
    font-weight: 600;
}
.hero-carousel .badge i { color: inherit; }
.carousel-controls { position: absolute; z-index: 3; left: max(12px, calc((100% - 1200px) / 2)); bottom: 16px; display: flex; justify-content: center; align-items: center; padding: 2px; border: 1px solid #ffffff6b; border-radius: 28px; background: #142638e0; }
.carousel-controls .c-prev, .carousel-controls .c-next, .carousel-controls .c-dots { position: static; transform: none; }
.carousel-controls .c-prev, .carousel-controls .c-next { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.carousel-controls .c-prev:hover, .carousel-controls .c-next:hover { background: #ffffff26; }
.carousel-controls .c-prev:focus-visible, .carousel-controls .c-next:focus-visible, .carousel-controls .dot:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.carousel-controls .c-prev::before, .carousel-controls .c-next::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
}
.carousel-controls .c-prev::before { transform: rotate(-135deg); }
.carousel-controls .c-dots { align-items: center; gap: 0; padding-inline: 2px; }
.carousel-controls .dot { width: 22px; height: 44px; display: grid; place-items: center; flex: none; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.carousel-controls .dot::before { content: ""; width: 7px; height: 7px; border: 1px solid #fff; border-radius: 10px; }
.carousel-controls .dot.active::before { width: 14px; background: #fff; }
@media (min-width: 621px) and (pointer: fine) {
    .carousel-controls .c-prev, .carousel-controls .c-next { width: 29px; height: 28px; }
    .carousel-controls .dot { width: 15px; height: 28px; }
    .carousel-controls .dot::before { width: 6px; height: 6px; }
    .carousel-controls .dot.active::before { width: 10px; }
}
@media (max-width: 620px) {
    .carousel-controls { left: 8px; bottom: 8px; }
    .hero-carousel .brand-badges { gap: 3px; }
    .hero-carousel .badge { padding: 3px 6px; line-height: 1.35; }
}
.prod-block-img-link, .prod-sub img, .mega-preview { background: #fff; }
.prod-block-img-link img { position: static; display: block; width: auto; height: auto; max-width: calc(100% - 24px); max-height: 260px; }
.prod-block-img-link { display: grid; place-items: center; }
.prod-block-overlay { pointer-events: none; }
.product-image img { width: auto; height: auto; max-width: calc(100% - 24px); max-height: 88%; object-fit: contain; }
.product-image { background: #fff; }
.shipping-page { min-height: 75vh; padding: 36px 0 44px; background: #f5f7f8; }
.shipping-page h1 { margin: 0 0 16px; }
.shipping-notice { margin: 0 0 16px; padding: 12px 14px; border-left: 3px solid var(--accent); background: #fff; font-weight: 600; }
.shipping-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shipping-grid section { padding: 20px; border: 1px solid var(--line); background: #fff; }
.shipping-grid h2 { margin: 0 0 10px; font-size: 17px; }
.shipping-grid p { margin: 0; }
.shipping-grid ul { padding-left: 18px; }
.shipping-contact { margin: 18px 0 0; }
.shipping-contact a { color: var(--blue); }
@media (max-width: 620px) {
    .shipping-page { padding-top: 24px; }
    .shipping-grid { grid-template-columns: 1fr; }
}
.product-image img.catalog-photo {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}
.product-card:hover .product-image img { transform: none; }
.product-card { min-width: 0; }
.product-name { overflow-wrap: anywhere; }
.product-image-note, .catalog-count { margin: 4px 0; color: var(--muted); font-size: 12px; }
.view-controls { flex-wrap: wrap; }
.view-controls label { display: inline-flex; align-items: center; gap: 6px; }
#seriesSelect { max-width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 4px; }
.product-gallery { min-width: 0; }
.main-image { min-height: 230px; aspect-ratio: 4 / 3; background: #fff; }
.main-image img { width: auto; height: auto; max-width: 94%; max-height: 94%; object-fit: contain; padding: 0; }
.main-image img.technical-drawing { width: calc(100% - 14px); height: 95%; }
.action-btn, .nav-btn, .product-btn, .related-product-card { text-decoration: none; }
.related-product-card img { width: auto; height: auto; max-width: 100%; max-height: 150px; padding: 0; }
.related-product-card h4 { overflow-wrap: anywhere; }
.detail-header h1, .product-code { overflow-wrap: anywhere; }
.footer-content { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.footer-section h3, .footer-section h4 { margin-top: 0; color: #fff; }
.footer-section ul { list-style: none; padding-left: 0; }
.footer-section a { color: #d5dce0; }
.company-intro { padding-block: 30px; }
.company-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.company-facts div { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.company-videos { scroll-margin-top: 105px; padding: 24px 0 42px; background: var(--soft); }
.company-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.company-video-grid video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #13191d; }
@media (max-width: 820px) {
    .site-header-row { grid-template-columns: auto 1fr auto; padding-top: 7px; gap: 3px 10px; }
    .site-nav { grid-column: 1 / -1; grid-row: 2; }
    .site-header .catalog-mega { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 65vh; position: absolute; top: 100%; }
    .social-section .social-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .site-header .nav-link { padding: 6px 8px; }
    .site-header .mega-col:nth-child(3) { display: block; }
    .site-header .catalog-mega { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-header .search-btn { width: 37px; }
    .site-header .logo-text { font-size: clamp(30px, 9vw, 35px); }
    .site-header .lang-selector { padding-inline: 6px; gap: 4px; }
    .site-header .search-wrap { height: 32px; }
    .social-section .social-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .social-section .social-ic i { font-size: 26px; }
    .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .company-facts, .company-video-grid { grid-template-columns: 1fr; }
    .main-footer { padding-bottom: 60px; }
}
