:root {
    --shop-desktop-sticky-top: 154px;
    --shop-desktop-filter-sticky-gap: 20px;
}

.desktop-header {
    left: 0;
    width: 100%;
    z-index: 1000
}

body,
html {
    overflow-x: hidden;
    font-family: 'YekanBakh', Tahoma, sans-serif;
}

@media (max-width: 991.98px) {

    body,
    html {
        max-width: 100vw;
        position: relative
    }
}

a {
    text-decoration: none
}

.shop-plp-breadcrumb {
    display: none;
}

@media (min-width: 992px) {
    .shop-plp-breadcrumb {
        display: block;
        flex-grow: 1;
        width: 100%;
        margin: 0;
        padding: 1rem 0 0;
        box-sizing: border-box;
    }

    .shop-plp-breadcrumb+.shop-plp-title {
        margin-top: 12px;
    }

    .shop-plp-breadcrumb__scroll {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .shop-plp-breadcrumb__scroll::-webkit-scrollbar {
        display: none;
    }

    .shop-plp-breadcrumb__wrapper {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        width: max-content;
        min-width: 100%;
    }

    .shop-plp-breadcrumb__slide {
        flex-shrink: 0;
        width: auto;
        height: auto;
    }

    .shop-plp-breadcrumb__link {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        color: #81858b;
        font-size: 0.8125rem;
        font-weight: 400;
        line-height: 1.8;
        text-decoration: none;
        white-space: nowrap;
    }

    a.shop-plp-breadcrumb__link:hover {
        color: #62666d;
    }

    .shop-plp-breadcrumb__slide.is-current .shop-plp-breadcrumb__link {
        color: #81858b;
        cursor: default;
    }

    .shop-plp-breadcrumb__sep {
        display: inline-block;
        margin: 0 12px;
        color: #81858b;
        font-size: inherit;
        line-height: inherit;
    }
}

@media (min-width: 992px) {
    .container-fluid {
        max-width: 1676px;
        margin-right: auto;
        margin-left: auto;
        padding-right: 1rem;
        padding-left: 1rem
    }
}

.desktop-header {
    position: fixed;
    top: 0;
    background: #fff;
    border-bottom: none;
    padding: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s, visibility .3s;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.desktop-header>.container-fluid {
    width: 100%;
    align-self: center;
    display: flex;
    flex-direction: column;
}

@media (max-width: 991.98px) {
    .desktop-header {
        padding-right: 0.75rem;
        padding-left: 0.75rem
    }
}

.desktop-header.visible {
    visibility: visible;
    opacity: 1
}

.desktop-header .top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    position: relative;
    z-index: 2;
    background: #fff;
}

.desktop-header .header-main-start {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
}

.desktop-header .logo {
    flex-shrink: 0;
    margin-left: 20px;
    line-height: 0;
}

.desktop-header .logo a {
    display: block;
    line-height: 0;
}

.desktop-header .logo img {
    width: auto;
    max-width: 195px;
    height: 30px;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.desktop-header .header-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    flex-shrink: 0;
}

.desktop-header .header-icons a {
    color: #212529;
    font-size: 1.5rem;
    transition: color .3s;
    display: flex;
    align-items: center;
}

.desktop-header .header-user-section {
    position: relative;
    display: flex;
    align-items: center;
}

.desktop-header .header-user-btn {
    padding: 8px;
    color: #424750;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color .3s;
}

/* استایل آیکون SVG داخل دکمه کاربر هدر */
.desktop-header .header-user-btn svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
    flex-shrink: 0;
}

/* استایل آیکون فونت‌آیکون (در صورت استفاده از i) */
.desktop-header .header-user-btn i {
    font-size: 1.5rem;
    line-height: 1;
    display: block;
}

.desktop-header .header-user-btn:hover {
    color: #ef4056;
}

.desktop-header .header-user-divider {
    display: block;
    width: 1px;
    height: 20px;
    margin: 0 12px;
    background: #e0e0e2;
    flex-shrink: 0;
}

.desktop-header .header-cart-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
}

.desktop-header .cart-bag-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #424750;
    background: #fff;
    border-radius: 4px;
}

.desktop-header .header-cart-icon {
    width: 24px;
    height: 24px;
    display: block;
    fill: #424750;
}

.desktop-header .cart-bag-link .cart-badge {
    top: auto;
    right: 0;
    bottom: 0;
    left: auto;
    min-width: 18px;
    height: 18px;
    background: #ef4056;
    border: none;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 0 4px;
}

.desktop-header .header-login-link {
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    font-size: inherit;
}

