
/* ==========================================================
   SHOPSTYLE MEGA MENU V4
   Completely independent desktop navigation
   ========================================================== */

.ssv4-desktop {
    display: block;
    position: relative;
    z-index: 800;
    font-family: inherit;
}

.ssv4-shell {
    position: relative;

    background: rgba(255,255,255,.98);

    border-top: 1px solid #f0f3f6;
    border-bottom: 1px solid #e6ebef;
}


/* ==========================================================
   TOP NAVIGATION
   ========================================================== */

.ssv4-nav {
    width: min(1380px, calc(100% - 32px));

    min-height: 58px;

    margin: 0 auto;

    display: flex;
    align-items: stretch;
    justify-content: center;

    gap: clamp(10px, 1.25vw, 24px);

    white-space: nowrap;
}


.ssv4-item {
    position: static;

    display: flex;
    align-items: stretch;
}


.ssv4-trigger {
    position: relative;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 0 3px;

    color: #34495d !important;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: .015em;

    text-decoration: none !important;

    transition:
        color .18s ease;
}


.ssv4-trigger::after {
    content: "";

    position: absolute;

    left: 50%;
    right: 50%;
    bottom: -1px;

    height: 3px;

    background: #1384bd;

    border-radius: 3px 3px 0 0;

    transition:
        left .2s ease,
        right .2s ease;
}


.ssv4-item:hover > .ssv4-trigger,
.ssv4-item:focus-within > .ssv4-trigger {
    color: #0877ad !important;
}


.ssv4-item:hover > .ssv4-trigger::after,
.ssv4-item:focus-within > .ssv4-trigger::after {
    left: 0;
    right: 0;
}


/* tiny caret */

.ssv4-chevron {
    width: 7px;
    height: 7px;

    display: inline-block;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform:
        rotate(45deg)
        translateY(-2px);

    opacity: .55;

    transition:
        transform .2s ease,
        opacity .2s ease;
}


.ssv4-item:hover .ssv4-chevron {
    opacity: 1;

    transform:
        rotate(225deg)
        translate(-1px,-1px);
}


/* ==========================================================
   MEGA PANEL
   ========================================================== */

.ssv4-panel {
    position: absolute;

    left: 50%;
    top: calc(100% + 1px);

    width: min(1180px, calc(100vw - 36px));

    max-height: calc(100vh - 150px);

    overflow-y: auto;
    overflow-x: hidden;

    padding: 0;

    background: #ffffff;

    border:
        1px solid
        rgba(28, 63, 90, .10);

    border-radius: 0 0 20px 20px;

    box-shadow:
        0 26px 65px
        rgba(27, 51, 72, .16),
        0 8px 24px
        rgba(27, 51, 72, .07);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform:
        translateX(-50%)
        translateY(8px);

    transition:
        opacity .17s ease,
        visibility .17s ease,
        transform .17s ease;
}


.ssv4-item:hover > .ssv4-panel,
.ssv4-item:focus-within > .ssv4-panel {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}


/* ==========================================================
   PANEL HEADER
   ========================================================== */

.ssv4-panel-head {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    min-height: 92px;

    padding: 20px 28px;

    background:
        radial-gradient(
            circle at 90% -50%,
            rgba(40, 152, 207, .12),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #fbfdff 0%,
            #f4f9fc 100%
        );

    border-bottom: 1px solid #e8eff4;
}


.ssv4-panel-head::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            #127cae,
            #2ba8d2,
            #83cadf
        );
}


.ssv4-eyebrow {
    margin-bottom: 3px;

    color: #7d92a3;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .15em;

    text-transform: uppercase;
}


.ssv4-panel-title {
    color: #20394e;

    font-size: 24px;
    font-weight: 700;

    line-height: 1.15;
}


.ssv4-all {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 15px;

    background: #fff;

    border: 1px solid #d8e7ef;

    border-radius: 12px;

    color: #137dae !important;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none !important;

    box-shadow:
        0 4px 12px
        rgba(26, 89, 122, .05);

    transition:
        background .18s ease,
        color .18s ease,
        border .18s ease,
        transform .18s ease;
}


.ssv4-all:hover {
    color: #fff !important;

    background: #147faf;

    border-color: #147faf;

    transform: translateY(-1px);
}


/* ==========================================================
   CATEGORY GROUPS
   ========================================================== */

.ssv4-groups {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 0;

    padding: 8px 12px 10px;
}


.ssv4-group {
    min-width: 0;

    padding: 20px 18px;

    border-right: 1px solid #edf1f4;
    border-bottom: 1px solid #edf1f4;
}


.ssv4-group:nth-child(4n) {
    border-right: 0;
}


.ssv4-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-bottom: 11px;

    color: #203d53 !important;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none !important;
}


.ssv4-group-title span:last-child {
    color: #9eb2bf;

    font-weight: 400;

    transition:
        color .18s ease,
        transform .18s ease;
}


