:root {
    --arina-teal: #22b5b8;
    --arina-teal-dark: #16898c;
    --arina-teal-deep: #117A80;
    --arina-orange: #f26522;
    --arina-orange-deep: #c44e18;
    --arina-green: #4db748;
    --arina-gradient: linear-gradient(to left, var(--arina-teal-deep) 0%, #2bbfc2 18%, var(--arina-orange) 100%);
    --arina-gradient-rgb:237, 28, 36, 0.12;
    --arina-gradient-soft: linear-gradient(to left, rgba(34, 181, 184, 0.12), rgba(242, 101, 34, 0.1));
    --arina-gradient-deep: linear-gradient(115deg, var(--arina-teal-deep) 0%, #16787c 48%, var(--arina-orange-deep) 100%);
    --arina-white: #ffffff;
    --digiran-primary: #1a4d56;
    --digiran-secondary: #f26522;
    --digiran-link: #226CB7;
    --digiran-accent: #22b5b8;
    --digiran-accent-dark: #0f5f66;
    --digiran-shadow: 0 8px 28px rgba(34, 181, 184, 0.1);
    --digiran-border: #ccd4d9;
    --digiran-text: #333333;
    --digiran-muted: #6b6b6b;
    --digiran-surface: #f4f4f4;

}

body {
    background:#F5F5F5;
    color: var(--arina-gradient-soft);
}

a:hover {
    color: var(--arina-gradient);
}
.rail-header a:hover {
    color: #000;
}

a
.site-header {
    border-bottom: 0;
    background: var(--arina-white);
}

.site-header::before {
    display: block;
    height: 5px;
    background: var(--arina-gradient);
    content: "";
}

.site-nav {
    border-top: 1px solid var(--digiran-muted);
    background: var(--arina-white);
}

.site-search .form-control:focus {
    border-color: var(--arina-gradient);
    box-shadow: 0 0 0 3px rgba(var(--arina-gradient-rgb), 0.22);
}

.brand-logo {
    width: 100%;
}

.cart-line {
    border-bottom-color: var(--arina-gradient);
    border-bottom-style: dotted;
}

.cart-line-image {
    margin-left: 8px;
    border: unset;
}

.btn.btn-primary,
.btn-checkout,
.product-buybox .cart-button,
.product-card-cart-btn {
    --bs-btn-bg:var(--arina-teal-deep) ;
    --bs-btn-border-color: var(--arina-gradient);
    --bs-btn-hover-bg: var(--arina-gradient);
    --bs-btn-hover-border-color: var(--arina-teal-deep);
    --bs-btn-active-bg: var(--arina-teal-deep);
    --bs-btn-active-border-color: var(--arina-teal-deep);
    border-color: var(--arina-gradient);
    border-radius: 50rem;
    background: var(--arina-teal-deep);
    color: var(--arina-white);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn-checkout:hover,
.btn-checkout:focus,
.product-buybox .cart-button:hover,
.product-buybox .cart-button:focus,
.product-card-cart-btn:hover,
.product-card-cart-btn:focus {
    border-color: var(--arina-teal-deep);
    background: var(--arina-teal-deep);
    color: var(--arina-white);
}

.product-buybox-features li::before,
.cart-count,
.cart-badge:not(.is-empty) {
    background: var(--arina-gradient);
}

.search-button:hover {
    background: rgba(var(--arina-gradient-rgb), 0.1);
    color: var(--arina-gradient);
}

.category-toggle,
.category-card,
.account-button,
.cart-button,
.mobile-menu-toggle,
.brands-panel-title,
.article-rail-header h2,
.product-meta-line a,
.article-rail-header a {
    color: var(--digiran-accent-dark);
}
.category-card img {
    box-shadow: 0 0 0 3px rgb(221 1 1 / 31%);
    transform: translateY(-3px);
}
.category-card.square img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 20px !important;
    box-shadow: unset;
}
.category-toggle:hover,
.mega-menu.is-open .category-toggle,
.nav-link:hover,
.nav-link.active {
    color: var(--arina-gradient);
}

.mega-cat:hover,
.mega-cat.is-active {
    border-right-color: var(--arina-gradient);
    color: var(--arina-gradient);
}

.product-rail {
    border-color:var(--digiran-muted);
}

.rail-header {
    background: var(--arina-gradient);
}
#campain-sections{
    background: var(--arina-gradient);
}

.section-muted,
.service-strip,
.service-box,
.brands-panel {
    background: var(--digiran-muted);
}

.service-item {
    color: var(--arina-gradient-soft);
}

.service-item-icon,
.service-box-icon {
    background: var(--arina-gradient);
    color: var(--arina-white);
}

.product-card {
    border-color: var(--digiran-muted);
    background: var(--arina-white);


}

.product-card:hover {
    border-color: rgba(var(--arina-gradient-rgb), 0.35);
    box-shadow: var(--digiran-shadow);
}

.product-discount,
.product-badge,
.product-off-badge {
    background: var(--arina-gradient);
    color: var(--arina-white);
}

.product-title {
    color: var(--digiran-accent-dark);
}

.product-title a:hover {
    color: var(--arina-gradient);
}

.product-price,
.product-price ins {
    color: var(--arina-gradient);
}

.product-deal-head {
    border-bottom-color: var(--arina-gradient);
}

.product-deal-label {
    color: var(--arina-gradient);
}

.product-deal-time {
    color: var(--arina-gradient-soft);
}

.footer-dark {
    background: var(--arina-gradient);
    box-shadow: inset 0 4px 0 var(--arina-gradient);
    background: #117A80;
    background: linear-gradient(34deg,rgba(17, 122, 128, 1) 65%, rgba(43, 191, 194, 1) 86%);
}

.footer-dark .footer-title {
    color: var(--arina-white);
}

.footer-dark .footer-list a:hover,
.footer-dark .contact-info a:hover {
    color: #ffd4d6;
}

.footer-dark .social-icons a:hover {
    color: var(--arina-teal-deep);
}

.arina-footer .arina-footer-about {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.arina-footer .arina-footer-about .brand-logo {
    width: 168px;
    height: auto;
    padding: 6px 8px;
    border-radius: 10px;
    background: var(--arina-white);
}

.arina-footer .arina-footer-about p {
    min-width: 0;
    margin: 0;
    font-size: 0.88rem;
    line-height: 2;
}

.arina-footer .footer-title {
    margin-bottom: 0.85rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.95rem;
}

.arina-footer .arina-footer-namads img,
.arina-footer .arina-footer-namads iframe {
    max-width: 100%;
    height: auto;
}

.arina-footer .arina-social-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
    padding: 1.15rem 1.4rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
}

.arina-footer .arina-social-box h2 {
    margin: 0;
    color: var(--arina-white);
    font-size: 0.95rem;
    font-weight: 700;
}

.arina-footer .arina-social-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.arina-footer .arina-social-list a {
    display: grid;
    width: 45px;
    height: 45px;
    border-radius: 14px;
    background: var(--arina-white);
    color: var(--arina-gradient);
    font-size: 1.45rem;
    place-items: center;
}

.arina-footer .arina-social-list a:hover {
    background: var(--arina-gradient);
    color: var(--arina-white);
}

.arina-footer .arina-social-list img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.arina-footer .footer-bottom {
    margin-top: 1.4rem;
    margin-inline: 0;
}

@media (max-width: 767.98px) {
    .arina-footer .arina-footer-about {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.categories-slider {
    padding: 0.15rem 0;
}

.categories-slider .banner-slider-track {
    align-items: stretch;
}

.banner-slider-track .category-slider-item {
    box-sizing: border-box;
    flex: 0 0 calc((100% - 5.95rem) / 8);
    width: calc((100% - 5.95rem) / 8);
    max-width: calc((100% - 5.95rem) / 8);
    min-width: 0;
}

.categories-slider .banner-slider-btn {
    width: 36px;
    height: 36px;
}

.categories-slider .category-card {
    padding: 35px;
}
.account-label {
    display: flex;
    font-size: 16px;
    align-items: center;
}
.search-button{
    right: 0;
}
#site-search {
    padding-right: 35px;
}
.separator {
    font-size: 24px;
    font-weight: 100;
    display: inline-block;
    margin: 0 6px;
    vertical-align: middle;
}
.site-search .form-control{
    height: 50px;
}

/* منوی اصلی */
.site-nav {
    position: relative;
    z-index: 1;
    direction: rtl;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    overflow: visible;
}

.site-nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 3rem;
    overflow: visible;
}

.site-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-right: auto;
}