.desktop-header .header-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #e0e0e2;
    border-radius: 8px;
    background: #fff;
    color: #0c0c0c;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.desktop-header .header-login-icon {
    width: 24px;
    height: 24px;
    display: block;
    fill: #424750;
    flex-shrink: 0;
}

.desktop-header .header-login-text {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    color: #0c0c0c;
}

.desktop-header .search-form {
    flex: 1 1 auto;
    align-self: center;
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
    margin-right: 0;
    position: relative;
    z-index: 1;
}

.desktop-header .search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f0f0f1;
    border-radius: 22px;
    height: 44px !important;
    max-height: 44px !important;
    min-height: 44px;
    padding: 0 16px;
    width: min(100%, 500px);
    max-width: 500px;
    flex: 0 1 500px;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
    align-self: center;
    cursor: text;
}

.desktop-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    background-color: rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.desktop-search-overlay.is-visible {
    display: block;
}

.desktop-search-panel {
    position: absolute;
    top: var(--anchor-top, 72px);
    left: var(--anchor-left, 50%);
    width: var(--anchor-width, 500px);
    max-width: min(500px, calc(100vw - 32px));
    box-sizing: border-box;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    z-index: 2001;
}

.desktop-search-panel__input-row {
    margin-bottom: 4px;
}

.desktop-search-panel__input {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    background: #f0f0f1;
    border-radius: 9999px;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

.desktop-search-panel__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: #a1a3a8;
    display: block;
}

.desktop-search-panel__input input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    line-height: 2.17;
    color: #0c0c0c;
    height: 40px;
    padding: 0;
}

.desktop-search-panel__input input::placeholder {
    color: #81858b;
    font-weight: 500;
}

.desktop-search-panel__loading {
    display: flex;
    align-items: center;
    color: #a1a3a8;
    flex-shrink: 0;
}

.desktop-search-panel__loading .icon-spin,
.desktop-search-panel__loading svg {
    display: block;
    width: 1rem;
    height: 1rem;
    animation: 1s linear infinite spin;
}

.desktop-search-panel__results {
    max-height: min(480px, calc(100vh - 160px));
    overflow-x: hidden;
    overflow-y: auto;
    margin-top: 8px;
}

.desktop-search-panel__results .sm-results,
.desktop-search-panel__results .sm-empty {
    padding-inline: 4px;
}

.desktop-header .search-wrapper input[readonly] {
    cursor: text;
}

body.is-desktop-search-open {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .desktop-search-overlay {
        display: none !important;
    }
}

.desktop-header .search-wrapper input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 2.17;
    padding: 0;
    color: #81858b;
    height: 40px;
}

.desktop-header .search-wrapper input::placeholder {
    font-size: 12px;
    font-weight: 500;
    color: #81858b;
}

.desktop-header .search-wrapper input:focus {
    background: transparent;
    color: #0c0c0c;
}

.desktop-header .search-wrapper .search-icon {
    width: 24px;
    height: 24px;
    display: block;
    fill: #a1a3a8;
    flex-shrink: 0;
    margin: 0;
}

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #a1a3a8;
    flex-shrink: 0;
}

.search-loading .icon-spin,
.search-loading svg {
    display: block;
    width: 1rem;
    height: 1rem;
    animation: 1s linear infinite spin;
}

@keyframes spin {
    from {
        transform: rotate(0)
    }

    to {
        transform: rotate(360deg)
    }
}

.desktop-header .nav-row {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e0e0e2;
    min-height: 40px;
}

.desktop-header .nav-row__inner {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 40px;
}

.desktop-header .nav-row__nav {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    min-height: 40px;
}

.desktop-header .nav-group {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    min-height: 40px;
}

.desktop-header .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    text-decoration: none;
}

.desktop-header .nav-link__icon {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
    fill: #3f4064;
}

.desktop-header .nav-link--categories {
    height: auto;
    padding: 0;
    color: #3f4064;
    font-size: 14px;
    font-weight: 500;
    line-height: 2.15;
}

.desktop-header .nav-group__divider {
    display: block;
    width: 1px;
    height: 16px;
    margin-inline: 4px 8px;
    background: #e0e0e2;
    flex-shrink: 0;
    align-self: center;
}

.desktop-header .nav-item {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 12px;
    border-bottom: 2px solid transparent;
    transition: border-color .2s ease;
}

.desktop-header .nav-item:hover {
    border-bottom-color: #dc3545;
}

.desktop-header .nav-item--categories {
    position: relative;
    padding-inline: 0 12px;
}

.desktop-header .nav-item--categories .mega-dropdown {
    display: flex;
    align-items: center;
    height: 100%;
}

