/* قالب مدرن فروشگاه — 2026 */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&display=swap');

body.shop-modern {
    background: #f3f5f9;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.75;
    color: #334155;
    overflow-x: clip;
    max-width: 100%;
}

html:has(body.shop-modern) {
    overflow-x: clip;
}
body.shop-modern #wrapper,
body.shop-modern .shop-page-container {
    width: 100%;
    max-width: 1440px;
    padding: 0 20px 36px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0 auto;
    overflow-x: clip;
}

body.shop-modern .shop-site-header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-bottom: 1px solid #e8edf3;
    margin: 0 0 18px;
    box-shadow: 0 2px 16px rgba(15, 23, 42, .05);
    position: sticky;
    top: 0;
    z-index: 200;
}

body.shop-modern .shop-site-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 20px 12px;
    box-sizing: border-box;
}

body.shop-modern .shop-site-header.header {
    width: 100%;
    height: auto;
    margin: 0 0 18px;
    padding: 0;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: block;
    flex-wrap: nowrap;
}

/* ——— ردیف بالا: لوگو + منو + نام ——— */
.shop-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.shop-header-row--top {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.shop-header-brand {
    display: flex;
    align-items: center;
    gap: 10px 16px;
    min-width: 0;
    flex: 1;
    flex-wrap: wrap;
}

.shop-header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    line-height: 0;
    order: 1;
}

.shop-header-nav {
    flex: 0 1 auto;
    min-width: 0;
    order: 2;
}

.shop-header-title {
    display: block;
    order: 3;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 800;
    color: #0f172a !important;
    text-decoration: none;
    line-height: 1.45;
    letter-spacing: -.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(280px, 32vw);
    flex-shrink: 1;
}

.shop-header-title:hover {
    color: #ea580c !important;
}

.shop-header-logo img {
    max-height: 48px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.shop-header-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-header-nav__list li {
    margin: 0;
    padding: 0;
    float: none;
}

.shop-header-nav__link,
.shop-header-nav__list a {
    display: inline-block;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #475569 !important;
    text-decoration: none !important;
    border-radius: 8px;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.shop-header-nav__link:hover,
.shop-header-nav__list a:hover {
    background: #fff7ed;
    color: #c2410c !important;
}

.shop-header-nav__link--studio {
    background: #ede9fe;
    color: #6d28d9 !important;
    border: 1px solid #c4b5fd;
}

.shop-header-nav__link--studio:hover {
    background: #ddd6fe !important;
    color: #5b21b6 !important;
}

/* ——— ردیف پایین: دسته‌بندی + جستجو + سبد ——— */
.shop-header-row--toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.shop-header-categories {
    position: relative;
    flex-shrink: 0;
}

.shop-header-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #1e293b;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
}

.shop-header-cat-btn:hover,
.shop-header-cat-btn.is-open {
    border-color: #f97316;
    background: #fff7ed;
    color: #c2410c;
}

.shop-header-cat-btn__icon {
    display: flex;
    align-items: center;
    color: #64748b;
}

.shop-header-cat-btn.is-open .shop-header-cat-btn__icon,
.shop-header-cat-btn:hover .shop-header-cat-btn__icon {
    color: #ea580c;
}

.shop-header-cat-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    max-width: min(420px, 92vw);
    max-height: min(70vh, 480px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .14);
    padding: 8px;
    z-index: 300;
}

.shop-header-cat-dropdown.is-open {
    display: block;
}

.shop-header-cat-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 4px 0;
}

.shop-header-cat-item:last-child {
    border-bottom: none;
}

.shop-header-cat-link {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b !important;
    text-decoration: none !important;
    border-radius: 8px;
    transition: background .12s, color .12s;
}

.shop-header-cat-link:hover {
    background: #fff7ed;
    color: #c2410c !important;
}

.shop-header-cat-children {
    padding: 0 8px 8px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-header-cat-sublink {
    display: block;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b !important;
    text-decoration: none !important;
    border-radius: 6px;
}

.shop-header-cat-sublink:hover {
    background: #f8fafc;
    color: #ea580c !important;
}

.shop-header-search {
    flex: 1 1 auto;
    min-width: 0;
}

.shop-header-search__box {
    display: flex;
    align-items: center;
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.shop-header-search__box:focus-within {
    border-color: #f97316;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, .1);
}

.shop-header-search__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-right: 4px;
    padding-left: 12px;
    color: #94a3b8;
}

.shop-header-search__box:focus-within .shop-header-search__icon {
    color: #f97316;
}

.shop-header-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 11px 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    outline: none;
}

.shop-header-search__input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.shop-header-search__btn {
    flex-shrink: 0;
    border: none;
    background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 18px;
    cursor: pointer;
    transition: filter .15s;
    white-space: nowrap;
}

.shop-header-search__btn:hover {
    filter: brightness(1.05);
}

/* سبد — فقط آیکون */
.shop-header-cart {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #334155 !important;
}

.shop-header-cart--icon-only {
    padding: 6px;
    background: transparent;
    border: none;
    border-radius: 10px;
    min-width: 0;
}

.shop-header-cart--icon-only:hover {
    background: transparent;
    transform: none;
    color: #ea580c !important;
}

.shop-header-cart__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
}

.shop-header-cart--icon-only:hover .shop-header-cart__icon {
    color: #ea580c;
}

