/*
 Theme Name:   Adex Child
 Description:  Adex Child Theme
 Template:     adex
 Version:      1.0.0
 Text Domain:  woodmart
*/
@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/adex-child/fonts/Inter/Inter-Regular.woff2') format('woff2'),
        url('/wp-content/themes/adex-child/fonts/Inter/Inter-Regular.woff') format('woff'),
        url('/wp-content/themes/adex-child/fonts/Inter/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/adex-child/fonts/Inter/Inter-LightBETA.woff2') format('woff2'),
        url('/wp-content/themes/adex-child/fonts/Inter/Inter-LightBETA.woff') format('woff'),
        url('/wp-content/themes/adex-child/fonts/Inter/Inter-LightBETA.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/adex-child/fonts/Inter/Inter-Medium.woff2') format('woff2'),
        url('/wp-content/themes/adex-child/fonts/Inter/Inter-Medium.woff') format('woff'),
        url('/wp-content/themes/adex-child/fonts/Inter/Inter-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/adex-child/fonts/Inter/Inter-SemiBold.woff2') format('woff2'),
        url('/wp-content/themes/adex-child/fonts/Inter/Inter-SemiBold.woff') format('woff'),
        url('/wp-content/themes/adex-child/fonts/Inter/Inter-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/adex-child/fonts/Inter/Inter-Bold.woff2') format('woff2'),
        url('/wp-content/themes/adex-child/fonts/Inter/Inter-Bold.woff') format('woff'),
        url('/wp-content/themes/adex-child/fonts/Inter/Inter-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/adex-child/fonts/Inter/Inter-Black.woff2') format('woff2'),
        url('/wp-content/themes/adex-child/fonts/Inter/Inter-Black.woff') format('woff'),
        url('/wp-content/themes/adex-child/fonts/Inter/Inter-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* --- UNBOUNDED FONT FAMILY --- */
@font-face {
    font-family: 'Unbounded';
    src: url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Regular.woff2') format('woff2'),
        url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Regular.woff') format('woff'),
        url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Unbounded';
    src: url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Blond.woff2') format('woff2'),
        url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Blond.woff') format('woff'),
        url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Blond.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Unbounded';
    src: url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Light.woff2') format('woff2'),
        url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Light.woff') format('woff'),
        url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Unbounded';
    src: url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Medium.woff2') format('woff2'),
        url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Medium.woff') format('woff'),
        url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Unbounded';
    src: url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Bold.woff2') format('woff2'),
        url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Bold.woff') format('woff'),
        url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Unbounded';
    src: url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Black.woff2') format('woff2'),
        url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Black.woff') format('woff'),
        url('/wp-content/themes/adex-child/fonts/Unbounded/Unbounded-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

body.page-template-template-adex-landing-fullwidth,
body.page-template-template-adex-catalog {
    background-color: #050505;
}

#adex-custom-header {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, -webkit-backdrop-filter 0.5s ease;
}

body:not(.menu-open) #adex-custom-header:hover {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

body:not(.menu-open) #adex-custom-header:hover #header-breadcrumbs {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#adex-custom-header a {
    text-decoration: none;
}

/* Изолированный сброс стилей для кастомных блоков ADEX */
.adex-root {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    color: white;
}

.adex-root * {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
}

.adex-root a {
    color: inherit;
    text-decoration: none;
}

.adex-root ul,
.adex-root ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.adex-root h1,
.adex-root h2,
.adex-root h3,
.adex-root h4,
.adex-root h5,
.adex-root h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    color: inherit;
    line-height: inherit;
}

.adex-root p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.adex-root button {
    cursor: pointer;
    background-color: transparent;
    text-transform: none;
    color: inherit;
    font-family: inherit;
    padding: 0;
    margin: 0;
}

.adex-root img,
.adex-root svg,
.adex-root canvas {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 20s linear infinite;
}

/* Стили для десктопного WordPress меню */
#header-level-1 .menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