.site-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #1e293b;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav .nav-link:hover {
    color: #385693;
}

/* دکمه دسته‌بندی */
.kl-mega {
    position: relative;
    flex: 0 0 auto;
}

.kl-mega__toggle {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem 0;
    border: 0;
    background: transparent;
    color: #1e293b;
    font-size: .95rem;
    cursor: pointer;
}

.kl-mega__toggle svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.kl-mega__toggle[aria-expanded="true"] {
    border-radius: 13px;
    background: #fff1f1;
    padding: 6px;
}


.kl-mega__panel {
    position: fixed;
    right: 0;
    left: auto;
    z-index: 1110;
    margin-top: 6px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: max-content;
    min-width: 17.5rem;
    max-width: min(54rem, 100vw);
    overflow: hidden;
    background: #fff;
    box-shadow: -8px 0 28px rgba(15, 23, 42, .12);
}

.kl-mega__panel[hidden],
.kl-mega__col[hidden],
.kl-mega__pane[hidden] {
    display: none !important;
}

.kl-mega__col {
    flex: 0 0 16.5rem;
    width: 16.5rem;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    border-left: 1px solid #e2e8f0;
    background: #fff;
}

.kl-mega__col--l1 {
    flex-basis: 17.5rem;
    width: 17.5rem;
}

