/* Shared phone/contact disclosure, loaded before the first paint. */
.header-contact-mobile-wrapper {
    position: relative;
}

/* Bottom sheet — slides up from the bottom of the screen */
.header-contact-dropdown {
    position: fixed;
    bottom: var(--compact-nav-height,64px);
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    z-index: 98;
}

.header-contact-dropdown-inner {
    padding: 8px 0 20px;
}

/* Reuse existing dropdown-step layout */
.header-contact-dropdown .dropdown-step {
    display: flex;
    flex-direction: column;
    padding: 10px 32px 16px;
    gap: 30px;
    width: 100%;
}

.header-contact-dropdown .dropdown-step.dropdown-step-call {
    padding: 15px 0 10px 0;
    gap: 30px;
    align-items: center;
}



/* Active icon tint */
.js-contact-dropdown-toggle.is-active svg {
    color: #B58358;
}

/* Dim overlay behind the sheet */
.header-contact-overlay {
    position: fixed;
    top: var(--compact-top-height,56px);
    left: 0;
    right: 0;
    bottom: var(--compact-nav-height,64px);
    background: rgba(0, 0, 0, 0.35);
    z-index: 97;  /* below the sheet, below the header */
    opacity: 0;
    pointer-events: none;
}

.header-contact-overlay.is-visible {
    pointer-events: auto;
}


/* ── Hover: colour + underline animation ── */
.header-contact-dropdown .custom-radio {
    font-family: "Raleway", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    transition: color 0.3s ease;
    position: relative;
}

.header-contact-dropdown .custom-radio:hover {
    color: #B58358;
    opacity: 1;
}

/* Underline — appears on hover, disappears instantly on leave */
.header-contact-dropdown .custom-radio span {
    position: relative;
    display: inline-block;
}

.header-contact-dropdown .custom-radio span::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: currentColor;
    /* No transition here — instant removal on mouse-leave */
}

.header-contact-dropdown .custom-radio:hover span::after {
    width: 100%;
    transition: width 0.3s ease;
}

/* ── Call step: title, icon label, phone number ── */
.header-contact-dropdown .custom-radio.dropdown-call-title {
    font-style: italic;
    font-weight: 300;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
    cursor: default;
}

.header-contact-dropdown .custom-radio.dropdown-call-title:hover {
    color: rgba(0, 0, 0, 0.5);
}

.header-contact-dropdown .custom-radio.dropdown-call-icon {
    gap: 3px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
    cursor: default;
}

.header-contact-dropdown .custom-radio.dropdown-call-icon:hover {
    color: rgba(0, 0, 0, 0.8);
}

.header-contact-dropdown .custom-radio.dropdown-call-number {
    font-family: "Gotham Pro", sans-serif;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 0.03em;
    color: rgba(26, 26, 26, 0.8);
}

/* Dark mode — аналогично .custom-buy-dropdown на странице товара */
html[data-theme="dark"] .header-contact-dropdown {
    background: #0e0e12;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .header-contact-dropdown .custom-radio {
    color: rgba(255, 255, 255, 0.8);
}

html[data-theme="dark"] .header-contact-dropdown .custom-radio:hover {
    color: #B58358;
    opacity: 1;
}

html[data-theme="dark"] .header-contact-dropdown .custom-radio span {
    color: rgba(255, 255, 255, 0.8);
}

html[data-theme="dark"] .header-contact-dropdown .custom-radio:hover span {
    color: #B58358;
}

