@font-face {
    font-family: "Vazir";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/vazir/Farsi-Digits/Vazir-FD.eot");
    src: url("../fonts/vazir/Farsi-Digits/Vazir-FD.eot?#iefix") format("embedded-opentype"), url("../fonts/vazir/Farsi-Digits/Vazir-FD.woff2") format("woff2"), url("../fonts/vazir//Farsi-Digits/Vazir-FD.woff") format("woff"), url("../fonts/vazir/Farsi-Digits/Vazir-FD.ttf") format("truetype");
}


html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: Vazir !important;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/*==========================================
logo style
==========================================*/

/*==============================================================================
    MegaGhesti Brand Hero
==============================================================================*/

.brand-hero {
    padding-block: 1rem;
}

.brand-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-xl);
    background-color: #eef8f6;
}

/* Logo */

.brand-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 210px;
    padding: 1.25rem;
    border-radius: var(--bs-border-radius-lg);
    background-color: #ffffff;
}

    .brand-hero-logo img {
        display: block;
        width: min(100%, 330px);
        height: auto;
        max-height: 230px;
        object-fit: contain;
    }

/* Information */

.brand-hero-info {
    width: 100%;
    text-align: center;
}

.brand-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--mg-primary-border);
    border-radius: 999px;
    background-color: var(--mg-primary-soft-2);
    color: var(--mg-primary-active);
    font-size: 0.78rem;
    font-weight: 600;
}

.brand-hero-title {
    margin-bottom: 0.75rem;
    color: var(--mg-dark);
    font-size: clamp(1.45rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.65;
}

    .brand-hero-title span {
        display: block;
        color: var(--mg-primary-active);
    }

.brand-hero-description {
    max-width: 620px;
    margin: 0 auto 1.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    line-height: 1.9;
}

/* Actions */

.brand-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    width: 100%;
}

    .brand-hero-actions .btn {
        width: 100%;
    }

/* Features */

.brand-hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.brand-hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 72px;
    padding: 0.6rem 0.25rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background-color: rgba(255, 255, 255, 0.72);
    color: #496064;
    font-size: 0.72rem;
    font-weight: 600;
}

    .brand-hero-feature i {
        color: var(--mg-primary-active);
        font-size: 1.15rem;
    }

/* Tablet and Desktop */

@media (min-width: 576px) {
    .brand-hero-actions {
        display: flex;
        justify-content: center;
        width: auto;
    }

        .brand-hero-actions .btn {
            width: auto;
        }
}

@media (min-width: 992px) {
    .brand-hero {
        padding-block: 1.5rem;
    }

    .brand-hero-content {
        flex-direction: row-reverse;
        gap: 2.5rem;
        min-height: 410px;
        padding: 2rem 2.5rem;
    }

    .brand-hero-logo {
        flex: 0 0 42%;
        min-height: 340px;
    }

        .brand-hero-logo img {
            width: min(100%, 430px);
            max-height: 330px;
        }

    .brand-hero-info {
        flex: 1;
        text-align: right;
    }

    .brand-hero-title span {
        display: inline;
    }

    .brand-hero-description {
        margin-right: 0;
        margin-left: 0;
    }

    .brand-hero-actions {
        justify-content: flex-start;
    }

    .brand-hero-features {
        max-width: 480px;
    }

    .brand-hero-feature {
        flex-direction: row;
        min-height: 54px;
        font-size: 0.8rem;
    }
}

/*==============================================================================
    MegaGhesti Home Page
==============================================================================*/

.home-page {
    padding-bottom: 1.5rem;
}

.home-section {
    padding-block: 1.25rem;
}


/*==============================================================================
    Hero
==============================================================================*/

.home-hero {
    padding-block: 0.85rem 1rem;
}

.home-hero-wrapper {
    display: flex;
    flex-direction: column-reverse;
    gap: 1.25rem;
    padding: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-xl);
    background-color: var(--bs-secondary-bg);
}

.home-hero-content {
    text-align: center;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--mg-primary-border);
    border-radius: 999px;
    background-color: var(--mg-primary-soft-2);
    color: var(--mg-primary-active);
    font-size: 0.76rem;
    font-weight: 600;
}

.home-hero-title {
    margin-bottom: 0.65rem;
    color: var(--mg-dark);
    font-size: clamp(1.45rem, 6vw, 2.65rem);
    font-weight: 800;
    line-height: 1.65;
}

    .home-hero-title span {
        display: block;
        color: var(--mg-primary-active);
    }

