/* =====================================================================
   Site Modern Theme — فروشگاه
   این فایل باید آخرین CSS صفحه باشد. برای تغییر رنگ کل سایت فقط
   متغیرهای :root را تغییر دهید.
   ===================================================================== */
:root {
    /* برند (چرم) */
    --s-primary: #7c4a2a;
    --s-primary-600: #643a20;
    --s-primary-700: #4e2d18;
    --s-primary-100: #efe3d8;
    --s-primary-50: #f8f2ec;
    --s-gold: #c08a3e;
    --s-gold-50: #fbf4e8;
    /* وضعیت */
    --s-accent: #d9363e;      /* تخفیف / خطا */
    --s-accent-50: #fdecec;
    --s-success: #15803d;
    --s-success-50: #e9f7ef;
    /* سطوح */
    --s-bg: #f7f4f0;
    --s-surface: #ffffff;
    --s-surface-2: #faf8f5;
    --s-border: #ebe5de;
    --s-border-strong: #ddd4ca;
    /* متن */
    --s-text: #2a2420;
    --s-text-2: #4b433d;
    --s-muted: #857a71;
    /* شکل */
    --s-radius-lg: 20px;
    --s-radius: 16px;
    --s-radius-sm: 12px;
    --s-radius-xs: 8px;
    --s-shadow-sm: 0 1px 2px rgba(42, 36, 32, .05);
    --s-shadow: 0 1px 2px rgba(42, 36, 32, .04), 0 6px 20px rgba(42, 36, 32, .06);
    --s-shadow-hover: 0 4px 10px rgba(42, 36, 32, .06), 0 18px 38px rgba(42, 36, 32, .12);
    --s-ring: 0 0 0 4px rgba(124, 74, 42, .14);
    --s-font: 'IRANSans', 'iran', Tahoma, sans-serif;
    --s-container: 1320px;
    --s-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------------------------------------------------------------------
   1. Base
   --------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.site-modern {
    background-color: var(--s-bg);
    color: var(--s-text);
    font-size: 14px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.site-modern, body.account-page,
body.site-modern input, body.site-modern select, body.site-modern textarea, body.site-modern button,
body.account-page input, body.account-page button {
    font-family: var(--s-font);
}

.site-modern h1, .site-modern h2, .site-modern h3, .site-modern h4, .site-modern h5 { color: var(--s-text); line-height: 1.6; }

.site-modern a { color: inherit; transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.site-modern a:hover { text-decoration: none; color: var(--s-primary); }

.site-modern img, .account-page img { max-width: 100%; height: auto; }
.site-modern iframe, .site-modern video { max-width: 100%; }
.site-modern img.img-missing { object-fit: cover !important; background: #f3eee8; }

.site-modern ::selection { background: var(--s-primary-100); color: var(--s-primary-700); }

.site-modern a:focus-visible, .site-modern button:focus-visible,
.site-modern input:focus-visible, .site-modern select:focus-visible,
.site-modern textarea:focus-visible, .site-modern [tabindex]:focus-visible {
    outline: 2px solid var(--s-primary);
    outline-offset: 2px;
}

/* عرض محتوا: همه صفحات در یک ستون مرکزی با حداکثر عرض مشخص */
.sm-container,
.site-modern .site-main > .container-main,
.site-modern .site-main > main > .container-main,
.site-modern .site-main > main.main-row > .container-main {
    width: 100%;
    max-width: var(--s-container);
    margin-inline: auto;
    padding-inline: 16px;
    float: none;
}

.site-main { display: flow-root; width: 100%; float: none; padding: 20px 0 40px; min-height: 50vh; }
.site-modern .container-main, .site-modern .container-main > .d-block,
.site-modern .main-row, .site-modern .page-content, .site-modern .adplacement-container-row { display: flow-root; }
.site-modern .main-row { float: none; width: 100%; margin: 0; }

/* ---------------------------------------------------------------------
   2. Header
   --------------------------------------------------------------------- */
.site-modern header.sm-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    float: none;
    width: 100%;
    height: auto;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    box-shadow: 0 1px 0 var(--s-border);
    transition: box-shadow .2s ease;
}
.site-modern header.sm-header.is-scrolled { box-shadow: 0 1px 0 var(--s-border), 0 10px 30px rgba(42, 36, 32, .07); }

.sm-header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 76px;
    padding-block: 12px;
}
.sm-header--flip .sm-header-row { flex-direction: row-reverse; }
.sm-header--flip .sm-header-actions { flex-direction: row-reverse; }

/* لوگو */
.sm-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; min-width: 0; }
.sm-logo img { max-height: 52px; width: auto; display: block; }
.sm-logo-text { display: none; font-size: 18px; font-weight: 700; color: var(--s-primary-700); white-space: nowrap; }
.sm-logo--text .sm-logo-text { display: inline; }
.sm-logo:hover .sm-logo-text { color: var(--s-primary); }

/* جستجو */
.sm-search {
    position: relative;
    flex: 1 1 auto;
    max-width: 620px;
    margin-inline: auto;
    display: flex;
    align-items: center;
}
.sm-search-icon { position: absolute; right: 16px; color: var(--s-muted); font-size: 15px; pointer-events: none; }
.site-modern .sm-search-input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 104px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #f3efea;
    color: var(--s-text);
    font-size: 14px;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.site-modern .sm-search-input::placeholder { color: #9b9088; }
.site-modern .sm-search-input:focus { outline: 0; background: #fff; border-color: var(--s-primary); box-shadow: var(--s-ring); }
.sm-search-btn {
    position: absolute;
    left: 6px;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--s-primary);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s ease;
}
.sm-search-btn:hover { background: var(--s-primary-600); }

/* اکشن‌ها */
.sm-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.sm-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--s-border-strong);
    border-radius: 12px;
    color: var(--s-text) !important;
    font-size: 13px;
    white-space: nowrap;
    background: #fff;
}
.sm-login-btn i { font-size: 20px; color: var(--s-primary); }
.sm-login-btn:hover { border-color: var(--s-primary); background: var(--s-primary-50); }

.sm-account { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px 0 14px; border-radius: 12px; cursor: pointer; outline: 0; }
.sm-account:hover, .sm-account:focus-within { background: var(--s-primary-50); }
.sm-icon-btn i { font-size: 24px; color: var(--s-primary); line-height: 1; }
.sm-account-label { font-size: 13px; white-space: nowrap; color: var(--s-text); }
.sm-account-label .fa { margin-right: 4px; color: var(--s-muted); }
.sm-account-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--s-border);
    border-radius: 14px;
    box-shadow: var(--s-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 50;
}
.sm-header--flip .sm-account-menu { left: auto; right: 0; }
.sm-account-menu::before { content: ""; position: absolute; top: -10px; inset-inline: 0; height: 10px; }
.sm-account:hover .sm-account-menu, .sm-account:focus-within .sm-account-menu { opacity: 1; visibility: visible; transform: none; }
.sm-account-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 13px; color: var(--s-text-2); }
.sm-account-menu a i { font-size: 18px; color: var(--s-muted); }
.sm-account-menu a:hover { background: var(--s-primary-50); color: var(--s-primary); }
.sm-account-menu a:hover i { color: var(--s-primary); }
.sm-account-menu .sm-divider { height: 1px; margin: 6px 4px; background: var(--s-border); }
.sm-account-menu a.sm-danger, .sm-account-menu a.sm-danger i { color: var(--s-accent); }
.sm-account-menu a.sm-danger:hover { background: var(--s-accent-50); }