.desktop-header .nav-item .nav-link--quick {
    height: auto;
    padding: 0;
    color: #81858b;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 2.17;
    transition: color .2s ease;
}

.desktop-header .nav-item:hover .nav-link--quick {
    color: #62666d;
}

.mega-dropdown {
    position: static;
}

.mega-dropdown .dropdown-menu.mega-menu {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    left: auto;
    width: auto;
    max-width: min(1136px, calc(100vw - 32px));
    height: calc(100vh * .76);
    margin: 0;
    padding: 0;
    background: #fff;
    border: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .14), 0 4px 8px rgba(0, 0, 0, .3);
    z-index: 1500;
    overflow: hidden;
    pointer-events: none;
}

.mega-dropdown .dropdown-menu.mega-menu.show {
    display: block;
    pointer-events: auto;
}

.mega-menu__body {
    display: flex;
    width: 100%;
    height: 100%;
}

.mega-menu__sidebar {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 200px;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f5f5f5;
}

.mega-menu__cat {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 12px 8px;
    color: #3f4064;
    text-decoration: none;
    transition: color .15s, background-color .15s;
}

.mega-menu__cat-inner {
    display: flex;
    width: 100%;
    align-items: center;
    direction: rtl;
}

.mega-menu__cat-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    color: #424750;
    transition: color .15s;
}

/* استایل SVG داخل آیکون دسته‌بندی مگا منو */
.mega-menu__cat-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
    flex-shrink: 0;
}

/* استایل فونت‌آیکون (در صورت استفاده از i) */
.mega-menu__cat-icon i {
    font-size: 18px;
    line-height: 1;
}

.mega-menu__cat-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 2.17;
    white-space: nowrap;
}

.mega-menu__cat:hover,
.mega-menu__cat--active {
    color: #ef394e;
    background: #fff;
}

.mega-menu__cat:hover .mega-menu__cat-icon,
.mega-menu__cat--active .mega-menu__cat-icon {
    color: #ef4056;
}

.mega-menu__panels {
    flex: 0 0 auto;
    width: 935px;
    height: 100%;
    overflow: hidden;
    background: #fff;
}

.mega-menu__panel {
    display: none;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 20px;
}

.mega-menu__panel--active {
    display: flex;
}

.mega-menu__panel-inner {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-height: 0;
}

.mega-menu__all-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: #008eb2;
    font-size: 12px;
    font-weight: 600;
    line-height: 2.17;
    text-decoration: none;
    white-space: nowrap;
}

.mega-menu__chevron {
    flex-shrink: 0;
    margin-right: 4px;
    fill: #008eb2;
}

.mega-menu__chevron--parent {
    margin-right: 0;
    margin-left: 2px;
    fill: #424750;
}

.mega-menu__columns {
    display: flex;
    align-items: flex-start;
    width: 880px;
}

.mega-menu__column {
    display: flex;
    flex: 0 0 220px;
    flex-direction: column;
    white-space: nowrap;
}

.mega-menu__parent {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 0;
    color: #0c0c0c;
    font-size: 14px;
    font-weight: 600;
    line-height: 2.15;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s;
}

.mega-menu__parent::before {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 2px;
    height: 14px;
    margin-left: 8px;
    background: #ef4056;
}

.mega-menu__parent:hover {
    color: #ef4056;
}

.mega-menu__parent:hover .mega-menu__chevron--parent {
    fill: #ef4056;
}

.mega-menu__leaf {
    display: flex;
    align-items: center;
    padding: 4px 0;
    color: #81858b;
    font-size: 12px;
    font-weight: 500;
    line-height: 2.17;
    text-decoration: none;
    transition: color .15s;
}

.mega-menu__leaf:last-child {
    padding-bottom: 20px;
}

.mega-menu__leaf:hover {
    color: #ef4056;
}

.mega-menu__ellipsis {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-dropdown {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
    z-index: 2000;
    position: absolute;
    direction: rtl
}

@media (min-width:992px) {
    .desktop-header {
        display: flex
    }
}

.user-menu-dropdown.active {
    display: block;
    animation: .3s fadeInDown
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px)
    }

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

.user-menu-dropdown .user-menu-list {
    list-style: none;
    margin: 0;
    padding: .5rem 0
}

.user-menu-dropdown .user-menu-list li {
    border-bottom: 1px solid #fafafa
}

.user-menu-dropdown .user-menu-list li:last-child {
    border-bottom: none
}

.user-menu-dropdown .user-menu-list a:hover {
    background: #f8f9fa
}