.home-hero-description {
    max-width: 560px;
    margin: 0 auto 1.1rem;
    color: var(--bs-secondary-color);
    font-size: 0.88rem;
    line-height: 1.9;
}

.home-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.home-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

    .home-hero-logo img {
        width: min(100%, 310px);
        max-height: 210px;
        object-fit: contain;
    }


/*==============================================================================
    Search
==============================================================================*/

.home-search-section {
    padding-block: 0.4rem 1.25rem;
}

.home-search-box {
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    background-color: #fff;
}

.home-search-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.home-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: var(--bs-border-radius);
    background-color: var(--mg-primary-soft);
    color: var(--mg-primary-active);
    font-size: 1.05rem;
}

.home-search-heading h2 {
    margin-bottom: 0.15rem;
    font-size: 1rem;
    font-weight: 700;
}

.home-search-heading p {
    margin-bottom: 0;
    font-size: 0.78rem;
}

.home-search-form .form-control {
    min-width: 0;
}

.home-search-form .btn {
    padding-inline: 1rem;
}

.home-popular-searches {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    overflow-x: auto;
    scrollbar-width: none;
}

    .home-popular-searches::-webkit-scrollbar {
        display: none;
    }

.home-popular-label {
    flex-shrink: 0;
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
}

.home-search-tag {
    flex-shrink: 0;
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    background-color: var(--bs-light);
    color: var(--bs-body-color);
    font-size: 0.74rem;
}

    .home-search-tag:hover {
        border-color: var(--mg-primary-border);
        background-color: var(--mg-primary-soft);
        color: var(--mg-primary-active);
    }


/*==============================================================================
    Section Header
==============================================================================*/

.home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.home-section-eyebrow {
    display: block;
    margin-bottom: 0.1rem;
    color: var(--mg-primary-active);
    font-size: 0.72rem;
    font-weight: 600;
}

.home-section-title {
    margin-bottom: 0;
    color: var(--mg-dark);
    font-size: 1.05rem;
    font-weight: 800;
}

.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    color: var(--mg-primary-active);
    font-size: 0.78rem;
    font-weight: 600;
}


/*==============================================================================
    Categories
==============================================================================*/

.home-categories {
    display: flex;
    gap: 0.7rem;
    margin-inline: -0.9rem;
    padding-inline: 0.9rem;
    padding-bottom: 0.45rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

    .home-categories::-webkit-scrollbar {
        display: none;
    }

.home-category-item {
    display: flex;
    flex: 0 0 78px;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    color: var(--bs-body-color);
    text-align: center;
    scroll-snap-align: start;
}

.home-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border: 1px solid var(--bs-border-color);
    border-radius: 50%;
    background-color: #fff;
    color: var(--mg-primary-active);
    font-size: 1.45rem;
    transition: border-color var(--mg-transition), background-color var(--mg-transition), color var(--mg-transition);
}

.home-category-item:hover .home-category-icon {
    border-color: var(--mg-primary-border);
    background-color: var(--mg-primary-soft);
}

.home-category-icon-more {
    border-color: var(--mg-primary);
    background-color: var(--mg-primary);
    color: #fff;
}

.home-category-item:hover .home-category-icon-more {
    border-color: var(--mg-primary-hover);
    background-color: var(--mg-primary-hover);
    color: #fff;
}

.home-category-title {
    width: 100%;
    overflow: hidden;
    color: var(--mg-dark);
    font-size: 0.74rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/*==============================================================================
    Account
==============================================================================*/

.home-account {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--mg-primary-border);
    border-radius: var(--bs-border-radius-lg);
    background-color: var(--mg-primary-soft);
}

.home-account-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.home-account-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--mg-primary);
    color: #fff;
    font-size: 1.25rem;
}

.home-account-info span {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--mg-primary-active);
    font-size: 0.72rem;
    font-weight: 600;
}

.home-account-info h2 {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.65;
}

.home-account-info p {
    margin-bottom: 0;
    font-size: 0.76rem;
    line-height: 1.7;
}

.home-account-button {
    width: 100%;
}


/*==============================================================================
    Benefits
==============================================================================*/

.home-benefits-section {
    padding-bottom: 0;
}

.home-benefits {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    background-color: #fff;
}

.home-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
}

    .home-benefit-item + .home-benefit-item {
        border-top: 1px solid var(--bs-border-color);
    }