.kl-mega__col--l2,
.kl-mega__col--l3 {
    display: none !important;
}

.kl-mega__panel.is-l2-open .kl-mega__col--l2,
.kl-mega__panel.is-l3-open .kl-mega__col--l3 {
    display: block !important;
}

.kl-mega__col-head {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: .9rem 1rem .55rem;
    background: #fff;
    color: #1e293b;
    font-size: .9rem;
    font-weight: 700;
}

.kl-mega__col-head a {
    color: inherit;
    text-decoration: none;
}

.kl-mega__list {
    list-style: none;
    margin: 0;
    padding: 0 0 .75rem;
    max-height: 500px;
}

.kl-mega__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    width: 100%;
    padding: .7rem 1rem;
    color: #1e293b;
    text-decoration: none;
    font-size: .9rem;
}

.kl-mega__item:hover,
.kl-mega__item.is-active {
    background: #fbe8e8;
    color: #d51f1e;
    font-weight: 900;
    font-size: 15px;
}

.kl-mega__item-main {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
}

.kl-mega__item-icon {
    width: 30px;
    border-radius: 30px;
    height: 30px;
    object-fit: contain;
    flex: 0 0 auto;
}

.kl-mega__item-icon--empty {
    display: inline-block;
    border-radius: .2rem;
    background: #f3f6fa;
}

.kl-mega__item-fa {
    width: 1.2rem;
    text-align: center;
    color: #4468b2;
}

.kl-mega__chevron {
    width: .9rem;
    height: .9rem;
    fill: currentColor;
    color: #64748b;
    flex: 0 0 auto;
}

.kl-mega__pane {
    display: none;
}

