:root {
    --font-yekanbakh: 'Yekan Bakh', sans-serif;
    --font-morabba: 'Morabba', 'Yekan Bakh', sans-serif;
    --shop-desktop-sticky-top: 154px;
    --shop-desktop-sticky-gap: 0px;
}

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

body,
html {
    overflow-x: hidden;
    font-family: var(--font-yekanbakh);
}

@media (max-width: 991.98px) {

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

a {
    text-decoration: none
}

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

.desktop-header.is-scroll-hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

.desktop-header > .container {
    width: 100%;
    align-self: center;
    display: flex;
    flex-direction: column;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

@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;
}

.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-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-btn:hover {
    border-color: #c0c2c5;
    background: #fafafa;
}

.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;
}

/* باکس جستجوی دسکتاپ: پیل ۴۴px (نه دایره) */
.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 i {
    font-size: 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 i {
    font-size: 1rem;
    animation: 1s linear infinite spin;
}

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

    to {
        transform: rotate(360deg)
    }
}

.desktop-header .nav-row {
    margin-top: 0;
    padding-bottom: 8px;
    display: flex;
    justify-content: flex-start;
    transition: transform .3s, opacity .3s, height .3s, margin-top .3s, padding-bottom .3s
}

.desktop-header .nav-row.hidden {
    transform: translateY(-100%);
    opacity: 0;
    height: 0;
    margin-top: 0;
    padding-bottom: 0;
    overflow: hidden
}

.desktop-header .nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem
}

.desktop-header .nav-link {
    color: #212529;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    padding: .5rem 0
}

.categories-list .category-item.active,
.categories-list .category-item.active a,
.categories-list .category-item.active i,
.categories-list .category-item:hover,
.categories-list .category-item:hover a,
.categories-list .category-item:hover i,
.desktop-header .nav-link:hover,
.mega-menu .sub-menu .dropdown-item:hover h6 i {
    color: #dc3545
}

.desktop-header .nav-link i {
    margin-right: .3rem;
    transition: transform .3s
}

.desktop-header .nav-link:hover i {
    color: #dc3545;
    transform: rotate(180deg)
}

.mega-dropdown {
    position: static
}

.mega-dropdown .dropdown-menu.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 1rem 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    z-index: 1500;
    transition: opacity .2s;
    opacity: 0
}

.mega-dropdown .dropdown-menu.mega-menu.show {
    display: block;
    opacity: 1
}

.mega-menu .row {
    margin: 0
}

.categories-list {
    border-inline-end: 1px solid rgba(0, 0, 0, .08);
    line-height: 2
}

.categories-list .category-item {
    cursor: pointer;
    padding: .4rem .5rem;
    transition: background .2s, color .2s;
    display: flex;
    align-items: center;
    font-size: .8125rem;
    font-weight: 500
}

.categories-list .category-item a {
    color: inherit;
    text-decoration: none;
    width: 100%;
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: 6px
}

.categories-list .category-item i {
    margin-left: .4rem;
    font-size: 1rem;
    color: #666;
    transition: color .2s
}

/* تصاویر دسته‌بندی در مگا منو دسکتاپ */
.category-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-left: 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.sub-category-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-left: 6px;
    vertical-align: middle;
    border-radius: 4px;
    flex-shrink: 0;
}

.mega-menu .sub-menu .dropdown-item h6 {
    line-height: 1.2;
    color: #212529;
    text-align: right;
    margin-bottom: .5rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.mega-menu .sub-menu .dropdown-item h6 img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.sub-menu .dropdown-item {
    padding: .25rem 0;
    color: #9b9b9b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sub-menu .dropdown-item img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}

.submenus .sub-menu {
    display: none;
    transition: opacity .2s
}

.submenus .sub-menu.active {
    display: block
}

.sub-menu h6 {
    font-size: .9rem;
    margin-bottom: 1rem;
    position: relative;
    padding-right: 1rem
}

.sub-menu h6:not(.sub-menu-title)::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 1.5rem;
    background-color: #dc3545
}

.mega-menu .sub-menu .dropdown-item h6,
.sub-menu .dropdown-item {
    transition: color .2s, transform .2s;
    transform: translateX(0);
    font-size: .75rem
}

.sub-menu .dropdown-item {
    padding: .25rem 0;
    color: #9b9b9b;
    display: inline-flex;
    align-items: center;
    gap: 4px
}

.sub-menu .dropdown-item:hover {
    color: #dc3545;
    background: 0 0 !important;
    transform: translateX(-5px)
}

.sub-menu-title {
    font-size: .75rem;
    color: #0dcaf0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center
}

.sub-menu-title i {
    font-size: 1rem;
    color: #0dcaf0;
    margin-right: .3rem
}

.mega-menu .sub-menu .dropdown-item h6 {
    line-height: 1.2;
    color: #212529;
    text-align: right;
    margin-bottom: .5rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem
}

.mega-menu .sub-menu .dropdown-item h6 i {
    font-size: 1rem;
    color: #212529;
    transition: color .2s
}

.mobile-header {
    position: fixed;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: .75rem;
    transition: transform .3s
}

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

.mobile-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 5px;
    padding-bottom: 5px;
}

.mobile-header-left,
.mobile-header-right {
    display: flex;
    align-items: center;
    gap: 1rem
}

.mobile-header-left a,
.mobile-header-right a {
    color: #000;
    font-size: 1.5rem;
    transition: color .3s
}

.mobile-header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%)
}

.mobile-header .logo img {
    height: 35px
}

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

    .mobile-user-menu-dropdown {
        display: none !important
    }
}

.mobile-user-menu-dropdown .user-menu-list a {
    justify-content: flex-start;
    display: flex;
    align-items: center;
    padding: .7rem .5rem;
    color: #212529;
    font-size: .75rem;
    transition: background .2s, color .2s
}

.mobile-user-menu-dropdown .user-menu-list i {
    margin-left: .5rem;
    margin-right: 0;
    font-size: 1.2rem;
    color: #888
}

.mobile-user-menu-dropdown {
    left: 35px;
    width: 90vw;
    max-width: 10rem;
    padding: .5rem 0;
    display: none
}

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

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

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

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

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

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

.mobile-user-menu-dropdown .user-menu-list a:hover,
.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 i {
    font-size: 1.2rem;
    color: #888
}

.cart-badge {
    position: absolute;
    top: 18px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    background: #dc3545;
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    padding: 0 5px;
    z-index: 2
}



/* ============================================
   TOMAN CURRENCY ICON
   ============================================ */

.toman {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    line-height: 0;
    color: inherit;
}

.toman svg {
    display: block;
    width: 100%;
    height: 100%;
}

.price-currency .toman {
    width: 16px;
    height: 16px;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.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;
    border: 1px solid rgba(0, 0, 0, .08)
}

.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: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end
}


.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 NOTIFICATIONS
   ============================================ */

/* Toast Notifications - بدون دایره پس زمینه */
.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;
}

.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;
    }

    .cart-badge {
        font-size: 0.6875rem;
        line-height: 2;
    }
}

.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;
}

.footer-col-collapse .footer-toggle-icon {
    transition: transform 0.25s ease;
    font-size: 1.25rem;
}

.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;
}