/* Category pills — same language as product filter tabs */
.mv-cat-chips {
    padding: 22px 0 8px;
    background: #f7f8fa;
}
.mv-cat-chips .container {
    max-width: 1300px;
    margin: 0 auto;
    display: block;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    width: 100%;
}
.mv-cat-chips__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 0 4px;
}
.mv-cat-chips__head--crumb {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 0;
    margin-bottom: 14px;
}
.mv-cat-chips__head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
}
.mv-cat-chips__head--crumb h2 {
    font-size: 20px;
    padding: 2px 2px 0;
}
.mv-cat-chips__count {
    font-weight: 700;
    color: #6b7280;
    font-size: .88em;
}
.mv-cat-chips__crumb {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    margin: 0;
    padding: 0 2px 10px;
    font-size: 12px;
    font-weight: 650;
    color: #6b7280;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid #eef0f3;
}
.mv-cat-chips__crumb::-webkit-scrollbar { display: none; }
.mv-cat-chips__crumb a {
    color: #4b5563;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.mv-cat-chips__crumb a:hover { color: #e31e24; }
.mv-cat-chips__crumb strong,
.mv-cat-chips__current {
    color: #111827;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}
.mv-cat-chips__home {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.mv-cat-chips__home i {
    font-size: 11px;
    color: #111827;
}
.mv-cat-chips__sep {
    color: #c4c9d2;
    flex-shrink: 0;
    font-weight: 600;
}
.mv-cat-chips__back {
    display: none;
}

/* Home product quick filters under Kateqoriyalar */
.mv-home-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0 4px;
}
.mv-home-filters__btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #1f2937;
    border-radius: 999px;
    padding: 10px 16px 10px 10px;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    font-family: inherit;
    transition: .18s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}
.mv-home-filters__btn:hover {
    border-color: #fecaca;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(227, 30, 36, .1);
}
.mv-home-filters__btn.is-active {
    background: linear-gradient(135deg, #e31e24, #be123c);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 22px rgba(227, 30, 36, .28);
}
.mv-home-filters__ico {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.mv-home-filters__ico--all { background: #fee2e2; color: #e31e24; }
.mv-home-filters__ico--new { background: #fef3c7; color: #d97706; }
.mv-home-filters__ico--sale { background: #dbeafe; color: #2563eb; }
.mv-home-filters__ico--hot { background: #ffedd5; color: #ea580c; }
.mv-home-filters__btn.is-active .mv-home-filters__ico {
    background: rgba(255,255,255,.22);
    color: #fff;
}

.mv-cat-chips__track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 4px 14px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex-wrap: wrap;
}
.mv-cat-chips__track::-webkit-scrollbar { display: none; }

.mv-cat-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    font-family: inherit;
    transition: .15s ease;
    max-width: none;
    width: auto;
    text-align: left;
}
.mv-cat-chip:hover {
    border-color: #fecaca;
    color: #e31e24;
    transform: translateY(-1px);
}
.mv-cat-chip.is-active,
.mv-cat-chip.is-open {
    background: #e31e24;
    border-color: #e31e24;
    color: #fff;
    box-shadow: 0 8px 18px rgba(227, 30, 36, .25);
}
.mv-cat-chip.is-active:hover,
.mv-cat-chip.is-open:hover {
    color: #fff;
    border-color: #e31e24;
}
.mv-cat-chip__circle {
    width: 22px;
    height: 22px;
    margin: 0;
    border-radius: 6px;
    background: transparent !important;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: none !important;
    border: 0 !important;
    overflow: hidden;
    flex-shrink: 0;
}
.mv-cat-chip__circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.mv-cat-chip__name {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    max-width: none;
    margin: 0;
    white-space: nowrap;
    -webkit-line-clamp: unset;
    overflow: visible;
}
.mv-cat-chips__empty {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 4px;
}

/* Mega catalog — 3 column browser (tap.az style) */
.mv-mega[hidden] { display: none !important; }
.mv-mega {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 16px 24px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.mv-mega.is-open { display: flex !important; }
body.mv-mega-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}
.mv-mega__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .4);
    backdrop-filter: blur(2px);
}
.mv-mega__panel {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: min(620px, calc(100vh - 110px));
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eef0f3;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mv-mega__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.mv-mega__head strong {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.mv-mega__head strong i { color: #e31e24; }
.mv-mega__all {
    margin-left: auto;
    font-size: 12px;
    font-weight: 800;
    color: #e31e24;
    text-decoration: none;
}
.mv-mega__all:hover { text-decoration: underline; }
.mv-mega__close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #374151;
}
.mv-mega__back {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 14px;
}
.mv-mega__back:hover { background: #e5e7eb; }
.mv-mega__back[hidden] { display: none !important; }
.mv-mega__viewport {
    min-height: 0;
    flex: 1;
    overflow: hidden;
}
.mv-mega__track {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    height: 100%;
    min-height: 0;
}
.mv-mega__col {
    overflow-y: auto;
    padding: 8px;
    border-right: 1px solid #f1f5f9;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
    min-height: 0;
}
.mv-mega__col:last-child { border-right: 0; }
.mv-mega__col.is-empty { background: #fafafa; }
.mv-mega__col-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 6px 10px 8px;
}
.mv-mega__col-title--link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #111827;
    text-transform: none;
    font-size: 13px;
    letter-spacing: 0;
    padding: 8px 10px;
    border-radius: 10px;
}
.mv-mega__col-title--link i {
    font-size: 10px;
    color: #94a3b8;
}
.mv-mega__col-title--link:hover {
    color: #e31e24;
    background: #fff7f7;
}
.mv-mega__col-title--link:hover i { color: #e31e24; }
.mv-mega__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    text-align: left;
    text-decoration: none;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(227, 30, 36, .08);
}
.mv-mega__item:hover { background: #f8fafc; }
.mv-mega__item.is-active {
    background: #fff7ed;
    color: #ea580c;
}
.mv-mega__item--all {
    color: #e31e24;
    font-weight: 800;
    background: #fff7f7;
    margin-bottom: 4px;
}
.mv-mega__item--all:hover {
    background: #fee2e2;
}
.mv-mega__ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--chip-bg, #f3f4f6);
    color: var(--chip-fg, #111);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    overflow: hidden;
}
.mv-mega__ico img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}
.mv-mega__label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mv-mega__chev {
    font-size: 10px;
    color: #cbd5e1;
    flex-shrink: 0;
}
.mv-mega__item.is-active .mv-mega__chev { color: #ea580c; }
.mv-mega__empty {
    padding: 16px 10px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .mv-mega {
        padding: 0;
        align-items: stretch;
        height: 100%;
        height: 100dvh;
        max-height: 100%;
        max-height: -webkit-fill-available;
    }
    .mv-mega__panel {
        max-height: none;
        height: 100%;
        height: 100dvh;
        max-height: -webkit-fill-available;
        width: 100%;
        border-radius: 0;
        border: 0;
        min-height: 0;
    }
    .mv-mega__head {
        padding: 12px 14px;
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
        flex-shrink: 0;
    }
    .mv-mega__head strong {
        font-size: 15px;
        min-width: 0;
        flex: 1;
    }
    .mv-mega__head strong span {
        display: inline-block;
        max-width: 46vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
    }
    .mv-mega__all { font-size: 11px; }
    .mv-mega__viewport {
        /* Android flex bug: height:0 + flex:1 real hündürlük verir */
        flex: 1 1 auto;
        min-height: 0;
        height: 0;
        overflow: hidden;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
    .mv-mega__track {
        display: flex;
        width: 300%;
        height: 100%;
        min-height: 100%;
        transition: transform .28s cubic-bezier(.22, .61, .36, 1);
        will-change: transform;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    .mv-mega__viewport[data-level="0"] .mv-mega__track {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    .mv-mega__viewport[data-level="1"] .mv-mega__track {
        -webkit-transform: translate3d(-33.333%, 0, 0);
        transform: translate3d(-33.333%, 0, 0);
    }
    .mv-mega__viewport[data-level="2"] .mv-mega__track {
        -webkit-transform: translate3d(-66.666%, 0, 0);
        transform: translate3d(-66.666%, 0, 0);
    }
    .mv-mega__col {
        flex: 0 0 33.333%;
        width: 33.333%;
        max-width: 33.333%;
        border-right: 0;
        border-bottom: 0;
        max-height: none;
        height: 100%;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 10px 12px calc(16px + env(safe-area-inset-bottom, 0px));
        background: #fff;
        box-sizing: border-box;
    }
    .mv-mega__col.is-empty { background: #fff; }
    .mv-mega__col-title {
        display: none;
    }
    .mv-mega__item {
        padding: 12px 12px;
        font-size: 14px;
        border-radius: 12px;
        margin-bottom: 4px;
    }
    .mv-mega__ico {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 14px;
    }
    .mv-mega__item--all {
        margin-bottom: 8px;
    }
}
@media (max-width: 768px) {
    .mv-home-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .mv-home-filters::-webkit-scrollbar { display: none; }
    .mv-cat-chips__track {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .mv-cat-chip {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Homepage only — icon on top, label below (Tap.az style) */
.mv-cat-chips--home-icons {
    padding: 18px 0 20px;
    background: #f3f4f6;
}
.mv-cat-chips--home-icons .mv-cat-chips__head {
    margin-bottom: 16px;
}
.mv-cat-chips--home-icons .mv-cat-chips__head--crumb {
    margin-bottom: 14px;
}
.mv-cat-chips--home-icons .mv-cat-chips__head h2 {
    font-size: 20px;
}
.mv-cat-chips--home-icons .mv-cat-chips__head--crumb h2 {
    font-size: 18px;
}
@media (max-width: 768px) {
    .mv-cat-chips--home-icons .mv-cat-chips__head--crumb h2 {
        font-size: 17px;
    }
    .mv-cat-chips__home span {
        display: none;
    }
}
.mv-cat-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 10px;
    justify-content: flex-start;
    padding: 2px 0 4px;
}
.mv-cat-icon {
    flex: 0 0 auto;
    width: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1e293b;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    transition: transform .18s ease;
}
.mv-cat-icon:hover {
    transform: translateY(-3px);
    color: #e31e24;
}
.mv-cat-icon__card {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    transition: box-shadow .18s ease, border-color .18s ease;
    border: 1px solid rgba(255,255,255,.9);
}
.mv-cat-icon:hover .mv-cat-icon__card,
.mv-cat-icon.is-active .mv-cat-icon__card,
.mv-cat-icon.is-open .mv-cat-icon__card {
    box-shadow: 0 14px 28px rgba(227, 30, 36, .14);
    border-color: #fecaca;
}
.mv-cat-icon__splash {
    position: absolute;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--splash, #ccfbf1);
    opacity: .9;
    z-index: 0;
}
.mv-cat-icon__media {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #0f766e;
}
.mv-cat-icon__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(15,23,42,.12));
}
.mv-cat-icon__label {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}
.mv-cat-icon.is-active .mv-cat-icon__label,
.mv-cat-icon.is-open .mv-cat-icon__label {
    color: #e31e24;
}

@media (max-width: 900px) {
    .mv-cat-chips,
    .mv-cat-chips .container {
        max-width: 100%;
        min-width: 0;
    }
    .mv-cat-icons {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }
    .mv-cat-icons::-webkit-scrollbar { display: none; }
    .mv-cat-icon {
        width: 92px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    .mv-cat-icon__card {
        width: 76px;
        height: 76px;
        border-radius: 16px;
    }
    .mv-cat-icon__media {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    .mv-cat-icon__splash {
        width: 48px;
        height: 48px;
    }
}