.kl-mega__pane.is-active {
    display: block;
}
.product-slider .product-image,
.product-slider .product-image img{

    max-height: 280px;
}
.banner-slider-viewport {
    padding: 20px 0px;
}
/* موبایل: مطابق رفتار فعلی سایت */
@media (max-width: 991.98px) {
    .site-nav {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .site-header .header-top {
        position: relative;
        min-height: 56px;
        padding-block: 0.35rem;
    }

    .site-header .header-brand-col .brand-link {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }

    .site-header .brand-logo {
        width: 100px;
        height: auto;
        object-fit: contain;
        margin-top: 12px;
    }

    .mobile-bottom-bar {
        right: 0;
        bottom: 0;
        left: 0;
        gap: 0;
        padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
        border: 0;
        border-top: 1px solid #ececec;
        border-radius: 0;
        background: #fff;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .mobile-bottom-bar a,
    .mobile-bottom-bar button {
        flex: 1;
        min-width: 0;
        min-height: 56px;
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.35rem 0.2rem;
        border-radius: 0;
        background: transparent;
        color: #62666d;
        font-size: 0.68rem;
        font-weight: 500;
        line-height: 1.2;
    }

    .mobile-bottom-bar a i,
    .mobile-bottom-bar button i {
        font-size: 1.2rem;
    }

    .mobile-bottom-bar a span.label,
    .mobile-bottom-bar button span.label {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-bottom-bar a.active,
    .mobile-bottom-bar button.active {
        padding-inline: 0.2rem;
        border-radius: 12px;
        background: var(--arina-gradient);
        color: #fff;
        font-weight: 700;
    }

    .mobile-bottom-bar a.active span.label,
    .mobile-bottom-bar button.active span.label {
        display: block;
    }

    .mobile-bottom-bar .cart-badge {
        top: 2px;
        inset-inline-end: calc(50% - 18px);
    }

    body.has-mobile-nav {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    .mcat-modal {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    .mcat-modal__tab.is-active {
        color: var(--digiran-primary);
        box-shadow: inset -3px 0 0 var(--digiran-primary);
    }

    .banner-slider-track .category-slider-item {
        flex: 0 0 calc((100% - 3.4rem) / 5);
        width: calc((100% - 3.4rem) / 5);
        max-width: calc((100% - 3.4rem) / 5);
    }
}

@media (max-width: 575.98px) {
    .banner-slider-track .product-slider-item {
        flex: 0 0 calc((100% - 1.7rem) / 2.5);
        width: calc((100% - 1.7rem) / 2.5);
        max-width: calc((100% - 1.7rem) / 2.5);
    }

    .banner-slider-track .category-slider-item {
        flex: 0 0 calc((100% - 2.55rem) / 3.5);
        width: calc((100% - 2.55rem) / 3.5);
        max-width: calc((100% - 2.55rem) / 3.5);
    }

    .categories-slider .banner-slider-btn {
        width: 32px;
        height: 32px;
    }

    .categories-slider .category-card-title {
        font-size: 0.75rem;
        line-height: 1.5;
    }
}
.kl-mega__backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgb(15 23 42 / 4%);
}

.kl-mega__backdrop[hidden] {
    display: none !important;
}

html.kl-mega-open,
body.kl-mega-open {
    overflow: hidden !important;
}

.kl-mega__list {
    max-height: 420px;
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d51f1e transparent;
}

.kl-mega__list::-webkit-scrollbar {
    width: 6px;

}

.kl-mega__list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.kl-mega__list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #dfc47f, #d51f1e);
    border-radius: 10px;
}

.kl-mega__list::-webkit-scrollbar-thumb:hover {
    background: #d51f1e;
}
.carousel-control-next{
    right: 7rem;
    margin-top: 35px;
}
.carousel-control-prev {
    right: 3rem;
    left: auto;
    margin-top: 35px;
}
.carousel-indicators [data-bs-target]{
    background-color: #1b1b1b;
    width: 5px !important;
    height: 5px !important;

}
.carousel-indicators{
    align-items: center;
    left: auto;
    margin-right: 6%;
}
.carousel-indicators .active{
    height: 15px !important;
    background-color: #ffffff;
    border-radius: 20px !important;
}

.carousel-control-prev-icon, .carousel-control-next-icon{
    filter: brightness(0.5);
    font-weight: 900;
}
.carousel-control-prev, .carousel-control-next{
    top: 55%;
    bottom: auto;
    background-color: #fff;
    width: 35px;
    height: 35px;
}

/* مخفی بودن دکمه‌ها در حالت عادی */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* نمایش دکمه‌ها هنگام هاور روی اسلایدر */
.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
    visibility: visible;
}

/* نمایش دکمه‌ها هنگام فوکوس با کیبورد */
.hero-slider:focus-within .carousel-control-prev,
.hero-slider:focus-within .carousel-control-next {
    opacity: 1;
    visibility: visible;
}
.category-card img:hover{
    box-shadow: 0 0 0 3px rgba(221, 1, 1, 0.575);
}

/* ==============================
   About / SEO Accordion
============================== */

.about-seo-section {
    direction: rtl;
    padding: 0 0 24px;
    background: #fff;
    color: #687487;
    font-family: inherit;
}

.about-seo-box {
    position: relative;
    padding-top: 28px;
    border-top: 1px solid #d5dce4;
}

/* Content wrapper */
.kl-seo-panel {
    position: relative;
    overflow: hidden;
    max-height: 190px;
    transition: max-height .35s ease;
}

/* Text */
.about-seo-content {
    color: #687487;
    font-size: 12px;
    font-weight: 400;
    line-height: 2.8;
    text-align: right;
    overflow-wrap: anywhere;
}

.about-seo-content h1,
.about-seo-content h2,
.about-seo-content h3,
.about-seo-content h4 {
    color: #171f2b;
    font-size: 14px;
    font-weight: 700;
    line-height: 2;
    margin: 8px 0 14px;
}

.about-seo-content p {
    margin: 0 0 12px;
}

.about-seo-content a {
    color: #1688dc;
    text-decoration: none;
}

.about-seo-content a:hover {
    text-decoration: underline;
}

.about-seo-content ul,
.about-seo-content ol {
    padding-right: 22px;
    margin: 8px 0 14px;
}

.about-seo-content img {
    max-width: 100%;
    height: auto;
}

/* Fade when collapsed */
[data-seo-accordion]:not(.is-expanded) .kl-seo-panel::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 35px;
    background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0),
            #fff
    );
    pointer-events: none;
}

