:root {
    --bg: #f0f0f1;
    --surface: #fff;
    --text: #3f4064;
    --muted: #81858b;
    --line: #e0e0e2;
    --primary: #ef4056;
    --primary-dark: #db2f45;
    --shadow: 0 10px 30px rgba(30, 30, 60, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Yekan", "Vazirmatn", sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1360px, 94%);
    margin: 0 auto;
}

/* اضافه کردن به استایل‌های موجود */

.hero-slide-card img {
    max-width: 90%;
    height: auto;
    margin: 16px auto 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 760px) {
    .hero-slide-card img {
        max-width: 100%;
        margin-top: 12px;
    }
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.t-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 12px;
}

.t-header-right,
.t-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-pill {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 9px 12px;
    border-radius: 10px;
    font-family: "YekanBakh", "Yekan", sans-serif;
    font-size: 0.9rem;
}

.t-header-search-box {
    width: min(620px, 56vw);
}

.input-t-header-search {
    width: 100%;
    border: 1px solid transparent;
    background: #f1f2f4;
    border-radius: 12px;
    height: 46px;
    padding: 0 14px;
    font-family: inherit;
}

.input-t-header-search:focus {
    outline: 0;
    background: #fff;
    border-color: #c4c4c8;
}

.t-header-account a,
.btn-link-spoiler {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 8px 12px;
    font-size: 0.85rem;
    background: #fff;
}

.t-header-basket a {
    display: block;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    position: relative;
}

.t-header-basket a::before {
    content: "🛒";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

nav {
    border-top: 1px solid #f3f3f4;
}

.nav {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-level-1-ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-level-1-li>a,
.categoreis {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #62666d;
    font-size: 0.85rem;
}

.nav-level-1-li>a:hover,
.categoreis:hover {
    background: #f5f5f5;
    color: var(--text);
}

.has-sub {
    position: relative;
}

.sub-menu-categoreis {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: min(780px, 92vw);
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px;
    z-index: 10;
}

.has-sub:hover .sub-menu-categoreis {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 12px;
}

.sub-menu-right-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 300px;
    overflow: auto;
}

.sub-menu-right-list a,
.sub-menu-categoreis-li a,
.section-header a {
    color: #4f4f66;
    font-size: 0.85rem;
}

.sub-menu-right-list-a {
    padding: 8px;
    border-radius: 8px;
}

.sub-menu-right-list-a:hover {
    background: #f8f8f9;
}

.sub-menu-categoreis-ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.hero-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 14px 0;
}

.hero-strip-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    font-size: 0.85rem;
}

.m-page {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
}

.m-slideshow {
    background: linear-gradient(140deg, #ef4056, #c72362);
    border-radius: 16px;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.m-slideshow .slides {
    display: none;
    height: 320px;
}

.m-slideshow .slides.active {
    display: grid;
    place-items: center;
}

.hero-slide-card {
    color: #fff;
    text-align: center;
    width: min(88%, 760px);
}

.hero-slide-card h2 {
    margin: 10px 0 8px;
    font-size: clamp(1.3rem, 2.3vw, 2rem);
}

.hero-slide-card p {
    margin: 0;
    color: #ffe6ea;
}

.hero-slide-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    color: #2f2f4d;
    user-select: none;
}

.prev {
    left: 12px;
}

.next {
    right: 12px;
}

.progress {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.progress .item {
    width: 32px;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.item-inner {
    width: 0;
    height: 100%;
    background: #fff;
    transition: width 0.35s;
}

.m-banners {
    display: grid;
    gap: 12px;
}

.banner-box {
    min-height: 154px;
    border-radius: 16px;
    padding: 16px;
    color: #fff;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 5px;
}

.banner-box--red {
    background: linear-gradient(145deg, #ef4056, #a81c56);
}

.banner-box--blue {
    background: linear-gradient(145deg, #19a7f6, #115ad4);
}

.slider-specials {
    margin: 20px 0 0;
}

.slider-specials section {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
}

.banner-specials {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.banner-specials h3 {
    margin: 0;
}

.btn-slider,
.btn-login {
    border: 0;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    padding: 10px 14px;
    cursor: pointer;
}

.btn-login:hover,
.btn-slider:hover {
    background: var(--primary-dark);
}

.slider-scroll {
    display: flex;
    gap: 12px;
    overflow: auto;
    scroll-behavior: smooth;
    padding-bottom: 6px;
}

.slide {
    min-width: 230px;
}

.box-slides {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    min-height: 100%;
}

.box-slides-img {
    background: #f7f7f8;
    border-radius: 10px;
    min-height: 170px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
}

.box-slides-img img {
    width: 100%;
    max-height: 170px;
    object-fit: contain;
}

.c-product-box__title {
    font-size: 0.9rem;
    line-height: 1.9;
    min-height: 52px;
}

.c-price__value {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.c-price__value del {
    color: #9f9fb0;
    font-size: 0.8rem;
}

.c-price__discount-oval {
    align-self: flex-start;
    background: #ef394e;
    color: #fff;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 0.73rem;
}

.c-price__value-wrapper {
    color: #2a2a49;
    font-weight: 700;
}

.c-price__currency {
    font-size: 0.8rem;
    color: var(--muted);
}

.empty-state {
    color: var(--muted);
    display: block;
    padding: 16px;
}

.semi-modal-layout {
    display: grid;
    place-items: center;
    padding: 18px 0;
}

.c-account-box,
.c-form-account,
.admin-table,
.bank-cards-checkout {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.c-account-box {
    width: min(430px, 100%);
    padding: 18px;
}

.c-account-box__logo {
    font-family: "YekanBakh", "Yekan", sans-serif;
    color: var(--primary);
    font-size: 1rem;
}

.c-account-box__headline {
    margin: 8px 0 14px;
    font-size: 1.2rem;
}

.c-form-account {
    padding: 14px;
}

.c-form-account__title {
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #66678a;
}

.c-form-account__row {
    margin-bottom: 12px;
}

.c-ui-input,
.c-ui-input__field {
    display: block;
    width: 100%;
}

.c-ui-input__field {
    height: 42px;
    border: 1px solid #d7d7da;
    border-radius: 9px;
    padding: 0 12px;
    font-family: inherit;
    background: #fff;
}

textarea.c-ui-input__field {
    height: auto;
    padding: 10px 12px;
}

.c-ui-input__field:focus {
    outline: 0;
    border-color: #9e9fb6;
}

.admin-table {
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #efeff1;
    padding: 10px;
    text-align: right;
}

.c-footer {
    margin-top: 30px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.c-footer__feature-innerbox {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px 0 8px;
}

.c-footer__badge {
    background: #f8f8f9;
    border: 1px solid #ececef;
    border-radius: 10px;
    padding: 9px;
    text-align: center;
    font-size: 0.86rem;
}

.c-footer__middlebar {
    padding: 14px 0;
}

.c-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.c-footer__links-ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.goToTop {
    position: fixed;
    left: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: var(--shadow);
    display: none;
}

.goToTop::before {
    content: "↑";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
}

.goToTop.show {
    display: block;
}

@media (max-width: 980px) {
    .m-page {
        grid-template-columns: 1fr;
    }

    .hero-strip {
        grid-template-columns: 1fr;
    }

    .c-footer__feature-innerbox {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .t-header {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .t-header-search-box {
        width: 100%;
    }

    .sub-menu-categoreis {
        display: none !important;
    }

    .nav-level-1-ul {
        overflow: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        width: 100%;
        padding-bottom: 6px;
    }

    .c-footer__links,
    .c-footer__feature-innerbox {
        grid-template-columns: 1fr;
    }
}