/* سبد خرید (محتوا با Ajax بارگذاری می‌شود) */
.sm-cart { position: relative; width: auto; height: auto; float: none; }
.sm-cart .header-cart-basket { position: relative; }
.sm-cart .cart-basket-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 14px 0 16px;
    border-radius: 12px;
    background: var(--s-primary);
    color: #fff !important;
    white-space: nowrap;
}
.sm-cart .cart-basket-box:hover { background: var(--s-primary-600); color: #fff !important; }
.sm-cart .cart-basket-box .icon-cart { font-size: 22px; line-height: 1; float: none; margin: 0; }
.sm-cart .cart-basket-box .title-cart { display: none; }
.sm-cart .cart-basket-box .price-cart { display: inline-block; font-size: 13px; line-height: 1; }
.sm-cart .cart-basket-box .price-cart span { font-size: 11px; opacity: .85; margin-right: 2px; }
.sm-cart .cart-basket-box .count-cart {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--s-gold);
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}
.sm-cart .widget-shopping-cart {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid var(--s-border);
    border-radius: 16px;
    box-shadow: var(--s-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 60;
    overflow: hidden;
}
.sm-header--flip .sm-cart .widget-shopping-cart { left: auto; right: 0; }
.sm-cart .widget-shopping-cart::before { content: ""; position: absolute; top: -12px; inset-inline: 0; height: 12px; }
.sm-cart .header-cart-basket:hover .widget-shopping-cart,
.sm-cart .header-cart-basket:focus-within .widget-shopping-cart { opacity: 1; visibility: visible; transform: none; }
.sm-cart .widget-shopping-cart-content { padding: 0; }
.sm-cart .product-list-widget { list-style: none; margin: 0; padding: 8px; max-height: 320px; overflow-y: auto; }
.sm-cart .product-list-widget:empty::before { content: "سبد خرید شما خالی است"; display: block; padding: 28px 12px; text-align: center; color: var(--s-muted); font-size: 13px; }
.sm-cart .mini-cart-item { padding: 0; border: 0; }
.sm-cart .mini-cart-item-content { position: relative; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 10px 10px 10px 34px; border-radius: 12px; }
.sm-cart .mini-cart-item-content:hover { background: var(--s-surface-2); }
.sm-cart .mini-cart-item-image { grid-row: 1 / span 2; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #f3eee8; }
.sm-cart .mini-cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.sm-cart .product-name-card { font-size: 13px; color: var(--s-text); line-height: 1.6; align-self: end; }
.sm-cart .quantity { margin: 2px 0 0 !important; float: none; }
.sm-cart .quantity-Price-amount { font-size: 13px; font-weight: 700; color: var(--s-primary); }
.sm-cart .mini-cart-item .remove { position: absolute; left: 8px; top: 10px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: var(--s-muted); }
.sm-cart .mini-cart-item .remove:hover { background: var(--s-accent-50); color: var(--s-accent); }
.sm-cart .mini-card-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; padding: 12px 16px; border-top: 1px solid var(--s-border); background: var(--s-surface-2); font-size: 13px; }
.sm-cart .mini-card-total br { display: none; }
.sm-cart .mini-card-total .price-total { font-weight: 700; color: var(--s-text); }
.sm-cart .mini-card-total .text-danger { flex-basis: 100%; font-size: 11px; font-weight: normal; color: var(--s-muted) !important; }
.sm-cart .mini-card-button { padding: 12px 16px 16px; }
.sm-cart .mini-card-button .view-card { display: block; width: 100%; padding: 11px; border-radius: 12px; background: var(--s-primary); color: #fff !important; text-align: center; font-size: 14px; }
.sm-cart .mini-card-button .view-card:hover { background: var(--s-primary-600); }

/* همبرگری (فقط موبایل) */
.site-modern .sm-burger {
    position: static;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 1px solid var(--s-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}
.site-modern .sm-burger span { display: block; width: 100% !important; height: 2px !important; margin: 0 !important; border-radius: 2px; background: var(--s-text) !important; position: static !important; top: auto !important; right: auto !important; left: auto !important; transform: none !important; }

/* منوی اصلی */
.site-modern nav.sm-nav {
    float: none;
    width: 100%;
    height: auto;
    margin: 0;
    line-height: normal;
    background: transparent;
    border-top: 1px solid var(--s-border);
}
.site-modern .sm-nav > .sm-container { position: relative; }
.site-modern .sm-nav .divider-space-card { display: none !important; } /* سبد خرید در ردیف بالا نمایش داده می‌شود */
.site-modern .sm-nav ul.menu-ul {
    position: static !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 0;
}
.site-modern .sm-nav--center ul.menu-ul { justify-content: center; }
.site-modern .sm-nav ul.menu-ul > li.menu-item { position: relative; padding: 0; display: block; }
.site-modern .sm-nav ul.menu-ul > li.menu-item > a.current-link-menu {
    display: block;
    padding: 14px 14px;
    font-size: 14px;
    color: var(--s-text-2);
    line-height: 1.6;
}
.site-modern .sm-nav ul.menu-ul > li.menu-item > a.current-link-menu::before {
    bottom: 6px;
    right: 14px;
    left: 14px;
    width: auto;
    height: 2px;
    border-radius: 2px;
    background: var(--s-primary);
    transform: scaleX(0);
    transition: transform .2s var(--s-ease);
}
.site-modern .sm-nav ul.menu-ul > li.menu-item:hover > a.current-link-menu { color: var(--s-primary); }
.site-modern .sm-nav ul.menu-ul > li.menu-item:hover > a.current-link-menu::before { width: auto; transform: scaleX(1); }

/* فلش کنار آیتم‌های دارای زیرمنو */
.site-modern .sm-nav ul.menu-ul > li.menu-item > a .sm-caret {
    display: inline-block;
    margin-right: 4px;
    font-size: 13px;
    color: var(--s-muted);
    transition: transform .2s var(--s-ease), color .15s ease;
}
.site-modern .sm-nav ul.menu-ul > li.menu-item:hover > a .sm-caret { transform: rotate(180deg); color: var(--s-primary); }
.site-modern .sm-nav ul.menu-ul > li.sm-has-sub:hover > a.current-link-menu { background: var(--s-primary-50); border-radius: 12px 12px 0 0; }

/* زیرمنوها */
.site-modern .sm-nav ul.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 230px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--s-border);
    border-top: 2px solid var(--s-primary);
    border-radius: 0 0 14px 14px;
    box-shadow: var(--s-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .2s var(--s-ease), visibility .18s;
    z-index: 40;
    display: block !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
}
.site-modern .sm-nav li:hover > ul.sub-menu, .site-modern .sm-nav li:focus-within > ul.sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-modern .sm-nav ul.sub-menu li { position: relative; display: block; width: 100%; float: none; padding: 0; line-height: normal; }
.site-modern .sm-nav ul.sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: normal;
    color: var(--s-text-2);
    line-height: 1.6;
    white-space: nowrap;
}
.site-modern .sm-nav ul.sub-menu a i { float: none; line-height: 1; font-size: 14px; color: var(--s-muted); transform: none; transition: transform .2s var(--s-ease), color .15s ease; }
.site-modern .sm-nav ul.sub-menu li:hover > a { background: var(--s-primary-50); color: var(--s-primary); padding-right: 16px; }
.site-modern .sm-nav ul.sub-menu li:hover > a i { color: var(--s-primary); transform: translateX(-3px); }
.site-modern .sm-nav ul.sub-menu ul.sub-menu { top: -9px; right: calc(100% + 6px); border-top-width: 1px; border-top-color: var(--s-border); border-radius: 14px; }
.site-modern .sm-nav ul.sub-menu ul.sub-menu::before { content: ""; position: absolute; top: 0; bottom: 0; right: -8px; width: 8px; } /* پل hover بین دو زیرمنو */

/* پنل برندها (عرض کامل ردیف منو، وسط‌چین) */
.site-modern .sm-nav ul.menu-ul > li.sm-has-mega { position: static; }
.site-modern .sm-brands-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: min(860px, calc(100% - 32px));
    margin-inline: auto;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--s-border);
    border-top: 2px solid var(--s-primary);
    border-radius: 0 0 18px 18px;
    box-shadow: var(--s-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .2s var(--s-ease), visibility .18s;
    z-index: 40;
    text-align: right;
}
.site-modern .sm-nav li.sm-has-mega:hover > .sm-brands-panel,
.site-modern .sm-nav li.sm-has-mega:focus-within > .sm-brands-panel { opacity: 1; visibility: visible; transform: none; }
.sm-brands-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--s-border); }
.sm-brands-title { font-size: 14px; font-weight: 700; color: var(--s-text); }
.site-modern .sm-brands-all { font-size: 12px; color: var(--s-primary); display: inline-flex; align-items: center; gap: 6px; }
.site-modern .sm-brands-all:hover { color: var(--s-primary-700); }
.sm-brands-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; max-height: 360px; overflow-y: auto; }
.site-modern .sm-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px 8px;
    border: 1px solid var(--s-border);
    border-radius: 14px;
    background: var(--s-surface-2);
    text-align: center;
}
.site-modern .sm-brand-card:hover { border-color: var(--s-primary); background: #fff; box-shadow: var(--s-shadow); transform: translateY(-2px); }
.sm-brand-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 64px; }
.sm-brand-logo img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; filter: grayscale(.25); transition: filter .2s ease; }
.sm-brand-card:hover .sm-brand-logo img { filter: none; }
.sm-brand-initial { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--s-primary-100); color: var(--s-primary-700); font-size: 20px; font-weight: 700; }
.sm-brand-name { font-size: 12px; color: var(--s-text-2); line-height: 1.5; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1199.98px) { .sm-brands-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* منوی کشویی موبایل */
.site-modern nav.sidebar {
    width: 300px;
    max-width: 86vw;
    right: -320px;
    padding-bottom: 24px;
    background: #fff;
    color: var(--s-text);
    box-shadow: none;
    opacity: 1;
}
.site-modern nav.sidebar.open { right: 0; box-shadow: -20px 0 50px rgba(0, 0, 0, .18); }
@media (min-width: 992px) { .site-modern nav.sidebar, .site-modern header .overlay { display: none !important; } }
.site-modern nav.sidebar .nav-header { height: auto; padding: 16px; border-bottom: 1px solid var(--s-border); background: var(--s-surface-2); }
.site-modern nav.sidebar .header-cover { display: none; }
.site-modern nav.sidebar .nav-header .logo-wrap { width: auto; margin: 0; padding: 0; border: 0; text-align: right; }
.site-modern nav.sidebar .nav-header .logo-wrap .logo-icon img { width: auto; max-width: 140px; max-height: 44px; }
.site-modern header .overlay { background: rgba(30, 22, 16, .45); backdrop-filter: blur(2px); }

.sm-mnav { padding: 12px; }
.site-modern .sm-mnav-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 12px;
    background: var(--s-primary);
    color: #fff !important;
    font-size: 14px;
}
.site-modern .sm-mnav-login:hover { background: var(--s-primary-600); }
.sm-mnav-login i { font-size: 18px; }
.sm-mnav-list, .sm-mnav-sub { list-style: none; margin: 0; padding: 0; }
.sm-mnav-label { padding: 14px 10px 6px; font-size: 11px; font-weight: 700; color: var(--s-muted); letter-spacing: .3px; }
.sm-mnav-row { display: flex; align-items: center; gap: 4px; border-radius: 10px; }
.sm-mnav-row:hover { background: var(--s-surface-2); }
.site-modern .sm-mnav-row > a {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px;
    font-size: 14px;
    color: var(--s-text-2);
    line-height: 1.5;
}
.site-modern .sm-mnav-row > a:hover { color: var(--s-primary); }
.sm-mnav-row > a i { font-size: 18px; color: var(--s-muted); }
.sm-mnav-toggle {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--s-muted);
    cursor: pointer;
}
.sm-mnav-toggle:hover { background: var(--s-primary-50); color: var(--s-primary); }
.sm-mnav-toggle i { font-size: 16px; transition: transform .2s var(--s-ease); }
.sm-mnav-item.is-open > .sm-mnav-row { background: var(--s-primary-50); }
.sm-mnav-item.is-open > .sm-mnav-row > a { color: var(--s-primary); font-weight: 700; }
.sm-mnav-item.is-open > .sm-mnav-row > .sm-mnav-toggle i { transform: rotate(180deg); color: var(--s-primary); }
.sm-mnav-sub { display: none; margin: 4px 14px 6px 0; padding-right: 8px; border-right: 2px solid var(--s-primary-100); }
.sm-mnav-item.is-open > .sm-mnav-sub { display: block; }
.site-modern .sm-mnav-sub .sm-mnav-row > a { font-size: 13px; padding: 8px 10px; }
.sm-mnav-item.is-open > .sm-mnav-brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 6px 8px 6px 0; }
.site-modern .sm-mnav-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border: 1px solid var(--s-border);
    border-radius: 12px;
    background: #fff;
    font-size: 11px;
    color: var(--s-text-2);
    text-align: center;
}
.site-modern .sm-mnav-brand:hover { border-color: var(--s-primary); color: var(--s-primary); }
.sm-mnav-brand img { max-height: 36px; width: auto; object-fit: contain; }
.sm-mnav-brand span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------------
   3. Common blocks: cards, section headers, sliders, banners
   --------------------------------------------------------------------- */