/* Show more button */
.kl-seo-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin: 10px 0 0 auto;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #153f83;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
    cursor: pointer;
}

.kl-seo-toggle svg {
    flex-shrink: 0;
    transition: transform .25s ease;
}

[data-seo-accordion].is-expanded .kl-seo-toggle svg {
    transform: rotate(180deg);
}

.kl-seo-toggle:hover {
    color: #1688dc;
}

.kl-seo-toggle:focus-visible {
    outline: 2px solid #1688dc;
    outline-offset: 4px;
    border-radius: 3px;
}

/* Hide toggle if content fits */
.kl-seo-toggle[hidden] {
    display: none !important;
}

/* Responsive */
@media (max-width: 767px) {
    .about-seo-section {
        padding-bottom: 18px;
    }

    .about-seo-box {
        padding-top: 18px;
    }

    .kl-seo-panel {
        max-height: 165px;
    }

    .about-seo-content {
        font-size: 12px;
        line-height: 2.4;
    }

    .about-seo-content h1,
    .about-seo-content h2,
    .about-seo-content h3,
    .about-seo-content h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .kl-seo-toggle {
        font-size: 13px;
        margin-top: 8px;
    }
}

/* ==========================
   Article Cards - Image Design
========================== */

.article-slider .article-slider-item {
    height: auto;
}

.article-slider .article-card {
    display: flex;
    flex-direction: column;
    height: 200px;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    background: #303030;
    color: #fff;
    text-decoration: none;
    direction: rtl;
}

/* Article image */
.article-slider .article-card-image {
    display: block;
    flex: 0 0 140px;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f1f1f1;
}

.article-slider .article-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}