.shop-header-cart__badge {
    position: absolute;
    top: -6px;
    left: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 999px;
    border: 2px solid #fff;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(239, 68, 68, .4);
}

.shop-header-cart__text {
    display: none;
}

/* سازگاری با کلاس‌های قدیمی */
body.shop-modern .nameofs {
    display: block;
    font-size: clamp(15px, 2.2vw, 20px);
    font-weight: 800;
    color: #0f172a !important;
    margin: 0;
    padding: 0;
    float: none;
    text-shadow: none;
    text-align: right;
}

body.shop-modern img.logo {
    float: none;
    max-height: 52px;
    max-width: 160px;
    padding: 0;
}

body.shop-modern .shop-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 13px;
    color: #334155 !important;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    text-decoration: none !important;
}

body.shop-modern .shop-site-footer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    margin: 32px 0 0;
    padding: 0;
    float: none;
    box-shadow: none;
    border-radius: 0;
    overflow-x: clip;
}

body.shop-modern .shop-site-footer__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 20px 24px;
    box-sizing: border-box;
    width: 100%;
}

body.shop-modern .shop-site-footer.footer,
body.shop-modern .footer.shop-site-footer {
    width: 100%;
    max-width: 100%;
    margin: 32px 0 0;
    padding: 0;
    background: #f1f5f9;
    border: none;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    box-shadow: none;
    float: none;
    box-sizing: border-box;
}

