/**
 * Wielton AGRO Configurator — Theme CSS
 * Styles for custom header, footer, and nav when Theme Mode is ON.
 */

/* ================================================================== */
/*  Reset & Base                                                       */
/* ================================================================== */

body.wag-theme-active {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wag-theme-content {
    min-height: 0;
    flex: 1;
}

/* ================================================================== */
/*  Site Header                                                        */
/* ================================================================== */

.wag-site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 10px 24px;
    height: auto;
    min-height: 64px;
    transition: box-shadow 0.3s;
}

.wag-site-header--sticky {
    position: sticky;
    top: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.wag-site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
}

/* Logo */
.wag-site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.wag-site-logo img {
    display: block;
    object-fit: contain;
}

.wag-site-logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ================================================================== */
/*  Desktop Navigation                                                 */
/* ================================================================== */

.wag-site-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}
.wag-site-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}
.wag-site-menu li a {
    white-space: nowrap;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: color 0.2s;
}
.wag-site-menu li a:hover { color: #fff; }

@media (max-width: 768px) {
    .wag-site-nav { display: none; }
}

.wag-site-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}

.wag-site-menu li {
    position: relative;
}

.wag-site-menu li a {
    display: block;
    padding: 8px 16px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: background 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.wag-site-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.wag-site-menu .current-menu-item > a,
.wag-site-menu .current_page_item > a {
    background: rgba(255, 255, 255, 0.15);
}

/* Submenu */
.wag-site-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    list-style: none;
    margin: 4px 0 0 0;
    padding: 8px 0;
    background: #222;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.wag-site-menu li:hover > .sub-menu {
    display: block;
}

.wag-site-menu .sub-menu li a {
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 0;
}

.wag-site-menu .sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ================================================================== */
/*  Header Right                                                       */
/* ================================================================== */

.wag-site-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: fit-content;
}




@media (max-width: 600px) {
    
}

/* Language switcher */
.wag-site-lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wag-site-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
    opacity: 0.6;
}

.wag-site-lang-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.wag-site-lang-btn.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.wag-site-lang-btn .wag-flag svg {
    width: 20px;
    height: 14px;
    display: block;
}

/* ================================================================== */
/*  Hamburger (Mobile)                                                 */
/* ================================================================== */

.wag-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.wag-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.wag-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.wag-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.wag-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.wag-mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 20, 20, 0.98);
    z-index: 999;
    padding: 24px;
    overflow-y: auto;
}

.wag-mobile-menu.open {
    display: block;
}

.wag-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wag-mobile-menu-list li a {
    display: block;
    padding: 14px 0;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wag-mobile-menu-list li a:hover {
    color: #f7c502;
}

.wag-mobile-menu-list .sub-menu {
    list-style: none;
    padding: 0 0 0 20px;
    margin: 0;
}

.wag-mobile-menu-list .sub-menu li a {
    font-size: 15px;
    color: #aaa;
}

/* ================================================================== */
/*  Site Footer                                                        */
/* ================================================================== */

.wag-site-footer {
    padding: 48px 24px 24px;
}

.wag-site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.wag-site-footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 32px;
}

.wag-site-footer-col {
    font-size: 14px;
    line-height: 1.8;
}

.wag-site-footer-logo {
    max-height: 40px;
    margin-bottom: 12px;
    display: block;
}

.wag-site-footer-brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #fff;
}

.wag-footer-company-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

/* Footer menu */
.wag-footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wag-footer-menu-list li a {
    display: block;
    padding: 4px 0;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.wag-footer-menu-list li a:hover {
    color: #fff;
}

/* Copyright */
.wag-site-footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    font-size: 13px;
    text-align: center;
    opacity: 0.7;
}

/* ================================================================== */
/*  Responsive                                                         */
/* ================================================================== */

@media (max-width: 768px) {

    /* Header */
    .wag-site-header {
        height: 56px;
        padding: 0 16px;
    }

    .wag-site-nav {
        display: none; /* hidden on mobile, use hamburger */
    }

    .wag-hamburger {
        display: flex;
    }

    .wag-site-lang-switcher {
        display: none; /* move to mobile menu on small screens */
    }

    /* Footer */
    .wag-site-footer {
        padding: 32px 16px 16px;
    }

    .wag-site-footer-cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .wag-site-footer-cols {
        grid-template-columns: 1fr 1fr;
    }
}




.wag-dealer-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 18px !important;
    margin-left: 12px !important;
    border-radius: 4px !important;
    background: #111111 !important;
    border: none !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: 'Exo 2', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    letter-spacing: 0.3px !important;
    transition: background 0.2s !important;
}
.wag-dealer-btn:hover {
    background: #333333 !important;
    color: #ffffff !important;
}

/* Korekcja wysokości konfiguratora pod site header */
.wag-theme-active .wag-configurator {
    height: calc(100vh - var(--wag-site-header-h, 70px));
    min-height: 500px;
}

/* Site header nav — 1:1 wieltonagro.com.pl*/

/* Site header nav — 1:1 wieltonagro.com.pl*/
/* ======================================= */
.wag-site-header-inner {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 24px;
}
.wag-site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-right: 32px;
}
.wag-site-nav {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.wag-site-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}
.wag-site-nav-menu li a {
    display: block;
    padding: 10px 14px;
    color: #222222 !important;
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    transition: color 0.15s ease;
}
.wag-site-nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 13px;
    right: 13px;
    height: 2px;
    background: var(--wag-primary, #f8c501);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.wag-site-nav-menu li a:hover {
    color: var(--wag-primary, #f8c501) !important;
}
.wag-site-nav-menu li a:hover::after {
    transform: scaleX(1);
}
/* Mobile */
@media (max-width: 960px) {
    .wag-site-nav {
        display: none;
    }
    .wag-hamburger {
        display: flex !important;
    }
}
@media (min-width: 961px) {
    .wag-hamburger {
        display: none !important;
    }
    .wag-mobile-menu {
        display: none !important;
    }
}
/* Mobile menu lista */
.wag-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.wag-mobile-menu-list li a {
    display: block;
    padding: 11px 24px;
    color: #222222 !important;
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: color 0.15s ease, background 0.15s ease;
}
.wag-mobile-menu-list li a:hover {
    color: var(--wag-primary, #f8c501) !important;
    background: rgba(255,255,255,0.05);
}

/* Ciemny tekst na jasnej karuzeli */
.wag-carousel-container .wag-carousel-name,
.wag-carousel-container .wag-carousel-price,
.wag-carousel-container .wag-carousel-label {
    color: #222222 !important;
}