.home-benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: var(--bs-border-radius);
    background-color: var(--mg-primary-soft);
    color: var(--mg-primary-active);
    font-size: 1.05rem;
}

.home-benefit-item h3 {
    margin-bottom: 0.1rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.home-benefit-item p {
    margin-bottom: 0;
    font-size: 0.72rem;
}


/*==============================================================================
    Tablet
==============================================================================*/

@media (min-width: 576px) {
    .home-hero-actions {
        display: flex;
        justify-content: center;
    }

    .home-search-box,
    .home-account {
        padding: 1.25rem;
    }

    .home-account {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .home-account-button {
        width: auto;
        flex-shrink: 0;
    }

    .home-benefits {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-benefit-item + .home-benefit-item {
        border-top: 0;
        border-right: 1px solid var(--bs-border-color);
    }
}


/*==============================================================================
    Desktop
==============================================================================*/

@media (min-width: 992px) {
    .home-section {
        padding-block: 1.75rem;
    }

    .home-hero {
        padding-block: 1.25rem 1.5rem;
    }

    .home-hero-wrapper {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
        align-items: center;
        gap: 2rem;
        min-height: 390px;
        padding: 2rem 2.5rem;
    }

    .home-hero-content {
        text-align: right;
    }

    .home-hero-description {
        margin-inline: 0;
        font-size: 0.95rem;
    }

    .home-hero-actions {
        justify-content: flex-start;
    }

    .home-hero-logo {
        min-height: 300px;
    }

        .home-hero-logo img {
            width: min(100%, 430px);
            max-height: 310px;
        }

    .home-search-box {
        display: grid;
        grid-template-columns: minmax(230px, 0.7fr) minmax(420px, 1.3fr);
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .home-search-heading {
        margin-bottom: 0;
    }

    .home-search-form {
        grid-column: 2;
        grid-row: 1;
    }

    .home-popular-searches {
        grid-column: 2;
        margin-top: -0.75rem;
    }

    .home-categories {
        display: grid;
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 1rem;
        margin-inline: 0;
        padding: 0;
        overflow: visible;
    }

    .home-category-item {
        min-width: 0;
    }

    .home-category-icon {
        width: 76px;
        height: 76px;
    }

    .home-account {
        padding: 1.25rem 1.5rem;
    }
}

/*==============================================================================
    Latest Products
==============================================================================*/

.latest-products-section {
    overflow: hidden;
}

.latest-products-list {
    display: flex;
    gap: 0.75rem;
    margin-inline: -0.9rem;
    padding-inline: 0.9rem;
    padding-bottom: 0.65rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .latest-products-list::-webkit-scrollbar {
        display: none;
    }

.latest-product-item {
    flex: 0 0 min(76vw, 260px);
    min-width: 0;
    scroll-snap-align: start;
}

    .latest-product-item .product-card {
        width: 100%;
    }


    /*==============================================================================
    Product Card adjustments inside latest products
==============================================================================*/

    .latest-product-item .product-card-image img {
        padding: 1.15rem;
    }

    .latest-product-item .product-card .card-body {
        padding: 0.9rem;
    }

    .latest-product-item .product-title {
        min-height: 2.9rem;
        margin-bottom: 0.7rem !important;
        font-size: 0.86rem;
        line-height: 1.7;
    }

    .latest-product-item .product-favorite {
        width: 36px;
        height: 36px;
    }

    .latest-product-item .product-cart {
        width: 40px;
        height: 40px;
    }

    .latest-product-item .product-card .fs-5 {
        font-size: 1rem !important;
    }


/*==============================================================================
    Small Mobile
==============================================================================*/

@media (max-width: 374.98px) {
    .latest-product-item {
        flex-basis: 82vw;
    }
}


/*==============================================================================
    Tablet
==============================================================================*/

@media (min-width: 576px) and (max-width: 991.98px) {
    .latest-product-item {
        flex-basis: 230px;
    }
}


/*==============================================================================
    Desktop Grid
==============================================================================*/

@media (min-width: 992px) {
    .latest-products-list {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
        margin-inline: 0;
        padding: 0;
        overflow: visible;
    }

    .latest-product-item {
        min-width: 0;
    }
}


/*==============================================================================
    Large Desktop
==============================================================================*/

@media (min-width: 1200px) {
    .latest-products-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/*==============================================================================
    Product Card
==============================================================================*/

.product-card {
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: #fff;
    transition: transform .18s ease, border-color .18s ease;
}

    .product-card:hover {
        border-color: var(--mg-primary-border);
        transform: translateY(-2px);
    }

/* تصویر */

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    padding: 1rem;
    background: #fff;
}

    .product-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* تخفیف */

.product-card-discount {
    position: absolute;
    top: .85rem;
    right: .85rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #ffeded;
    color: #d84141;
    font-size: .72rem;
    font-weight: 700;
}

/* علاقه مندی */

.product-card-favorite {
    position: absolute;
    top: .75rem;
    left: .75rem;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--bs-border-color);
    border-radius: 50%;
}

    .product-card-favorite i {
        color: #8b9ca0;
    }

/* محتوا */

.product-card .card-body {
    padding: .95rem;
}

.product-card-brand {
    display: block;
    margin-bottom: .45rem;
    color: var(--bs-secondary-color);
    font-size: .72rem;
}

.product-card-title {
    display: -webkit-box;
    min-height: 3rem;
    overflow: hidden;
    margin-bottom: .75rem;
    color: var(--mg-dark);
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-bottom: 1rem;
    color: #f4b400;
    font-size: .78rem;
}

    .product-card-rating small {
        color: var(--bs-secondary-color);
    }

/* قیمت */

.product-card-old-price {
    margin-bottom: .25rem;
    color: #a5afb2;
    font-size: .76rem;
    text-decoration: line-through;
}

.product-card-price-label {
    display: block;
    margin-bottom: .2rem;
    color: var(--bs-secondary-color);
    font-size: .72rem;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.product-card-price {
    color: var(--mg-dark);
    font-size: 1rem;
    font-weight: 800;
}

    .product-card-price span,
    .product-card-old-price span {
        font-size: .75rem;
        font-weight: 400;
    }

/* سبد خرید */

.product-card-cart {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: .9rem;
    flex-shrink: 0;
}

/* موبایل */

@media (max-width: 576px) {

    .product-card-title {
        min-height: 2.8rem;
        font-size: .82rem;
    }

    .product-card-price {
        font-size: .92rem;
    }
}

/*==============================================================================
    Offcanvas Compact App Menu
==============================================================================*/

.app-menu-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem .5rem;
}

    .app-menu-categories .home-category-item {
        min-width: 0;
        flex-basis: auto;
    }

    .app-menu-categories .home-category-icon {
        width: 58px;
        height: 58px;
        font-size: 1.2rem;
    }

    .app-menu-categories .home-category-title {
        font-size: .7rem;
    }

    .app-menu-categories .app-menu-item {
        transition: opacity .15s ease;
    }

        .app-menu-categories .app-menu-item.is-hidden {
            display: none;
        }

.app-menu-logout .home-category-icon {
    border-color: rgba(var(--bs-danger-rgb), .2);
    background-color: rgba(var(--bs-danger-rgb), .08);
    color: var(--bs-danger);
}

.app-menu-logout .home-category-title {
    color: var(--bs-danger);
}


/*==============================================================================
    Tablet
==============================================================================*/

@media (min-width: 576px) {
    .app-menu-categories {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 1.25rem .75rem;
    }

        .app-menu-categories .home-category-icon {
            width: 64px;
            height: 64px;
            font-size: 1.3rem;
        }

        .app-menu-categories .home-category-title {
            font-size: .74rem;
        }
}


/*==============================================================================
    Desktop
==============================================================================*/

@media (min-width: 992px) {
    .app-menu-categories {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 1.4rem 1rem;
    }

        .app-menu-categories .home-category-icon {
            width: 68px;
            height: 68px;
            font-size: 1.4rem;
        }
}

/*==============================================================================
    Recommended Products Section
==============================================================================*/

.recommended-products-section {
    position: relative;
}


/*==============================================================================
    Recommended Product Card
==============================================================================*/

.recommended-product-card {
    overflow: hidden;
    border: 1px solid var(--mg-primary-border);
    border-radius: 1rem;
    background-color: #fff;
    transition: border-color .18s ease, transform .18s ease;
}

    .recommended-product-card:hover {
        border-color: var(--mg-primary);
        transform: translateY(-2px);
    }


/*==============================================================================
    Image
==============================================================================*/

.recommended-product-image {
    position: relative;
    aspect-ratio: 1;
    padding: 1rem;
    background-color: var(--mg-primary-soft);
}

    .recommended-product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }


/*==============================================================================
    Recommendation Badge
==============================================================================*/

.recommended-product-badge {
    position: absolute;
    top: .75rem;
    right: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .6rem;
    border: 1px solid var(--mg-primary-border);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, .92);
    color: var(--mg-primary-active);
    font-size: .68rem;
    font-weight: 700;
    z-index: 2;
}


/*==============================================================================
    Favorite
==============================================================================*/

.recommended-product-favorite {
    position: absolute;
    top: .7rem;
    left: .7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--mg-primary-border);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .92);
    color: var(--bs-secondary-color);
    z-index: 2;
}

    .recommended-product-favorite:hover {
        border-color: rgba(var(--bs-danger-rgb), .25);
        background-color: rgba(var(--bs-danger-rgb), .08);
        color: var(--bs-danger);
    }