.site-modern .slider-widget-products,
.site-modern .post-item-cart,
.site-modern .content-widget,
.site-modern .shop-archive-content,
.site-modern .product-comment,
.site-modern .blog-home .post-item,
.site-modern .widget-posts,
.site-modern section.widget-product-categories,
.site-modern .product.type-product,
.site-modern .content-widget-amazing,
.site-modern .profile-stats {
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-lg);
    box-shadow: var(--s-shadow);
}

.site-modern .slider-widget-products { padding: 0; overflow: hidden; margin-bottom: 8px; }
.site-modern .slider-widget-products .widget.card { border: 0; box-shadow: none; background: transparent; }

/* سربرگ بخش‌ها */
.site-modern .slider-widget-products > header.card-header,
.site-modern .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    background: transparent;
    border-bottom: 1px solid var(--s-border);
}
.site-modern .card-header .title-one,
.site-modern .card-header .card-title { position: relative; margin: 0; padding-right: 14px; font-size: 17px; font-weight: 700; color: var(--s-text); border: 0; }
.site-modern .card-header .title-one::before,
.site-modern .card-header .card-title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 4px;
    height: 18px;
    margin-top: -9px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--s-gold), var(--s-primary));
}
.site-modern .card-header .title-one a, .site-modern .main-category-link { color: var(--s-text) !important; font-size: 17px !important; font-weight: 700; }
.site-modern .view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--s-primary-50);
    color: var(--s-primary) !important;
    font-size: 12px;
    white-space: nowrap;
}
.site-modern .view-all-link:hover { background: var(--s-primary); color: #fff !important; }
.site-modern .view-all-link i { font-size: 10px; }

/* اسلایدر اصلی */
.site-modern .slider-main-container { margin-bottom: 16px; border-radius: var(--s-radius-lg); overflow: hidden; box-shadow: var(--s-shadow); background: #ede6de; }
.site-modern .slider-main-container .carousel, .site-modern .slider-main-container .carousel-inner { border-radius: var(--s-radius-lg); overflow: hidden; }
.site-modern .slider-main-container img { border-radius: 0; width: 100%; display: block; min-height: 160px; object-fit: cover; }
.site-modern .carousel-indicators { margin-bottom: 14px; gap: 6px; }
.site-modern .carousel-indicators li { width: 8px !important; height: 8px !important; margin: 0 !important; border: 0 !important; border-radius: 999px !important; background: rgba(255, 255, 255, .65) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); opacity: 1; transition: width .25s var(--s-ease), background .2s; }
.site-modern .carousel-indicators li.active { width: 26px !important; background: #fff !important; }
.site-modern .slider-main-container img.img-missing { max-height: 380px; }
.site-modern .carousel-control-prev, .site-modern .carousel-control-next {
    top: 50%;
    bottom: auto;
    width: 44px;
    height: 44px;
    margin: -22px 16px 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--s-text);
    opacity: 0;
    box-shadow: var(--s-shadow);
    transition: opacity .2s ease, background .2s;
}
.site-modern .slider-main-container:hover .carousel-control-prev,
.site-modern .slider-main-container:hover .carousel-control-next { opacity: 1; }
.site-modern .carousel-control-prev:hover, .site-modern .carousel-control-next:hover { background: #fff; color: var(--s-primary); }
.site-modern .carousel-control-prev span, .site-modern .carousel-control-next span { font-size: 22px; line-height: 44px; }

/* بنرهای تبلیغاتی */
.site-modern .adplacement-item { display: block; border-radius: var(--s-radius); overflow: hidden; box-shadow: var(--s-shadow-sm); background: #ede6de; transition: transform .25s var(--s-ease), box-shadow .25s ease; }
.site-modern .adplacement-item:hover { transform: translateY(-3px); box-shadow: var(--s-shadow-hover); }
.site-modern .adplacement-item img, .site-modern .widget-banner img, .site-modern .adplacement-container-row img:not(.product-image):not(.round) { border-radius: var(--s-radius); }
.site-modern .adplacement-sponsored_box img { display: block; width: 100%; min-height: 90px; object-fit: cover; }
.site-modern .adplacement-container-row > [class*="col-"] { margin-bottom: 16px; }
/* ردیف اسلایدرهای تبلیغاتی: همه اسلایدرهای یک محل نمایش در یک ردیف کنار هم (تعداد ستون از --ad-cols) */
.site-modern .adplacement-container-row.sm-ad-row {
    display: grid !important;
    grid-template-columns: repeat(var(--ad-cols, 4), minmax(0, 1fr));
    gap: 16px;
    float: none;
    margin-bottom: 16px;
}
.site-modern .sm-ad-row > a.adplacement-item { margin: 0; }
.site-modern .sm-ad-row .adplacement-sponsored_box { float: none; }
.site-modern .sm-ad-row .adplacement-sponsored_box img { min-height: 0; height: auto; }
@media (max-width: 767.98px) {
    .site-modern .adplacement-container-row.sm-ad-row { gap: 8px; }
    .site-modern .sm-ad-row a.adplacement-item, .site-modern .sm-ad-row img { border-radius: 10px !important; }
}

/* ناوبری کروسل‌ها */
.site-modern .owl-carousel .owl-nav { pointer-events: none; }
.site-modern .owl-carousel .owl-nav button.owl-prev,
.site-modern .owl-carousel .owl-nav button.owl-next {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1px solid var(--s-border) !important;
    color: var(--s-text) !important;
    box-shadow: var(--s-shadow) !important;
    pointer-events: auto;
    font-size: 20px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s, opacity .2s;
}
.site-modern .owl-carousel .owl-nav button:hover { background: var(--s-primary) !important; border-color: var(--s-primary) !important; color: #fff !important; }
.site-modern .owl-carousel .owl-nav button.disabled { opacity: 0; pointer-events: none; }
.site-modern .owl-carousel .owl-nav button i { font-size: 20px; line-height: 1; }

/* ---------------------------------------------------------------------
   4. Product cards
   --------------------------------------------------------------------- */
.site-modern .product-carousel { padding: 18px 18px 22px; }
.site-modern .product-carousel .owl-stage-outer { padding: 4px 2px 10px; }
.site-modern .product-carousel .owl-nav { top: 45%; left: 0; right: 0; width: auto; padding: 0 8px; }

.site-modern .product-box {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius);
    box-shadow: none;
    overflow: hidden;
    transition: transform .25s var(--s-ease), box-shadow .25s ease, border-color .2s;
}
.site-modern .product-box:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--s-shadow-hover); }

.site-modern .product-image-container, .site-modern .product-box .thumb {
    position: relative;
    padding: 0;
    margin: 0;
    background: #f5f0ea;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.site-modern .product-image-container > a, .site-modern .product-box .thumb > a { display: block; width: 100%; height: 100%; }
.site-modern .product-image,
.site-modern .product-box .thumb img.round {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 0 !important;
    transition: transform .5s var(--s-ease);
}
.site-modern .product-box:hover .product-image,
.site-modern .product-box:hover .thumb img.round { transform: scale(1.05); }

/* نشان‌ها */
.site-modern .discount-badge, .site-modern .promotion-badge, .site-modern .out-of-stock-badge, .site-modern .discount-d {
    position: absolute;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}
.site-modern .discount-badge, .site-modern .promotion-badge { top: 12px; right: 12px; left: auto; background: var(--s-accent); color: #fff; }
.site-modern .discount-d { top: 12px; left: 12px; right: auto; background: #fff; color: var(--s-accent); width: auto; height: auto; }
.site-modern .discount-d span { color: inherit; font-size: 11px; }
.site-modern .out-of-stock-badge { top: auto; bottom: 12px; right: 12px; left: auto; background: rgba(42, 36, 32, .82); color: #fff; }
.site-modern .product-box .thumb .product-rate { position: absolute; bottom: 10px; left: 10px; z-index: 2; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 10px; line-height: 1.8; }
.site-modern .product-box .thumb .product-rate:empty { display: none; }
.site-modern .product-rate .fa-star.active, .site-modern .product-rate .fa-star { color: var(--s-gold); }
.site-modern .product-box .thumb > a > br { display: none; }
.site-modern .product-box .thumb .wrapper { width: 100%; height: 100%; position: relative; }
.site-modern .product-box .thumb .wrapper .description { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .55); opacity: 1; visibility: visible; }
.site-modern .product-box .thumb .wrapper .description_content { margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(42, 36, 32, .82); color: #fff; font-size: 12px; }

/* متن کارت */
.site-modern .product-info,
.site-modern .product-box .title,
.site-modern .product-box .price {
    padding-inline: 14px;
}
.site-modern .product-info { display: flex; flex: 1; flex-direction: column; gap: 4px; padding-block: 12px 14px; }
.site-modern .product-box .product-title,
.site-modern .product-box .title { margin: 0; height: auto; min-height: 44px; font-size: 14px; font-weight: 500; line-height: 1.6; text-align: right; }
.site-modern .product-box .product-title a,
.site-modern .product-box .title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--s-text) !important;
}
.site-modern .product-box .product-title a:hover, .site-modern .product-box .title a:hover { color: var(--s-primary) !important; }
.site-modern .product-code { margin: 0; font-size: 12px; color: var(--s-muted); }
.site-modern .price-container { margin-top: auto; padding-top: 6px; }
.site-modern .price-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.site-modern .old-price { font-size: 12px; color: #a39a92; text-decoration: line-through; }
.site-modern .new-price, .site-modern .single-price { font-size: 16px; font-weight: 700; color: var(--s-text); }
.site-modern .new-price { color: var(--s-accent); }

.site-modern .view-all-products { height: 100%; min-height: 260px; border: 2px dashed var(--s-border-strong); border-radius: var(--s-radius); background: var(--s-surface-2); }
.site-modern .view-all-products a { height: 100%; color: var(--s-primary) !important; }
.site-modern .view-all-products i { font-size: 34px; }
.site-modern .view-all-products:hover { background: var(--s-primary-50); border-color: var(--s-primary); }

/* ---------------------------------------------------------------------
   5. Breadcrumb
   --------------------------------------------------------------------- */
.site-modern #breadcrumb { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 0; background: transparent; float: none; width: 100%; }
.site-modern #breadcrumb > i { position: static; font-size: 18px; color: var(--s-muted); width: auto; height: auto; line-height: 1; margin: 0; float: none; }
.site-modern #breadcrumb nav { flex: 1; min-width: 0; }
.site-modern .breadcrumb { margin: 0; padding: 0; background: transparent; font-size: 13px; flex-wrap: wrap; }
.site-modern .breadcrumb-item, .site-modern .breadcrumb-item a { color: var(--s-muted); }
.site-modern .breadcrumb-item a:hover { color: var(--s-primary); }
.site-modern .breadcrumb-item.active { color: var(--s-text); }
.site-modern .breadcrumb-item + .breadcrumb-item::before { color: #c8bfb6; content: "‹"; padding-inline: 8px; }

/* ---------------------------------------------------------------------
   6. Search / archive page
   --------------------------------------------------------------------- */
.site-modern section.widget-product-categories { height: auto !important; min-height: 0 !important; margin-bottom: 16px; padding: 18px 18px 14px; }
.site-modern .widget-product-categories .cat-header { margin: 0 0 10px; padding: 0 0 12px; border-bottom: 1px solid var(--s-border); }
.site-modern .widget-product-categories .cat-header h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--s-text); line-height: 1.6; height: auto; }
.site-modern .widget-product-categories .product-filter, .site-modern .widget-product-categories .card { height: auto !important; border: 0; background: transparent; box-shadow: none; }
.site-modern .widget-product-categories label { font-size: 13px; color: var(--s-text-2); cursor: pointer; }
.site-modern .shop-archive-sidebar, .site-modern .sidebar-archive { height: auto !important; }

.site-modern .shop-archive-content { padding: 18px 20px; margin-top: 0 !important; }
.site-modern .archive-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--s-border); border-radius: 0; box-shadow: none; background: transparent; margin-bottom: 18px; height: auto; }
.site-modern .archive-header .sort-tabs { float: none; }
.site-modern .product-box .thumb { padding: 0 !important; }
.site-modern .archive-header-title { flex-basis: 100%; margin: 0; font-size: 20px; font-weight: 700; color: var(--s-text); }
.site-modern .sort-tabs h4 { margin: 0; font-size: 13px; color: var(--s-muted); font-weight: normal; }
.site-modern .nav-sort-tabs-res { width: auto; flex: 1; }
.site-modern .sort-tabs-options { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
.site-modern .sort-tabs-options .nav-link { padding: 5px 14px !important; border: 1px solid var(--s-border) !important; border-radius: 999px !important; color: var(--s-text-2) !important; font-size: 13px; background: #fff; }
.site-modern .sort-tabs-options .nav-link:hover { border-color: var(--s-primary) !important; color: var(--s-primary) !important; }
.site-modern .sort-tabs-options .nav-link.active { background: var(--s-primary) !important; border-color: var(--s-primary) !important; color: #fff !important; }
.site-modern .product-items .row > [class*="col-"] { margin-bottom: 20px !important; }
.site-modern .product-items .product-box .title { padding-top: 12px; }
.site-modern .product-items .product-box .price { padding-bottom: 14px; margin-top: auto; text-align: right; }
.site-modern .product-box .price del, .site-modern .product-box .price del span { color: #a39a92; font-size: 12px; }
.site-modern .product-box .price ins, .site-modern .product-box .price ins span { color: var(--s-text); text-decoration: none; font-weight: 700; font-size: 15px; }

/* اسلایدر قیمت */
.site-modern .noUi-target { background: var(--s-border); border: 0; box-shadow: none; height: 6px; border-radius: 999px; }
.site-modern .noUi-connect { background: var(--s-primary) !important; }
.site-modern .noUi-handle { width: 20px !important; height: 20px !important; top: -8px !important; border: 3px solid var(--s-primary) !important; border-radius: 50% !important; background: #fff !important; box-shadow: var(--s-shadow) !important; }
.site-modern .noUi-handle::before, .site-modern .noUi-handle::after { display: none; }

/* ---------------------------------------------------------------------
   7. Product details
   --------------------------------------------------------------------- */
.site-modern .product.type-product { padding: 24px; margin-bottom: 20px; display: flow-root; }
.site-modern .product-gallery .gallery-img { border-radius: var(--s-radius); overflow: hidden; background: #f5f0ea; }
.site-modern .product-gallery .gallery-img > a img, .site-modern .product-gallery .gallery-img img.zoom-img { border-radius: var(--s-radius); }
.site-modern #gallery-slider .item, .site-modern .gallery-items li { border-radius: 10px; overflow: hidden; border: 1px solid var(--s-border); }
.site-modern ul.gallery-actions { position: static !important; display: flex; flex-wrap: wrap; gap: 8px; width: auto !important; list-style: none; padding: 0; margin: 0 0 12px !important; transform: none !important; }
.site-modern ul.gallery-actions li { position: static !important; margin: 0 !important; float: none; }
.site-modern .product-gallery .gallery-item { float: none; width: 100%; }
.site-modern .product-gallery .gallery-item > div { position: static !important; height: auto !important; transform: none !important; }
.site-modern ul.gallery-actions li a, .site-modern ul.gallery-actions li button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid var(--s-border) !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: var(--s-text-2) !important;
    font-size: 10px;
    box-shadow: none !important;
}
.site-modern ul.gallery-actions li a:hover { border-color: var(--s-primary) !important; color: var(--s-primary) !important; }
.site-modern ul.gallery-actions li i { font-size: 20px; }

.site-modern .product-info .product-headline { margin-bottom: 6px; border: 0; padding: 0; }
.site-modern .product-info h1.product-title { display: inline; font-size: 22px; font-weight: 700; color: var(--s-text); line-height: 1.7; }
.site-modern .product-info .ProductCode { font-size: 13px; color: var(--s-muted); margin-right: 6px; }
.site-modern .product-title-en { font-size: 13px; color: var(--s-muted); }
.site-modern .product-config-wrapper { display: flow-root; }
.site-modern .product-directory { padding: 14px 0; margin: 10px 0; border-block: 1px dashed var(--s-border); }
.site-modern .product-directory ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.site-modern .product-directory ul li { font-size: 13px; color: var(--s-muted); }
.site-modern .product-directory ul li a { color: var(--s-primary) !important; border: 0 !important; }
.site-modern .product-directory ul li a:hover { text-decoration: underline; }
.site-modern .product-variants > span, .site-modern .product-params h3, .site-modern .product-params > span { font-size: 14px; font-weight: 700; color: var(--s-text); }
.site-modern .js-product-variants li label, .site-modern .product-variants li label { border-radius: 12px !important; border-color: var(--s-border-strong) !important; }
.site-modern .js-product-variants input:checked + label, .site-modern .product-variants input:checked + label { border-color: var(--s-primary) !important; box-shadow: var(--s-ring); }
.site-modern .product-params ul { padding: 0; list-style: none; }
.site-modern .product-params ul li { padding: 4px 0; font-size: 13px; color: var(--s-text-2); }

/* جعبه خرید */
.site-modern .product-seller-info {
    position: sticky;
    top: 160px;
    padding: 18px;
    background: var(--s-surface-2);
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-lg);
    box-shadow: none;
}
.site-modern .product-seller-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 12px 2px; border-bottom: 1px solid var(--s-border); }
.site-modern .product-seller-row:last-child { border-bottom: 0; }
.site-modern .product-seller-row .title { font-size: 13px; color: var(--s-muted); margin: 0 !important; }
.site-modern .product-seller-row .product-name { font-size: 13px; font-weight: 700; color: var(--s-text) !important; pointer-events: none; }
.site-modern .product-seller-row.price .amount, .site-modern .product-seller-row.price .SpecialPrice { color: var(--s-text); font-size: 18px; font-weight: 800; }
.site-modern .product-seller-row.price del .amount, .site-modern .product-seller-row.price del span { font-size: 13px; font-weight: normal; color: #a39a92; }
.site-modern .product-seller-row .Sold { color: var(--s-accent) !important; }
.site-modern .product-seller-row.CommentBlog { display: block; }
.site-modern .product-seller-row.CommentBlog br { display: none; }
.site-modern .product-seller-row.CommentBlog .form-control { margin-top: 8px; }

.site-modern .quantity { display: inline-flex; align-items: center; gap: 0; height: 40px; border: 1px solid var(--s-border-strong); border-radius: 12px; background: #fff; overflow: hidden; position: relative; }
.site-modern .quantity input[type="number"] { width: 46px; height: 100%; border: 0; text-align: center; font-size: 15px; font-weight: 700; background: transparent; -moz-appearance: textfield; padding: 0; float: none; }
.site-modern .quantity input::-webkit-outer-spin-button, .site-modern .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.site-modern .quantity-nav { display: contents; }
.site-modern .quantity-button {
    position: static !important;
    width: 38px !important;
    height: 100% !important;
    display: grid !important;
    place-items: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--s-primary) !important;
    font-size: 18px !important;
    cursor: pointer;
    user-select: none;
    transform: none !important;
}
.site-modern .quantity-button:hover { background: var(--s-primary-50) !important; }
.site-modern .quantity-button.quantity-up { order: -1; }

.site-modern .btn-add-to-cart, .site-modern .product-seller-info .btn,
.site-modern .product-seller-info a.btn-add-to-cart, .site-modern .AddToCart {
    /* display عمداً !important نیست؛ اسکریپت صفحه دکمه‌های غیرمرتبط را با display:none پنهان می‌کند */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    margin-top: 6px;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--s-primary) !important;
    background-image: none !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(124, 74, 42, .25) !important;
}
.site-modern .btn-add-to-cart:hover, .site-modern .product-seller-info .btn:hover, .site-modern .AddToCart:hover { background: var(--s-primary-600) !important; transform: translateY(-1px); }

.site-modern .product-usp, .site-modern .product-feature { border-radius: var(--s-radius); }

/* تب‌های توضیحات/مشخصات/نظرات */
.site-modern .tabs .tab-box ul.tab { border: 0; gap: 4px; }
.site-modern .tabs .tab-box ul.tab li a { border: 0 !important; border-radius: 12px 12px 0 0; color: var(--s-muted); }
.site-modern .tabs .tab-box ul.tab li a.active { color: var(--s-primary); box-shadow: inset 0 -3px 0 var(--s-primary); background: transparent; }

/* ---------------------------------------------------------------------
   8. Content pages: blog, news, FAQ, contact, about
   --------------------------------------------------------------------- */
.site-modern .blog-home .post-item, .site-modern .post-item-cart { padding: 26px 28px; margin-bottom: 20px; }
.site-modern .blog-home .post-item h2 { font-size: 22px; font-weight: 700; color: var(--s-text); margin: 0 0 12px !important; }
.site-modern .blog-home .post-item p, .site-modern .content-widget p, .site-modern .post-item-cart p { color: var(--s-text-2); line-height: 2.1; }
.site-modern .content-widget { padding: 24px; margin-bottom: 20px; }
.site-modern .content-widget:empty { display: none; }
.site-modern .content-widget img, .site-modern .post-item img { border-radius: var(--s-radius); }

.site-modern .widget-posts { padding: 18px; }
.site-modern .header-sidebar { padding: 0 0 12px; margin-bottom: 12px !important; border-bottom: 1px solid var(--s-border); }
.site-modern .header-sidebar h3 { position: relative; margin: 0; padding-right: 14px; font-size: 15px; font-weight: 700; }
.site-modern .header-sidebar h3::before { content: ""; position: absolute; right: 0; top: 50%; width: 4px; height: 16px; margin-top: -8px; border-radius: 4px; background: linear-gradient(180deg, var(--s-gold), var(--s-primary)); }
.site-modern .content-sidebar:empty::before { content: "هنوز مطلبی منتشر نشده است."; display: block; padding: 18px 0 6px; color: var(--s-muted); font-size: 13px; text-align: center; }

/* کارت‌های وبلاگ / خبر */
.site-modern .sm-post-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--s-border); border-radius: var(--s-radius); overflow: hidden; transition: transform .25s var(--s-ease), box-shadow .25s; }
.site-modern .sm-post-card:hover { transform: translateY(-4px); box-shadow: var(--s-shadow-hover); }
.site-modern .sm-post-card .sm-post-thumb { aspect-ratio: 16 / 10; background: #f3eee8; overflow: hidden; }
.site-modern .sm-post-card .sm-post-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.site-modern .sm-post-card .sm-post-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 16px 18px 18px; }
.site-modern .sm-post-card h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.7; }
.site-modern .sm-post-card p { margin: 0; font-size: 13px; color: var(--s-muted); line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.site-modern .sm-post-card .sm-post-meta { margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--s-muted); display: flex; align-items: center; gap: 6px; }
.site-modern .sm-post-card .sm-post-more { color: var(--s-primary); font-size: 13px; font-weight: 700; }

/* حالت خالی */
.sm-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 48px 20px; text-align: center; color: var(--s-muted); }
.sm-empty i { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--s-primary-50); color: var(--s-primary); font-size: 32px; }
.sm-empty h3 { margin: 6px 0 0; font-size: 17px; color: var(--s-text); }
.sm-empty p { margin: 0; font-size: 13px; }
.sm-empty .sm-btn { margin-top: 8px; }