.ssv4-group-title:hover {
    color: #0879af !important;
}


.ssv4-group-title:hover span:last-child {
    color: #0879af;

    transform: translateX(3px);
}


.ssv4-group-links {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.ssv4-group-links a {
    display: block;

    padding: 6px 8px;

    margin-left: -8px;

    border-radius: 8px;

    color: #667c8e !important;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.3;

    text-decoration: none !important;

    transition:
        background .15s ease,
        color .15s ease,
        padding .15s ease;
}


.ssv4-group-links a:hover {
    padding-left: 11px;

    color: #0879af !important;

    background: #f1f8fc;
}


.ssv4-group-more {
    display: inline-block;

    margin-top: 7px;

    color: #1483b7 !important;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none !important;
}


/* ==========================================================
   QUICK / LEAF CATEGORIES
   ========================================================== */

.ssv4-quick-section {
    padding: 17px 24px 22px;
}


.ssv4-quick-section.has-groups {
    border-top: 1px solid #edf1f4;
}


.ssv4-quick-section.only-quick {
    padding-top: 24px;
    padding-bottom: 26px;
}


.ssv4-quicklinks {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 9px;
}


.ssv4-quicklink {
    min-width: 0;
    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 11px 13px;

    background: #fafcfd;

    border: 1px solid #e7edf1;

    border-radius: 12px;

    color: #526a7c !important;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none !important;

    transition:
        background .17s ease,
        border-color .17s ease,
        color .17s ease,
        transform .17s ease,
        box-shadow .17s ease;
}


.ssv4-dot {
    width: 6px;
    height: 6px;

    flex: 0 0 6px;

    border-radius: 100%;

    background: #b6c8d3;

    transition:
        background .17s ease,
        transform .17s ease;
}


.ssv4-quicklink > span:nth-child(2) {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: normal;

    line-height: 1.25;
}


.ssv4-arrow {
    margin-left: auto;

    color: #b5c2ca;

    transition:
        color .17s ease,
        transform .17s ease;
}


.ssv4-quicklink:hover {
    color: #0879af !important;

    background: #f0f9fd;

    border-color: #cfe7f2;

    box-shadow:
        0 7px 18px
        rgba(25, 112, 152, .07);

    transform: translateY(-1px);
}


.ssv4-quicklink:hover .ssv4-dot {
    background: #1788bb;

    transform: scale(1.25);
}


.ssv4-quicklink:hover .ssv4-arrow {
    color: #1788bb;

    transform: translateX(3px);
}


/* ==========================================================
   PANEL FOOTER
   ========================================================== */

.ssv4-panel-footer {
    display: flex;
    align-items: center;

    gap: 16px;

    padding: 13px 26px 15px;

    background: #fbfcfd;

    border-top: 1px solid #edf1f4;
}


.ssv4-footer-line {
    height: 1px;

    flex: 1;

    background:
        linear-gradient(
            90deg,
            #e3eaee,
            transparent
        );
}


.ssv4-panel-footer a {
    flex: 0 0 auto;

    color: #147faf !important;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none !important;
}


.ssv4-panel-footer a span {
    margin-left: 6px;
}


/* ==========================================================
   EMPTY PANEL
   ========================================================== */

.ssv4-empty {
    padding: 28px;
}


.ssv4-empty a {
    color: #147faf !important;

    font-weight: 600;

    text-decoration: none !important;
}


/* ==========================================================
   MOBILE / LEGACY SPLIT
   ========================================================== */

.ssv4-legacy-mobile {
    display: none;
}


@media (max-width: 1199px) {

    .ssv4-nav {
        gap: 10px;
    }

    .ssv4-trigger {
        font-size: 12px;
    }

    .ssv4-groups,
    .ssv4-quicklinks {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .ssv4-group:nth-child(4n) {
        border-right: 1px solid #edf1f4;
    }

    .ssv4-group:nth-child(3n) {
        border-right: 0;
    }
}


@media (max-width: 991px) {

    .ssv4-desktop {
        display: none !important;
    }

    .ssv4-legacy-mobile {
        display: block !important;
    }
}


@media (min-width: 992px) {

    .ssv4-desktop {
        display: block !important;
    }

    .ssv4-legacy-mobile {
        display: none !important;
    }
}


/* === V4 DARKER SUBCATEGORY TEXT === */

/* Подкатегории в групите */
.ssv4-group-links a {
    color: #465d70 !important;
}

/* Малките категории / cards */
.ssv4-quicklink {
    color: #435b6e !important;
}

/* "Виж всички" под дадена група */
.ssv4-group-more {
    color: #0d709f !important;
}

/* Малко по-тъмен декоративен текст */
.ssv4-eyebrow {
    color: #687f91;
}

/* Hover остава ясно син */
.ssv4-group-links a:hover,
.ssv4-quicklink:hover {
    color: #0879af !important;
}

/* === END V4 DARKER SUBCATEGORY TEXT === */