/* Article title */
.article-slider .article-card h3 {
    display: -webkit-box;
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 10px 12px;
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    text-align: right;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Hide extra link to match the reference image */
.article-slider .article-card-more {
    display: none !important;
}

/* Subtle hover */
.article-slider .article-card:hover .article-card-image img {
    transform: scale(1.04);
}

@media (max-width: 767px) {
    .article-slider .article-card {
        height: 180px;
        border-radius: 0 0 10px 10px;
    }

    .article-slider .article-card-image {
        flex-basis: 120px;
        height: 120px;
    }

    .article-slider .article-card h3 {
        padding: 8px;
        font-size: 11px;
        line-height: 1.7;
    }
}



.brands-panel {
    direction: ltr;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    height: 140px;
    overflow: hidden;
    position: relative;
    border: 2px solid #ecd5d5;
    border-radius: 21px;
    background: #fff;
}


.brands-panel .brands-panel-title {
    order: 2;
    flex: 0 0 215px;
    width: 215px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: -25px -15px -25px 0;
    padding: 15px;
    background: linear-gradient(110deg, #8d1918, #d13c3c);
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
    border-radius: 0 0 0 0;
    order: 2;
}


.brands-panel .brands-slider {
    order: 1;
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
}


.brands-panel .brands-slider .banner-slider-viewport {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}


.brands-panel .brands-slider .banner-slider-track {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.brands-panel .brands-slider .brand-slider-item {
    flex: 0 0 calc(100% / 6);
    width: calc(100% / 6);
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    padding: 24px 0;
}


.brands-panel .brands-slider .brand-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0 14px;
    border: 0;
    border-right: 1px solid #9eadd1;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
}


.brands-panel .brands-slider .brand-logo-card img {
    display: block;
    width: 100%;
    max-width: 125px;
    height: auto;
    max-height: unset;
    object-fit: contain;
    object-position: center;
    transition: transform .25s ease;
}

.brands-panel .brands-slider .brand-logo-card:hover img {
    transform: scale(1.06);
}


@media (max-width: 991px) {
    .categories-slider .category-card {
        padding:20px 0px;
    }
    .brands-panel {
        height: 120px;
        border-radius: 17px;
    }

    .brands-panel .brands-panel-title {
        flex-basis: 170px;
        width: 170px;
        padding: 10px;
        font-size: 16px;
    }

    .brands-panel .brands-slider .brand-slider-item {
        flex-basis: 25%;
        width: 25%;
        padding: 20px 0;
    }

    .brands-panel .brands-slider .brand-logo-card {
        padding: 0 10px;
    }

    .brands-panel .brands-slider .brand-logo-card img {
        max-width: 105px;
        height: 55px;
    }
}



@media (max-width: 575px) {
    .brands-panel {
        height: 100px;
        border-radius: 13px;
    }

    .brands-panel .brands-panel-title {
        flex-basis: 105px;
        width: 105px;
        padding: 8px;
        font-size: 12px;
        line-height: 1.8;
    }

    .brands-panel .brands-slider .brand-slider-item {
        flex-basis: 50%;
        width: 50%;
        padding: 17px 0;
    }

    .brands-panel .brands-slider .brand-logo-card {
        padding: 0 8px;
    }

    .brands-panel .brands-slider .brand-logo-card img {
        max-width: 80px;
        height: 45px;
    }

    .brands-panel .brands-slider .banner-slider-btn {
        width: 28px;
        height: 28px;
    }

    .brands-panel .brands-slider .banner-slider-btn svg {
        width: 17px;
        height: 17px;
    }

    .brands-panel .brands-slider .banner-slider-prev {
        left: 5px;
    }

    .brands-panel .brands-slider .banner-slider-next {
        right: 5px;
    }
}

@media (max-width: 360px) {
    .brands-panel .brands-panel-title {
        flex-basis: 88px;
        width: 88px;
        font-size: 11px;
    }

    .brands-panel .brands-slider .brand-slider-item {
        flex-basis: 100%;
        width: 100%;
    }
}

.category4-section-title {
    margin-bottom: 1rem;
    text-align: right;
}

.category4-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0 !important;
    margin: 50px auto;
}

.category4-item {
    padding: 24px 18px 34px;
    border-left: 1px solid #e9e9e9;
    border-bottom: 1px solid #e9e9e9;
}
/* حذف خط کناری ستون آخر */
.category4-item:nth-child(7n) {
    border-left: none;
}

/* حذف خط پایین ردیف آخر */
.category4-item:nth-last-child(-n+7) {
    border-bottom: none;
}
.category4-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(14, 39, 91, 0.05);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}

.category4-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(18, 57, 128, 0.16);
}

.category4-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

.category4-card-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.category4-card-title {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 10px;
    background: var(--digiran-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .22s ease, transform .22s ease;
    pointer-events: none;
}

.category4-card:hover .category4-card-title,
.category4-card:focus-visible .category4-card-title {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) {
    .category4-card-title {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1399.98px) {
    .category4-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .category4-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 24px 18px;
    }
}

@media (max-width: 991.98px) {
    .category4-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px 14px;
    }
}

@media (max-width: 767.98px) {
    .category4-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px 12px;
    }

    .category4-card-media {
        padding: 14px;
    }

    .category4-card-title {
        min-height: 36px;
        font-size: 13px;
        padding: 7px 8px;
        display: none !important;
    }
    .category4-item:nth-child(n) {
        border-left: 1px solid #e9e9e9;
        border-bottom: 1px solid #e9e9e9;
    }

    .category4-item:nth-child(3n) {
        border-left: none;
    }

    .category4-item:nth-last-child(-n+3) {
        border-bottom: none;
    }
}

@media (max-width: 479.98px) {
    .category4-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .category4-item:nth-child(n) {
        border-left: 1px solid #e9e9e9;
        border-bottom: 1px solid #e9e9e9;
    }

    .category4-item:nth-child(2n) {
        border-left: none;
    }

    .category4-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}