/* سربرگ صفحه */
.sm-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.sm-page-head h1 { margin: 0; font-size: 24px; font-weight: 800; color: var(--s-text); }
.sm-page-head p { margin: 4px 0 0; color: var(--s-muted); font-size: 14px; }

/* دکمه عمومی */
.sm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; background: var(--s-primary); color: #fff !important; font-size: 14px; cursor: pointer; }
.sm-btn:hover { background: var(--s-primary-600); color: #fff !important; }
.sm-btn--ghost { background: #fff; border-color: var(--s-border-strong); color: var(--s-text) !important; }
.sm-btn--ghost:hover { background: var(--s-primary-50); border-color: var(--s-primary); color: var(--s-primary) !important; }

/* سوالات متداول (آکاردئون) */
.sm-faq { display: flex; flex-direction: column; gap: 10px; }
.sm-faq details { background: #fff; border: 1px solid var(--s-border); border-radius: var(--s-radius); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.sm-faq details[open] { border-color: var(--s-primary-100); box-shadow: var(--s-shadow); }
.sm-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 700; color: var(--s-text); }
.sm-faq summary::-webkit-details-marker { display: none; }
.sm-faq summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--s-primary-50); color: var(--s-primary); font-size: 18px; font-weight: 400; transition: transform .2s; }
.sm-faq details[open] summary::after { content: "−"; }
.sm-faq .sm-faq-body { padding: 0 20px 18px; color: var(--s-text-2); line-height: 2.1; font-size: 14px; }