#header-level-1 .menu>li>a {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#header-level-1 .menu>li>a:hover {
    color: #CCFF00;
}

#header-level-1 .menu>li>a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #CCFF00;
    transition: width 0.3s ease;
}

#header-level-1 .menu>li:hover>a::after {
    width: 100%;
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

#mobile-menu-overlay.open {
    display: flex;
    opacity: 1;
}

#mobile-menu-overlay.open .mobile-link {
    transform: translateX(0);
    opacity: 1;
}

/* WordPress Admin Bar - Highest Priority */
#wpadminbar,
#wpadminbar .menupop .ab-sub-wrapper,
#wpadminbar .quicklinks .menupop ul.ab-sub-secondary {
    z-index: 99999999 !important;
}

/* Смещение шапки при активном админ-баре WordPress */
body.admin-bar #adex-custom-header,
body.admin-bar #main-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar #adex-custom-header,
    body.admin-bar #main-header {
        top: 46px !important;
    }
}

/* Header & Mobile Menu Z-Index Hierarchy:
   1. WP Admin Bar: 99999999 (наивысший)
   2. Шапка и кнопка закрытия меню: 1000000
   3. Мобильное меню (оверлей): 999999
*/
#adex-custom-header,
#main-header {
    z-index: 1000000 !important;
}

#adex-custom-header > .container,
#main-header > .container,
#header-level-1,
#header-level-2,
#header-mobile-row-1,
#mobile-menu-btn {
    position: relative;
    z-index: 1000000 !important;
}

#mobile-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
}

/* Mobile Menu Styles */
.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: 1.5rem;
}

.mobile-menu-list li a {
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    font-size: 1.5rem;
    line-height: 1.2;
}

.mobile-menu-list li a:hover {
    color: #f70202 !important;
    padding-left: 0.5rem;
}

/* Lock scroll when menu is open */
html.menu-open,
body.menu-open {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none;
}

/* Стили для хлебных крошек Rank Math */
.rank-math-breadcrumbs-adex {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
}

.rank-math-breadcrumbs-adex a {
    color: #6b7280;
    transition: color 0.3s ease;
}

.rank-math-breadcrumbs-adex a:hover {
    color: #CCFF00;
}

.rank-math-breadcrumbs-adex .separator {
    margin: 0 10px;
    opacity: 0.3;
}

.rank-math-breadcrumbs-adex .last {
    color: #ffffff;
    font-weight: 700;
}

/* Стили для Contact Form 7 (Кастомные формы ADEX) */
.cf7-wholesale-form form {
    margin: 0;
}

.cf7-wholesale-form p {
    margin-bottom: 0 !important;
}

.cf7-wholesale-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-checkbox) {
    width: 100%;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    padding: 1rem 1.5rem !important;
    color: white !important;
    outline: none !important;
    transition: all 0.3s ease !important;
}

.cf7-wholesale-form .wpcf7-form-control:focus:not(.wpcf7-submit) {
    border-color: #EAFF00 !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.cf7-wholesale-form .wpcf7-submit {
    width: 100% !important;
    padding: 1.25rem !important;
    background-color: #EAFF00 !important;
    color: #000000 !important;
    border-radius: 9999px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.2em !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
    margin-top: 1.5rem !important;
    display: block !important;
}

.cf7-wholesale-form .wpcf7-submit:hover {
    box-shadow: 0 0 30px rgba(234, 255, 0, 0.4) !important;
    transform: translateY(-2px) !important;
}

.cf7-wholesale-form .wpcf7-acceptance {
    display: block !important;
    margin-top: 1rem !important;
}

.cf7-wholesale-form .wpcf7-list-item {
    margin: 0 !important;
}

.cf7-wholesale-form .wpcf7-list-item-label {
    color: #9ca3af !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
}

.cf7-wholesale-form input[type="checkbox"] {
    margin-right: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 4px !important;
}

/* Стили для интерактивного аккордеона FAQ */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}