.shop-footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.shop-footer-widget {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.shop-footer-widget__title {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fff7ed;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.shop-footer-latest {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.shop-footer-latest a {
    display: block;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569 !important;
    text-decoration: none !important;
    line-height: 1.5;
    transition: background .12s, color .12s;
}

.shop-footer-latest a:hover {
    background: #fff7ed;
    color: #c2410c !important;
}

.shop-footer-widget--seller .shop-seller-box {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.shop-footer-widget--seller .shop-seller-box h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.shop-footer-widget--seller .shop-seller-box p,
.shop-footer-widget--seller .shop-seller-box li {
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}

.shop-footer-widget--seller .shop-seller-box ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.shop-footer-trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-footer-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.shop-footer-trust a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569 !important;
    text-decoration: none !important;
}

.shop-footer-trust a:hover {
    color: #c2410c !important;
}

.shop-footer-trust img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.shop-footer-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-footer-stats li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 13px;
}

.shop-footer-stats li span {
    color: #64748b;
    font-weight: 500;
}

.shop-footer-stats li strong {
    color: #0f172a;
    font-weight: 800;
}

.shop-footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.shop-footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-bottom: 14px;
}

.shop-footer-nav__link,
.shop-footer-nav a {
    font-size: 13px;
    font-weight: 700;
    color: #0d9488 !important;
    text-decoration: none !important;
}

.shop-footer-nav__link:hover,
.shop-footer-nav a:hover {
    color: #c2410c !important;
}

.shop-footer-legal {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.85;
    color: #64748b;
    text-align: justify;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.shop-footer-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.shop-footer-copy img {
    max-width: 100%;
    max-height: 36px;
    width: auto;
    height: auto;
}

.shop-footer-brand-link {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8 !important;
    text-decoration: none !important;
}

.shop-footer-brand-link:hover {
    color: #ea580c !important;
}

body.shop-modern.shop-layout-product .get-mar {
    grid-template-columns: 1fr;
    gap: 0;
}

body.shop-modern.shop-layout-product .main-content {
    grid-column: 1;
    max-width: none;
}

body.shop-modern .shop-site-header.header,
body.shop-modern .shop-site-header .header {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    box-sizing: border-box;
}

/* legacy .footer — بدون margin کناری که باعث اسکرول افقی شود */
body.shop-modern .footer.shop-site-footer {
    color: inherit;
}

body.shop-modern .pager a,
body.shop-modern .pager span {
    border-radius: 8px;
    padding: 6px 10px;
    margin: 2px;
}

body.shop-modern .header + .clear,
body.shop-modern .get-mar > .clear,
body.shop-modern .main-content > .clear {
    display: none !important;
}

body.shop-modern .get-mar {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
}

body.shop-modern .main-content {
    width: 100%;
    min-width: 0;
    float: none;
    margin: 0;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
}

body.shop-modern .sidebar {
    display: none;
}

body.shop-modern .sidebar-normal-widget {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    padding: 12px 14px;
    margin: 0 0 14px;
    box-shadow: 0 1px 6px rgba(15, 23, 42, .05);
}

body.shop-modern .sidebar-normal-widget h3.cat,
body.shop-modern .sidebar-normal-widget h3.enam,
body.shop-modern .sidebar-normal-widget h3.latest-p,
body.shop-modern .sidebar-normal-widget h3.stat {
    background: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}
body.shop-modern .sidebar-normal-widget h3 span {
    display: block !important;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    width: auto;
    height: auto;
}
body.shop-modern .sidebar-normal-widget .main {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 4px 0;
}

/* باکس دسته‌بندی — تم نارنجی */
body.shop-modern .sidebar-widget-categories {
    border: 1px solid #fed7aa;
    border-top: 3px solid #f97316;
    background: linear-gradient(180deg, #fffaf5 0%, #fff 40%);
}

body.shop-modern .sidebar-widget-categories h3.cat {
    border-bottom: 2px solid #ffedd5;
}

body.shop-modern .sidebar-widget-categories h3.cat span {
    color: #c2410c;
}

body.shop-modern .sidebar-widget-categories .groupss {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.shop-modern .shop-cat-item {
    position: relative;
}

body.shop-modern .sidebar-widget-categories .shop-cat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    margin: 0;
    background: #fff;
    border: 1px solid #fed7aa;
    border-right: 3px solid #f97316;
    border-radius: 10px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    white-space: normal;
    transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}

body.shop-modern .sidebar-widget-categories .shop-cat-link::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f97316;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px #ffedd5;
}

body.shop-modern .sidebar-widget-categories .shop-cat-link:hover {
    background: #fff7ed;
    border-color: #fb923c;
    color: #c2410c;
    box-shadow: 0 2px 8px rgba(249, 115, 22, .15);
}

body.shop-modern .shop-cat-toggle {
    position: absolute;
    left: 8px;
    top: 10px;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: 1px solid #fdba74;
    border-radius: 8px;
    background: #fff7ed url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center no-repeat;
    cursor: pointer;
    float: none;
}

body.shop-modern .shop-cat-toggle.is-open {
    background-color: #ffedd5;
    transform: rotate(180deg);
}

body.shop-modern .shop-cat-children {
    display: none;
    margin: 6px 0 2px;
    padding: 4px 0 4px 12px;
    border-right: 2px dashed #fdba74;
}

body.shop-modern .sidebar-widget-categories .shop-cat-sub {
    display: block;
    padding: 7px 10px;
    margin: 4px 0;
    border-right: none;
    border-radius: 8px;
    background: #fffaf5;
    color: #b45309;
    font-size: 12px;
    font-weight: 500;
    transition: background .2s, color .2s;
}

body.shop-modern .sidebar-widget-categories .shop-cat-sub:hover {
    background: #ffedd5;
    color: #c2410c;
}

body.shop-modern .shop-cat-item:has(.shop-cat-toggle) .shop-cat-link {
    padding-left: 40px;
}

/* آخرین محصولات */
body.shop-modern .sidebar-widget-latest h3.latest-p span {
    color: #0f766e;
}

body.shop-modern .shop-latest-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.shop-modern .shop-latest-list li {
    margin: 0 0 6px;
    padding: 0;
}

body.shop-modern .shop-latest-list li a {
    display: block;
    padding: 9px 12px;
    border-radius: 9px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 13px;
    line-height: 1.55;
    transition: background .2s, border-color .2s, color .2s;
}

body.shop-modern .shop-latest-list li a:hover {
    background: #ecfdf5;
    border-color: #99f6e4;
    color: #0f766e;
}

/* آمار فروشگاه */
body.shop-modern .shop-stats-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

body.shop-modern .shop-stats-list li:last-child {
    border-bottom: none;
}

body.shop-modern .shop-stats-list li span {
    font-weight: 700;
    color: #0d9488;
}

body.shop-modern .sidebar-normal-widget .main:hover {
    background: #ecfdf5;
    border-color: #99f6e4;
}

body.shop-modern .sidebar-normal-widget .sub {
    border-right-color: #0d9488;
}

body.shop-modern .sidebar-normal-widget .latest li a {
    color: #334155;
    font-size: 13px;
    line-height: 1.6;
}

body.shop-modern .sidebar-normal-widget .trust {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    font-size: 13px;
    color: #475569;
}

body.shop-modern .stat li {
    font-size: 13px;
    line-height: 1.7;
    color: #475569;
}
body.shop-modern .produces h5 span,
body.shop-modern .shop-page-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}
/* صفحه اول — بخش‌ها */
.shop-modern-home { margin: 0 0 24px; }
.shop-modern-vitrin {
    margin: 4px 0 24px;
    padding-top: 20px;
    border-top: 2px dashed #e8edf3;
}
.shop-modern-vitrin__more { margin-top: 12px; }
.shop-section--vitrin .shop-section__title { color: #c2410c; }
.shop-section--vitrin .shop-section__badge { background: #fff7ed; color: #c2410c; }
.shop-section--best_sellers .shop-section__badge { background: #eff6ff; color: #1d4ed8; }
.shop-section {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8edf3;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
    padding: 16px 18px 20px;
}
.shop-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 16px;
    padding-bottom: 10px;
}
.shop-section__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.shop-section__view-all {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}
.shop-section__view-all:hover {
    background: #ffedd5;
    border-color: #fb923c;
    color: #9a3412;
}
.shop-section__title { font-size: 17px; font-weight: 700; color: #0f172a; margin: 0; }
.shop-section__badge { font-size: 11px; background: #fff7ed; color: #c2410c; padding: 4px 10px; border-radius: 20px; }
.shop-section--high_commission .shop-section__badge { background: #ecfdf5; color: #047857; }
.shop-section--discounted .shop-section__badge { background: #fef2f2; color: #b91c1c; }

.shop-grid { display: grid; gap: 14px; }
.shop-grid--2 { grid-template-columns: repeat(2, 1fr); }
.shop-grid--3 { grid-template-columns: repeat(3, 1fr); }
.shop-grid--4 { grid-template-columns: repeat(4, 1fr); }
.shop-grid--5 { grid-template-columns: repeat(5, 1fr); }
.shop-grid--6 { grid-template-columns: repeat(6, 1fr); }

.shop-vitrin-sortbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: -4px 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.shop-vitrin-sortbar__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}
.shop-vitrin-sortbar__icon {
    flex-shrink: 0;
    color: #94a3b8;
}
.shop-vitrin-sortbar__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
}
.shop-vitrin-sortbar__link {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    padding: 2px 0;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.shop-vitrin-sortbar__link:hover {
    color: #c2410c;
}
.shop-vitrin-sortbar__link.is-active {
    color: #c2410c;
    border-bottom-color: #fb923c;
}

/* صفحات لیست ویترین (showcase) */
.shop-showcase-page__head {
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}
.shop-showcase-page__toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}
.shop-showcase-page__sort-label {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}
.shop-showcase-page__sort {
    min-width: 160px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    background: #fff;
}
.shop-showcase-page__hint {
    margin: 0 0 14px;
    font-size: 13px;
    color: #94a3b8;
}

.shop-card {
    border: 1px solid #e8edf3;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.shop-card:hover { box-shadow: 0 8px 24px rgba(15, 23, 42, .1); transform: translateY(-2px); }
.shop-card__img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    text-align: center;
    padding: 4px;
    aspect-ratio: 1;
    overflow: hidden;
}
.shop-card__discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    color: #dc2626;
    background: linear-gradient(145deg, #fffbeb 0%, #fef08a 45%, #fde047 100%);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.18);
    pointer-events: none;
    letter-spacing: 0.02em;
}
.shop-card__img img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.shop-card__body { padding: 8px 10px 10px; flex: 1; display: flex; flex-direction: column; }
.shop-card__title { font-size: 13px; font-weight: 600; line-height: 1.5; margin: 0 0 4px; min-height: 0; }
.shop-card__desc {
    display: none;
    font-size: 12px;
    color: #64748b;
    margin: 0 0 8px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-card__title a { color: #1e293b; text-decoration: none; }
.shop-card__title a:hover { color: #0d9488; }
.shop-card__price { margin-top: auto; }
.shop-card__price-now { color: #0d9488; font-weight: 700; font-size: 14px; }
.shop-card--discount .shop-card__price-now { color: #dc2626; }
.shop-card__price-old { color: #94a3b8; text-decoration: line-through; font-size: 12px; margin-left: 6px; }
.shop-card__commission { font-size: 11px; color: #047857; margin-top: 4px; }
.shop-card__actions { margin-top: 8px; display: flex; gap: 6px; }
.shop-card__btn { flex: 1; text-align: center; padding: 8px; border-radius: 8px; font-size: 12px; text-decoration: none; }
.shop-card__btn--buy { background: #0d9488; color: #fff !important; }
.shop-card__btn--buy:hover { background: #0f766e; }
.shop-card__btn--more { background: #f8fafc; color: #475569 !important; border: 1px solid #e2e8f0; }

.shop-seller-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    color: #334155;
    box-shadow: 0 1px 6px rgba(15, 23, 42, .05);
}
.shop-seller-box__shop-title { font-size: 12px; color: #64748b; margin: 0 0 4px; }
.shop-seller-box h4 { margin: 0 0 8px; font-size: 16px; color: #0f172a; font-weight: 700; }
.shop-seller-box p { font-size: 12px; line-height: 1.8; color: #475569; margin: 0 0 10px; }
.shop-seller-box ul { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.shop-seller-box li { padding: 6px 0; border-top: 1px solid #f1f5f9; color: #475569; }
.shop-seller-box a { color: #0d9488; text-decoration: none; }

.shop-list-modern {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    padding: 16px 18px 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}

.shop-list-modern__head {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.shop-list-modern__pager {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}
@media (max-width: 1024px) {
    .shop-footer-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .shop-grid--4, .shop-grid--5, .shop-grid--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    body.shop-modern #wrapper { padding: 0 10px 24px; }
    body.shop-modern .header .nav ul { width: 100%; }
    .shop-grid--3, .shop-grid--4, .shop-grid--5, .shop-grid--6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .shop-grid--2, .shop-grid--3, .shop-grid--4, .shop-grid--5, .shop-grid--6 { grid-template-columns: 1fr; }
    .shop-card__actions { flex-direction: column; }
}

/* ——— صفحه محصول ——— */
.shop-breadcrumb,
body.shop-modern .shop-breadcrumb.breadcrumb.rounded {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 18px;
    padding: 10px 14px 10px 38px;
    background: #fafbfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='2'%3E%3Cpath d='M3 10.5L12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1v-9.5z'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid #ffedd5;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.9;
    color: #64748b;
    overflow: hidden;
    list-style: none;
}

.shop-breadcrumb a,
.shop-breadcrumb span {
    display: inline;
    padding: 0 2px;
    margin: 0 1px;
}

.shop-breadcrumb a {
    color: #475569;
    text-decoration: none;
    transition: color .15s;
}

.shop-breadcrumb a:hover {
    color: #ea580c;
}

.shop-breadcrumb__chev {
    color: #fdba74;
    margin: 0 4px;
    font-size: 12px;
}

.shop-breadcrumb__home {
    display: none;
}

.shop-breadcrumb__current {
    color: #0f172a;
    font-weight: 600;
}

.shop-product-page {
    width: 100%;
}

.shop-product-hero {
    display: grid;
    grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
}

.shop-product-hero__media {
    position: relative;
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}

.shop-product-hero__img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 10px;
}

.shop-product-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.shop-product-thumb {
    width: 64px;
    height: 64px;
    padding: 4px;
    border: 2px solid #e8edf3;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s;
}

.shop-product-thumb.is-active,
.shop-product-thumb:hover {
    border-color: #fb923c;
}

.shop-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.shop-product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
}

.shop-product-badge--hot,
.shop-product-badge--physical {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.shop-product-badge--new {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.shop-product-hero__cats {
    margin: 0 0 8px;
    font-size: 13px;
}

.shop-product-hero__cats a {
    color: #ea580c;
    text-decoration: none;
    font-weight: 500;
}

.shop-product-hero__title {
    margin: 0 0 10px;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
}

.shop-product-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
}

.shop-product-rating__link {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #334155;
    text-decoration: none;
    transition: color .2s ease;
}

.shop-product-rating__link:hover,
.shop-product-rating__link:focus-visible {
    color: #7c3aed;
}

.shop-product-rating__link--questions {
    font-weight: 600;
    color: #475569;
}

.shop-product-rating__link--empty {
    align-items: flex-start;
    gap: 10px;
}

.shop-product-rating__stars {
    position: relative;
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 1px;
    width: 5.6em;
    height: 1em;
    flex-shrink: 0;
}

.shop-product-rating__stars-empty,
.shop-product-rating__stars-fill {
    position: absolute;
    top: 0;
    right: 0;
    white-space: nowrap;
    overflow: hidden;
}

.shop-product-rating__stars-empty {
    color: #e2e8f0;
    width: 100%;
}

.shop-product-rating__stars-fill {
    color: #fbbf24;
    width: var(--rating-pct, 0%);
}

.shop-product-rating__stars--empty .shop-product-rating__stars-track {
    color: #cbd5e1;
    letter-spacing: 1px;
}

.shop-product-rating__score {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.shop-product-rating__count {
    color: #64748b;
    font-size: 13px;
}

.shop-product-rating__empty-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

.shop-product-rating__empty-sep {
    display: none;
}

.shop-product-rating__divider {
    width: 1px;
    height: 18px;
    background: #e2e8f0;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .shop-product-rating__empty-text {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .shop-product-rating__empty-sep {
        display: inline;
        color: #cbd5e1;
    }
}

.ppt-theme .shop-product-rating__link:hover,
.ppt-theme .shop-product-rating__link:focus-visible {
    color: var(--ppt-accent, #7c3aed);
}

.ppt-theme .shop-product-rating__stars-fill {
    color: var(--ppt-primary, #fbbf24);
}

.shop-product-hero__desc {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

.shop-product-specs {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.shop-product-specs li {
    background: #fafbfc;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
}

.shop-product-specs li span {
    display: block;
    color: #94a3b8;
    margin-bottom: 4px;
}

.shop-product-specs li strong {
    color: #334155;
    font-weight: 600;
}

.shop-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    font-size: 13px;
}

.shop-product-meta__brand { color: #475569; }

.shop-product-attrs {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fafbfc;
    border: 1px solid #eef2f6;
    border-radius: 12px;
}

.shop-product-attrs__title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.shop-variant-picker { margin-bottom: 12px; }

.shop-product-hero__summary {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.38fr);
    gap: 24px;
    margin: 0 0 20px;
    align-items: start;
}

.shop-product-hero__aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.shop-product-hero__facts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.shop-product-hero__facts .shop-product-specs {
    margin: 0;
}

.shop-product-hero__facts .shop-product-buybox {
    margin: 0;
}

.shop-product-hero__variants {
    padding: 14px 16px;
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    border: 1px solid #eef2f6;
    border-radius: 14px;
}

.shop-product-hero__variants-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.shop-product-brand-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
}

.shop-product-brand-card__label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.shop-product-brand-card__value {
    font-size: 14px;
    font-weight: 700;
    color: #1d4ed8;
}

.shop-product-tags--inline {
    margin-bottom: 0;
    padding: 10px 12px;
}

.shop-product-specs-panel .pp-spec-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-product-specs-panel .pp-spec-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.shop-product-specs-panel .pp-spec-list li:last-child {
    border-bottom: none;
}

.shop-product-empty-note {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

.shop-product-hero__aside .pp-variant-option {
    margin: 0 0 14px;
}

.shop-product-hero__aside .pp-variant-option:last-child {
    margin-bottom: 0;
}

.shop-product-hero__aside .pp-variant-option-name {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.shop-product-hero__aside .pp-variant-value {
    border-radius: 999px;
    padding: 7px 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 13px;
    transition: all .15s;
}

.shop-product-hero__aside .pp-variant-value.is-selected {
    border-color: #f97316;
    background: #fff7ed;
    color: #c2410c;
    box-shadow: 0 2px 8px rgba(249, 115, 22, .12);
}

@media (max-width: 768px) {
    .shop-product-hero__summary {
        grid-template-columns: 1fr;
    }
}

.shop-product-buybox {
    background: linear-gradient(180deg, #fffaf5 0%, #fff 100%);
    border: 1px solid #ffedd5;
    border-top: 3px solid #f97316;
    border-radius: 14px;
    padding: 18px;
}

.shop-product-buybox__price {
    margin-bottom: 8px;
}

.shop-product-buybox__old {
    display: block;
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 13px;
    margin-bottom: 4px;
}

.shop-product-buybox__now {
    font-size: 22px;
    font-weight: 700;
    color: #c2410c;
}

.shop-product-buybox__qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.shop-product-buybox__qty label {
    font-size: 13px;
    font-weight: 600;
    color: #57534e;
}

.shop-product-qty-input {
    width: 72px;
    padding: 8px 10px;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.shop-product-buybox__hint {
    margin: 0 0 14px;
    font-size: 12px;
    color: #78716c;
    line-height: 1.6;
}

.shop-product-buybox__warn {
    margin: 0;
    color: #b45309;
    font-size: 13px;
}

.shop-product-buybox__btn.is-disabled {
    opacity: .55;
    pointer-events: none;
    cursor: not-allowed;
}

.shop-product-buybox__btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px 16px;
    background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(249, 115, 22, .25);
    transition: transform .15s, box-shadow .15s;
    box-sizing: border-box;
}

.shop-product-buybox__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, .32);
}

.shop-product-buybox__actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.shop-product-buybox__actions .shop-product-buybox__btn {
    flex: 1;
    width: auto;
    margin: 0;
}

.shop-product-buybox__btn--secondary {
    background: #fff;
    color: #ea580c !important;
    border: 1px solid #fdba74;
    box-shadow: none;
}

.shop-product-buybox__btn--secondary:hover {
    background: #fff7ed;
    box-shadow: 0 2px 8px rgba(249, 115, 22, .12);
}

.shop-product-section {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 18px;
}

.shop-product-section__title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8fafc;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.shop-product-rich {
    font-size: 14px;
    line-height: 1.85;
    color: #475569;
}

.shop-product-rich img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.shop-product-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.shop-product-tabs__nav button {
    border: 1px solid #e8edf3;
    background: #fafbfc;
    color: #475569;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
}

.shop-product-tabs__nav button.is-active,
.shop-product-tabs__nav button:hover {
    background: #fff7ed;
    border-color: #fdba74;
    color: #c2410c;
}

.shop-product-tabs__panel {
    display: none;
}

.shop-product-tabs__panel.is-active {
    display: block;
}

.shop-product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.shop-product-gallery-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eef2f6;
}

.shop-product-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #fafbfc;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    margin-bottom: 18px;
}

.shop-product-tags__label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.shop-product-tags__list a {
    display: inline-block;
    padding: 5px 12px;
    margin: 2px;
    background: #fff;
    border: 1px solid #ffedd5;
    border-radius: 20px;
    color: #c2410c;
    font-size: 12px;
    text-decoration: none;
}

.shop-product-tags__list a:hover {
    background: #fff7ed;
    border-color: #fdba74;
}

.shop-product-related {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .shop-product-hero {
        grid-template-columns: 1fr;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    body.shop-modern .shop-page-container,
    body.shop-modern #wrapper { padding: 0 12px 28px; }
    body.shop-modern .shop-site-header__inner,
    body.shop-modern .shop-site-footer__inner { padding: 12px; }

    .shop-header-row--top {
        gap: 10px;
    }

    .shop-header-brand {
        gap: 8px;
    }

    .shop-header-logo img {
        max-height: 40px;
        max-width: 100px;
    }

    .shop-header-title {
        max-width: 100%;
        font-size: 13px;
    }

    .shop-header-nav__list {
        gap: 2px;
    }

    .shop-header-nav__link,
    .shop-header-nav__list a {
        padding: 5px 8px;
        font-size: 12px;
    }

    .shop-header-row--toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .shop-header-categories {
        flex: 0 0 auto;
    }

    .shop-header-cat-btn {
        padding: 9px 12px;
        font-size: 13px;
    }

    .shop-header-search {
        flex: 1 1 100%;
        order: 2;
    }

    .shop-header-cart--icon-only {
        order: 3;
        margin-right: auto;
    }

    .shop-header-search__btn {
        padding: 11px 14px;
        font-size: 12px;
    }

    .shop-footer-widgets {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ——— صفحه دسته‌بندی ——— */
.shop-category-page { width: 100%; }

.shop-category-hero {
    display: grid;
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #fffaf5 0%, #fff 55%);
    border: 1px solid #ffedd5;
    border-top: 3px solid #f97316;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 18px;
}

/* بدون تصویر، تنها فرزند در ستون باریک اول گیر می‌کند — تمام‌عرض */
.shop-category-hero__body {
    min-width: 0;
}

.shop-category-hero__body:only-child {
    grid-column: 1 / -1;
}

.shop-category-hero:has(.shop-category-hero__media) .shop-category-hero__media {
    grid-column: 1;
}

.shop-category-hero:has(.shop-category-hero__media) .shop-category-hero__body {
    grid-column: 2;
}

.shop-category-hero__media {
    text-align: center;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 12px;
}

.shop-category-hero__img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    object-fit: contain;
}

.shop-category-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    color: #ea580c;
    font-size: 20px;
}

.shop-category-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.shop-category-badge--featured {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.shop-category-hero__title {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: normal;
}

.shop-category-hero__lead {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.8;
    color: #64748b;
}

.shop-category-hero__meta {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.shop-category-children {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.shop-category-chip {
    display: inline-block;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #fed7aa;
    border-right: 3px solid #f97316;
    border-radius: 20px;
    color: #c2410c;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.shop-category-chip:hover {
    background: #fff7ed;
    border-color: #fb923c;
}

.shop-category-products { margin-bottom: 18px; }

.shop-page-title--sub {
    font-size: 16px;
    font-weight: 700;
    color: #475569;
}

.shop-category-section {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 18px;
}

.shop-category-section--seo {
    background: #fafbfc;
}

.shop-category-section__title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8fafc;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.shop-category-faq .shop-faq-item {
    border: 1px solid #eef2f6;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #fafbfc;
    overflow: hidden;
}

.shop-category-faq .shop-faq-item summary {
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 600;
    color: #334155;
    list-style: none;
}

.shop-category-faq .shop-faq-item summary::-webkit-details-marker { display: none; }

.shop-category-faq .shop-faq-item__answer {
    padding: 0 14px 12px;
    font-size: 13px;
    line-height: 1.75;
    color: #64748b;
}

@media (max-width: 768px) {
    .shop-category-hero {
        grid-template-columns: 1fr;
        padding: 16px;
    }
}

/* ── Shopping cart (Basalam-inspired) ── */
.shop-cart-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.shop-cart-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.shop-cart-empty {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
}

.shop-cart-empty__icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 12px;
    opacity: .85;
}

.shop-cart-empty__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.shop-cart-empty__desc {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 14px;
}

.shop-cart-empty__btn {
    display: inline-block;
    width: auto;
    min-width: 200px;
}

.shop-cart-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #e8edf3;
    margin-bottom: 20px;
}

.shop-cart-tabs__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 4px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: default;
}

.shop-cart-tabs__item--active {
    color: #ea580c;
}

.shop-cart-tabs__item--active::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: -1px;
    height: 3px;
    background: #f97316;
    border-radius: 3px 3px 0 0;
}

.shop-cart-tabs__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.shop-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}

.shop-cart-main {
    min-width: 0;
}

.shop-cart-vendor {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
}

.shop-cart-vendor__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.shop-cart-vendor__seller {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.shop-cart-vendor__icon {
    font-size: 18px;
    line-height: 1;
}

.shop-cart-vendor__name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.shop-cart-vendor__count {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

.shop-cart-vendor__ship-note {
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
    color: #94a3b8;
}

.shop-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f8fafc;
}

.shop-cart-item:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.shop-cart-item__img-wrap {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    background: #fafbfc;
}

.shop-cart-item__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.shop-cart-item__body {
    flex: 1;
    min-width: 0;
}

.shop-cart-item__title {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    color: #1e293b;
    text-decoration: none;
}

.shop-cart-item__title:hover {
    color: #ea580c;
}

.shop-cart-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #64748b;
}

.shop-cart-item__price {
    flex-shrink: 0;
    text-align: left;
    padding-top: 4px;
}

.shop-cart-item__total {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.shop-cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.shop-cart-qty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    color: #334155 !important;
    font-size: 18px;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s;
}

.shop-cart-qty__btn:hover {
    background: #f8fafc;
}

.shop-cart-qty__btn--remove {
    font-size: 15px;
    color: #94a3b8 !important;
    border-left: 1px solid #e2e8f0;
}

.shop-cart-qty__btn--remove:hover {
    color: #dc2626 !important;
    background: #fef2f2;
}

.shop-cart-qty__value {
    min-width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    border-right: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    line-height: 36px;
}

.shop-cart-sidebar {
    position: sticky;
    top: 16px;
}

.shop-cart-summary {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .06);
}

.shop-cart-summary__title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.shop-cart-summary__rows {
    margin: 0 0 14px;
    padding: 0 0 14px;
    border-bottom: 1px solid #f1f5f9;
}

.shop-cart-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
}

.shop-cart-summary__row:last-child {
    margin-bottom: 0;
}

.shop-cart-summary__row dt {
    margin: 0;
    color: #64748b;
    font-weight: 400;
}

.shop-cart-summary__row dd {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
}

.shop-cart-summary__shipping {
    color: #dc2626 !important;
    font-weight: 500 !important;
}

.shop-cart-summary__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #64748b;
}

.shop-cart-summary__total strong {
    font-size: 17px;
    color: #0f172a;
}

.shop-cart-summary__checkout {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 16px;
    background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(249, 115, 22, .25);
    transition: transform .15s, box-shadow .15s;
    box-sizing: border-box;
}

.shop-cart-summary__checkout:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, .32);
}

.shop-cart-summary__continue {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: #64748b !important;
    text-decoration: none;
}

.shop-cart-summary__continue:hover {
    color: #ea580c !important;
}

@media (max-width: 900px) {
    .shop-cart-layout {
        grid-template-columns: 1fr;
    }

    .shop-cart-sidebar {
        position: static;
        order: -1;
    }

    .shop-cart-item {
        flex-wrap: wrap;
    }

    .shop-cart-item__price {
        width: 100%;
        text-align: right;
        padding-top: 0;
    }
}

@media (max-width: 520px) {
    .shop-cart-vendor {
        padding: 14px;
    }

    .shop-cart-item__img-wrap {
        width: 80px;
        height: 80px;
    }

    .shop-cart-item__meta {
        flex-direction: column;
        gap: 4px;
    }
}

/* ── Checkout page ── */
.shop-checkout-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.shop-checkout-header {
    margin-bottom: 20px;
}

.shop-checkout-header__title {
    margin: 0 0 6px;
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    color: #0f172a;
}

.shop-checkout-header__desc {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

.shop-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.shop-checkout-main {
    min-width: 0;
}

.shop-checkout-section {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
}

.shop-checkout-section__title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8fafc;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-checkout-section__count {
    font-size: 12px;
    font-weight: 600;
    color: #ea580c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 4px 10px;
}

.shop-checkout-vendor {
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: #fafbfc;
}

.shop-checkout-vendor:last-child {
    margin-bottom: 0;
}

.shop-checkout-vendor__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2e8f0;
}

.shop-checkout-vendor__icon {
    font-size: 16px;
}

.shop-checkout-vendor__name {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.shop-checkout-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
}

.shop-checkout-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.shop-checkout-item__img-wrap {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.shop-checkout-item__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.shop-checkout-item__body {
    flex: 1;
    min-width: 0;
}

.shop-checkout-item__title {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    color: #1e293b;
    text-decoration: none;
}

.shop-checkout-item__title:hover {
    color: #ea580c;
}

.shop-checkout-item__price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.shop-checkout-item__old {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

.shop-checkout-item__unit {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.shop-checkout-item__badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.shop-checkout-qty-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fdba74;
    border-radius: 8px;
    font-size: 12px;
    color: #9a3412;
}

.shop-checkout-qty-badge strong {
    font-size: 14px;
    color: #c2410c;
}

.shop-checkout-stock-hint {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    font-size: 11px;
    color: #64748b;
}

.shop-checkout-item__ship {
    font-size: 11px;
    color: #94a3b8;
}

.shop-checkout-item__total {
    flex-shrink: 0;
    text-align: left;
    min-width: 90px;
}

.shop-checkout-item__total-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.shop-checkout-item__total strong {
    font-size: 14px;
    color: #0f172a;
    white-space: nowrap;
}

.shop-checkout-forms {
    scroll-margin-top: 16px;
}

.shop-checkout-forms--highlight {
    animation: shopCheckoutFormPulse 2.2s ease;
}

@keyframes shopCheckoutFormPulse {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .45); border-radius: 16px; }
    35% { box-shadow: 0 0 0 6px rgba(249, 115, 22, .22); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.shop-checkout-form-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fdba74;
    border-right: 4px solid #f97316;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #9a3412;
    line-height: 1.7;
}

.shop-checkout-input--error {
    border-color: #f87171 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .15) !important;
}

.shop-checkout-form__grid {
    display: grid;
    gap: 14px;
}

.shop-checkout-form__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-checkout-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-checkout-field--full {
    grid-column: 1 / -1;
}

.shop-checkout-field label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.shop-checkout-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fafbfc;
    font-size: 14px;
    color: #0f172a;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.shop-checkout-input:focus {
    outline: none;
    border-color: #34d399;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
}

.shop-checkout-input--area {
    min-height: 96px;
    resize: vertical;
    line-height: 1.7;
}

.shop-checkout-sidebar {
    position: sticky;
    top: 16px;
}

.shop-checkout-summary {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .06);
}

.shop-checkout-summary__title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.shop-checkout-summary__rows {
    margin: 0 0 14px;
    padding: 0 0 14px;
    border-bottom: 1px solid #f1f5f9;
}

.shop-checkout-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
}

.shop-checkout-summary__row:last-child {
    margin-bottom: 0;
}

.shop-checkout-summary__row dt {
    margin: 0;
    color: #64748b;
    font-weight: 400;
}

.shop-checkout-summary__row dd {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
}

.shop-checkout-savings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0;
    padding: 12px 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #fde047;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, .12);
}

.shop-checkout-savings__label {
    font-size: 13px;
    font-weight: 600;
    color: #166534;
}

.shop-checkout-savings__value {
    font-size: 16px;
    font-weight: 800;
    color: #1d4ed8;
    letter-spacing: -.02em;
}

.shop-checkout-payable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #059669 0%, #10b981 45%, #34d399 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, .28);
}

.shop-checkout-payable__label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
}

.shop-checkout-payable__value {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .12);
    white-space: nowrap;
}

.shop-checkout-pay-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(249, 115, 22, .25);
    transition: transform .15s, box-shadow .15s;
}

.shop-checkout-pay-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, .32);
}

.shop-checkout-back {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: #64748b !important;
    text-decoration: none;
}

.shop-checkout-back:hover {
    color: #ea580c !important;
}

@media (max-width: 900px) {
    .shop-checkout-layout {
        grid-template-columns: 1fr;
    }

    .shop-checkout-sidebar {
        position: static;
        order: -1;
    }

    .shop-checkout-form__grid--2 {
        grid-template-columns: 1fr;
    }

    .shop-checkout-item {
        flex-wrap: wrap;
    }

    .shop-checkout-item__total {
        width: 100%;
        text-align: right;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 4px;
        border-top: 1px dashed #e2e8f0;
        margin-top: 4px;
    }
}