/*==============================================================================
    Content
==============================================================================*/

.recommended-product-card .card-body {
    padding: .95rem;
}

.recommended-product-title {
    display: -webkit-box;
    min-height: 3rem;
    overflow: hidden;
    margin: 0 0 .85rem;
    color: var(--mg-dark);
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.75;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/*==============================================================================
    Installment Information
==============================================================================*/

.recommended-installment-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .65rem;
    border: 1px solid var(--mg-primary-border);
    border-radius: .9rem;
    background-color: var(--mg-primary-soft);
}

.recommended-installment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #fff;
    color: var(--mg-primary);
    font-size: .9rem;
}

.recommended-installment-box small {
    font-size: .65rem;
}

.recommended-installment-box strong {
    color: var(--mg-dark);
    font-size: .78rem;
}

    .recommended-installment-box strong small {
        font-weight: 400;
    }


/*==============================================================================
    Price and Action
==============================================================================*/

.recommended-product-price {
    color: var(--mg-dark);
    font-size: 1rem;
    font-weight: 800;
}

    .recommended-product-price small {
        font-size: .72rem;
        font-weight: 400;
    }

.recommended-product-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--mg-primary);
    color: #fff;
    transition: background-color .18s ease, transform .18s ease;
}

.recommended-product-card:hover .recommended-product-action {
    background-color: var(--mg-primary-hover);
    transform: translateX(-2px);
}


