.pagination .page-item.active .page-link {
    background-color: #2f5d50; /* yashil */
    border-color: #198754;
    color: #fff;
}

.pagination .page-link {
    color: #198754;
}

.pagination .page-link:hover {
    background-color: #198754;
    color: #fff;
}

/* Katalog tugma */
.catalog-btn {
    align-items: center;
    border: 2px solid #198754;
    border-radius: 12px;
    color: #198754;
    font-weight: 500;
    height: 48px;
    display: flex;
    gap: 8px;
    font-size: 16px;
    line-height: 1.33;
    margin-right: auto;
    padding: 15px 27px 15px 28px;
    transition: all .3s ease 0s;
}
.header-actions {
    display: flex;
    gap: 15px;
}
/*.catalog-btn:hover{*/
/*    border-color: #111;*/
/*    color: #da002b;*/
/*}*/

/* Mobil rejim */
@media (max-width: 768px) {
    .catalog-btn .text {
        display: inline-flex;!important;
    }
    .catalog-btn .icon {
        display: none;!important;
    }
}

/* Mega menu */
.mega-menu {
    display: none;
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
/* 📱 MOBILE */
@media (max-width: 575px) {
    .mega-menu {
        top: 64px;
    }
}

/* 📲 LARGE MOBILE / SMALL TABLET */
@media (min-width: 576px) and (max-width: 767px) {
    .mega-menu {
        top: 98px;
    }
}

/* 📲 TABLET */
@media (min-width: 768px) and (max-width: 991px) {
    .mega-menu {
        top: 98px;
    }
}

/* 💻 LAPTOP */
@media (min-width: 992px) and (max-width: 1199px) {
    .mega-menu {
        top: 98px;
    }
}

/* 🖥 DESKTOP */
@media (min-width: 1200px) {
    .mega-menu {
        top: 98px;
    }
}
.scrolled .header {
     box-shadow: none;
}
.mega-container {
    display: flex;
    padding: 15px;
    max-width: 1300px;
    margin: auto;
    background: #fff;
    align-items: stretch;
}

.mega-left::-webkit-scrollbar {
    width: 6px;
}

.mega-left::-webkit-scrollbar-thumb {
    background: #0b7d45;
    border-radius: 10px;
}

.mega-left::-webkit-scrollbar-track {
    background: rgba(15, 157, 88, 0);
}

/* Chap */
.mega-left {
    width: 260px;
    max-height: 400px; /* balandlik cheklovi */
    overflow-y: auto; /* vertical scroll */
    background: rgba(15, 157, 88, 0);
}

.mega-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-left li {
    padding: 14px 18px;
    color: #171717;
    cursor: pointer;
}

.mega-left li:hover,
.mega-left li.active {
    background: rgba(197, 202, 198, 0.17);
    color: #0b7d45;
    border-radius: 3%;
}

/* O‘ng */
.mega-right {
    flex: 1;
    padding: 20px 30px;
}

/* mega-content ichida grid */
.mega-content {
    max-height: 400px; /* balandlik cheklovi */
    overflow-y: auto; /* scroll */
    padding-right: 10px;
}

/* Submenu linklarini grid qilish */
.mega-content:not(:first-child),
.mega-content {
    display: none;
}

.mega-content.active {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    column-gap: 40px;
}

/* KATTA EKRANLAR (desktop, large monitor) → 3 ustun */

@media (min-width: 768px) {
    .mega-content.active {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .mega-content.active {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* sarlavha butun qatorni egallasin */
.mega-content h4 {
    grid-column: 1 / -1;
}

/* linklar */
.mega-content a {
    white-space: nowrap;
}

.mega-content::-webkit-scrollbar {
    width: 6px;
}

.mega-content::-webkit-scrollbar-thumb {
    background: #0f9d58;
    border-radius: 10px;
}

.mega-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}


.mega-content a:hover {
    color: #0f9d58;
}

/* MOBILE */
@media (max-width: 768px) {
    .mega-container {
        flex-direction: column;
    }

    .mega-left {
        width: 100%;
    }
}
.icon-btn {
    gap: 4px;
    text-decoration: none;
}
.icon-btn small {
    font-size: 12px;
    opacity: 0.9;
}
.cart-count {
    position: absolute;
    top: -5px;
    right: 0;
    background: #0879d5;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    padding: 0 4px;
}
.text-mode-toggle {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 5px;
    gap: 5px;
}

.mode-option {
    cursor: pointer;
}

.mode-option input {
    display: none;
}

.mode-option span {
    display: block;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    transition: all 0.25s ease;
}

/* Active */
.mode-option input:checked + span {
    background: #0f9d58;
    color: #fff;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.35);
}

/* Hover */
.mode-option span:hover {
    background: #e2e8f0;
}
.profile-wrapper {
    position: relative;
}

.profile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    color: #000;
    min-width: 180px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    z-index: 9999;
    overflow: hidden;
}

.profile-menu a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

.profile-menu a:hover {
    background: #f1f1f1;
    color: #0b7d45;
}

.profile-menu hr {
    margin: 6px 0;
}
.form-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
}

.form-control {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    transition: all .2s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13,110,253,.15);
}

