:root {
    --site-bg: #9cc3f1;
    --card-bg: #283d62;
    --site-body-text: #444;
    --site-nav-bg-rgb: 45, 90, 135;
    --site-nav-link: #ffffff;
    --site-nav-link-hover: #e8f4ff;
    --site-link: #5a8fd4;
    --site-link-hover: #4a7bc4;
    --site-sidebar-title: #5a5a5a;
    --site-sidebar-link: #000000;
    --site-sidebar-link-hover: #5a8fd4;
    --site-sidebar-link-active: #5a8fd4;
    --site-sidebar-bg: #fff;
    --site-sidebar-border: #e8e8e8;
    --site-sidebar-hover-bg: #f5f5f5;
    --site-sidebar-active-bg: #f0f6ff;
    --site-price-color: #2563eb;
    --site-btn-product: #2563eb;
    --site-flyout-bg: #fff;
    --site-flyout-border: #383030;
    --site-flyout-link: #444;
    --site-flyout-link-hover: #5a8fd4;
}

/* Ограничаване на ширината – съдържанието е събрано, не разтеглено на целия екран */
.site-content-wrap {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 991.98px) {
    .site-content-wrap {
        padding-top: 0.5rem;
    }
}

.site-nav-inner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .site-content-wrap {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .site-nav-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Navbar – стабилна височина на всички страници; GPU слой за по-плавен скрол */
.navbar {
    min-height: 50px;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.navbar .site-nav-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    min-height: 50px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: inherit;
    text-decoration: none;
}

.navbar-brand {
    color: #333 !important;
}

.navbar-brand:hover {
    color: var(--site-link) !important;
}

.navbar .navbar-collapse {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.navbar .navbar-nav {
    align-items: center;
}

.navbar .navbar-nav .nav-link {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.navbar {
    background: #e9ecef !important;
    /* Светло сив фон */
    background-image: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1020;
    position: relative;
}

.navbar .nav-link,
.navbar .navbar-toggler {
    color: #333 !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--site-link) !important;
}

/* Телефон в навбара на страниците извън началната (продукти, контакти и др.) */
.navbar .nav-cta-phone {
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--site-nav-link, #fff) !important;
    white-space: nowrap;
}

.navbar .nav-cta-phone:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--site-nav-link-hover, #fff) !important;
}

.navbar-brand img {
    max-height: 56px;
}

@media (max-width: 991.98px) {

    .navbar,
    .navbar .site-nav-inner {
        min-height: 50px;
    }

    .navbar {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .navbar .site-nav-inner {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    /* Хамбургер меню настройки */
    .navbar-toggler {
        z-index: 1060;
        position: relative;
        cursor: pointer;
    }

    /* Менюто да е скрито до клик на хамбургера; бял фон само когато е отворено */
    @media (max-width: 991.98px) {
        .navbar-collapse {
            display: none !important;
            /* Убеждаваме се, че е скрито по подразбиране с !important */
            padding: 0;
            margin: 0;
            background: #fff !important;
            border-radius: 0 0 12px 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            z-index: 1070;
        }

        /* Използваме по-силен селектор, за да преборим display: none !important */
        div.navbar-collapse.show {
            display: block !important;
            padding-top: 0.75rem;
            padding-bottom: 0.75rem;
        }
    }

    .navbar-collapse .nav-link {
        color: #212529 !important;
        padding: 0.75rem 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        font-size: 1.05rem;
        border-bottom: 1px solid #eee;
    }

    .navbar-collapse .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link.active {
        color: var(--site-link) !important;
        background: #f8f9fa;
    }

    .navbar-collapse .nav-cta-phone {
        color: var(--site-link) !important;
        background: var(--site-sidebar-active-bg) !important;
        margin: 0.5rem 1rem 0;
        border-radius: 8px;
        justify-content: center;
    }

    .navbar-collapse .nav-cta-phone:hover {
        background: var(--site-sidebar-hover-bg) !important;
        color: var(--site-link-hover) !important;
    }

    .navbar .navbar-collapse {
        flex-basis: 100%;
        flex-grow: 0;
    }
}

/* Само менюта – шрифт Roboto (горна навигация, ляво меню, flyout) */
header nav,
.glass-sidebar,
.glass-sidebar .sidebar-link,
.flyout-menu,
.flyout-menu a,
.sidebar {
    font-family: 'Roboto', sans-serif;
}

/* Sidebar – стил като laptop.bg: шрифт, главни категории удебелени, подменюта с отстъп */
.sidebar {
    position: sticky;
    top: 50px;
    background: var(--site-sidebar-bg);
    border-radius: 0 8px 8px 0;
}

@media (min-width: 992px) {

    /* Flyout да е винаги над съдържанието (напр. секция „Услуги“ на началната) */
    .sidebar {
        z-index: 100;
    }
}

.sidebar-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--site-sidebar-title);
    margin-bottom: 0.75rem;
    padding: 0 0.5rem 0.35rem;
    border-bottom: 1px solid var(--site-sidebar-border);
}

.sidebar-nav {
    font-size: 0.9375rem;
}

.sidebar-list {
    padding-left: 0;
}

.sidebar-item {
    margin-bottom: 0.15rem;
    position: relative;
}

/* Подменю inline на мобилни */
.sidebar-sublist {
    padding-left: 0.75rem;
    margin-top: 0.1rem;
    margin-bottom: 0.35rem;
    border-left: 1px solid var(--site-sidebar-border);
}

.sidebar-sublist li {
    margin-bottom: 0.05rem;
}

/* На десктоп: flyout панел вдясно (стил laptop.bg) */
@media (min-width: 992px) {
    .sidebar-item .sidebar-sublist {
        position: absolute;
        left: 100%;
        top: 0;
        margin: 0;
        margin-left: 8px;
        /* Дистанция от главния панел */
        padding: 0.75rem 0;
        min-width: 260px;
        list-style: none;

        /* 1. Frosted Glass (Матово стъкло) */
        background: rgba(30, 41, 59, 0.55) !important;
        backdrop-filter: blur(14px) saturate(180%) brightness(120%);
        -webkit-backdrop-filter: blur(14px) saturate(180%) brightness(120%);

        /* 2. Рамка и акцент */
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-left: 4px solid #38bdf8 !important;
        /* Неонова LED линия */
        border-radius: 0 12px 12px 12px;

        /* 3. Дълбока сянка */
        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.6),
            inset 0 0 15px rgba(255, 255, 255, 0.05);

        /* Състояние преди показване */
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateX(15px) scale(0.98);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow: hidden;
        /* Важно за shimmer и grain ефектите */
    }

    .sidebar-item:hover .sidebar-sublist {
        opacity: 1;
        visibility: visible;
        transform: translateX(0) scale(1);
    }

    .sidebar-item .sidebar-sublist::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        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.60' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
        opacity: 0.05;
        mix-blend-mode: overlay;
        pointer-events: none;
    }

    .sidebar-item .sidebar-sublist::after {
        content: "";
        position: absolute;
        top: -100%;
        left: -100%;
        width: 300%;
        height: 300%;
        background: linear-gradient(45deg,
                transparent 45%,
                rgba(255, 255, 255, 0.08) 50%,
                transparent 55%);
        z-index: 1;
        transition: none;
        pointer-events: none;
    }

    .sidebar-item:hover .sidebar-sublist::after {
        animation: cyber-shimmer 1.5s infinite;
    }

    @keyframes cyber-shimmer {
        0% {
            transform: translate(-30%, -30%);
        }

        100% {
            transform: translate(30%, 30%);
        }
    }

    /* Стил на линковете в подменюто */
    .sidebar-item .sidebar-sublist .sidebar-sublink {
        position: relative;
        z-index: 2;
        /* Над текстурата и сиянието */
        color: rgba(241, 245, 249, 0.9) !important;
        padding: 0.65rem 1.5rem;
        display: block;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.25s ease;
        background: transparent !important;
    }

    .sidebar-item .sidebar-sublist .sidebar-sublink:hover {
        background: rgba(56, 189, 248, 0.1) !important;
        color: #38bdf8 !important;
        padding-left: 1.8rem;
        text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
    }
}