.user-menu-dropdown {
    left: 60px;
    width: 11rem;
    padding: .5rem 0;
    display: none
}

.desktop-header .header-user-section .user-menu-dropdown {
    top: calc(100% + 8px);
    left: 0;
    right: auto;
}

.user-menu-dropdown .user-menu-list a {
    display: flex;
    align-items: center;
    padding: .7rem .5rem;
    color: #212529;
    font-size: .8125rem;
    transition: background .2s, color .2s;
    gap: 10px
}

.user-menu-dropdown .user-menu-list svg {
    display: block;
    width: 1.2rem;
    height: 1.2rem;
    color: #888;
    flex-shrink: 0;
}

.cart-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    bottom: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    background-color: #ef4056;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    z-index: 2;
}

.toman {
    font-family: inherit;
    font-style: normal;
    font-weight: inherit;
    color: inherit;
    white-space: nowrap;
    font-size: calc(1em - 1px);
}

.product-card {
    background: #fff;
    padding: 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 12px;
    position: relative;
    box-sizing: border-box;
    border-radius: 12px
}

.variant-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px
}

.variant-image {
    width: 100%;
    aspect-ratio: 1/1
}

.product-name {
    font-weight: 500;
    font-size: 1rem;
    color: #212529;
    line-height: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-height: 4em;
    min-height: 4em
}

.product-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0
}

.variant-discount {
    background: #d32f2f;
    color: #fff;
    border-radius: 20px;
    padding: 1px 6px;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 1;
    white-space: nowrap
}

.variant-price-container {
    text-align: end;
    flex: 1;
    min-width: 0
}

.variant-original-price {
    text-decoration: line-through;
    color: #AFAFAF;
    font-size: .875rem
}

.variant-discounted-price {
    color: #212529;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    white-space: nowrap;
}

.product-unavailable {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    min-height: 40px;
    box-sizing: border-box;
}

.product-unavailable__line {
    display: block;
    height: 1px;
    background-color: #ced0d0;
}

.product-unavailable__line--long {
    flex: 1 1 auto;
    min-width: 20px;
    width: auto;
}

.product-unavailable__line--short {
    flex: 0 0 24px;
    width: 24px;
}

.product-unavailable__text {
    margin: 0;
    padding: 0;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.5;
    color: #212529;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .product-unavailable__text {
        font-size: 0.75rem;
    }
}


.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 8px;
    width: 100%;
    box-sizing: border-box
}

.products-grid>a {
    min-width: 0;
    display: flex
}

.products-grid>a .product-card {
    width: 100%;
    height: 100%
}

@media (min-width:375px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
        gap: 8px
    }
}

@media (min-width:600px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
        gap: 12px
    }

    .product-info {
        gap: 12px
    }

    .product-card {
        padding: 14px
    }

    .product-name {
        margin-bottom: 8px
    }
}

@media (min-width:992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px
    }

    .product-card {
        padding: 16px
    }

    .product-name {
        margin-bottom: 12px
    }
}

@media (max-width:991.98px) {

    .product-name,
    .variant-original-price {
        font-size: .8125rem
    }

    .variant-discount {
        font-size: .6875rem
    }

    .variant-discounted-price {
        font-size: .875rem
    }
}

@media (max-width:374px) {

    .product-name,
    .variant-original-price {
        font-size: .75rem
    }

    .variant-discounted-price {
        font-size: .8125rem
    }
}

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.success-toast,
.error-toast {
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 14px 20px;
    min-width: 300px;
    max-width: 90%;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: 0.3s ease-out toastSlideIn;
}

.success-toast-icon,
.error-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.success-toast-icon i {
    color: #28a745;
}

.error-toast-icon i {
    color: #dc3545;
}

.success-toast-message,
.error-toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    line-height: 1.5;
    color: #212529;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.success-toast.hiding,
.error-toast.hiding {
    animation: 0.3s ease-out forwards toastSlideOut;
}