/*==============================================================================
    Mobile
==============================================================================*/

@media (max-width: 575.98px) {

    .recommended-product-badge {
        padding: .3rem .5rem;
        font-size: .62rem;
    }

    .recommended-product-title {
        min-height: 2.85rem;
        font-size: .82rem;
    }

    .recommended-installment-box {
        padding: .55rem;
    }

        .recommended-installment-box strong {
            font-size: .72rem;
        }

    .recommended-product-price {
        font-size: .9rem;
    }
}

/*==============================================================================
    Popular Brands
==============================================================================*/

.popular-brands-section {
    overflow: hidden;
}

.popular-brands-list {
    display: flex;
    gap: .75rem;
    margin-inline: -.9rem;
    padding-inline: .9rem;
    padding-bottom: .65rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .popular-brands-list::-webkit-scrollbar {
        display: none;
    }


/*==============================================================================
    Brand Item
==============================================================================*/

.popular-brand-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: 0 0 min(78vw, 275px);
    min-width: 0;
    padding: .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background-color: #fff;
    color: var(--mg-dark);
    text-decoration: none;
    scroll-snap-align: start;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

    .popular-brand-item:hover {
        border-color: var(--mg-primary-border);
        background-color: var(--mg-primary-soft);
        transform: translateY(-2px);
    }


/*==============================================================================
    Brand Logo
==============================================================================*/

.popular-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    padding: .65rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 50%;
    background-color: #fff;
}

    .popular-brand-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }


/*==============================================================================
    Brand Information
==============================================================================*/