.sidebar-sublink {
    display: block;
    padding: 0.28rem 0.4rem 0.25rem 0.5rem;
    color: var(--site-flyout-link) !important;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    border-radius: 0 4px 4px 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-sublink:hover {
    background: #f8f8f8;
    color: var(--site-flyout-link-hover) !important;
}

.sidebar-sublink.active {
    font-weight: 600;
    color: var(--site-flyout-link-hover) !important;
    background: var(--site-sidebar-active-bg);
}

.sidebar-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    background: #e9ecef;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    margin-left: 0.25rem;
}

.sidebar-link:hover .sidebar-badge,
.sidebar-sublink:hover .sidebar-badge {
    background: #dee2e6;
}

.sidebar-link.active .sidebar-badge,
.sidebar-sublink.active .sidebar-badge {
    background: #cce5ff;
    color: var(--site-link);
}

.sidebar .product-link {
    padding-left: 1.25rem;
    font-size: 0.95rem;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: static;
        top: auto;
        border-right: none !important;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 1rem;
    }
}

/* Мобилно: ляво меню скрито по подразбиране, бутон за отваряне, drawer + overlay */
@media (max-width: 991.98px) {

    .row .sidebar.col-md-3,
    .sidebar {
        position: fixed !important;
        top: 0;
        bottom: 0;
        left: -280px;
        width: 280px !important;
        max-width: 85vw;
        z-index: 1060;
        transition: left 0.25s ease, box-shadow 0.25s ease;
        border-radius: 0 12px 12px 0 !important;
        border: none !important;
        border-right: 1px solid #dee2e6 !important;
        padding: 1.5rem 0 1.5rem 0 !important;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        margin: 0 !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: none;
        background: #fff !important;
        flex: 0 0 auto !important;
        /* Reset flex */
    }

    body.sidebar-open .sidebar,
    .page-home .sidebar {
        background: #fff !important;
    }

    body.sidebar-open .sidebar {
        left: 0 !important;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.2);
        z-index: 1100;
        background: #ffffff !important;
        opacity: 1;
        visibility: visible;
        display: block !important;
    }

    body.sidebar-open .sidebar .sidebar-title,
    body.sidebar-open .sidebar .sidebar-nav {
        color: #333;
    }

    body.sidebar-open .sidebar .sidebar-link,
    body.sidebar-open .sidebar .sidebar-sublink {
        color: #1a1a1a !important;
    }

    body.sidebar-open .sidebar .sidebar-link:hover,
    body.sidebar-open .sidebar .sidebar-sublink:hover {
        color: var(--site-link) !important;
        background: #f0f4f8;
    }

    body.sidebar-open .sidebar .sidebar-link.active,
    body.sidebar-open .sidebar .sidebar-sublink.active {
        color: var(--site-link) !important;
        background: #e8f0fe;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1055;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .sidebar-toggle-mobile {
        display: inline-flex !important;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.25rem;
        margin-bottom: 0.75rem;
        font-size: 1.05rem;
        font-weight: 600;
        color: #fff;
        background: var(--site-link);
        border: 1px solid var(--site-link);
        border-radius: 10px;
        cursor: pointer;
        position: relative;
        z-index: 1010;
        /* По-ниско от navbar (1020), за да минава отдолу при скрол */
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .sidebar-toggle-mobile:hover {
        background: var(--site-link-hover);
        color: #fff;
    }

    .sidebar-toggle-icon {
        display: inline-block;
        width: 1.25rem;
        height: 1rem;
        background: linear-gradient(to bottom, currentColor 20%, transparent 20%, transparent 40%, currentColor 40%, currentColor 60%, transparent 60%, transparent 80%, currentColor 80%);
        background-size: 100% 100%;
    }

    .sidebar-close-mobile {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        font-size: 1.5rem;
        line-height: 1;
        color: #333;
        background: #f0f0f0;
        border: none;
        border-radius: 8px;
        cursor: pointer;
    }

    .sidebar-close-mobile:hover {
        color: #000;
        background: #e0e0e0;
    }
}

