/* Világos téma */
[data-bs-theme="light"] .announcement-box {
    background-color: #e7f0fd;
    color: #000;
}

.connection-sale-price {
    color: #dc2626;
    font-size: 1.18em;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

[data-bs-theme="dark"] .connection-sale-price {
    color: #ff5a68;
}

/* Sötét téma */
[data-bs-theme="dark"] .announcement-box {
    background-color: #1e2a39;
    color: #fff;
}

/* Link színek világos és sötét témához */
[data-bs-theme="light"] .announcement-box a {
    color: #0d6efd;
}

[data-bs-theme="dark"] .announcement-box a {
    color: #66bfff;
}

.mega-menu {
    min-width: 20%;
    background-color: white;
    z-index: 1050;
    transition: opacity 0.1s ease-in-out;
    left: 50%;
    transform: translateX(-50%);
    column-gap: 2rem;
}

.mega-list{
    column-width: 220px;
    column-gap: 20px;
    column-fill: balance;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mega-menu h6 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: .5rem;
}

.mega-menu a {
    color: #212529;
    font-size: 0.95rem;
    text-decoration: none;
    display: block;
    margin-bottom: .25rem;
}

.mega-menu a:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        padding: 1rem 1.5rem;
        max-height: 80vh;
        overflow-y: auto;
        column-count: 1 !important;
    }
    .mega-menu .row {
        flex-direction: column;
    }
    .mega-menu .dropdown-item {
        padding-left: 0;
    }
}

.aiwa-banner {
    top: 0;
    left: 0;
    z-index: 9999;
    height: 30px;

    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


@media (min-width: 992px) {
    .brand-navbar-balanced > .container {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .brand-navbar-balanced .navbar-brand {
        flex: 0 0 auto;
        position: relative;
        z-index: 2;
    }

    .brand-navbar-balanced .navbar-brand img {
        display: block;
        max-width: none;
        height: auto;
    }

    .brand-navbar-balanced .navbar-collapse {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-navbar-balanced #main-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        white-space: nowrap;
        scrollbar-width: thin;
    }

    .brand-navbar-balanced #main-nav::-webkit-scrollbar {
        height: 6px;
    }

    .brand-navbar-balanced #main-nav > .nav-item,
    .brand-navbar-balanced #main-nav > li,
    .brand-navbar-balanced #main-nav > span {
        flex: 0 0 auto;
    }

    .brand-navbar-balanced .mode-switch,
    .brand-navbar-balanced .nav-link[href="#searchModal"],
    .brand-navbar-balanced .btn[aria-label="Fiókom"],
    .brand-navbar-balanced .btn[href="/cart"] {
        flex: 0 0 auto;
    }
}
/* mobile navbar logo */
@media (max-width: 576px) {
    header .navbar-brand img {
        max-width: 80px;
        height: auto;
    }

    header .navbar {
        flex-wrap: nowrap;
        padding: 0.2rem 0.5rem;
    }

    header .navbar-collapse {
        flex-grow: 1;
        justify-content: flex-end;
    }

    header .nav-item {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
}
/* ParcelShop modal refresh */
#parcelShopModal .modal-content {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

#parcelShopModal .modal-header {
    border-bottom: 0;
    padding: 1.5rem 1.5rem 1rem;
    background:
        radial-gradient(900px 200px at -10% -10%, rgba(14, 116, 144, 0.18), transparent 60%),
        linear-gradient(135deg, #eefcf8 0%, #f8fafc 70%);
}

#parcelShopModal .modal-title {
    margin: 0.25rem 0 0.25rem;
    font-size: 1.2rem;
    color: #0f172a;
}

#parcelShopModal .parcelshop-subtitle {
    font-size: 0.9rem;
    color: #475569;
}

#parcelShopModal .parcelshop-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #0f766e;
    background: rgba(15, 118, 110, 0.12);
}

#parcelShopModal .modal-body {
    padding: 1rem 1.5rem 1.5rem;
}

#parcelShopModal .parcelshop-map {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    height: 420px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

#parcelShopModal .gls-dpm-wrapper {
    width: 100%;
    height: 100%;
}

#parcelShopModal .modal-footer {
    border-top: 0;
    padding: 0 1.5rem 1.5rem;
    gap: 0.75rem;
}

#parcelShopModal .btn {
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
}

#parcelShopModal .btn-primary {
    background: #0f766e;
    border-color: #0f766e;
}

#parcelShopModal .btn-primary:hover,
#parcelShopModal .btn-primary:focus {
    background: #0b6a63;
    border-color: #0b6a63;
}

#parcelShopModal .btn-secondary {
    background: #e2e8f0;
    border: 0;
    color: #0f172a;
}

#parcelShopModal .btn-secondary:hover,
#parcelShopModal .btn-secondary:focus {
    background: #d6dee8;
    color: #0b1220;
}

@media (max-width: 575.98px) {
    #parcelShopModal .modal-header {
        padding: 1.1rem 1.1rem 0.8rem;
    }
    #parcelShopModal .modal-body {
        padding: 0.8rem 1.1rem 1.1rem;
    }
    #parcelShopModal .modal-footer {
        padding: 0 1.1rem 1.1rem;
    }
    #parcelShopModal .parcelshop-map {
        height: 360px;
    }
}

@media (min-width: 992px) {
    #parcelShopModal .modal-dialog {
        max-width: 1200px;
        width: calc(100vw - 4rem);
    }
    #parcelShopModal .modal-body {
        padding: 0;
    }
    #parcelShopModal .parcelshop-map {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        height: 65vh;
    }
}


/* ==========================================================================
   Brand Category Dropdown (Modern, Centered, Responsive)
   ========================================================================== */
@media (min-width: 992px) {
    #main-nav > .nav-item.dropdown.position-static {
        position: static !important;
    }

    #main-nav > .nav-item.dropdown::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 24px;
        z-index: 1040;
    }

    .brand-category-dropdown {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        z-index: 1050;
        animation: brandDropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .brand-category-dropdown::before {
        content: "";
        position: absolute;
        top: -14px;
        left: 0;
        right: 0;
        height: 14px;
    }
}

@keyframes brandDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-category-dropdown {
    border-radius: 1.25rem !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.15), 0 4px 12px rgba(15, 23, 42, 0.05) !important;
    background: #ffffff !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.brand-category-dropdown .bg-light-subtle {
    background-color: #f8fafc !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.brand-category-dropdown .bg-light-subtle:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.brand-category-dropdown .dropdown-item {
    font-size: 0.875rem !important;
    color: #334155 !important;
    transition: all 0.12s ease;
}

.brand-category-dropdown .dropdown-item:hover,
.brand-category-dropdown .dropdown-item:focus {
    background-color: rgba(15, 23, 42, 0.06) !important;
    color: #0f172a !important;
    transform: translateX(3px);
}

/* Dark mode theme support */
[data-bs-theme="dark"] .brand-category-dropdown {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 24px 56px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .brand-category-dropdown .bg-light-subtle {
    background-color: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .brand-category-dropdown .bg-light-subtle:hover {
    background-color: #1a2436 !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

[data-bs-theme="dark"] .brand-category-dropdown a.text-dark {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .brand-category-dropdown .dropdown-item {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .brand-category-dropdown .dropdown-item:hover,
[data-bs-theme="dark"] .brand-category-dropdown .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

@media (max-width: 991.98px) {
    .brand-category-dropdown {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0.5rem 0 !important;
        max-height: 70vh;
        overflow-y: auto;
    }
}