/* Discounts beside the selling price, never on top of product imagery. */
.product-slider .product-card .product-price {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px 7px !important;
    position: relative !important;
    padding: 0 !important;
    direction: rtl;
    text-align: right;
}
.product-slider .product-card .product-price ins {
    order: 0;
    font-size: 16px;
    font-weight: 800;
    color: #141414;
    text-decoration: none;
}
.product-slider .product-card .product-price .price-currency {
    order: 1;
    font-size: 11px;
    color: #888;
}
.product-slider .product-card .product-price .product-discount {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    order: 2;
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: auto !important;
    margin: 0 auto 0 0 !important;
    padding: 3px 8px !important;
    border-radius: 5px;
    background: #a51c2b;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 800;
}
.product-slider .product-card .product-price del {
    order: 3;
    flex: 0 0 100%;
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
}


/* Banner images: mobile-only static 2-column grid (not product/category/article sliders). */
@media (max-width: 767.98px) {
    .elecapp-mobile-banner-grid .banner-slider-btn,
    .elecapp-mobile-banner-grid [data-banner-prev],
    .elecapp-mobile-banner-grid [data-banner-next] {
        display: none !important;
    }
    .elecapp-mobile-banner-grid .banner-slider-viewport {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 0 !important;
        touch-action: pan-y !important;
    }
    .elecapp-mobile-banner-grid .banner-slider-track {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        translate: none !important;
        transition: none !important;
        overflow: visible !important;
        flex-wrap: unset !important;
        touch-action: pan-y !important;
    }
    .elecapp-mobile-banner-grid .banner-slider-track > .banner-card {
        display: block !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    .elecapp-mobile-banner-grid .banner-slider-track > .banner-card img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}


/* Mobile brands layout: full-width header, four brand logos in one horizontal row. */
@media (max-width: 767.98px) {
    .brands-panel {
        display: flex !important;
        flex-direction: column !important;
        direction: rtl;
        align-items: stretch !important;
        width: 100%;
        height: auto !important;
        min-height: 0;
        overflow: hidden;
        border: 1px solid #d6ddeb;
        border-radius: 7px;
        background: #fff;
    }
    .brands-panel .brands-panel-title {
        order: 0 !important;
        flex: none !important;
        width: 100% !important;
        min-height: 42px;
        margin: 0 !important;
        padding: 8px 12px !important;
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        color: #fff;
        border-radius: 5px;
        font-size: 13px !important;
        line-height: 1.6;
        text-align: center;
    }
    .brands-panel .brands-slider {
        order: 1 !important;
        flex: none !important;
        width: 100% !important;
        height: 92px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
        direction: rtl;
    }
    .brands-panel .brands-slider .banner-slider-viewport {
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
    }
    .brands-panel .brands-slider .banner-slider-track {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        height: 100% !important;
        gap: 0 !important;
    }
    .brands-panel .brands-slider .brand-slider-item {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25% !important;
        min-width: 0 !important;
        height: 100% !important;
        padding: 12px 0 !important;
        box-sizing: border-box;
    }
    .brands-panel .brands-slider .brand-logo-card {
        width: 100%;
        height: 100%;
        padding: 0 7px !important;
        border: 0 !important;
        border-left: 1px solid #d4dce8 !important;
        border-radius: 0 !important;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .brands-panel .brands-slider .brand-slider-item:last-child .brand-logo-card {
        border-left: 0 !important;
    }
    .brands-panel .brands-slider .brand-logo-card img {
        display: block;
        width: 100% !important;
        max-width: 88px !important;
        height: 58px !important;
        max-height: 58px !important;
        object-fit: contain;
    }
    .brands-panel .brands-slider .banner-slider-btn {
        display: none !important;
    }
}
@media (min-width: 768px) {
    /* قیمت و دکمه افزودن در دو ردیف جدا */
    .product-slider .product-card .product-meta {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* ردیف قیمت و تخفیف */
    .product-slider .product-card .product-price {
        width: 100% !important;
        flex: none !important;
        min-width: 0;
    }

    /* دکمه افزودن در ردیف دوم و تمام عرض */
    .product-slider .product-card .product-card-cart {
        position: static !important;
        display: block !important;
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* دکمه تمام عرض */
    .product-slider .product-card .product-card-cart-btn {
        display: flex !important;
        width: 100% !important;
        min-height: 40px;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px;
        border-radius: 10px;
    }

    .product-card .product-price {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        direction: rtl !important;
        align-items: center;
        gap: 5px 10px;
    }

    /* تخفیف سمت راست */
    .product-card .product-price .product-discount {
        position: static !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        transform: none !important;
        margin: 0 !important;
    }

    /* قیمت نهایی سمت چپ */
    .product-card .product-price ins {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: end !important;
    }

    /* قیمت قبلی زیر قیمت جدید */
    .product-card .product-price del {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: end !important;
    }
}
.hero-slider .carousel-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    #heroCarouselMobile .carousel-item img {
        width: 100%;
        height: auto;
    }
}
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.hero-slider .carousel-item img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-slider .carousel-indicators {
    z-index: 5;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    z-index: 6;
}

/* موبایل */
@media (max-width: 767.98px) {
    #heroCarouselMobile .carousel-control-prev,
    #heroCarouselMobile .carousel-control-next {
        opacity: 0;
        visibility: hidden;
    }

    #heroCarouselMobile .carousel-indicators {
        margin-bottom: 10px;
    }
}
@media (max-width: 767.98px) {
    .banner-slider[data-visible="2"] .banner-slider-track {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        transform: none !important;
        width: 100% !important;
    }

    .banner-slider[data-visible="2"] .banner-slider-track > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }

    .banner-slider[data-visible="2"] .banner-slider-viewport {
        overflow: visible !important;
    }

    .banner-slider[data-visible="2"] .banner-card {
        display: block;
        width: 100%;
    }

    .banner-slider[data-visible="2"] .banner-card img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .banner-slider[data-visible="2"] .banner-slider-btn {
        display: none !important;
    }
}
/* Dots اسلایدر اصلی */
.hero-slider {
    position: relative;
}