/* تماس با ما */
.sm-contact { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 20px; align-items: stretch; }
.sm-contact-card { padding: 26px; background: #fff; border: 1px solid var(--s-border); border-radius: var(--s-radius-lg); box-shadow: var(--s-shadow); }
.sm-contact-card h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.sm-contact-card > p { margin: 0 0 18px; color: var(--s-muted); font-size: 13px; }
.sm-contact-item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--s-border); }
.sm-contact-item i { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--s-primary-50); color: var(--s-primary); font-size: 20px; }
.sm-contact-item span { display: block; font-size: 12px; color: var(--s-muted); }
.sm-contact-item strong, .sm-contact-item a { display: block; font-size: 14px; font-weight: 500; color: var(--s-text); line-height: 1.9; direction: inherit; }
.sm-contact-item a:hover { color: var(--s-primary); }
.sm-contact-map { min-height: 380px; border-radius: var(--s-radius-lg); overflow: hidden; border: 1px solid var(--s-border); box-shadow: var(--s-shadow); background: #ede6de; }
.sm-contact-map iframe, .sm-contact-map > div, .sm-contact-map > * { width: 100% !important; height: 100% !important; min-height: 380px; border: 0; display: block; }

/* سبد خرید خالی و پیام‌ها */
.site-modern .cart-empty { padding: 30px 0; }
.site-modern .cart-empty .cart-empty-icon i { color: var(--s-primary); }
.site-modern .cart-empty-title { color: var(--s-text); font-weight: 700; }

/* ---------------------------------------------------------------------
   9. Buttons, forms, tables, alerts, pagination, modals
   --------------------------------------------------------------------- */
.site-modern .btn, .account-page .btn { border-radius: 12px; transition: transform .1s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s; }
.site-modern .btn:active, .account-page .btn:active { transform: translateY(1px); }
.site-modern .btn-primary, .site-modern .btn-info, .site-modern .checkout-button, .account-page .btn-primary, .account-page .btn-info,
.site-modern .btn-success {
    background-color: var(--s-primary) !important;
    border-color: var(--s-primary) !important;
    background-image: none !important;
    color: #fff !important;
}
.site-modern .btn-primary:hover, .site-modern .btn-info:hover, .site-modern .checkout-button:hover, .account-page .btn-primary:hover, .account-page .btn-info:hover,
.site-modern .btn-success:hover {
    background-color: var(--s-primary-600) !important;
    border-color: var(--s-primary-600) !important;
    box-shadow: 0 8px 20px rgba(124, 74, 42, .25);
}
.site-modern .btn-outline-primary { color: var(--s-primary); border-color: var(--s-primary); }
.site-modern .btn-outline-primary:hover { background: var(--s-primary); color: #fff; }
.site-modern .btn-danger { background-color: var(--s-accent); border-color: var(--s-accent); }
.site-modern .checkout-button { display: block; border-radius: 14px; text-align: center; padding: 12px 18px; }

.site-modern .form-control, .account-page .form-control,
.account-page input[type="text"], .account-page input[type="password"], .account-page input[type="email"],
.account-page input[type="tel"], .account-page input[type="number"] {
    min-height: 44px;
    border-radius: 12px !important;
    border: 1px solid var(--s-border-strong) !important;
    background-color: #fff !important;
    color: var(--s-text);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.site-modern textarea.form-control { min-height: 90px; }
.site-modern .form-control:focus, .account-page .form-control:focus, .account-page input:focus {
    border-color: var(--s-primary) !important;
    box-shadow: var(--s-ring) !important;
    outline: 0;
}
.site-modern label { color: var(--s-text-2); }
.site-modern .custom-control-input:checked ~ .custom-control-label::before,
.site-modern input[type="checkbox"]:checked, .site-modern input[type="radio"]:checked { accent-color: var(--s-primary); }
.site-modern input[type="checkbox"], .site-modern input[type="radio"] { accent-color: var(--s-primary); }

.site-modern .alert, .account-page .alert { border-radius: 14px; border: 0; padding: 12px 16px; }
.site-modern .alert-success { background: var(--s-success-50); color: var(--s-success); }
.site-modern .alert-danger { background: var(--s-accent-50); color: #9f1d24; }
.site-modern .alert-info, .site-modern .alert-warning { background: var(--s-gold-50); color: #7a5520; }

.site-modern .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--s-radius); }
.site-modern .table { background: #fff; margin-bottom: 0; }
.site-modern .table thead th { background: var(--s-surface-2); border-bottom: 1px solid var(--s-border) !important; border-top: 0 !important; color: var(--s-muted); font-size: 13px; font-weight: 700; white-space: nowrap; padding: 14px 12px; }
.site-modern .table td { border-top: 1px solid var(--s-border) !important; vertical-align: middle; padding: 14px 12px; font-size: 13px; }
.site-modern .table-hover tbody tr:hover { background: var(--s-surface-2); }

.site-modern .pagination { gap: 6px; flex-wrap: wrap; }
.site-modern .pagination .page-link, .site-modern .pagination-product a {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid var(--s-border) !important;
    border-radius: 12px !important;
    color: var(--s-text-2);
    background: #fff;
}
.site-modern .pagination .page-link:hover, .site-modern .pagination-product a:hover { border-color: var(--s-primary) !important; color: var(--s-primary); background: var(--s-primary-50); }
.site-modern .pagination .page-item.active .page-link, .site-modern .pagination-product a.active, .site-modern .pagination-product .active a { background: var(--s-primary); border-color: var(--s-primary) !important; color: #fff; }

.site-modern .modal-content { border: 0; border-radius: var(--s-radius-lg); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); overflow: hidden; }
.site-modern .modal-header { border-bottom: 1px solid var(--s-border); padding: 16px 20px; }
.site-modern .modal-footer { border-top: 1px solid var(--s-border); }

.site-modern .nav-tabs { border-bottom: 1px solid var(--s-border); }
.site-modern .nav-tabs .nav-link { border: 0; color: var(--s-muted); }
.site-modern .nav-tabs .nav-link.active { color: var(--s-primary); background: transparent; box-shadow: inset 0 -2px 0 var(--s-primary); }

.site-modern .swal2-popup { border-radius: 20px !important; font-family: var(--s-font) !important; }
.site-modern .swal2-styled.swal2-confirm { background: var(--s-primary) !important; border-radius: 12px !important; }

/* ---------------------------------------------------------------------
   10. User panel (پنل کاربری)
   --------------------------------------------------------------------- */
.site-modern .profile-page-aside, .site-modern .profile-box, .site-modern .profile-content,
.site-modern .profile-navbar, .site-modern .profile-menu, .site-modern .profile-orders,
.site-modern .profile-addresses, .site-modern .profile-stats {
    background: #fff;
    border: 1px solid var(--s-border) !important;
    border-radius: var(--s-radius-lg) !important;
    box-shadow: var(--s-shadow) !important;
}
.site-modern .profile-menu ul, .site-modern .profile-menu-items { padding: 8px; margin: 0; list-style: none; }
.site-modern .profile-menu ul li a, .site-modern .profile-menu-items li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--s-text-2);
    font-size: 14px;
}
.site-modern .profile-menu ul li a:hover, .site-modern .profile-menu-items li a:hover,
.site-modern .profile-menu ul li a.active, .site-modern .profile-menu-items li a.active { background: var(--s-primary-50); color: var(--s-primary); }
.site-modern .profile-menu ul li a i, .site-modern .profile-menu-items li a i { font-size: 20px; color: var(--s-muted); }
.site-modern .profile-menu ul li a:hover i, .site-modern .profile-menu-items li a.active i { color: var(--s-primary); }

/* ---------------------------------------------------------------------
   11. Footer
   --------------------------------------------------------------------- */
.site-modern footer.sm-footer {
    float: none;
    width: 100%;
    margin-top: 40px;
    background: #fff;
    border-top: 1px solid var(--s-border);
    color: var(--s-text-2);
}
.sm-features { padding: 24px 0; border-bottom: 1px solid var(--s-border); background: var(--s-surface-2); }
.sm-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.sm-feature { display: flex; align-items: center; gap: 14px; padding: 6px 4px; }
.sm-feature-icon { flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff; border: 1px solid var(--s-border); color: var(--s-primary); font-size: 22px; overflow: hidden; }
.sm-feature-icon i { font-size: 22px; color: var(--s-primary); }
.sm-feature-icon img, .sm-feature-icon svg { width: 34px; height: 34px; object-fit: contain; }
.sm-feature-text { display: flex; flex-direction: column; min-width: 0; }
.sm-feature-text strong { font-size: 14px; font-weight: 700; color: var(--s-text); line-height: 1.7; }
.sm-feature-text small { font-size: 12px; color: var(--s-muted); line-height: 1.7; }

.sm-footer-main { padding: 40px 0 28px; }
.sm-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; }
.sm-footer-logo { display: inline-block; margin-bottom: 10px; font-size: 20px; font-weight: 800; color: var(--s-primary-700) !important; }
.sm-footer-brand p { margin: 0 0 16px; font-size: 13px; line-height: 2.1; color: var(--s-muted); text-align: right !important; }
.sm-footer-col h3 { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--s-text); }
.sm-footer-col h3 a { color: inherit; }
.sm-footer-col ul { margin: 0; padding: 0; list-style: none; }
.sm-footer-col li { margin-bottom: 8px; }
.sm-footer-col li a { font-size: 13px; color: var(--s-muted); display: inline-block; }
.sm-footer-col li a:hover { color: var(--s-primary) !important; transform: translateX(-3px); }
.sm-social-title { display: block; margin-bottom: 10px; font-size: 13px; color: var(--s-text-2); }
.sm-social-list { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
/* آیکن‌های شبکه اجتماعی بدون کادر و رنگ زمینه */
.sm-social-list a { display: grid; place-items: center; width: auto; height: auto; padding: 0; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; color: var(--s-primary); font-weight: 700; font-size: 14px; transition: transform .2s ease, opacity .2s ease; }
.sm-social-list a:hover { background: transparent !important; color: var(--s-primary); opacity: .75; transform: translateY(-2px); }
.sm-social-list a img { width: 28px; height: 28px; object-fit: contain; }
/* نمادهای اعتماد: یک ردیف تمام‌عرض، کنار هم */
.sm-badges-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px dashed var(--s-border-strong);
}
.sm-badges-title { font-size: 14px; font-weight: 700; color: var(--s-text); }
/* اینماد، زرین‌پال و سایر نمادها همیشه در یک ردیف کنار هم */
.sm-badges { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 12px; margin: 0; }
.sm-badge script, .sm-badge style { display: none !important; }
.sm-badge #zarinpal { margin: 0 !important; }
.sm-badge {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    transition: transform .2s ease;
}
.sm-badge:hover { transform: translateY(-2px); }
/* کد اسکریپت‌ها معمولاً با p/center/br و ابعاد ثابت می‌آید؛ همه را یکدست می‌کنیم */
.sm-badge > p, .sm-badge > center, .sm-badge > div, .sm-badge > span { display: contents; }
.sm-badge br { display: none; }
.sm-badge a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sm-badge img { display: block; max-width: 100% !important; max-height: 86px !important; width: auto !important; height: auto !important; margin: 0 !important; object-fit: contain; cursor: pointer; }
@media (max-width: 575.98px) {
    .sm-badges-row { justify-content: center; }
    .sm-badge { width: 88px; height: 88px; }
    .sm-badge img { max-height: 72px !important; }
}
.sm-copyright { padding: 16px 0; border-top: 1px solid var(--s-border); background: var(--s-surface-2); }
.sm-copyright p { margin: 0; font-size: 12px; color: var(--s-muted); text-align: center; }