.popular-brand-info {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

    .popular-brand-info strong {
        overflow: hidden;
        color: var(--mg-dark);
        font-size: .86rem;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .popular-brand-info small {
        color: var(--bs-secondary-color);
        font-size: .7rem;
    }


/*==============================================================================
    Arrow
==============================================================================*/

.popular-brand-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-inline-start: auto;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--mg-primary-soft);
    color: var(--mg-primary);
    font-size: .7rem;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.popular-brand-item:hover .popular-brand-arrow {
    background-color: var(--mg-primary);
    color: #fff;
    transform: translateX(-2px);
}


/*==============================================================================
    Mobile
==============================================================================*/

@media (max-width: 374.98px) {

    .popular-brand-item {
        flex-basis: 84vw;
    }

    .popular-brand-logo {
        width: 56px;
        height: 56px;
    }
}


/*==============================================================================
    Tablet
==============================================================================*/

@media (min-width: 576px) and (max-width: 991.98px) {

    .popular-brand-item {
        flex-basis: 260px;
    }
}


/*==============================================================================
    Desktop
==============================================================================*/

@media (min-width: 992px) {

    .popular-brands-list {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
        margin-inline: 0;
        padding: 0;
        overflow: visible;
    }

    .popular-brand-item {
        width: auto;
        min-width: 0;
    }
}


/*==============================================================================
    Large Desktop
==============================================================================*/

@media (min-width: 1400px) {

    .popular-brands-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .popular-brand-logo {
        width: 66px;
        height: 66px;
    }
}

/* =========================================
   Mega Features
========================================== */

.mega-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.mega-feature-card {
    padding: 1.25rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-xl);
    background: linear-gradient( 180deg, #ffffff, var(--mg-primary-soft) );
    transition: transform .2s ease, border-color .2s ease;
}

    .mega-feature-card:hover {
        border-color: var(--mg-primary-border);
        transform: translateY(-4px);
    }

.mega-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--mg-primary);
    font-size: 1.4rem;
}

.mega-feature-title {
    margin-bottom: .5rem;
    color: var(--mg-dark);
    font-size: .95rem;
    font-weight: 700;
}

.mega-feature-text {
    margin-bottom: 0;
    color: var(--bs-secondary-color);
    font-size: .82rem;
    line-height: 1.9;
}

/* =========================================
   Desktop
========================================== */

@media (min-width: 992px) {

    .mega-features-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mega-feature-card {
        padding: 1.5rem;
    }

    .mega-feature-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }
}

/* =========================================
   Mobile
========================================== */

@media (max-width: 575.98px) {

    .mega-features-grid {
        gap: .75rem;
    }

    .mega-feature-card {
        padding: 1rem;
    }

    .mega-feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: .75rem;
        font-size: 1.2rem;
    }

    .mega-feature-title {
        font-size: .85rem;
    }

    .mega-feature-text {
        font-size: .75rem;
    }
}

/* =========================================
   Trust Section
========================================== */

.trust-wrapper {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.trust-box {
    padding: 1rem 1.25rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-xl);
    background-color: #fff;
}

.trust-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    color: var(--mg-dark);
    font-size: .9rem;
    font-weight: 700;
}

    .trust-header i {
        color: var(--mg-primary);
        font-size: 1rem;
    }

/* =========================================
   Trust Items
========================================== */

.trust-items {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    padding: .5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background-color: var(--mg-primary-soft);
    transition: all .2s ease;
}

    .trust-item:hover {
        transform: translateY(-3px);
        border-color: var(--mg-primary-border);
    }

    .trust-item img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

/* =========================================
   Social
========================================== */

.social-items {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--bs-border-color);
    background-color: var(--mg-primary-soft);
    color: var(--mg-primary);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all .2s ease;
}

    .social-item:hover {
        background-color: var(--mg-primary);
        color: #fff;
        transform: translateY(-3px);
    }

/* =========================================
   Desktop
========================================== */

@media (min-width: 992px) {

    .trust-wrapper {
        grid-template-columns: 1.5fr 1fr;
    }
}

/* =========================================
   Mobile
========================================== */

@media (max-width: 575.98px) {

    .trust-box {
        padding: .9rem;
    }

    .trust-item {
        width: 64px;
        height: 64px;
    }

    .social-item {
        width: 48px;
        height: 48px;
    }
}


/*==========================
       Logout Button
 ==========================*/
.mg-logout-btn {
    transition: all .25s ease;
    font-size: .95rem;
    font-weight: 600;
    color: #dc3545;
    background: #fff;
    border-color: #f1d6d9 !important;
}

    .mg-logout-btn:hover {
        background: #fff5f5;
        border-color: #dc3545 !important;
        color: #dc3545;
        transform: translateY(-1px);
    }

    .mg-logout-btn:focus,
    .mg-logout-btn:active {
        box-shadow: none !important;
    }

.mg-logout-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: all .25s ease;
}

.mg-logout-btn:hover .mg-logout-icon {
    background: #bb2d3b;
    transform: rotate(-15deg);
}