.hero-slider .carousel-indicators {
    position: absolute !important;
    right: 24px !important;
    left: auto !important;
    bottom: 14px !important;
    top: auto !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;

    width: auto !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 20 !important;
}

/* نقاط غیرفعال */
.hero-slider .carousel-indicators [data-bs-target] {
    display: block !important;
    flex: 0 0 auto !important;
    width: 4px !important;
    height: 4px !important;
    min-width: 4px !important;

    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;

    background: #252525 !important;
    opacity: .85 !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: all .25s ease !important;
}

/* اسلاید فعال */
.hero-slider .carousel-indicators [data-bs-target].active {
    width: 4px !important;
    height: 20px !important;
    min-width: 4px !important;

    background: #fff !important;
    border-radius: 10px !important;
    opacity: 1 !important;
}

/* موبایل */
@media (max-width: 767.98px) {
    .hero-slider .carousel-indicators {
        right: 12px !important;
        bottom: 8px !important;
        gap: 7px !important;
    }

    .hero-slider .carousel-indicators [data-bs-target].active {
        height: 16px !important;
    }
}
@media (max-width: 767.98px) {

    /* هدر پیشنهاد شگفت‌انگیز */
    #campain-sections .rail-header {
        display: grid !important;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "title title"
            "timer more";
        align-items: center;
        gap: 12px 8px;
        padding: 12px !important;
        direction: rtl;
    }

    /* عنوان در ردیف اول */
    #campain-sections .rail-header h2 {
        grid-area: title;
        width: 100%;
        margin: 0 !important;
        text-align: right;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    #campain-sections .rail-header h2 img {
        max-height: 30px;
        width: auto;
        object-fit: contain;
    }

    /* تایمر در ردیف دوم */
    #campain-sections .rail-header .countdown {
        grid-area: timer;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        min-width: 0;
        margin: 0 !important;
    }

    /* مشاهده همه در کنار تایمر */
    #campain-sections .rail-header > a {
        grid-area: more;
        justify-self: end;
        white-space: nowrap;
        margin: 0 !important;
        font-size: 12px;
    }
}

/* اصلاح هدر در تبلت و لپ‌تاپ با عرض کم */
@media (min-width: 768px) and (max-width: 991.98px) {

    .site-header .header-top {
        display: flex;
        align-items: center;
        min-height: auto;
    }

    /* لوگو سمت راست */
    .site-header .header-brand-col .brand-link {
        position: static;
        transform: none;
        display: inline-flex;
        align-items: center;
    }

    .site-header .brand-logo {
        width: 140px;
        max-width: 100%;
        height: auto;
        margin-top: 0;
    }

    /* دکمه‌های حساب و سبد خرید سمت چپ */
    .site-header .header-actions-col {
        display: flex;
        justify-content: flex-end;
    }

    .site-header .header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* جستجو در ردیف دوم */
    .site-header .site-search-wrap {
        width: 100%;
    }

    .site-header .site-search {
        width: 100%;
    }
}