@media (max-width: 991px) {
    .toast-container {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .success-toast-message,
    .error-toast-message {
        font-size: 13px;
    }

    .success-toast-icon,
    .error-toast-icon {
        font-size: 18px;
    }

    .success-toast,
    .error-toast {
        padding: 12px 16px;
        min-width: auto;
        width: 100%;
        max-width: 100%;
    }
}

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

.footer-top-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (max-width: 991.98px) {
    .footer-top-section {
        padding-top: 1.5rem;
        padding-bottom: 0;
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

.back-to-top {
    background-color: transparent;
    color: #9b9b9b;
    border: 1px solid #9b9b9b;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* آیکون SVG داخل دکمه «بازگشت به بالا» */
.back-to-top .footer-arrow-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.back-to-top:hover .footer-arrow-icon {
    transform: translateY(-2px);
}

.footer-section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .footer-section-title {
        font-size: 0.9375rem;
    }
}

/* Footer collapsible sections (mobile/tablet) */
@media (max-width: 991.98px) {
    .footer-col-collapse {
        margin-bottom: 0.5rem !important;
    }
}

.footer-col-collapse .footer-section-toggler {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5625rem 0.9375rem;
    border: none;
    background: #f0f0f1;
    border-radius: 1rem;
    cursor: pointer;
    text-align: right;
    color: inherit;
}

.footer-col-collapse .footer-section-toggler .footer-section-title {
    margin: 0;
}

/* آیکون SVG داخل دکمه‌های collapse فوتر */
.footer-col-collapse .footer-toggle-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
    fill: currentColor;
    transition: transform 0.25s ease;
}

.footer-col-collapse .footer-section-toggler[aria-expanded="true"] .footer-toggle-icon {
    transform: rotate(180deg);
}

@media (min-width: 768px) {
    .footer-col-collapse .footer-section-toggler {
        display: none !important;
    }

    .footer-col-collapse .collapse {
        display: block !important;
    }

    .footer-col-collapse .footer-section-title.d-md-only {
        display: block !important;
    }

    .footer-links-row,
    .footer-bottom-row {
        margin-top: 3rem;
    }
}

.footer-col-collapse .footer-section-title.d-md-only {
    display: none;
}

@media (max-width: 767px) {
    footer .list-unstyled {
        padding: 0.5rem 1rem 0 1rem;
    }
}

footer ul li,
footer ul li a,
footer .footer-link {
    color: #212529bf;
    font-weight: 500;
    font-size: 0.875rem;
}

footer ul li {
    margin-bottom: 0.875rem;
}

footer ul li a,
footer .footer-link {
    transition: all 0.3s ease;
    display: inline-block;
}

footer ul li a:hover,
footer ul li a:focus,
footer ul li a:active,
footer .footer-link:hover,
footer .footer-link:focus,
footer .footer-link:active {
    color: #dc3545;
    text-decoration: none;
    transform: translateX(-4px);
}

.footer-link {
    text-decoration: none;
    color: #3f4064;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover,
.footer-link:focus,
.footer-link:active {
    color: #dc3545;
    text-decoration: none;
    transform: translateX(-4px);
}

.footer-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    justify-content: flex-start;
    align-items: center;
}

.footer-contact-label {
    color: #212529;
    font-weight: 600;
    white-space: nowrap;
}

.footer-working-hours {
    color: #212529bf;
    font-weight: 500;
}

footer .footer-about-text {
    color: #212529bf;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 2;
    text-align: justify;
    margin-bottom: 0;
}

footer .footer-contact-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
}

.footer-badge-placeholder {
    width: 160px;
    height: 160px;
    min-width: 160px;
    min-height: 160px;
    max-width: 160px;
    max-height: 160px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: inline-block;
    flex-shrink: 0;
}

footer .footer-logo {
    display: flex;
    align-items: center;
}

footer .footer-logo img {
    height: 2.1875rem;
    width: auto;
    max-width: 100%;
}

@media (max-width: 992px) {

    footer ul li,
    footer ul li a,
    footer .footer-link {
        font-size: 0.8125rem;
    }

    footer ul li {
        margin-bottom: 0.875rem !important;
    }

    .footer-bottom-row {
        margin-top: 1rem;
    }

    footer h5 {
        font-size: 0.8125rem;
        color: #212529;
        font-weight: 600;
    }

    .footer-working-hours {
        font-size: 0.8125rem !important;
    }

    footer .footer-about-text {
        font-size: 0.8125rem;
    }

    .footer-badges {
        gap: 0.5rem;
        justify-content: center;
    }

    .footer-badge-placeholder {
        width: calc(33.333% - 0.5rem);
        max-width: 110px;
        min-width: 90px;
        height: calc(33.333% - 0.5rem);
        max-height: 110px;
        min-height: 90px;
        aspect-ratio: 1;
    }

    footer .footer-logo img {
        height: 35px;
    }

    .footer-contact-label {
        font-size: 0.8125rem;
        color: #212529;
        font-weight: 600;
    }
}

.order-summary-row [id^="total-discount"],
.order-summary-row [id^="wallet-credit-discount"],
.order-summary-row.text-success .price,
.order-summary-row .discount-price {
    color: #28a745;
}

.order-summary-row.text-success {
    color: #28a745;
}