textarea.form-control {
    resize: none;
}

.btn-package {
    background: linear-gradient(135deg, #0d6efd, #4f9cff);
    color: #fff;
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 14px;
    border: none;
    transition: .3s;
}

.btn-package:hover {
    background: linear-gradient(135deg, #084298, #0d6efd);
}


/*toza*/

/* ===== UMUMIY ===== */
.mobile-submenu {
    display: none ;
    padding-left: 15px;
    background: #f9f9f9;
}
.mega-right {
    display: block;
}
.parent-item {
    position: relative;
}
.mobile-toggle {
    display: none;
}
/* ===== DESKTOP ===== */
@media (min-width: 769px) {

    .mobile-toggle {
        display: none !important;
    }

    .mobile-submenu {
        display: none !important;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    /* o‘ng mega menyu mobile’da o‘chadi */
    .mega-right {
        display: none;
    }

    .desktop-icon {
        display: none;
        float: right;
    }

    .mobile-toggle {
        display: inline-block;
        float: right;
        cursor: pointer;
        font-size: 16px;
    }

    .parent-item {
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
    }

    .mobile-submenu li a {
        display: block;
        padding: 8px 0;
        font-size: 14px;
    }
}

.swiper-button-next,
.swiper-button-prev {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px;
    font-weight: 700;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .banner-item {
        height: 220px;
    }
}
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 14px;
    }
}
@media (max-width: 767px) {
    .add-to-cart-btn1 {
        width: 100%;
        display: block;
    }
}


.mega-left ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.parent-item {
    border-bottom: 1px solid #f1f1f1;
}

.parent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
}

.parent-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-decoration: none;
    color: #1f5c63;
    min-width: 0;
}

.cat-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    flex-shrink: 0;
}

.cat-text {
    flex: 1;
    word-break: break-word;
}

.desktop-icon {
    margin-left: auto;
    font-size: 14px;
    color: #1f5c63;
    display: inline-block;
}

.mobile-toggle {
    display: none;
    font-size: 14px;
    cursor: pointer;
    color: #1f5c63;
}

.mobile-submenu {
    display: none;
    padding: 0 0 8px 34px;
}

.mobile-submenu li a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #1f5c63;
}

/* Desktop */
@media (min-width: 992px) {
    .desktop-icon {
        display: inline-block;
    }

    .mobile-toggle {
        display: none;
    }

    .mobile-submenu {
        display: none !important;
    }
}

/* Mobile */
@media (max-width: 991px) {
    .desktop-icon {
        display: none;
    }

    .mobile-toggle {
        display: inline-block;
    }

    .parent-row {
        padding: 12px 14px;
    }

    .parent-link {
        padding-right: 10px;
    }

    .parent-item.active .mobile-submenu {
        display: block;
    }

    .parent-item.active .mobile-toggle {
        transform: rotate(180deg);
    }
}