/* Карточки продукти – същият вид като цяло (не само при hover) */
.product-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 12px;
    overflow: hidden;
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12) !important;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18) !important;
}

.product-card .card-body {
    transition: background 0.2s ease;
    background: rgba(248, 249, 250, 0.8);
}

.product-card:hover .card-body {
    background: rgba(248, 249, 250, 0.95);
}

/* Рамка за снимки на бял фон – плътен тъмен фон, за multiply да скрие бялото */
.product-card .card-img-top {
    position: relative;
    background-color: #fff !important;
    box-shadow: inset 0 0 80px rgba(18, 24, 35, 1);
    /* правоъгълно преливане от краищата навътре */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    min-height: 160px;
}

.product-card .card-img-top img {
    mix-blend-mode: multiply;
    transition: filter 0.2s ease;
}

/* Shadows removed as requested */

.product-card .card-img-top div {
    transition: background 0.2s ease;
}

.product-card .card-body p.text-primary,
.product-card .card-body .product-price,
.page-produkti .product-card .card-body .product-price,
.product-detail-page .product-detail-info p.text-primary,
.product-detail-page .product-detail-info .h4.text-primary {
    color: var(--site-price-color, #2563eb) !important;
}

.product-card .card-body .product-price,
.page-produkti .product-card .card-body .product-price {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-card .card-body .product-card-footer {
    padding-top: 0.5rem;
    text-align: center;
}

.product-card .card-body .product-card-footer .btn {
    display: block;
    width: 100%;
}

/* Бутон „Виж” при продукт и други бутони – цвят от Изглед (site-btn-product) */
body .btn-outline-primary,
body .btn-primary,
body .product-card .card-body a.btn-outline-primary,
body.page-produkti .product-card .card-body a.btn-outline-primary {
    --bs-btn-color: var(--site-btn-product, #2563eb);
    --bs-btn-border-color: var(--site-btn-product, #2563eb);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--site-btn-product, #2563eb);
    --bs-btn-hover-border-color: var(--site-btn-product, #2563eb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--site-btn-product, #2563eb);
    --bs-btn-active-border-color: var(--site-btn-product, #2563eb);
}

body .btn-outline-primary {
    color: var(--site-btn-product, #2563eb) !important;
    border-color: var(--site-btn-product, #2563eb) !important;
}

body .product-card .card-body a.btn-outline-primary,
body.page-produkti .product-card .card-body a.btn-outline-primary {
    color: var(--site-btn-product, #2563eb) !important;
    border-color: var(--site-btn-product, #2563eb) !important;
}

body .btn-primary {
    background-color: var(--site-btn-product, #2563eb) !important;
    border-color: var(--site-btn-product, #2563eb) !important;
    color: #fff !important;
}

body .btn-outline-primary:hover,
body .btn-outline-primary:focus-visible,
body .btn-primary:hover,
body .btn-primary:focus-visible,
body .product-card:hover .card-body a.btn-outline-primary,
body .product-card .card-body a.btn-outline-primary:hover,
body .product-card .card-body a.btn-outline-primary:focus-visible,
body.page-produkti .product-card:hover .card-body a.btn-outline-primary,
body.page-produkti .product-card .card-body a.btn-outline-primary:hover,
body.page-produkti .product-card .card-body a.btn-outline-primary:focus-visible {
    color: #fff !important;
    background-color: var(--site-btn-product, #2563eb) !important;
    border-color: var(--site-btn-product, #2563eb) !important;
    filter: brightness(0.9);
}

body .btn-outline-primary:active,
body .btn-primary:active,
body .product-card .card-body a.btn-outline-primary:active,
body.page-produkti .product-card .card-body a.btn-outline-primary:active {
    color: #fff !important;
    background-color: var(--site-btn-product, #2563eb) !important;
    border-color: var(--site-btn-product, #2563eb) !important;
    filter: brightness(0.85);
}

/* Филтър от дясно – sticky под навигацията, не над hero фона */
.filter-sidebar {
    border-radius: 12px;
}

.filter-sidebar.sticky-top {
    top: 50px;
    z-index: 100;
}

@media (max-width: 991.98px) {
    .filter-sidebar.sticky-top {
        position: static;
    }
}

.filter-option .filter-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    border: 1px solid #adb5bd;
    border-radius: 3px;
    font-size: 0.7rem;
    line-height: 1;
    color: transparent;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.filter-option a:hover .filter-checkbox {
    border-color: var(--site-link);
}

.filter-option .filter-checkbox--checked {
    background: var(--site-link);
    border-color: var(--site-link);
    color: #fff;
}

/* Страница продукт – таб изображения, thumbnails */
.product-gallery-thumb {
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-gallery-thumb:hover {
    transform: scale(1.05);
}

.product-gallery-thumb img {
    display: block;
    background-color: #fff !important;
    box-shadow: inset 0 0 30px rgba(18, 24, 35, 1);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    mix-blend-mode: multiply;
}

/* Преход при клик на продукт: изход от списъка */
main.page-transition-out {
    opacity: 0;
    transition: opacity 0.26s ease;
    pointer-events: none;
}

/* Вход при зареждане на страница продукт */
.product-detail-page .product-detail {
    opacity: 0;
    animation: productPageFadeIn 0.4s ease forwards;
}

@keyframes productPageFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Блок под изображението: по-готин шрифт и центрирани текст и цена */
.product-detail-page .product-detail-info {
    text-align: center;
    font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
}

.product-detail-page .product-detail-info .text-muted,
.product-detail-page .product-detail-info h1,
.product-detail-page .product-detail-info .h4,
.product-detail-page .product-detail-info .lead,
.product-detail-page .product-detail-info .mt-3 {
    text-align: center;
}

.product-detail-page .product-detail-info .mt-3 {
    text-align: left;
    max-width: 52em;
    margin-left: auto;
    margin-right: auto;
}

.product-detail-page .product-detail-info .nav-tabs,
.product-detail-page .product-detail-info .btn {
    margin-left: auto;
    margin-right: auto;
}

.product-detail-page .product-detail-info .nav-tabs {
    justify-content: center;
}

/* Заглавие на продукт – умерен размер, цялото заглавие видимо (не се отрязва) */
.product-detail-page .product-detail h1 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .product-detail-page .product-detail h1 {
        font-size: 1.5rem;
    }
}

/* Breadcrumb на страница продукт */
.product-detail-page .product-breadcrumb .breadcrumb {
    font-size: 0.9rem;
}

/* Рамка за главна снимка – плътен тъмен фон за multiply */
.product-detail-page .product-image-frame {
    background-color: #fff;
    box-shadow: inset 0 0 80px rgba(18, 24, 35, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
}

.product-detail-page .product-image-frame img {
    mix-blend-mode: multiply;
}

/* Hero – по-компактен на малки екрани */
.hero-section {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
}

@media (min-width: 576px) {
    .hero-section {
        padding: 3.5rem 1rem;
    }
}

@media (min-width: 768px) {
    .hero-section {
        padding: 4rem 1rem;
    }
}

@media (min-width: 992px) {
    .hero-section {
        padding: 60px 0;
    }
}

/* Карточки и бутони – по-големи зони за докосване на мобилни */
@media (max-width: 575.98px) {
    .btn {
        min-height: 44px;
        padding: 0.5rem 1rem;
    }

    .card .btn {
        min-height: 40px;
    }
}

/* Footer */
footer {
    background: #222;
    color: #ccc;
    padding: 2rem 0;
}

footer a {
    padding: 0.25rem 0;
    display: inline-block;
}

@media (min-width: 768px) {
    footer {
        padding: 40px 0;
    }
}

/* Основно съдържание – по-добри отступи на мобилни */
main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (min-width: 768px) {
    main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* MegaSoft Cyber Theme - Added Feb 24, 2026 */

html,
body {
    background-color: var(--site-bg) !important;
    background-image: none !important;
}

body {
    min-height: 100vh;
    color: #f1f5f9;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

/* Subtle circuit background lines matching the image */
.circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, transparent 40%, black 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, transparent 20%, black 100%);
    pointer-events: none;
    z-index: -1;
}

/* Standard Glass Panel */
.glass-panel {
    background: linear-gradient(135deg, rgba(45, 61, 88, 0.5) 0%, rgba(25, 38, 69, 0.7) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 200, 255, 0.2);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 30px rgba(56, 189, 248, 0.05);
    border-radius: 12px;
    position: relative;
}

/* Glow utility for panels to match the prominent cyan glow in the image */
.panel-glow {
    box-shadow:
        0 0 40px rgba(56, 189, 248, 0.15),
        inset 0 0 20px rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.4);
}

.panel-glow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), transparent);
    border-radius: 100%;
    opacity: 0.8;
}

/* Sidebar specific glass panel */
.glass-sidebar {
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 12px;
    position: relative;
    overflow: visible !important;

    /* Комбиниран външен и ВЪТРЕШЕН glow */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        /* Външна сянка */
        inset 0 0 12px 2px rgba(255, 255, 255, 0.05),
        /* Мек вътрешен glow */
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    /* Светъл горен ръб (rim) */
}

/* The reflection sheen for sidebar */
.glass-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    /* Плавно избледняване отгоре надолу, изчезващо към 50% */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    z-index: 10;
}

/* Apply same reflection to other glass panels */
.glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    z-index: 10;
}


.glass-sidebar::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
    border-radius: 100%;
    z-index: 2;
}

/* Active Sidebar Item */
.sidebar-active {
    background: linear-gradient(90deg,
            rgba(56, 189, 248, 0.2) 0%,
            rgba(56, 189, 248, 0.1) 50%,
            rgba(56, 189, 248, 0.2) 100%) !important;
    color: #fff;
    border-left: 2px solid rgba(56, 189, 248, 0.5);
    /* Дискретна линия вляво */
    box-shadow:
        inset 10px 0 20px -10px rgba(56, 189, 248, 0.6),
        inset -10px 0 20px -10px rgba(56, 189, 248, 0.6);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Shimmer при hover върху категория – преливане през стъклото */
.glass-sidebar>ul>li.group {
    position: relative;
    overflow: hidden;
}

.glass-sidebar>ul>li.group::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 25%,
            rgba(56, 189, 248, 0.25) 50%,
            rgba(255, 255, 255, 0.08) 75%,
            transparent 100%);
    transform: translateX(-100%);
    pointer-events: none;
    z-index: 0;
}

.glass-sidebar>ul>li.group:hover::after {
    animation: sidebar-shimmer 0.6s ease-out forwards;
}

@keyframes sidebar-shimmer {
    to {
        transform: translateX(250%);
    }
}

.glass-sidebar .sidebar-link {
    position: relative;
    z-index: 1;
}

.sidebar-link {
    transition: all 0.2s;
}

.sidebar-link:hover:not(.sidebar-active) {
    background: linear-gradient(90deg,
            rgba(56, 189, 248, 0.1) 0%,
            rgba(255, 255, 255, 0.02) 50%,
            rgba(56, 189, 248, 0.1) 100%);
    box-shadow:
        inset 20px 0 30px -20px rgba(56, 189, 248, 0.5),
        inset -20px 0 30px -20px rgba(56, 189, 248, 0.5);
    color: #fff;
}

/* Image Container in Product Card – плътен тъмен за multiply */
.image-container-glass {
    background-color: #ffffff;
    background-image:
        linear-gradient(to right, #030712 0%, transparent 5%),
        linear-gradient(to left, #030712 0%, transparent 5%),
        linear-gradient(to bottom, #030712 0%, transparent 5%),
        linear-gradient(to top, #030712 0%, transparent 5%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

/* Cyan Button */
.btn-cyan {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(56, 189, 248, 0.6);
    color: #fff;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2), inset 0 0 10px rgba(56, 189, 248, 0.1);
    transition: all 0.3s;
    border-radius: 9999px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.btn-cyan:hover {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4), inset 0 0 10px rgba(56, 189, 248, 0.2);
}

/* Contact Red Button */
.btn-contact-red {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.2), rgba(153, 27, 27, 0.8));
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 9999px;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.3), inset 0 0 10px rgba(220, 38, 38, 0.1);
    animation: cta-pulse 2s infinite ease-in-out;
}

@keyframes cta-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 25px rgba(220, 38, 38, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
    }
}

/* Custom Header Shape matching image */
/* Основната форма на менюто със стъклен ефект */
.header-pill {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    position: relative;
}

.header-pill>.flex-shrink-0,
.header-pill>nav {
    position: relative;
    z-index: 50;
    /* Ensure menu is above the notch */
}



.title-glow {
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

/* Sidebar content should be above the reflection sheen */
.glass-sidebar>ul {
    position: relative;
    z-index: 10;
}

/* Inline flyout hidden – we use fixed layer for real frosted glass (backdrop-filter needs to be outside sidebar stacking context) */
.submenu-inline {
    display: none !important;
}

/* Fixed flyout layer – same glass styles, positioned by JS so blur is over page content */
#submenu-flyout {
    position: fixed !important;
    z-index: 99999;
    min-width: 14rem;
    pointer-events: auto;
}

#submenu-flyout[hidden] {
    display: none !important;
}

/* Fixed flyout is not inside .group so we show it when [hidden] is removed */
#submenu-flyout:not([hidden]) {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

/* Submenu Flyout – frosted glass (structure from reference; colors unchanged) */
.flyout-menu {
    background: rgba(15, 25, 35, 0.45);
    backdrop-filter: blur(5px) saturate(1.2);
    -webkit-backdrop-filter: blur(5px) saturate(1.2);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 0 15px 15px 15px;
    padding: 10px 0;
    box-shadow:
        0 0 25px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(56, 189, 248, 0.08),
        inset 0 0 20px rgba(255, 255, 255, 0.03);
    margin-left: 20px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translateX(20px) scale(0.97);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    overflow: hidden;
}

/* Sheen for the Flyout */
.flyout-menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(105deg,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 45%);
    pointer-events: none;
    z-index: 1;
}

/* Show state */
.group:hover .flyout-menu {
    transform: translateX(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* Mobile Sidebar Accordion Styles */
.sidebar-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sidebar-toggle-btn.active {
    transform: rotate(180deg);
    color: var(--site-link) !important;
}

.mobile-submenu {
    border-left: 2px solid rgba(56, 189, 248, 0.2);
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.mobile-submenu a {
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-submenu a:hover {
    padding-left: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-submenu {
        display: none !important;
    }
}

.flyout-menu ul {
    position: relative;
    z-index: 2;
    list-style: none;
    margin: 0;
    padding: 0;
}

.flyout-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flyout-menu li:last-child {
    border-bottom: none;
}

.flyout-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, padding-left 0.3s;
}

.flyout-menu a:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    padding-left: 25px;
    text-shadow: 0 0 5px rgba(56, 189, 248, 0.8);
}

/* Icon Boxes in Services */
.icon-box {
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.05), 0 0 15px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.icon-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(105deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 30%,
            transparent 30%,
            transparent 100%);
    pointer-events: none;
}

.logo-blue {
    /* brightness(0) invert(1) прави логото чисто бяло */
    /* sepia(1) добавя основа за оцветяване */
    /* hue-rotate задава синия нюанс */
    /* saturate засилва цвета */
    filter: brightness(0) invert(1) sepia(1) hue-rotate(190deg) saturate(5) brightness(0.9);
    transform: scaleY(0.7);

    /* Опция за плавна промяна при hover, ако решиш */
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Ако искаш да става още по-светло при посочване с мишката */
.group:hover .logo-blue {
    filter: brightness(0) invert(1) sepia(1) hue-rotate(190deg) saturate(7) brightness(1.1);
}



/* Header Notch Detail */
/* 1. Формата на трапеца (Notch) */
.header-notch {
    position: absolute;
    bottom: -22px;
    /* Виси с 22px надолу... */
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 44px;
    /* ...но е висок 24px! Така се качва 2px ВЪРХУ менюто и скрива сивата му рамка */
    background: #0f172a;
    /* Същият тъмен цвят като дъното на менюто */
    clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
    display: flex;
    justify-content: center;
    z-index: 20;
    /* Рисува диагоналните рамки */
    filter: drop-shadow(0px 1px 0px rgba(255, 255, 255, 0.1));
}

/* 5. ЯРКАТА ЦИАНОВА ЛИНИЯ */
.header-notch .notch-glow-line {
    position: absolute;
    bottom: 1px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: #38bdf8;
    box-shadow:
        0 0 5px rgba(56, 189, 248, 1),
        0 -1px 2px rgba(255, 255, 255, 0.5);
    z-index: 22;
}

/* Ядрото на светлината (Lens Flare) */
.header-notch .notch-glow-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow:
        0 0 10px 2px #ffffff,
        0 0 20px 8px rgba(56, 189, 248, 0.8);
    z-index: 2;
}

/* 2. Декоративните чертички (/// \\\) под трапеца */
.notch-decals {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 25;
}

.notch-decals .slashes {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 2px;
    color: hsl(200, 100%, 97%);
    opacity: 0.8;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
    font-style: bold;
    animation: blink-slashes 3s infinite alternate;
}

/* Анимация за леко премигване */
@keyframes blink-slashes {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.9;
    }

    100% {
        opacity: 0.3;
    }
}

/* Скриване на мобилни екрани */
@media (max-width: 991px) {

    .header-notch,
    .notch-decals,
    .header-pill::after,
    .header-pill::before {
        display: none !important;
    }
}

.tech-pattern {
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg,
            rgba(56, 189, 248, 0.1) 0px,
            rgba(56, 189, 248, 0.1) 1px,
            transparent 1px,
            transparent 6px);
    opacity: 0.5;
}

/* ===== 4-Column Product Grid ===== */
.products-grid-4col {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.25rem;
}

.products-grid-4col>* {
    width: calc(25% - 0.9375rem);
    /* roughly 1/4 minus gap */
    max-width: 100%;
}

@media (max-width: 1279.98px) {
    .products-grid-4col>* {
        width: calc(33.333% - 0.833rem);
    }
}

@media (max-width: 1023.98px) {
    .products-grid-4col>* {
        width: calc(50% - 0.625rem);
    }
}

@media (max-width: 639.98px) {
    .products-grid-4col>* {
        width: 100%;
    }
}

/* Vertical Product Card */
.product-card-v {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.product-card-v:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 40px rgba(56, 189, 248, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.5);
}

/* "Нов" badge */
.product-card-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 20;
    padding: 2px 8px;
    background: #38bdf8;
    color: #000;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

/* Product image area */
.product-card-img {
    background-color: #ffffff;
    background-image:
        linear-gradient(to right, var(--site-bg) 0%, transparent 5%),
        linear-gradient(to left, var(--site-bg) 0%, transparent 5%),
        linear-gradient(to bottom, var(--site-bg) 0%, transparent 5%),
        linear-gradient(to top, var(--card-bg) 0%, transparent 10%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 210px;
    /* Force uniform height */
    padding: 1rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 40%, transparent 40%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
    mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

.product-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    z-index: 2;
}

.product-card-v:hover .product-card-img img {
    transform: scale(1.08);
}

.product-card-img .no-image-placeholder {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Card body - title & catalog number */
.product-card-body {
    padding: 0.75rem 0.85rem 0.25rem;
    flex: 1;
}

.product-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    display: block;
    overflow: visible;
}

.product-card-title a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.2s;
}

.product-card-v:hover .product-card-title a {
    color: #38bdf8;
}

.product-card-cat {
    font-size: 0.7rem;
    color: #64748b;
    margin: 0;
}

/* Card footer - price & button */
.product-card-footer {
    padding: 0.5rem 0.85rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.product-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #38bdf8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
    white-space: nowrap;
}

.product-card-price--ask {
    font-size: 0.8rem;
    color: #64748b;
    font-style: italic;
    text-shadow: none;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart,
.btn-view-product {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-add-cart {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.btn-add-cart:hover {
    background: #38bdf8;
    color: #000;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.btn-view-product {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.btn-view-product:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ===== Products Page Layout (no Bootstrap) ===== */
.produkti-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .produkti-layout {
        grid-template-columns: 1fr;
    }
}

.produkti-main {
    min-width: 0;
}

.produkti-sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    min-width: 0;
}

@media (max-width: 991.98px) {
    .produkti-sidebar {
        position: static;
        max-height: none;
    }
}

/* Sort Bar */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sort-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.produkti-inline-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #171818;
}

.produkti-inline-breadcrumb a {
    color: #171818;
    text-decoration: none;
    transition: color 0.2s ease;
}

.produkti-inline-breadcrumb a:hover {
    color: #ffffff;
}

.produkti-inline-breadcrumb .sep {
    color: #000000;
    font-size: 0.8rem;
}

/* Neon Services Section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    position: relative;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    border-top-color: rgba(56, 189, 248, 0.4);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 1.5rem 0 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.service-card p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.service-card .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(0, 0, 0, 0.9));
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 0 20px rgba(56, 189, 248, 0.1),
        inset 0 0 15px rgba(56, 189, 248, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow:
        0 0 30px rgba(56, 189, 248, 0.3),
        inset 0 0 20px rgba(56, 189, 248, 0.2);
    transform: scale(1.1) rotate(5deg);
}

.neon-icon {
    width: 48px;
    height: 48px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 0 8px rgba(139, 225, 255, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-camera {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238be1ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='14' height='12' rx='3' ry='3'%3E%3C/rect%3E%3Cpath d='M22 8l-6 3.5v1L22 16z'%3E%3C/path%3E%3C/svg%3E");
}

.icon-tools {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238be1ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'%3E%3C/path%3E%3C/svg%3E");
}

.icon-cart {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238be1ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='2'%3E%3C/circle%3E%3Ccircle cx='20' cy='20' r='2'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E");
}

.highlight-panel {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(3, 7, 18, 0.8) 100%);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.highlight-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover.highlight-panel::after {
    opacity: 1;
}

.sort-bar-count {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.sort-bar-buttons {
    display: flex;
    gap: 0.5rem;
}

.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 6px;
    background: rgba(30, 41, 59, 0.5);
    transition: all 0.25s ease;
    letter-spacing: 0.03em;
}

.sort-btn:hover {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.08);
}

.sort-btn--active {
    color: #fff;
    border-color: rgba(56, 189, 248, 0.6);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
}

/* Subcategories */
.subcategories-section {
    margin-bottom: 1.25rem;
}

.subcategories-heading {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.subcategories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.subcategory-btn {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.4);
    transition: all 0.2s ease;
}

.subcategory-btn:hover {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.1);
}

/* Sidebar cards */
.search-sidebar,
.filter-sidebar {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(100, 200, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.search-sidebar .card-body,
.filter-sidebar .card-body {
    padding: 0.75rem;
}

.filter-sidebar .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0.75rem;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    background: rgba(30, 41, 59, 0.4);
    transition: all 0.2s;
}

.page-link:hover {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.08);
}

.page-item.active .page-link {
    color: #fff;
    border-color: rgba(56, 189, 248, 0.6);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.8));
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* Active filters bar */
.active-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #94a3b8;
}

/* Form controls in sidebar */
.produkti-sidebar .form-control,
.produkti-sidebar .form-control-sm,
.produkti-sidebar input[type="number"],
.produkti-sidebar input[type="search"] {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
}

.produkti-sidebar .form-label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 0.35rem;
    display: block;
}

/* Dual Range Slider */
.dual-range-container {
    width: 100%;
}

.dual-range-slider {
    position: relative;
    height: 14px;
    margin-bottom: 0.5rem;
}

.dual-range-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.dual-range-progress {
    position: absolute;
    height: 4px;
    background: #38bdf8;
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.dual-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

/* Chrome/Safari */
.dual-range-slider input[type="range"]::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #38bdf8;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
    transition: transform 0.1s ease;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Firefox */
.dual-range-slider input[type="range"]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #38bdf8;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.dual-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.val-sep {
    color: #475569;
}

/* ===== Product Detail Page ===== */

/* Breadcrumb */
.product-breadcrumb-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.product-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.product-breadcrumb-list li::before {
    content: ' / ';
    color: #475569;
    margin: 0 0.25rem;
}

.product-breadcrumb-list li:first-child::before {
    content: '';
    margin: 0;
}

.product-breadcrumb-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.product-breadcrumb-list a:hover {
    color: #38bdf8;
}

.product-breadcrumb-list .active {
    color: #64748b;
}

/* Product Layout */
.product-detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 767.98px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* Product Image */
.product-detail-image {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-detail-page .product-image-frame {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.product-detail-page .product-image-frame img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.product-meta-row strong {
    color: #e2e8f0;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: #38bdf8;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
    margin-top: 0.5rem;
}

/* Product Info */
.product-detail-info {
    min-width: 0;
}

.product-detail-category {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 0.25rem;
}

.product-detail-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.35;
    margin: 0 0 0.75rem;
    word-wrap: break-word;
}

@media (min-width: 768px) {
    .product-detail-title {
        font-size: 1.6rem;
    }
}

.product-detail-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

/* Tabs */
.product-tabs-container {
    margin-top: 1.5rem;
}

.product-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-tab-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.product-tab-btn:hover {
    color: #e2e8f0;
}

.product-tab-btn.active {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.product-tabs-content {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.3);
}

.product-tab-pane {
    display: none;
}

.product-tab-pane.active {
    display: block;
}

/* Characteristics table */
.product-chars-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.product-chars-table th,
.product-chars-table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

.product-chars-table th {
    width: 30%;
    color: #94a3b8;
    font-weight: 600;
    background: rgba(30, 41, 59, 0.5);
}

.product-chars-table td {
    color: #e2e8f0;
}

/* Gallery */
.product-gallery-hint {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 0.75rem;
}

.product-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-gallery-thumb {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: zoom-in;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.product-gallery-thumb img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    mix-blend-mode: multiply;
    display: block;
}

/* CTA Button */
.product-cta-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
}

/* Lightbox Modal */
.product-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-lightbox[hidden] {
    display: none;
}

.product-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.product-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-lightbox-content img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.product-lightbox-close {
    position: absolute;
    top: -2rem;
    right: -1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 2;
}

.product-lightbox-close:hover {
    opacity: 1;
}

.product-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 3rem;
    transition: all 0.2s;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 2;
}

.product-lightbox-nav:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.5);
}

.product-lightbox-prev {
    left: -4rem;
}

.product-lightbox-next {
    right: -4rem;
}

@media (max-width: 767.98px) {
    .product-lightbox-prev {
        left: 0.5rem;
    }

    .product-lightbox-next {
        right: 0.5rem;
    }
}

.product-lightbox-counter {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}