/* back to top */
.site-modern .progress-wrap { border-radius: 50%; box-shadow: var(--s-shadow); right: auto; left: 24px; bottom: 24px; }
.site-modern .progress-wrap::after { color: var(--s-primary); }
.site-modern .progress-wrap svg.progress-circle path { stroke: var(--s-primary); }

/* ---------------------------------------------------------------------
   12. Account pages (ورود / ثبت نام)
   --------------------------------------------------------------------- */
body.account-page {
    background:
        radial-gradient(1000px 520px at 100% -10%, #f1e4d6 0%, transparent 60%),
        radial-gradient(800px 480px at -10% 110%, #f6ecdf 0%, transparent 55%),
        var(--s-bg);
    min-height: 100vh;
    color: var(--s-text);
}
.account-page .page-account-box { padding: 48px 0; }
.account-page .ds-userlogin .account-box, .account-page .account-box {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--s-border);
    box-shadow: 0 30px 70px rgba(42, 36, 32, .10);
    overflow: hidden;
}
.account-page .account-box-logo { font-size: 22px; font-weight: 800; color: var(--s-text); }
.account-page .account-box-headline a, .account-page .account-box-headline a span { color: var(--s-muted); }
.account-page .account-box-headline a.active, .account-page .account-box-headline a.active span { color: var(--s-primary) !important; }
.account-page .account-box-headline a.active { background: #fff !important; }
.account-page .account-box-headline a:not(.active) { background: var(--s-surface-2) !important; }
.account-page .account-box-title { color: var(--s-text); font-weight: 700; border-bottom-color: var(--s-border) !important; }
.account-page a { color: var(--s-primary); }
.account-page .btn-primary, .account-page .btn-info, .account-page button[type="submit"], .account-page input[type="submit"] {
    background: var(--s-primary) !important;
    border-color: var(--s-primary) !important;
    background-image: none !important;
    color: #fff !important;
    min-height: 46px;
    border-radius: 12px !important;
}
.account-page .btn-primary:hover, .account-page button[type="submit"]:hover { background: var(--s-primary-600) !important; }
.account-page input[type="checkbox"] { accent-color: var(--s-primary); }
body.account-page .page-account-box .ds-userlogin .account-box .account-box-headline a.active,
body.account-page .page-account-box .ds-userlogin .account-box .account-box-headline a.active span { color: var(--s-primary) !important; }
body.account-page .page-account-box .ds-userlogin .account-box .account-box-headline a.active { box-shadow: inset 0 -3px 0 var(--s-primary); }
body.account-page .account-box-content a.account-link-password { color: var(--s-primary) !important; border-bottom-color: var(--s-primary-100) !important; }

/* ---------------------------------------------------------------------
   13. Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .sm-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .sm-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
    .site-modern header.sm-header { position: sticky; }
    .sm-header-row { flex-wrap: wrap; gap: 10px 12px; min-height: 0; padding-block: 10px; }
    .site-modern .sm-burger { display: flex; order: 0; }
    .sm-logo { order: 1; flex: 1; justify-content: center; }
    .sm-logo img { max-height: 40px; }
    .sm-header-actions { order: 2; gap: 8px; }
    .sm-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
    .site-modern .sm-search-input { height: 44px; padding-left: 16px; }
    .sm-search-btn { display: none; }
    .sm-hide-sm, .sm-account-label { display: none; }
    .sm-login-btn { width: 44px; padding: 0; justify-content: center; }
    .sm-login-btn > span { display: none; }
    .sm-account { padding: 0; width: 44px; justify-content: center; border: 1px solid var(--s-border); }
    .sm-cart .cart-basket-box { width: 44px; padding: 0; justify-content: center; }
    .sm-cart .cart-basket-box .price-cart { display: none; }
    .sm-cart .widget-shopping-cart { position: fixed; top: 72px; left: 16px; right: 16px; width: auto; max-width: none; }
    .site-modern nav.sm-nav { display: none; }
    .sm-header--flip .sm-header-row { flex-direction: row; }

    .site-modern .product-seller-info { position: static; margin-top: 16px; }
    .site-modern .product.type-product { padding: 16px; }
    .sm-contact { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    body.site-modern { font-size: 13px; }
    .site-main { padding: 14px 0 28px; }
    .sm-container,
    .site-modern .site-main > .container-main,
    .site-modern .site-main > main > .container-main { padding-inline: 12px; }
    .site-modern .container, .site-modern .container-fluid { padding-right: 12px; padding-left: 12px; }
    .site-modern h1 { font-size: 20px; }
    .site-modern h2 { font-size: 18px; }
    .site-modern .slider-widget-products > header.card-header, .site-modern .card-header { padding: 14px 16px; }
    .site-modern .card-header .title-one a, .site-modern .main-category-link { font-size: 15px !important; }
    .site-modern .product-carousel { padding: 12px 12px 16px; }
    .site-modern .product-info { padding: 10px 12px 12px; }
    .site-modern .product-box .product-title, .site-modern .product-box .title { font-size: 13px; min-height: 42px; }
    .site-modern .new-price, .site-modern .single-price { font-size: 14px; }
    .site-modern .slider-main-container, .site-modern .slider-main-container .carousel,
    .site-modern .slider-main-container .carousel-inner { border-radius: var(--s-radius); }
    .site-modern .carousel-control-prev, .site-modern .carousel-control-next { display: none; }
    .site-modern .adplacement-container-row > .col-6 { padding-inline: 6px; }
    .site-modern .shop-archive-content { padding: 14px; }
    .site-modern .archive-header-title { font-size: 17px; }
    .site-modern .product-items .row > [class*="col-"] { flex: 0 0 50%; max-width: 50%; padding-inline: 6px; margin-bottom: 12px !important; }
    .site-modern .product-info h1.product-title { font-size: 18px; }
    .site-modern .blog-home .post-item, .site-modern .post-item-cart, .site-modern .content-widget { padding: 18px; }
    .sm-page-head h1 { font-size: 20px; }
    .sm-footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
    .sm-features-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .sm-feature { flex-direction: column; text-align: center; gap: 8px; }
    .sm-feature-icon { width: 46px; height: 46px; }
    .sm-footer-main { padding: 28px 0 18px; }
    .site-modern .modal-dialog { margin: 10px; }
    .site-modern .btn-add-to-cart, .site-modern .checkout-button { width: 100%; }
    .site-modern .progress-wrap { left: 14px; bottom: 14px; }
    .account-page .page-account-box { padding: 16px 0; }
    .account-page .col-lg-6.mx-auto { padding: 0 8px; }
    /* جلوگیری از زوم خودکار iOS روی فیلدها */
    .site-modern input, .site-modern select, .site-modern textarea,
    .account-page input, .account-page select, .account-page textarea { font-size: 16px !important; }
}

@media (max-width: 400px) {
    .sm-footer-grid { grid-template-columns: 1fr; }
    .site-modern .swal2-popup { width: 92% !important; }
}

/* ---------------------------------------------------------------------
   14. Motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .site-modern *, .site-modern *::before, .site-modern *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