html[data-theme="dark"] .header-contact-dropdown .custom-radio.dropdown-call-title {
    color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .header-contact-dropdown .custom-radio.dropdown-call-title:hover {
    color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .header-contact-dropdown .custom-radio.dropdown-call-icon:hover {
    color: rgba(255, 255, 255, 0.8);
}

html[data-theme="dark"] .header-contact-dropdown .custom-radio.dropdown-call-number {
    color: rgba(255, 255, 255, 0.8);
}

/* Native actions keep the contact flow keyboard accessible. */
.header-contact-dropdown button{border:0;background:none;padding:0;text-align:left;cursor:pointer;color:inherit}
.header-contact-dropdown button.custom-radio{width:100%;min-height:44px;justify-content:flex-start}
.header-contact-dropdown .header-contact-controls{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin:0 20px 8px}
.header-contact-dropdown .header-contact-back{display:flex;align-items:center;gap:12px;min-height:44px;font:inherit;font-size:14px}
.header-contact-dropdown .header-contact-back[hidden]{display:none!important}
.header-contact-dropdown .header-contact-close{display:flex;align-items:center;justify-content:center;margin-left:auto;width:44px;height:44px}
.header-contact-dropdown button:focus-visible,.header-contact-dropdown a:focus-visible{outline:1px solid currentColor;outline-offset:5px}
.header-contact-dropdown{overscroll-behavior:contain}
html[data-theme="dark"] .header-contact-dropdown .header-contact-controls{color:rgba(255,255,255,.8)}

/* Every contact action uses the same icon column, text baseline and row height. */
.header-contact-dropdown .dropdown-step[data-step-id="main"] {
    align-items: stretch;
    gap: 8px;
}
.header-contact-dropdown .dropdown-step[data-step-id="main"] > .hcd-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 0;
    line-height: 24px;
    text-align: left;
}
.header-contact-dropdown .dropdown-step[data-step-id="main"] > .hcd-option > svg {
    width: 18px;
    height: 18px;
    justify-self: center;
    align-self: center;
}
.header-contact-dropdown .dropdown-step[data-step-id="main"] > .hcd-option > span {
    justify-self: start;
    min-width: 0;
}

/* Keep the desktop photo request anchored to the gallery area. */
body .product-card-main{position:relative}
body .product-card-main-info > .product-card-request-photo{align-self:flex-start;max-width:100%}
@media (max-width:1180px), (max-width:1366px) and (pointer:coarse){
    body .product-card-main-info > .product-card-request-photo{
        position:static;
        bottom:auto;
        left:auto;
        margin-top:20px;
        padding:8px 0;
        min-height:44px;
        background:transparent;
    }
}

/* One compact navigation system for phones, tablets and narrow desktop windows.
   Viewport/touch capability, not WordPress's User-Agent guess, controls layout. */
body .header--desktop .header-contact-mobile-wrapper,.compact-menu-controls{display:none}
@media (max-width:1180px), (hover:none) and (pointer:coarse) and (max-width:1366px){
    :root{--compact-nav-height:64px;--compact-top-height:56px;--header-height:64px}
    html{scroll-padding-top:88px}
    body .breadcrumbs{top:80px}
    body .header,body .header.header--desktop{top:auto;bottom:0;min-height:var(--compact-nav-height);height:auto;padding:0 0 env(safe-area-inset-bottom,0px);border:0;border-top:1px solid #e5e1dd;background:#fff;transform:none;box-shadow:0 -5px 24px rgba(0,0,0,.04);color:#1a1a1a}
    body .header::before{opacity:1;background:#fff}
    body .header>.container{width:100%;max-width:720px;padding:0 16px}
    body .header .header-wrapper{min-height:var(--compact-nav-height);height:var(--compact-nav-height);display:flex;align-items:center;justify-content:space-around;gap:8px;background:transparent!important}
    body .header .header-bottom,body .header #desktopThemeToggle{display:none!important}
    body .header .header-left,body .header .header-left-inner,body .header .header-right,body .header .header-right-buttons{display:contents}
    body .header .burger-button,body .header .js-open-search,body .header .header-right-buttons>a,body .header--mobile .header-wrapper>a,body .header-contact-mobile{display:flex!important;align-items:center;justify-content:center;min-width:48px;width:48px;height:48px;margin:0;padding:12px;border:0;background:none;color:inherit;flex-shrink:0;cursor:pointer}
    body .header .burger-button{order:0}
    body .header .js-open-search{order:1}
    body .header .header-contact-mobile-wrapper{display:flex;align-items:center;justify-content:center;height:48px;order:2}
    /* One optical size and centre for both server-rendered header variants. */
    body .header .burger-button,body .header .js-open-search,body .header .header-right-buttons>a,body .header--mobile .header-wrapper>a,body .header .header-contact-mobile{box-sizing:border-box;line-height:1}
    body .header .js-open-search>svg,body .header .header-contact-mobile>svg,body .header .header-right-buttons>a>svg,body .header--mobile .header-wrapper>a>svg{display:block;width:20px;height:20px;margin:0;vertical-align:middle}
    body .header .burger-button>svg{display:block;width:26px;height:8px;margin:0}
    body .header .header-right-buttons>a[href*="favorite"],body .header--mobile .header-wrapper>a[href*="favorite"]{order:3}
    body .header .header-right-buttons>a[href*="account"],body .header--mobile .header-wrapper>a[href*="account"]{order:4}
    body .header svg{color:inherit!important;filter:none!important;flex-shrink:0}
    body .header .burger-button::before{display:none}
    body .header .header-logo,body .mobile-header-top{display:flex!important;position:fixed;top:0;left:0;right:0;transform:none;width:100%;height:var(--compact-top-height);min-height:0;background:#fff;border-bottom:1px solid #eee9e4;justify-content:center;align-items:center;margin:0;z-index:100;filter:none!important}
    body.admin-bar .header,body.admin-bar .header.header--desktop{top:auto}
    body.admin-bar .header .header-logo,body.admin-bar .mobile-header-top{top:32px}
    body .header .header-logo>svg,body .mobile-header-top>a>svg{filter:brightness(0)!important;width:18px;height:27px}
    body .mobile-header-top.scrolled{transform:translateY(-100%)}
    body .header-contact-dropdown{bottom:calc(var(--compact-nav-height) + env(safe-area-inset-bottom,0px))!important;max-height:calc(100dvh - 130px);overflow-y:auto!important}
    body .header-contact-dropdown-inner{max-width:640px;margin:auto}
    body .header .product-card-header{position:fixed;top:var(--compact-top-height);bottom:auto;left:0;right:0;width:100%;background:#fff}
    body .product-card-header-container{width:calc(100% - 48px);max-width:720px}
    body .searchbar{height:100dvh}
    body .searchbar-input-wrapper{width:100%;max-width:785px}
    body .searchbar-inner{padding:24px clamp(20px,4vw,48px)}
    body .searchbar-top{margin-top:0;padding:76px 24px 0}
    body .searchbar-close{position:fixed;right:16px;top:12px;display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin:0;padding:16px;z-index:2}
    body .searchbar-subtitle{max-width:100%;padding:0 8px;line-height:1.5}
    body .searchbar .global-search-input{max-width:calc(100% - 108px);font-size:24px}
    body .searchbar .global-search-input::placeholder{font-size:24px}
    body .catalog-button.filter:not(.catalog-top-filter){bottom:calc(var(--compact-nav-height) + env(safe-area-inset-bottom,0px) + 16px);transform:translateX(-50%);min-height:44px}
    body .sticky-filter-bar{position:absolute;top:100%;left:0;width:100%;transform:translateY(-100%);transition:transform .35s ease,opacity .35s ease;pointer-events:none;opacity:0;z-index:-1}
    body .sticky-filter-bar.visible{transform:translateY(0);pointer-events:auto;opacity:1}
    body .sticky-filter-bar.visible.scrolled{transform:translateY(-100%);opacity:0;pointer-events:none}
    body .sticky-filter-bar .catalog-button.filter{position:static;transform:none;width:100%;height:44px}
    body .report-error-button{bottom:calc(var(--compact-nav-height) + env(safe-area-inset-bottom,0px) + 16px);right:24px}
    body .wrapper>.footer{margin-bottom:0;padding-bottom:calc(var(--compact-nav-height) + env(safe-area-inset-bottom,0px))}
    body .popup-overlay{max-height:100dvh;overflow-y:auto}
    body .form-callback{width:min(640px,calc(100% - 40px));max-width:100%;margin:48px auto}
    body .menu-container:not(.menu--compact){width:100vw;max-width:100vw}
    body .menu-container .panel_top-container__grlCn,body .menu-container.active .panel_top-container__grlCn{width:100%;max-width:none;z-index:20}
    body .menu-container .top-controls_top-controls__ml1zx{width:100%}
    body .menu-container .top-controls_container__r_Y7z{display:flex;flex-direction:row;width:100%;box-sizing:border-box;justify-content:space-between;align-items:center;gap:24px;padding:16px 32px}
    body .menu-container .top-controls_wrapper__53TG1{min-width:0;flex-shrink:0}
    body .menu-container .menu-search{display:flex;align-items:center;gap:24px;margin-left:auto}
    body .menu-container .mobile-menu-search{min-height:48px;white-space:nowrap;order:1}
    body .menu-container .mobile-menu-search-title{white-space:nowrap;font-size:clamp(12px,3.4vw,16px)}
    body .menu-container .top-controls_close-icon__cgGdb{display:flex;align-items:center;justify-content:center;min-width:48px;width:48px;height:48px;padding:16px;order:2;flex-shrink:0}
    body .menu-container .locale-switch_button__nkBJL{min-height:48px}
    body .menu--compact{width:min(100vw,640px);height:100dvh;background:#fff}
    body .menu--compact .menu-column{position:absolute;inset:0;width:100%;height:100dvh;overflow:auto;overscroll-behavior:contain;padding-bottom:env(safe-area-inset-bottom,0px);transform:none!important}
    body .menu--compact .menu-left{z-index:1}
    body .menu--compact .menu-center,body .menu--compact .menu-right{z-index:2}
    body .menu--compact[data-compact-column="left"] .menu-left{display:block!important}
    body .menu--compact[data-compact-column="center"] .menu-left,body .menu--compact[data-compact-column="right"] .menu-left,body .menu--compact[data-compact-column="right"] .menu-center{display:none!important}
    body .menu--compact .compact-menu-controls{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:20px 32px;border-bottom:1px solid rgba(128,128,128,.2)}
    body .compact-menu-controls button{min-height:44px;padding:8px 0;color:inherit;background:none;font:inherit;cursor:pointer}
    body .compact-menu-controls button:last-child{width:44px;font-size:30px;font-weight:300}
    body .menu--compact .menu-item-container{padding:32px}
    body .menu--compact .menu-link{min-height:44px;align-items:center}
    body .menu--compact .menu-text{font-size:16px}
    body .menu--compact .panel_top-container__grlCn{width:100%;max-width:none;position:relative;visibility:visible;display:block}
    body .menu--compact .top-controls_container__r_Y7z{padding:20px 32px;border-bottom:1px solid rgba(128,128,128,.2)}
    body .menu--compact .top-controls_close-icon__cgGdb{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
    body .menu-column{overscroll-behavior:contain}
    html[data-theme="dark"] body .header,html[data-theme="dark"] body .header::before,html[data-theme="dark"] body .header .header-logo,html[data-theme="dark"] body .mobile-header-top,html[data-theme="dark"] body .header .product-card-header,html[data-theme="dark"] body .menu--compact{background:#0e0e12;color:#fff;border-color:#303036}
    html[data-theme="dark"] body .header .header-logo>svg,html[data-theme="dark"] body .mobile-header-top>a>svg{filter:brightness(0) invert(1)!important}
}
/* Tablet content keeps comfortable gutters, usable controls and flexible columns. */
@media (min-width:768px) and (max-width:1180px), (min-width:768px) and (hover:none) and (pointer:coarse) and (max-width:1366px){
    body main .container,body .footer>.container{width:calc(100% - 64px);max-width:1080px}
    body main .container .container{width:100%}
    body .catalog-top{padding-top:112px}
    body .catalog-top-inner{flex-wrap:wrap;gap:24px}
    body .catalog-top-links{flex-wrap:wrap;gap:20px}
    body .catalog-top-inner .catalog-top-filter{position:static;transform:none;order:1;min-height:44px}
    body .catalog-top-row-select{order:2;margin-left:auto}
    body .catalog-result-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 24px}
    body .catalog-result.three-items .catalog-result-items{grid-template-columns:repeat(2,minmax(0,1fr))}
    body .catalog-result-items .item-card,body .catalog-result.three-items .catalog-result-items .item-card{width:100%;max-width:none;min-width:0}
    body .service{padding:112px 0 80px}
    body .service-item-full-width-container{width:calc(100% - 64px);margin:32px;gap:32px}
    body .service-item-half-width{gap:24px;margin-bottom:24px}
    body .service-item-half-left,body .service-item-half-right,body .service-item-half-left-text,body .service-item-half-right-text{width:calc((100% - 24px)/2);min-width:0;height:auto;min-height:380px;padding:40px 28px}
    body .service-item-half-width-container{width:100%;max-width:100%}
    body .service-item-half-left-title,body .service-item-half-right-title{font-size:25px;line-height:1.3}
    body .contact-us-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
    body .contact-us-item{width:100%;height:auto;min-height:400px;padding:40px 24px}
    body .contact-item-button{width:100%;min-height:48px}
    body .find-item-image{width:58%;max-width:100%}
    body .find-item{gap:32px}
    body .find-item-info{width:calc(42% - 32px);min-width:0}
    body .find-item-info-title{font-size:30px;overflow-wrap:anywhere}
    body .start-selling-inner{gap:40px}
    body .start-selling-image{width:44%;min-width:0;height:auto;align-self:stretch}
    body .start-selling-content{width:calc(56% - 40px);min-width:0}
    body .start-selling-buttons{flex-wrap:wrap;gap:16px}
    body .start-selling-btn{min-height:48px;white-space:normal}
    body .product-card{margin-top:104px}
    body .product-card-main{height:auto;min-height:560px;gap:40px;align-items:center;overflow:visible}
    body .product-card-main-image{width:52%;height:560px;padding:0 24px;min-width:0}
    body .product-card-main-info{width:calc(48% - 40px);min-width:0}
    body .product-card-main-name{font-size:30px;line-height:1.25}
    body .product-card-main-image .slide-inner img{max-width:100%;max-height:460px}
    body .product-card-request-photo{padding:12px;bottom:0;max-width:100%;font-size:13px}
    body .attributes-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 32px}
    body .live-container{width:calc(100% - 64px);max-width:1080px;padding:112px 0 80px}
    body .live-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 32px}
    body .article-page-hero-title{font-size:clamp(30px,4.2vw,48px);line-height:1.2}
    body .article-contents ol{grid-template-columns:1fr}
    body .top-footer{padding:64px 0 48px}
    body .top-footer-columns{display:flex;flex-direction:column;gap:0}
    body .top-footer-column{min-width:0;width:100%;border-bottom:1px solid #25252e}
    body .top-footer-column-heading{min-height:64px;padding:20px 0;justify-content:space-between}
    body .top-footer-column-items{padding:8px 0 24px}
    body .top-footer-button{margin:32px 0 16px}
    body .middle-footer{display:flex;flex-direction:row;flex-wrap:wrap;gap:32px;padding:40px 0}
    body .bottom-footer{gap:24px;padding:40px 0;flex-wrap:wrap}
    body .top-footer-button{width:100%;min-height:48px}
}
@media (min-width:768px) and (max-width:900px){
    body .catalog-result-items{grid-template-columns:repeat(2,minmax(0,1fr))}
    body .catalog-result.three-items .catalog-result-items{grid-template-columns:1fr}
    body .service-item-half-width{flex-direction:column}
    body .service-item-half-left,body .service-item-half-right,body .service-item-half-left-text,body .service-item-half-right-text{width:100%;min-height:360px}
    body .product-card-main{flex-direction:column;gap:32px}
    body .product-card-main-image{width:100%;height:520px}
    body .product-card-main-info{width:100%;max-width:640px;margin:0 auto 48px}
    body .find-item{flex-direction:column;gap:32px}
    body .find-item-image,body .find-item-info{width:100%}
    body .start-selling-inner{flex-direction:column}
    body .start-selling-image,body .start-selling-content{width:100%}
    body .start-selling-image{height:480px}
}
@media (prefers-reduced-motion:reduce){.menu--compact,.menu--compact .menu-column{transition:none!important}}

@media (max-width:782px){body.admin-bar .header .header-logo,body.admin-bar .mobile-header-top{top:46px}}

@media (max-width:480px){body .menu-container .top-controls_container__r_Y7z{padding:12px 20px;gap:12px}body .menu-container .menu-search{gap:12px}}
