﻿/**
 * استایل‌های ویجت‌های atlasshop Core
 */

/* استایل‌های ویجت جستجو */
.atlasshop-search-widget {
    width: 100%;
    max-width: 100%;
}

.atlasshop-search-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.atlasshop-search-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    overflow: hidden;
    direction: rtl;
    flex-direction: row-reverse;
}

.atlasshop-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 14px;
    color: #333333;
    width: 100%;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
}

.atlasshop-search-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.atlasshop-search-input::-webkit-input-placeholder {
    color: #9ca3af;
}

.atlasshop-search-input::-moz-placeholder {
    color: #9ca3af;
    opacity: 1;
}

.atlasshop-search-input:-ms-input-placeholder {
    color: #9ca3af;
}

.atlasshop-search-button {
    border: none;
    background-color: var(--atlasshop-primary-color, #2563eb);
    color: #ffffff;
    cursor: pointer;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    border-radius: 8px 0 0 8px;
}

.atlasshop-search-button:hover {
    background-color: #1d4ed8;
}

.atlasshop-search-button:active {
    background-color: #1e40af;
}

.atlasshop-search-button:focus {
    outline: 2px solid var(--atlasshop-primary-color, #2563eb);
    outline-offset: 2px;
}

.atlasshop-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #ffffff;
    flex-shrink: 0;
}

.atlasshop-search-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

.atlasshop-search-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.atlasshop-search-icon i,
.atlasshop-search-icon .atlasshop-elementor-icon {
    font-size: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.atlasshop-search-icon i svg,
.atlasshop-search-icon .atlasshop-elementor-icon svg {
    width: 100% !important;
    height: 100% !important;
    fill: currentColor;
    display: block;
}

.atlasshop-search-icon i:before {
    font-size: 100%;
    line-height: 1;
    display: block;
}

/* اطمینان از اینکه آیکن‌های المنتور به درستی بزرگ می‌شوند */
.atlasshop-search-icon i[class*="eicon"],
.atlasshop-search-icon i[class*="fa"],
.atlasshop-search-icon i[class*="fab"],
.atlasshop-search-icon i[class*="far"],
.atlasshop-search-icon i[class*="fas"] {
    font-size: 100% !important;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .atlasshop-search-wrapper {
        flex-direction: row;
    }
    
    .atlasshop-search-input {
        font-size: 16px; /* جلوگیری از زوم در iOS */
    }
}

/* استایل‌های RTL */
[dir="rtl"] .atlasshop-search-wrapper {
    direction: rtl;
    flex-direction: row-reverse;
}

[dir="rtl"] .atlasshop-search-input {
    text-align: right;
}

[dir="rtl"] .atlasshop-search-button {
    border-radius: 8px 0 0 8px;
}

[dir="ltr"] .atlasshop-search-wrapper {
    direction: ltr;
    flex-direction: row;
}

[dir="ltr"] .atlasshop-search-input {
    text-align: left;
}

[dir="ltr"] .atlasshop-search-button {
    border-radius: 0 8px 8px 0;
}

/* استایل‌های حالت فوکوس */
.atlasshop-search-input:focus {
    outline: none;
}

.atlasshop-search-wrapper:focus-within,
.atlasshop-search-wrapper.atlasshop-search-focused {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.atlasshop-search-button.atlasshop-search-button-clicked {
    transform: scale(0.96);
}

/* استایل‌های Elementor Editor */
.elementor-editor-active .atlasshop-search-form {
    pointer-events: auto;
}

.elementor-editor-active .atlasshop-search-button {
    pointer-events: auto;
}

/* باکس نتایج جستجو */
.atlasshop-search-widget {
    position: relative;
}

.atlasshop-search-results-box {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    pointer-events: none;
    margin-top: 10px;
}

.atlasshop-search-widget.show-results .atlasshop-search-results-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.atlasshop-search-results-box::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 0;
    left: 0;
    height: 10px;
    background: transparent;
}

.atlasshop-recent-searches {
    width: 100%;
}

.atlasshop-recent-searches-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.atlasshop-recent-searches-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
}

.atlasshop-recent-searches-title svg {
    flex-shrink: 0;
    color: var(--atlasshop-primary-color, #2563eb);
}

.atlasshop-recent-searches-list {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.atlasshop-recent-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    text-decoration: none;
    color: #333333;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    gap: 8px;
}

.atlasshop-recent-search-item:hover {
    background-color: #f5f5f5;
    text-decoration: none;
    color: var(--atlasshop-primary-color, #2563eb);
}

.atlasshop-recent-search-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.atlasshop-recent-search-item svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.atlasshop-recent-search-item:hover svg {
    opacity: 1;
    transform: translateX(-2px);
}

/* استایل‌های RTL */
[dir="rtl"] .atlasshop-recent-search-item svg {
    transform: scaleX(-1);
}

[dir="rtl"] .atlasshop-recent-search-item:hover svg {
    transform: scaleX(-1) translateX(2px);
}

.atlasshop-search-suggest-kind {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-left: 6px;
    vertical-align: middle;
}

[dir="rtl"] .atlasshop-search-suggest-kind {
    margin-left: 0;
    margin-right: 6px;
}

.atlasshop-search-live-block[hidden] {
    display: none !important;
}

.atlasshop-search-results-products-wrap {
    width: 100%;
}

.atlasshop-search-results-heading {
    margin: 0 0 16px;
    font-size: 15px;
    color: #334155;
}

.atlasshop-search-results-heading__label {
    font-weight: 600;
    color: #0f172a;
}

.atlasshop-search-results-heading__term {
    font-weight: 500;
    color: var(--atlasshop-primary-color, #2563eb);
}

.atlasshop-search-results-empty-hint {
    margin: 0 0 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    color: #64748b;
}

.atlasshop-search-results-empty-hint p {
    margin: 0;
}

/* ============================================
   استایل‌های ویجت سبد خرید
   ============================================ */

.atlasshop-cart-container {
    position: relative;
    display: inline-block;
}

.atlasshop-cart-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.atlasshop-cart-link:hover {
    transform: scale(1.05);
}

.atlasshop-cart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #ffffff;
    transition: box-shadow 0.2s ease;
}

.atlasshop-cart-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.atlasshop-cart-icon i,
.atlasshop-cart-icon svg {
    color: #000000;
}

.atlasshop-cart-icon svg {
    display: block;
}

.atlasshop-cart-badge {
    position: absolute;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: #ff0000;
    color: #ffffff;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Dropdown منوی سبد خرید */
.atlasshop-cart-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: auto;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    pointer-events: none;
}

.atlasshop-cart-container:hover .atlasshop-cart-dropdown,
.atlasshop-cart-container.show-dropdown .atlasshop-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* اتصال dropdown به container */
.atlasshop-cart-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    right: 0;
    left: auto;
    width: 100%;
    height: 12px;
    background: transparent;
}

.atlasshop-cart-items {
    max-height: 400px;
    overflow-y: auto;
}

.atlasshop-cart-item {
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    display: flex;
    align-items: center;
}

.atlasshop-cart-item:last-child {
    border-bottom: none;
}

.atlasshop-cart-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    padding-right: 50px;
    text-decoration: none;
    color: #111827;
    transition: background 0.2s ease;
    flex: 1;
    min-width: 0;
}

.atlasshop-cart-item-link:hover {
    background: #f9fafb;
}

.atlasshop-cart-item-remove {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 10;
    opacity: 0.7;
}

.atlasshop-cart-item-remove:hover {
    background: #fee2e2;
    color: #dc2626;
    opacity: 1;
}

.atlasshop-cart-item-remove svg {
    width: 18px;
    height: 18px;
}

.atlasshop-cart-item-image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 8px;
}

.atlasshop-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.atlasshop-cart-item-info {
    flex: 1;
    min-width: 0;
}

.atlasshop-cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atlasshop-cart-item-meta {
    font-size: 13px;
    color: #6b7280;
}

.atlasshop-cart-item-quantity {
    font-weight: 600;
}

.atlasshop-cart-item-price {
    color: var(--atlasshop-primary-color, #2563eb);
    font-weight: 600;
}

.atlasshop-cart-footer {
    padding: 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.atlasshop-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    color: #111827;
}

.atlasshop-cart-total strong {
    font-weight: 700;
}

.atlasshop-cart-total span {
    color: var(--atlasshop-primary-color, #2563eb);
    font-weight: 700;
}

.atlasshop-cart-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--atlasshop-primary-color, #2563eb);
    color: #ffffff;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    cursor: pointer;
}

.atlasshop-cart-button:hover {
    background: #1d4ed8;
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.atlasshop-cart-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

.atlasshop-cart-empty p {
    margin: 0;
    font-size: 15px;
}

/* استایل‌های RTL */
[dir="rtl"] .atlasshop-cart-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .atlasshop-cart-dropdown::before {
    right: auto;
    left: 0;
}

[dir="rtl"] .atlasshop-cart-item-remove {
    right: auto;
    left: 12px;
}

[dir="rtl"] .atlasshop-cart-item-link {
    padding-right: 50px;
    padding-left: 16px;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .atlasshop-cart-dropdown {
        width: calc(100vw - 40px);
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .atlasshop-cart-container:hover .atlasshop-cart-dropdown,
    .atlasshop-cart-container.show-dropdown .atlasshop-cart-dropdown {
        transform: translateX(-50%) translateY(0);
    }
}

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

.atlasshop-user-menu-container {
    position: relative;
    display: inline-block;
}

.atlasshop-user-menu-button {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.atlasshop-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 26% !important;
    object-fit: cover;
    flex-shrink: 0;
    overflow: hidden;
    display: block;
}

.atlasshop-button-text {
    white-space: nowrap;
}

.atlasshop-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.atlasshop-button-icon i,
.atlasshop-button-icon svg {
    font-size: inherit;
}

.atlasshop-button-icon svg {
    width: 1em;
    height: 1em;
}

/* زیر منو */
.atlasshop-user-submenu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 180px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    pointer-events: none;
}

.atlasshop-user-menu-container:hover .atlasshop-user-submenu,
.atlasshop-user-menu-container.show-submenu .atlasshop-user-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.atlasshop-user-submenu::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 0;
    left: 0;
    height: 10px;
    background: transparent;
}

.atlasshop-user-submenu-item {
    display: block;
}

.atlasshop-user-submenu-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: #333333;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.atlasshop-user-submenu-item:hover a {
    background-color: #f5f5f5;
}

.atlasshop-user-submenu-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    width: 16px;
}

.atlasshop-user-submenu-item-icon i,
.atlasshop-user-submenu-item-icon svg {
    font-size: inherit;
}

.atlasshop-user-submenu-item-icon svg {
    width: 1em;
    height: 1em;
}

.atlasshop-user-submenu-item-text {
    flex: 1;
    white-space: nowrap;
}

/* استایل‌های RTL */
[dir="rtl"] .atlasshop-user-submenu {
    right: auto;
    left: 0;
}

[dir="rtl"] .atlasshop-button-icon {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .atlasshop-user-submenu-item-icon {
    margin-left: 0;
    margin-right: 10px;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .atlasshop-user-submenu {
        width: calc(100vw - 40px);
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .atlasshop-user-menu-container:hover .atlasshop-user-submenu,
    .atlasshop-user-menu-container.show-submenu .atlasshop-user-submenu {
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   استایل‌های ویجت خبرنامه
   ============================================ */

.atlasshop-newsletter-widget {
    width: 100%;
    max-width: 100%;
}

.atlasshop-newsletter-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.atlasshop-newsletter-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    gap: 8px;
    direction: rtl;
}

.atlasshop-newsletter-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    outline: none;
    background-color: #f5f5f5;
    padding: 12px 16px;
    font-size: 14px;
    color: #333333;
    border-radius: 8px;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.atlasshop-newsletter-input:focus {
    border-color: var(--atlasshop-primary-color, #2563eb);
    background-color: #ffffff;
}

.atlasshop-newsletter-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.atlasshop-newsletter-button {
    border: none;
    background-color: #ef4444;
    color: #ffffff;
    cursor: pointer;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 44px;
    min-height: 44px;
}

/* اگر فقط آیکن باشد (بدون متن) */
.atlasshop-newsletter-button-icon-only {
    padding: 12px;
    width: 44px;
    height: 44px;
    aspect-ratio: 1;
}

.atlasshop-newsletter-button-icon-only .atlasshop-newsletter-button-icon {
    margin: 0;
}

.atlasshop-newsletter-button:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}

.atlasshop-newsletter-button:active {
    transform: translateY(0);
}

.atlasshop-newsletter-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.atlasshop-newsletter-button.loading {
    position: relative;
    color: transparent;
}

.atlasshop-newsletter-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.atlasshop-newsletter-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.atlasshop-newsletter-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.atlasshop-newsletter-button-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.atlasshop-newsletter-button-icon svg {
    display: block;
    flex-shrink: 0;
}

.atlasshop-newsletter-button-text {
    white-space: nowrap;
}

.atlasshop-newsletter-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.atlasshop-newsletter-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.atlasshop-newsletter-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* استایل‌های RTL */
[dir="rtl"] .atlasshop-newsletter-wrapper {
    direction: rtl;
}

[dir="ltr"] .atlasshop-newsletter-wrapper {
    direction: ltr;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .atlasshop-newsletter-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .atlasshop-newsletter-input {
        width: 100%;
        font-size: 16px; /* جلوگیری از زوم در iOS */
    }
    
    .atlasshop-newsletter-button {
        width: 100%;
    }
}

/* ============================================
   استایل‌های ویجت فرم ورود (لاگین)
   ============================================ */

.atlasshop-login-form-widget {
    direction: rtl;
    padding: 24px;
    background-color: #f5f5f5;
    border-radius: 24px;
    max-width: 440px;
    margin: 0 auto;
}

.atlasshop-login-form-card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 24px 28px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* بخش بالای فرم: کارت سفید با گوشه‌های گرد بالا، لبه پایین صاف و سایه نرم (مطابق تصویر) */
.atlasshop-login-form-header-wrap {
    background-color: #ffffff;
    margin: -24px -28px 0 -28px;
    padding: 24px 28px 26px;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.atlasshop-login-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 0;
}

.atlasshop-login-form-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #6F52ED;
    flex-shrink: 0;
}

.atlasshop-login-form-header-icon svg {
    width: 22px;
    height: 22px;
}

.atlasshop-login-form-header-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.atlasshop-login-form-header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.atlasshop-login-form-header-title {
    font-size: 20px;
    font-weight: 700;
    color: #6F52ED;
    line-height: 1.2;
}

.atlasshop-login-form-header-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: #A99AED;
    line-height: 1.3;
}

.atlasshop-login-form-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 16px 0;
}

.atlasshop-login-form-separator {
    height: 0;
    border: none;
    border-top: 1px dashed #e0e0e0;
    margin: 0 0 20px 0;
}

.atlasshop-login-form-label {
    display: block;
    text-align: right;
    font-size: 14px;
    color: #777777;
    margin-bottom: 10px;
}

.atlasshop-login-form-input {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    font-size: 16px;
    color: #333333;
    border: 2px solid transparent;
    outline: none;
    background-color: #eeeeee;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: right;
    direction: rtl;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.atlasshop-login-form-input:focus {
    border-color: var(--atlasshop-primary-color, #2563eb);
    box-shadow: 0 0 0 1px var(--atlasshop-primary-color, #2563eb);
}

.atlasshop-login-form-input::placeholder {
    color: #aaaaaa;
    text-align: left;
}

.atlasshop-login-form-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: #6F52ED;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.atlasshop-login-form-submit:hover {
    background-color: #5a3fd6;
}

.atlasshop-login-form-submit:not(:disabled) {
    background-color: var(--atlasshop-primary-color, #2563eb);
}

.atlasshop-login-form-submit:not(:disabled):hover {
    background-color: #1d4ed8;
}

.atlasshop-login-form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.atlasshop-login-form-footer-text {
    margin: 16px 0 0 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #777;
    text-align: center;
}

/* مرحله ۲ فرم ورود: نمایش شماره + کد OTP + تایمر + تایید کد */
.atlasshop-login-form-step2 {
    padding-top: 8px;
}

.atlasshop-login-form-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0 0 16px 0;
    border: none;
    border-radius: 10px;
    background-color: #f0f0f0;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.atlasshop-login-form-back:hover {
    background-color: #e5e5e5;
}

.atlasshop-login-form-back svg {
    width: 20px;
    height: 20px;
}

.atlasshop-login-form-phone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    background-color: #eeeeee;
    border-radius: 16px;
    direction: rtl;
}

.atlasshop-login-form-phone-display {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.atlasshop-login-form-edit-phone {
    font-size: 13px;
    color: var(--atlasshop-primary-color, #2563eb);
    text-decoration: none;
}

.atlasshop-login-form-edit-phone:hover {
    text-decoration: underline;
}

.atlasshop-login-form-phone-row .atlasshop-login-form-edit-phone {
    border-right: 1px solid #ccc;
    padding-right: 12px;
}

.atlasshop-login-form-otp-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    direction: rtl;
}

.atlasshop-login-form-otp-input {
    flex: 1;
    box-sizing: border-box;
    padding: 16px 20px;
    font-size: 16px;
    color: #333;
    border: 2px solid transparent;
    outline: none;
    background-color: #eeeeee;
    border-radius: 16px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.atlasshop-login-form-otp-input:focus {
    border-color: var(--atlasshop-primary-color, #2563eb);
    box-shadow: 0 0 0 1px var(--atlasshop-primary-color, #2563eb);
}

.atlasshop-login-form-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 10px 14px;
    background-color: #eeeeee;
    border-radius: 16px;
    gap: 4px;
}

.atlasshop-login-form-timer-icon {
    display: flex;
    color: #666;
}

.atlasshop-login-form-timer-icon svg {
    width: 16px;
    height: 16px;
}

.atlasshop-login-form-timer-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.atlasshop-login-form-confirm-code {
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background-color: var(--atlasshop-primary-color, #2563eb);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.atlasshop-login-form-confirm-code:hover {
    background-color: #1d4ed8;
}

/* پاپ‌آپ پیام فرم ورود (جایگزین alert) */
.atlasshop-login-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.atlasshop-login-popup-overlay.atlasshop-login-popup-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.atlasshop-login-popup-box {
    width: 100%;
    max-width: 340px;
    padding: 28px 24px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    direction: rtl;
    transform: scale(0.9);
    transition: transform 0.25s ease;
}

.atlasshop-login-popup-overlay.atlasshop-login-popup-open .atlasshop-login-popup-box {
    transform: scale(1);
}

.atlasshop-login-popup-icon {
    color: #ef4444;
    margin-bottom: 16px;
}

.atlasshop-login-popup-icon svg {
    width: 48px;
    height: 48px;
}

.atlasshop-login-popup-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.atlasshop-login-popup-message {
    margin: 0 0 24px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}

.atlasshop-login-popup-ok {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background-color: var(--atlasshop-primary-color, #2563eb);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.atlasshop-login-popup-ok:hover {
    background-color: #1d4ed8;
}

/* حالت مهمان: فرم ورود در وسط صفحه، بدون پس‌زمینه دور فرم، هدر و فوتر مخفی */
.atlasshop-guest-login-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #fff;
}

.atlasshop-guest-login-wrapper .atlasshop-login-form-widget {
    background: transparent;
    padding: 0;
    border-radius: 0;
    max-width: 440px;
}

/* مخفی کردن هدر و فوتر سایت وقتی فقط فرم ورود نمایش داده می‌شود */
body.atlasshop-guest-login-page .site-header,
body.atlasshop-guest-login-page #masthead,
body.atlasshop-guest-login-page header:not(.elementor-element),
body.atlasshop-guest-login-page .site-footer,
body.atlasshop-guest-login-page #colophon,
body.atlasshop-guest-login-page footer {
    display: none !important;
}

/* ============================================
   Account Dashboard Widget — RTL, راست‌چین (مطابق نسخه مرجع)
   منوی عمودی سمت راست، محتوای وسط راست‌چین
   ============================================ */

.atlasshop-account-dashboard {
    width: 100%;
    max-width: 100%;
}

.atlasshop-account-wrapper {
    display: flex;
    gap: 30px;
    direction: rtl;
    align-items: flex-start;
}

/* Sidebar — left, blue #2F53FF */
.atlasshop-account-sidebar {
    width: 280px;
    flex-shrink: 0;
    background-color: #2F53FF;
    border: none;
    border-radius: 16px;
    padding: 24px 20px;
    color: #fff;
}

.atlasshop-account-sidebar-profile {
    text-align: center;
    margin-bottom: 20px;
}

.atlasshop-account-sidebar-avatar {
    margin-bottom: 12px;
}

.atlasshop-account-sidebar-avatar img,
.atlasshop-account-sidebar-avatar .atlasshop-account-sidebar-avatar-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    border: 3px solid rgba(255,255,255,0.4);
}

.atlasshop-account-sidebar-name {
    display: inline-block;
    padding: 10px 18px;
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.atlasshop-account-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.atlasshop-account-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.atlasshop-account-menu-item {
    margin-bottom: 6px;
}

.atlasshop-account-menu-item:last-child {
    margin-bottom: 0;
}

.atlasshop-account-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.atlasshop-account-menu-item:not(.active) .atlasshop-account-menu-link,
.atlasshop-account-menu-item:not(.active) .atlasshop-account-menu-label {
    color: #ffffff;
}

.atlasshop-account-menu-link:hover {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
}

.atlasshop-account-menu-link:hover .atlasshop-account-menu-icon {
    background-color: rgba(255, 255, 255, 0.2);
}

.atlasshop-account-menu-item.active .atlasshop-account-menu-link {
    background-color: #ffffff;
    color: #111827;
}

.atlasshop-account-menu-item.active .atlasshop-account-menu-icon {
    color: #111827;
}

.atlasshop-account-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 10px;
    transition: background-color 0.15s ease;
}

.atlasshop-account-menu-item.active .atlasshop-account-menu-icon {
    background-color: rgba(47, 83, 255, 0.1);
    color: #111827;
}

.atlasshop-account-menu-icon i,
.atlasshop-account-menu-icon svg {
    font-size: inherit;
    width: 1em;
    height: 1em;
}

.atlasshop-account-menu-label {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.atlasshop-account-content-tab {
    display: none;
}

.atlasshop-account-content-tab.active {
    display: block;
}

.atlasshop-account-content {
    flex: 1;
    min-width: 0;
    direction: rtl;
    text-align: right;
}

.atlasshop-account-profile-section {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.atlasshop-account-profile-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.atlasshop-account-profile-avatar {
    flex-shrink: 0;
}

.atlasshop-account-profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.atlasshop-account-profile-details {
    flex: 1;
    text-align: right;
}

.atlasshop-account-profile-name {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.atlasshop-account-profile-phone {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.atlasshop-account-edit-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.atlasshop-account-edit-btn:hover {
    background-color: var(--atlasshop-primary-color, #2563eb);
    color: #ffffff;
}

/* کارت‌های آمار — راست‌چین، وسط‌چین متن (مطابق نسخه مرجع) */
.atlasshop-account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
    width: max-content;
    max-width: 100%;
    margin-inline-start: auto;
    margin-inline-end: 0;
}

.atlasshop-account-stat-card {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 10px 12px;
    position: relative;
    min-height: 58px;
    min-width: 98px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

a.atlasshop-account-stat-card.atlasshop-account-stat-jump-tab {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

a.atlasshop-account-stat-card.atlasshop-account-stat-jump-tab:hover {
    background-color: #eef2ff;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.12);
}

a.atlasshop-account-stat-card.atlasshop-account-stat-jump-tab:focus-visible {
    outline: 2px solid #377cf6;
    outline-offset: 2px;
}

.atlasshop-account-stat-card.atlasshop-account-stat-wallet {
    background-color: #f7f7f7;
}

.atlasshop-account-stat-value-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.atlasshop-account-stat-card .atlasshop-account-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--atlasshop-primary-color-hover, #ea580c);
    line-height: 1.2;
}

.atlasshop-account-stat-card .atlasshop-account-stat-label {
    margin-top: auto;
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
    flex-shrink: 0;
}

.atlasshop-account-stat-wallet {
    padding-top: 24px;
}

.atlasshop-account-stat-wallet-add {
    position: absolute;
    top: -2px;
    right: -2px;
    left: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #9ca3af;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.atlasshop-account-stat-wallet-add:hover {
    background-color: #f9fafb;
    border-color: #6b7280;
    color: #111827;
}

.atlasshop-account-content-area {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    min-height: 400px;
}

.atlasshop-account-empty-content {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 16px;
}

/*
 * کیف پول — سلکتور تحت .atlasshop-account-dashboard تا استایل تم (مثلاً svg { max-width:100% })
 * باعث بزرگ‌شدن تصویر نشود و دکمه‌ها reset نشوند.
 */
.atlasshop-account-dashboard .atlasshop-wallet-wrapper {
    box-sizing: border-box;
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    direction: rtl;
}

.atlasshop-account-dashboard .atlasshop-wallet-panel {
    box-sizing: border-box;
    background: #fafbfc;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    padding: 28px 24px 32px;
}

.atlasshop-account-dashboard .atlasshop-wallet-title {
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.atlasshop-account-dashboard .atlasshop-wallet-balance {
    margin: 0 0 20px;
}

.atlasshop-account-dashboard .atlasshop-wallet-icon-wrap {
    position: relative;
    box-sizing: border-box;
    width: 84px;
    max-width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    color: #377cf6;
    flex-shrink: 0;
}

.atlasshop-account-dashboard .atlasshop-wallet-icon-main {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 64px;
    max-width: 64px;
    height: 64px;
    max-height: 64px;
    margin: 0 auto;
}

.atlasshop-account-dashboard .atlasshop-wallet-icon-main svg {
    box-sizing: border-box;
    display: block;
    width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    max-height: 64px !important;
    flex-shrink: 0;
}

.atlasshop-account-dashboard .atlasshop-wallet-icon-library,
.atlasshop-account-dashboard .atlasshop-wallet-icon-media {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 64px;
    max-width: 64px;
    height: 64px;
    max-height: 64px;
    margin: 0 auto;
    color: #377cf6;
}

.atlasshop-account-dashboard .atlasshop-wallet-icon-library i,
.atlasshop-account-dashboard .atlasshop-wallet-icon-library svg {
    box-sizing: border-box;
    display: block;
    width: 56px !important;
    max-width: 56px !important;
    height: 56px !important;
    max-height: 56px !important;
    font-size: 56px !important;
    line-height: 1;
}

.atlasshop-account-dashboard .atlasshop-wallet-icon-img {
    box-sizing: border-box;
    display: block;
    width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    max-height: 64px !important;
    object-fit: contain;
}

.atlasshop-account-dashboard .atlasshop-wallet-icon-plus {
    position: absolute;
    top: 0;
    right: 2px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #377cf6;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(55, 124, 246, 0.35);
}

.atlasshop-account-dashboard .atlasshop-wallet-description {
    margin-bottom: 14px;
    line-height: 1.85;
}

.atlasshop-account-dashboard .atlasshop-wallet-description p {
    margin: 0;
}

.atlasshop-account-dashboard .atlasshop-wallet-amount-input-wrap {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 18px 0 12px;
}

.atlasshop-account-dashboard .atlasshop-wallet-amount-input {
    box-sizing: border-box;
    width: 220px;
    max-width: 100%;
    height: 72px;
    border: 2px solid #cdd5e1;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
    background: #fff;
}

.atlasshop-account-dashboard .atlasshop-wallet-amount-btn {
    box-sizing: border-box;
    width: 72px;
    height: 56px;
    border-radius: 12px;
    border: none;
    background: #377cf6;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.atlasshop-account-dashboard .atlasshop-wallet-amount-btn:hover {
    background: #2b64d4;
}

.atlasshop-account-dashboard .atlasshop-wallet-validation {
    margin-bottom: 16px;
}

.atlasshop-account-dashboard .atlasshop-wallet-presets {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.atlasshop-account-dashboard .atlasshop-wallet-preset-btn {
    box-sizing: border-box;
    min-width: 112px;
    border: none;
    border-radius: 12px;
    background: #377cf6;
    color: #fff;
    padding: 12px 14px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.atlasshop-account-dashboard .atlasshop-wallet-preset-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(55, 124, 246, 0.28);
}

.atlasshop-account-dashboard .atlasshop-wallet-preset-amount {
    display: block;
    line-height: 1.2;
    font-weight: 700;
}

.atlasshop-account-dashboard .atlasshop-wallet-preset-currency {
    display: block;
    margin-top: 4px;
    font-weight: 600;
    opacity: 0.95;
}

.atlasshop-account-dashboard .atlasshop-wallet-preset-btn.is-active {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28) inset;
}

.atlasshop-account-dashboard .atlasshop-wallet-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.atlasshop-account-dashboard .atlasshop-wallet-action-btn {
    box-sizing: border-box;
    border: none;
    border-radius: 12px;
    min-width: 200px;
    height: 52px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.atlasshop-account-dashboard .atlasshop-wallet-increase-btn {
    background: #377cf6;
    color: #fff;
}

.atlasshop-account-dashboard .atlasshop-wallet-increase-btn:hover {
    background: #2b64d4;
}

.atlasshop-account-dashboard .atlasshop-wallet-refund-btn {
    background: #d9dce3;
    color: #2f3a4a;
}

.atlasshop-account-dashboard .atlasshop-wallet-refund-btn:hover {
    background: #cbd0d9;
}

.atlasshop-account-dashboard .atlasshop-wallet-message {
    display: none;
    margin-top: 14px;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 15px;
}

.atlasshop-account-dashboard .atlasshop-wallet-message.is-error {
    display: block;
    background: #fee2e2;
    color: #b91c1c;
}

@media (max-width: 767px) {
    .atlasshop-account-dashboard .atlasshop-wallet-panel {
        padding: 20px 16px 24px;
    }
    .atlasshop-account-dashboard .atlasshop-wallet-amount-input {
        width: 160px;
        height: 58px;
    }
    .atlasshop-account-dashboard .atlasshop-wallet-amount-btn {
        width: 56px;
        height: 48px;
    }
    .atlasshop-account-dashboard .atlasshop-wallet-action-btn {
        min-width: 100%;
    }
}

/* محتوای پیش‌فرض تب حساب کاربری — راست‌چین */
.atlasshop-dashboard-default {
    padding: 0;
    direction: rtl;
    text-align: right;
}

.atlasshop-dashboard-info {
    margin-bottom: 28px;
}

.atlasshop-dashboard-info-box {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.atlasshop-dashboard-info-line {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    font-size: 15px;
}

.atlasshop-dashboard-info-line .atlasshop-dashboard-info-item:first-child {
    text-align: right;
}

.atlasshop-dashboard-info-line .atlasshop-dashboard-info-item:last-child {
    text-align: left;
}

.atlasshop-dashboard-info-item {
    color: #374151;
}

.atlasshop-dashboard-info-sep {
    height: 0;
    border-top: 1px solid #e5e7eb;
    margin: 14px 0;
}

.atlasshop-dashboard-edit-wrap {
    margin: 0;
    text-align: center;
}

.atlasshop-dashboard-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.atlasshop-dashboard-edit-btn:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.atlasshop-dashboard-edit-icon {
    display: inline-flex;
}

.atlasshop-dashboard-edit-icon svg {
    display: block;
}

.atlasshop-dashboard-orders-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    text-align: right;
}

.atlasshop-dashboard-orders-table-wrap {
    overflow-x: auto;
}

.atlasshop-dashboard-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.atlasshop-dashboard-orders-table th,
.atlasshop-dashboard-orders-table td {
    padding: 12px 14px;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
}

.atlasshop-dashboard-orders-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.atlasshop-dashboard-orders-table td a {
    color: var(--atlasshop-primary-color, #FF8C00);
    text-decoration: none;
}

.atlasshop-dashboard-orders-table td a:hover {
    text-decoration: underline;
}

.atlasshop-dashboard-order-view-btn,
.atlasshop-dashboard-default .atlasshop-dashboard-orders-table .atlasshop-dashboard-order-view-btn,
.atlasshop-dashboard-default button.atlasshop-orders-toggle-detail {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px !important;
    background-color: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: #374151 !important;
    text-decoration: none !important;
    white-space: nowrap;
    font-family: inherit;
}

.atlasshop-dashboard-order-view-btn:hover,
.atlasshop-dashboard-default .atlasshop-dashboard-orders-table .atlasshop-dashboard-order-view-btn:hover {
    background-color: #e5e7eb !important;
    color: #111827 !important;
    text-decoration: none !important;
    border-color: #e5e7eb !important;
}

.atlasshop-dashboard-default .atlasshop-dashboard-detail-row[hidden] {
    display: none !important;
}

.atlasshop-dashboard-default .atlasshop-dashboard-detail-row .atlasshop-orders-detail-cell {
    background-color: #f9fafb;
    padding: 20px 24px !important;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    text-align: right;
}

.atlasshop-dashboard-orders-empty {
    color: #9ca3af;
    text-align: center;
    padding: 24px;
}

/* تب سفارش های من — فیلتر وضعیت و جدول */
.atlasshop-my-orders {
    width: 100%;
}

.atlasshop-my-orders-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 20px;
}

.atlasshop-order-filter-link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
}

.atlasshop-order-filter-link:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.atlasshop-order-filter-link.active {
    background: var(--atlasshop-primary-color, #2563eb);
    border-color: var(--atlasshop-primary-color, #2563eb);
    color: #fff;
}

.atlasshop-order-filter-count {
    font-size: 12px;
    opacity: 0.9;
}

.atlasshop-order-filter-link.active .atlasshop-order-filter-count {
    opacity: 1;
}

.atlasshop-my-orders-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.atlasshop-my-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.atlasshop-my-orders-table th,
.atlasshop-my-orders-table td {
    padding: 12px 14px;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.atlasshop-my-orders-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.atlasshop-my-orders-table tbody tr:last-child td {
    border-bottom: none;
}

.atlasshop-my-orders-num {
    color: var(--atlasshop-primary-color, #FF8C00);
    font-weight: 500;
}

.atlasshop-orders-toggle-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    font-family: inherit;
}

.atlasshop-orders-toggle-detail:hover {
    background-color: #e5e7eb;
}

.atlasshop-orders-toggle-arrow {
    display: inline-flex;
    align-items: center;
    font-size: var(--atlasshop-view-btn-icon-size, 1em);
}

.atlasshop-my-orders .atlasshop-orders-toggle-detail .atlasshop-orders-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--atlasshop-view-btn-icon-size, 1em);
    height: var(--atlasshop-view-btn-icon-size, 1em);
    flex-shrink: 0;
}

.atlasshop-my-orders .atlasshop-orders-toggle-detail .atlasshop-orders-toggle-icon svg,
.atlasshop-my-orders .atlasshop-orders-toggle-detail .atlasshop-orders-toggle-icon-svg svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.atlasshop-my-orders .atlasshop-orders-toggle-detail .atlasshop-orders-toggle-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.atlasshop-my-orders .atlasshop-orders-toggle-detail .atlasshop-orders-toggle-icon i {
    font-size: var(--atlasshop-view-btn-icon-size, 1em);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.atlasshop-orders-detail-row[hidden] {
    display: none !important;
}

.atlasshop-orders-detail-cell {
    background-color: #f9fafb;
    padding: 20px 24px !important;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    text-align: right;
}

.atlasshop-order-detail-inner {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
}

.atlasshop-order-detail-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.atlasshop-order-detail-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 160px;
}

.atlasshop-order-invoice-btn {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    color: #374151;
    cursor: pointer;
}

.atlasshop-order-invoice-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.atlasshop-order-detail-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
}

.atlasshop-order-detail-section-title {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.atlasshop-order-detail-products .atlasshop-order-detail-product {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.atlasshop-order-detail-products .atlasshop-order-detail-product:last-child {
    border-bottom: none;
}

.atlasshop-order-detail-product-name {
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.atlasshop-order-detail-product-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.atlasshop-order-detail-product-meta-item {
    display: inline-block;
    margin-left: 12px;
}

.atlasshop-order-detail-product-meta-item:first-child {
    margin-left: 0;
}

.atlasshop-order-detail-product-meta-bullet {
    margin-left: 4px;
    margin-right: 4px;
    color: #6b7280;
}

.atlasshop-order-detail-product-total {
    font-weight: 500;
    color: #111827;
}

.atlasshop-order-detail-summary .atlasshop-order-detail-summary-line {
    padding: 6px 0;
    font-size: 14px;
}

.atlasshop-order-detail-summary .atlasshop-order-detail-final {
    font-weight: 600;
    font-size: 15px;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #e5e7eb;
}

.atlasshop-order-detail-label {
    color: #6b7280;
    margin-left: 8px;
}

.atlasshop-order-detail-value {
    color: #111827;
}

.atlasshop-order-detail-billing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}

.atlasshop-order-detail-billing-item {
    font-size: 14px;
}

.atlasshop-order-detail-billing-item.atlasshop-order-detail-billing-address {
    grid-column: 1 / -1;
}

.atlasshop-my-orders-empty {
    color: #9ca3af;
    text-align: center;
    padding: 24px;
}

/* فرم ویرایش پروفایل (تب تنظیمات پروفایل) */
.atlasshop-profile-edit {
    padding: 0;
}

.atlasshop-profile-edit-notice-success {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.atlasshop-profile-edit-notice-error {
    background-color: #fee2e2;
    border: 1px solid #f87171;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* دفترچهٔ آدرس‌ها (تب آدرس‌ها — ویجت حساب کاربری) */
.atlasshop-address-book {
    width: 100%;
    text-align: right;
}

.atlasshop-address-book-intro {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.atlasshop-address-book-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.atlasshop-address-book-empty {
    color: #9ca3af;
    margin: 0;
}

.atlasshop-address-book-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px;
    background: #fafafa;
}

.atlasshop-address-book-card.is-default {
    border-color: var(--atlasshop-primary-color, #2563eb);
    background: #eff6ff;
}

.atlasshop-address-book-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 10px;
}

.atlasshop-address-book-label {
    font-weight: 600;
    color: #111827;
}

.atlasshop-address-book-badge {
    font-size: 12px;
    font-weight: 600;
    color: #1d4ed8;
    background: #dbeafe;
    padding: 4px 10px;
    border-radius: 999px;
}

.atlasshop-address-book-card-body {
    font-size: 14px;
    color: #374151;
    line-height: 1.55;
}

.atlasshop-address-book-card-body strong {
    display: block;
    margin-bottom: 4px;
}

.atlasshop-address-book-phone {
    display: inline-block;
    margin-inline-start: 10px;
    color: #6b7280;
    font-size: 13px;
}

.atlasshop-address-book-lines {
    margin: 8px 0 4px 0;
}

.atlasshop-address-book-country {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.atlasshop-address-book-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.atlasshop-address-book-card.is-default .atlasshop-address-book-card-actions {
    border-top-color: #bfdbfe;
}

.atlasshop-address-book-inline-form {
    display: inline;
    margin: 0;
}

.atlasshop-address-book-btn {
    display: inline-block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.3;
}

.atlasshop-address-book-btn-secondary:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.atlasshop-address-book-btn-danger {
    border-color: #fecaca;
    color: #b91c1c;
    background: #fff;
}

.atlasshop-address-book-btn-danger:hover {
    background: #fef2f2;
}

.atlasshop-address-book-form-wrap {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.atlasshop-address-book-form-title {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
}

.atlasshop-address-book-cancel-wrap {
    margin: 0 0 14px 0;
    font-size: 14px;
}

.atlasshop-address-book-cancel-wrap a {
    color: var(--atlasshop-primary-color, #2563eb);
}

.atlasshop-address-book-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    margin-bottom: 8px;
}

.atlasshop-address-book-field-wide {
    grid-column: 1 / -1;
}

.atlasshop-address-book-checkbox-field {
    grid-column: 1 / -1;
}

.atlasshop-address-book-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.atlasshop-address-book-checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .atlasshop-address-book-form-grid {
        grid-template-columns: 1fr;
    }
}

.atlasshop-profile-edit {
    width: 100%;
}

.atlasshop-profile-edit-form {
    width: 100%;
    max-width: 100%;
}

.atlasshop-profile-edit-box {
    width: 100%;
    box-sizing: border-box;
    background-color: #f3f4f6;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.atlasshop-profile-edit-row {
    margin-bottom: 16px;
}

.atlasshop-profile-edit-row:last-child {
    margin-bottom: 0;
}

.atlasshop-profile-edit-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.atlasshop-profile-edit-field {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.atlasshop-profile-edit-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.atlasshop-profile-edit-input,
.atlasshop-profile-edit-select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #111827;
    background-color: #ffffff;
}

.atlasshop-profile-edit-input:focus,
.atlasshop-profile-edit-select:focus {
    outline: none;
    border-color: var(--atlasshop-primary-color, #2563eb);
}

.atlasshop-profile-edit-select {
    cursor: pointer;
    appearance: auto;
}

.atlasshop-profile-edit-date-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

.atlasshop-profile-edit-date-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.atlasshop-profile-edit-date-row .atlasshop-profile-edit-select {
    flex: 1;
    min-width: 0;
}

.atlasshop-profile-edit-date-row .atlasshop-profile-edit-select:first-child {
    flex: 1.2;
}

.atlasshop-profile-edit-file {
    width: 100%;
    padding: 8px 0;
    font-size: 14px;
}

.atlasshop-profile-edit-photo-preview {
    display: block;
    margin-bottom: 10px;
}

.atlasshop-profile-edit-photo-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.atlasshop-profile-edit-submit-wrap {
    margin: 0;
}

.atlasshop-profile-edit-submit {
    padding: 12px 24px;
    background-color: var(--atlasshop-primary-color, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.atlasshop-profile-edit-submit:hover {
    background-color: #1d4ed8;
}

.atlasshop-account-notice {
    background-color: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 16px;
    color: #92400e;
    text-align: center;
    margin: 20px 0;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 1024px) {
    .atlasshop-account-wrapper {
        flex-direction: column;
    }
    
    .atlasshop-account-sidebar {
        width: 100%;
    }
    
    .atlasshop-account-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .atlasshop-account-menu-item {
        margin-bottom: 0;
        flex: 1;
        min-width: 120px;
    }
    
    .atlasshop-account-menu-link {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .atlasshop-account-profile-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .atlasshop-account-profile-info {
        width: 100%;
    }
    
    .atlasshop-account-edit-btn {
        width: 100%;
        text-align: center;
    }
    
    .atlasshop-account-stats {
        grid-template-columns: 1fr;
    }
    
    .atlasshop-account-content-area {
        padding: 16px;
    }
}

/* ============================================
   استایل‌های ویجت صفحه 404
   ============================================ */

.atlasshop-404-widget {
    background-color: #007aff;
    color: #fff;
    font-size: 100%;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.atlasshop-404-widget h1 {
    text-align: center;
    font-size: 15em;
    font-weight: 100;
    margin: 0;
    line-height: 1;
    text-shadow: #0062cc 1px 1px, #0062cc 2px 2px, #0062cc 3px 3px, #0062cd 4px 4px, #0062cd 5px 5px, #0062cd 6px 6px, #0062cd 7px 7px, #0062ce 8px 8px, #0063ce 9px 9px, #0063ce 10px 10px, #0063ce 11px 11px, #0063cf 12px 12px, #0063cf 13px 13px, #0063cf 14px 14px, #0063cf 15px 15px, #0063d0 16px 16px, #0064d0 17px 17px, #0064d0 18px 18px, #0064d0 19px 19px, #0064d1 20px 20px, #0064d1 21px 21px, #0064d1 22px 22px, #0064d1 23px 23px, #0064d2 24px 24px, #0065d2 25px 25px, #0065d2 26px 26px, #0065d2 27px 27px, #0065d3 28px 28px, #0065d3 29px 29px, #0065d3 30px 30px, #0065d3 31px 31px, #0065d4 32px 32px, #0065d4 33px 33px, #0066d4 34px 34px, #0066d4 35px 35px, #0066d5 36px 36px, #0066d5 37px 37px, #0066d5 38px 38px, #0066d5 39px 39px, #0066d6 40px 40px, #0066d6 41px 41px, #0067d6 42px 42px, #0067d6 43px 43px, #0067d7 44px 44px, #0067d7 45px 45px, #0067d7 46px 46px, #0067d7 47px 47px, #0067d8 48px 48px, #0067d8 49px 49px, #0068d8 50px 50px, #0068d9 51px 51px, #0068d9 52px 52px, #0068d9 53px 53px, #0068d9 54px 54px, #0068da 55px 55px, #0068da 56px 56px, #0068da 57px 57px, #0068da 58px 58px, #0069db 59px 59px, #0069db 60px 60px, #0069db 61px 61px, #0069db 62px 62px, #0069dc 63px 63px, #0069dc 64px 64px, #0069dc 65px 65px, #0069dc 66px 66px, #006add 67px 67px, #006add 68px 68px, #006add 69px 69px, #006add 70px 70px, #006ade 71px 71px, #006ade 72px 72px, #006ade 73px 73px, #006ade 74px 74px, #006bdf 75px 75px, #006bdf 76px 76px, #006bdf 77px 77px, #006bdf 78px 78px, #006be0 79px 79px, #006be0 80px 80px, #006be0 81px 81px, #006be0 82px 82px, #006be1 83px 83px, #006ce1 84px 84px, #006ce1 85px 85px, #006ce1 86px 86px, #006ce2 87px 87px, #006ce2 88px 88px, #006ce2 89px 89px, #006ce2 90px 90px, #006ce3 91px 91px, #006de3 92px 92px, #006de3 93px 93px, #006de3 94px 94px, #006de4 95px 95px, #006de4 96px 96px, #006de4 97px 97px, #006de4 98px 98px, #006de5 99px 99px, #006ee5 100px 100px, #006ee5 101px 101px, #006ee6 102px 102px, #006ee6 103px 103px, #006ee6 104px 104px, #006ee6 105px 105px, #006ee7 106px 106px, #006ee7 107px 107px, #006ee7 108px 108px, #006fe7 109px 109px, #006fe8 110px 110px, #006fe8 111px 111px, #006fe8 112px 112px, #006fe8 113px 113px, #006fe9 114px 114px, #006fe9 115px 115px, #006fe9 116px 116px, #0070e9 117px 117px, #0070ea 118px 118px, #0070ea 119px 119px, #0070ea 120px 120px, #0070ea 121px 121px, #0070eb 122px 122px, #0070eb 123px 123px, #0070eb 124px 124px, #0071eb 125px 125px, #0071ec 126px 126px, #0071ec 127px 127px, #0071ec 128px 128px, #0071ec 129px 129px, #0071ed 130px 130px, #0071ed 131px 131px, #0071ed 132px 132px, #0071ed 133px 133px, #0072ee 134px 134px, #0072ee 135px 135px, #0072ee 136px 136px, #0072ee 137px 137px, #0072ef 138px 138px, #0072ef 139px 139px, #0072ef 140px 140px, #0072ef 141px 141px, #0073f0 142px 142px, #0073f0 143px 143px, #0073f0 144px 144px, #0073f0 145px 145px, #0073f1 146px 146px, #0073f1 147px 147px, #0073f1 148px 148px, #0073f1 149px 149px, #0074f2 150px 150px, #0074f2 151px 151px, #0074f2 152px 152px, #0074f3 153px 153px, #0074f3 154px 154px, #0074f3 155px 155px, #0074f3 156px 156px, #0074f4 157px 157px, #0074f4 158px 158px, #0075f4 159px 159px, #0075f4 160px 160px, #0075f5 161px 161px, #0075f5 162px 162px, #0075f5 163px 163px, #0075f5 164px 164px, #0075f6 165px 165px, #0075f6 166px 166px, #0076f6 167px 167px, #0076f6 168px 168px, #0076f7 169px 169px, #0076f7 170px 170px, #0076f7 171px 171px, #0076f7 172px 172px, #0076f8 173px 173px, #0076f8 174px 174px, #0077f8 175px 175px, #0077f8 176px 176px, #0077f9 177px 177px, #0077f9 178px 178px, #0077f9 179px 179px, #0077f9 180px 180px, #0077fa 181px 181px, #0077fa 182px 182px, #0077fa 183px 183px, #0078fa 184px 184px, #0078fb 185px 185px, #0078fb 186px 186px, #0078fb 187px 187px, #0078fb 188px 188px, #0078fc 189px 189px, #0078fc 190px 190px, #0078fc 191px 191px, #0079fc 192px 192px, #0079fd 193px 193px, #0079fd 194px 194px, #0079fd 195px 195px, #0079fd 196px 196px, #0079fe 197px 197px, #0079fe 198px 198px, #0079fe 199px 199px, #007aff 200px 200px;
}

.atlasshop-404-widget p {
    font-size: 2em;
    text-align: center;
    font-weight: 100;
    margin: 20px 0;
}

.atlasshop-404-widget .button {
    font-weight: 300;
    color: #fff;
    font-size: 1.2em;
    text-decoration: none;
    border: 1px solid #efefef;
    padding: .5em;
    border-radius: 3px;
    display: inline-block;
    margin: 6em 0 0 0;
    position: relative;
    transition: all .3s linear;
    background-color: transparent;
}

.atlasshop-404-widget .button:hover {
    background-color: #007aff;
    color: #fff;
}

.atlasshop-404-widget .button .icon-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.atlasshop-404-widget .button .icon-home i,
.atlasshop-404-widget .button .icon-home svg {
    font-size: 1em;
    width: 1em;
    height: 1em;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .atlasshop-404-widget h1 {
        font-size: 8em !important;
    }
    
    .atlasshop-404-widget p {
        font-size: 1.5em !important;
    }
    
    .atlasshop-404-widget .button {
        font-size: 1em;
        margin: 3em 0 0 0;
        padding: 0.8em 1em;
    }
}

@media (max-width: 480px) {
    .atlasshop-404-widget h1 {
        font-size: 5em !important;
    }
    
    .atlasshop-404-widget p {
        font-size: 1.2em !important;
    }
    
    .atlasshop-404-widget .button {
        font-size: 0.9em;
        margin: 2em 0 0 0;
        padding: 0.6em 0.8em;
    }
}

/* ============================================
   ویجت محصولات مرتبط (همان استایل گرید محصولات)
   ============================================ */

.atlasshop-related-products-wrap {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.atlasshop-related-products-title,
.atlasshop-products-section-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    text-align: right;
    width: 100%;
}

.elementor-widget-atlasshop_related_products .atlasshop-products-grid-widget {
    margin-top: 0;
}

/* لیست محصولات / نتایج جستجو: حذف اسکرول عمودی (کانتینر المنتور، ستون flex، e-child) */
.elementor-widget-atlasshop_products_list,
.elementor-widget-atlasshop_products_list.elementor-widget,
.elementor-widget-atlasshop_products_list .elementor-widget-container,
.elementor-widget-atlasshop_products_list .elementor-widget-wrap,
.elementor-widget-atlasshop_search_results_products,
.elementor-widget-atlasshop_search_results_products.elementor-widget,
.elementor-widget-atlasshop_search_results_products .elementor-widget-container,
.elementor-widget-atlasshop_search_results_products .elementor-widget-wrap {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    max-height: none !important;
    height: auto !important;
    min-height: unset !important;
}

.elementor-widget-atlasshop_products_list .atlasshop-products-grid-widget,
.elementor-widget-atlasshop_search_results_products .atlasshop-products-grid-widget,
.atlasshop-products-list-root {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

.elementor-widget-atlasshop_products_list .atlasshop-products-grid,
.elementor-widget-atlasshop_search_results_products .atlasshop-products-grid,
.atlasshop-products-list-root .atlasshop-products-grid {
    overflow: visible !important;
    max-height: none !important;
}

/* ستون/فرزند flex که ویجت لیست در آن است — جلوگیری از کشش هم‌قد با ستون فیلتر و اسکرول داخلی */
.elementor-column:has(.elementor-widget-atlasshop_products_list),
.elementor-column:has(.elementor-widget-atlasshop_search_results_products),
.elementor-column:has(.atlasshop-products-list-root),
.e-child:has(.elementor-widget-atlasshop_products_list),
.e-child:has(.elementor-widget-atlasshop_search_results_products),
.e-child:has(.atlasshop-products-list-root) {
    align-self: flex-start !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

.elementor-widget-atlasshop_products_list.elementor-widget,
.elementor-widget-atlasshop_search_results_products.elementor-widget {
    flex: 0 1 auto !important;
    min-height: auto !important;
    align-self: flex-start !important;
}

/* ============================================
   استایل‌های ویجت گرید محصولات
   ============================================ */

.atlasshop-products-grid-widget {
    width: 100%;
    max-width: min(100%, 1600px) !important;
    margin: 0 auto !important;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
    min-width: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Override wrapperهای Elementor برای محدود کردن عرض (گرید محصولات + محصولات مرتبط) */
.elementor-widget-products_grid,
.elementor-widget-atlasshop_related_products {
    max-width: min(100%, 1600px) !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    min-width: 0;
}

.elementor-widget-products_grid .elementor-widget-container,
.elementor-widget-atlasshop_related_products .elementor-widget-container {
    max-width: min(100%, 1600px) !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    min-width: 0;
}

/* Override section و column Elementor - استفاده از selector عمومی‌تر */
.elementor-section .elementor-widget-products_grid,
.elementor-column .elementor-widget-products_grid,
.elementor-section .elementor-widget-atlasshop_related_products,
.elementor-column .elementor-widget-atlasshop_related_products {
    max-width: min(100%, 1600px) !important;
    margin: 0 auto !important;
    min-width: 0;
}

.elementor-section .elementor-container .elementor-widget-products_grid,
.elementor-column .elementor-widget-products_grid,
.elementor-section .elementor-container .elementor-widget-atlasshop_related_products,
.elementor-column .elementor-widget-atlasshop_related_products {
    max-width: min(100%, 1600px) !important;
    margin: 0 auto !important;
    min-width: 0;
}

/* Override برای section و container که شامل این ویجت‌ها هستند */
.elementor-section:has(.elementor-widget-products_grid) .elementor-container,
.elementor-column:has(.elementor-widget-products_grid),
.elementor-section:has(.elementor-widget-atlasshop_related_products) .elementor-container,
.elementor-column:has(.elementor-widget-atlasshop_related_products) {
    max-width: min(100%, 1600px) !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    min-width: 0;
}

.atlasshop-products-grid-widget.atlasshop-horizontal-scroll {
    padding-right: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden;
    overflow-y: visible;
    max-width: min(100%, 1600px) !important;
    min-width: 0;
    margin-left: auto !important;
    margin-right: auto !important;
}

.atlasshop-products-grid-widget.atlasshop-horizontal-scroll .atlasshop-products-grid-wrapper {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: visible;
    padding-right: 0 !important;
    margin-right: 0 !important;
}

/* دکمه مشاهده همه */
.atlasshop-products-filters {
    display: flex !important;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between !important;
    position: relative;
    flex-direction: row;
    direction: rtl;
}

.atlasshop-view-all-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--atlasshop-primary-color, #f97316);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
    order: 2 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.atlasshop-products-filters-wrapper {
    display: flex !important;
    gap: 12px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    order: 1 !important;
}

.atlasshop-view-all-button:hover {
    background-color: var(--atlasshop-primary-color-hover, #ea580c);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
}

.atlasshop-view-all-icon,
.atlasshop-view-all-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.3s ease;
}

.atlasshop-view-all-icon i,
.atlasshop-view-all-icon svg,
.atlasshop-view-all-icon-svg svg {
    display: block;
}

.atlasshop-view-all-button:hover .atlasshop-view-all-icon,
.atlasshop-view-all-button:hover .atlasshop-view-all-icon-svg {
    transform: translateX(-3px);
}

/* در RTL جهت حرکت آیکن «مشاهده همه» با جهت متن هم‌خوان شود */
[dir="rtl"] .atlasshop-view-all-button:hover .atlasshop-view-all-icon,
[dir="rtl"] .atlasshop-view-all-button:hover .atlasshop-view-all-icon-svg,
body.rtl .atlasshop-view-all-button:hover .atlasshop-view-all-icon,
body.rtl .atlasshop-view-all-button:hover .atlasshop-view-all-icon-svg {
    transform: translateX(3px);
}

.atlasshop-products-filter {
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.atlasshop-filter-icon,
.atlasshop-filter-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.atlasshop-filter-icon i,
.atlasshop-filter-icon svg {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.atlasshop-filter-icon-svg svg {
    width: 14px;
    height: 14px;
    display: block;
}

.atlasshop-filter-icon-svg {
    line-height: 1;
}

.atlasshop-products-filter:hover {
    border-color: currentColor;
}

.atlasshop-products-filter.active {
    border-color: transparent;
}

/* نوار مرتب‌سازی (ویجت لیست محصولات) */
.atlasshop-products-filters.atlasshop-products-filters--sort {
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.atlasshop-products-filters-wrapper--sort {
    flex: 1 1 auto;
    min-width: 0;
    order: 1 !important;
}

.atlasshop-products-sort-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    width: 100%;
    direction: rtl;
}

.atlasshop-products-sort-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.atlasshop-products-sort-head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.atlasshop-products-sort-head-icon svg {
    display: block;
}

.atlasshop-products-sort-label {
    white-space: nowrap;
}

.atlasshop-products-sort-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    flex: 1 1 auto;
    justify-content: flex-start;
}

.atlasshop-products-sort-option {
    margin: 0;
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 999px;
    font-family: inherit;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    display: inline-block;
    line-height: inherit;
}

.atlasshop-products-sort-option.active {
    border: none;
}

/* صفحه‌بندی لیست محصولات */
.atlasshop-products-pagination {
    margin-top: 28px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 4;
    isolation: isolate;
}

.atlasshop-products-pagination ul.page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    direction: rtl;
}

.atlasshop-products-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
}

.atlasshop-products-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    position: relative;
    z-index: 1;
}

.atlasshop-products-pagination a.page-numbers:hover,
.atlasshop-products-pagination span.page-numbers.dots:hover {
    color: var(--atlasshop-primary-color, #f04e63);
    border-color: #fecdd3;
    background: #fff1f2;
}

.atlasshop-products-pagination .page-numbers.current,
.atlasshop-products-pagination span.page-numbers.current {
    background: var(--atlasshop-primary-color, #f04e63);
    color: #ffffff;
    border-color: var(--atlasshop-primary-color, #f04e63);
}

.atlasshop-products-pagination .page-numbers.dots {
    min-width: auto;
    padding: 0 6px;
    background: transparent;
    border: none;
}

.atlasshop-products-pagination--preview {
    opacity: 0.85;
    pointer-events: none;
}

.atlasshop-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px !important;
    max-width: min(100%, 1600px) !important;
    margin: 0 auto !important;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    align-items: stretch;
}

/* Override gap برای همه المنتور المنت‌ها */
.elementor-element .atlasshop-products-grid,
.elementor-2 .elementor-element .atlasshop-products-grid,
.elementor-element.elementor-element-4d9e1a7 .atlasshop-products-grid,
.elementor-element.elementor-element-508a056 .atlasshop-products-grid {
    gap: 10px !important;
}

/* تنظیم gap برای المنتور المنت خاص */
.elementor-2 .elementor-element.elementor-element-508a056 .atlasshop-products-grid {
    gap: 10px !important;
}

/* حالت نمایش افقی با اسکرول (فقط تبلت و دسکتاپ — در موبایل گرید چندردیفی) */
@media (min-width: 769px) {
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll .atlasshop-products-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        gap: 10px;
        width: 100%;
        max-width: min(100%, 1600px) !important;
        min-width: 0;
        margin: 0 auto !important;
        grid-template-columns: none !important;
        grid-auto-flow: unset !important;
        justify-content: flex-start !important;
        align-items: stretch;
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        box-sizing: border-box;
    }

    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll .atlasshop-product-card {
        display: flex !important;
        flex-direction: column;
        box-sizing: border-box;
        overflow: visible;
        margin: 0 !important;
        padding: 0;
    }

    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll .atlasshop-product-card:first-child {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

/* در دسکتاپ اسکرول را حذف کن و فقط تعداد محدود نمایش بده */
@media (min-width: 1025px) {
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll {
        padding-right: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden;
        overflow-y: visible;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll .atlasshop-products-grid {
        overflow-x: hidden !important;
        padding-right: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
    }
    
    /* برای محصول آخر، margin-right اضافه کن تا بوردر کامل نمایش داده شود */
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="6"] .atlasshop-product-card:nth-child(6),
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="5"] .atlasshop-product-card:nth-child(5),
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="4"] .atlasshop-product-card:nth-child(4),
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="3"] .atlasshop-product-card:nth-child(3),
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="2"] .atlasshop-product-card:nth-child(2),
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="1"] .atlasshop-product-card:nth-child(1) {
        margin-right: 0 !important;
    }
    
    /* تنظیم بر اساس data-max-visible */
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="1"] .atlasshop-product-card:nth-child(n+2) {
        display: none !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="2"] .atlasshop-product-card:nth-child(n+3) {
        display: none !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="3"] .atlasshop-product-card:nth-child(n+4) {
        display: none !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="4"] .atlasshop-product-card:nth-child(n+5) {
        display: none !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="5"] .atlasshop-product-card:nth-child(n+6) {
        display: none !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="6"] .atlasshop-product-card:nth-child(n+7) {
        display: none !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="7"] .atlasshop-product-card:nth-child(n+8) {
        display: none !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="8"] .atlasshop-product-card:nth-child(n+9) {
        display: none !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="9"] .atlasshop-product-card:nth-child(n+10) {
        display: none !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="10"] .atlasshop-product-card:nth-child(n+11) {
        display: none !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="11"] .atlasshop-product-card:nth-child(n+12) {
        display: none !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="12"] .atlasshop-product-card:nth-child(n+13) {
        display: none !important;
    }
    
    /* عرض کارت‌ها نسبت به عرض واقعی ردیف (کانتینر)، نه 1600px ثابت — جلوگیری از بیرون‌زدگی در کانتینرهای باریک */
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="1"] .atlasshop-product-card {
        width: calc((100% - 0px) / 1) !important;
        min-width: calc((100% - 0px) / 1) !important;
        max-width: calc((100% - 0px) / 1) !important;
        flex: 0 0 calc((100% - 0px) / 1) !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="2"] .atlasshop-product-card {
        width: calc((100% - 10px) / 2) !important;
        min-width: calc((100% - 10px) / 2) !important;
        max-width: calc((100% - 10px) / 2) !important;
        flex: 0 0 calc((100% - 10px) / 2) !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="3"] .atlasshop-product-card {
        width: calc((100% - 20px) / 3) !important;
        min-width: calc((100% - 20px) / 3) !important;
        max-width: calc((100% - 20px) / 3) !important;
        flex: 0 0 calc((100% - 20px) / 3) !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="4"] .atlasshop-product-card {
        width: calc((100% - 30px) / 4) !important;
        min-width: calc((100% - 30px) / 4) !important;
        max-width: calc((100% - 30px) / 4) !important;
        flex: 0 0 calc((100% - 30px) / 4) !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="5"] .atlasshop-product-card {
        width: calc((100% - 40px) / 5) !important;
        min-width: calc((100% - 40px) / 5) !important;
        max-width: calc((100% - 40px) / 5) !important;
        flex: 0 0 calc((100% - 40px) / 5) !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="6"] .atlasshop-product-card {
        width: calc((100% - 50px) / 6) !important;
        min-width: calc((100% - 50px) / 6) !important;
        max-width: calc((100% - 50px) / 6) !important;
        flex: 0 0 calc((100% - 50px) / 6) !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="7"] .atlasshop-product-card {
        width: calc((100% - 60px) / 7) !important;
        min-width: calc((100% - 60px) / 7) !important;
        max-width: calc((100% - 60px) / 7) !important;
        flex: 0 0 calc((100% - 60px) / 7) !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="8"] .atlasshop-product-card {
        width: calc((100% - 70px) / 8) !important;
        min-width: calc((100% - 70px) / 8) !important;
        max-width: calc((100% - 70px) / 8) !important;
        flex: 0 0 calc((100% - 70px) / 8) !important;
    }

    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="9"] .atlasshop-product-card {
        width: calc((100% - 80px) / 9) !important;
        min-width: calc((100% - 80px) / 9) !important;
        max-width: calc((100% - 80px) / 9) !important;
        flex: 0 0 calc((100% - 80px) / 9) !important;
    }

    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="10"] .atlasshop-product-card {
        width: calc((100% - 90px) / 10) !important;
        min-width: calc((100% - 90px) / 10) !important;
        max-width: calc((100% - 90px) / 10) !important;
        flex: 0 0 calc((100% - 90px) / 10) !important;
    }

    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="11"] .atlasshop-product-card {
        width: calc((100% - 100px) / 11) !important;
        min-width: calc((100% - 100px) / 11) !important;
        max-width: calc((100% - 100px) / 11) !important;
        flex: 0 0 calc((100% - 100px) / 11) !important;
    }

    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible="12"] .atlasshop-product-card {
        width: calc((100% - 110px) / 12) !important;
        min-width: calc((100% - 110px) / 12) !important;
        max-width: calc((100% - 110px) / 12) !important;
        flex: 0 0 calc((100% - 110px) / 12) !important;
    }
}

/* اسکرول افقی فقط در تبلت (نه موبایل) */
@media (min-width: 769px) and (max-width: 1024px) {
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll .atlasshop-products-grid {
        overflow-x: auto !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 #f1f5f9;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll .atlasshop-products-grid::-webkit-scrollbar {
        height: 8px;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll .atlasshop-products-grid::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 4px;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll .atlasshop-products-grid::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll .atlasshop-products-grid::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
    
    /* تنظیم عرض کارت‌ها در تبلت بر اساس تعداد کارت قابل مشاهده */
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible-mobile="1"] .atlasshop-product-card {
        min-width: calc(100% - 12px) !important;
        max-width: calc(100% - 12px) !important;
        width: calc(100% - 12px) !important;
        flex: 0 0 calc(100% - 12px) !important;
    }

    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible-mobile="1.5"] .atlasshop-product-card {
        min-width: calc((100% - 10px) / 1.5) !important;
        max-width: calc((100% - 10px) / 1.5) !important;
        width: calc((100% - 10px) / 1.5) !important;
        flex: 0 0 calc((100% - 10px) / 1.5) !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible-mobile="2"] .atlasshop-product-card {
        min-width: calc((100% - 10px) / 2) !important;
        max-width: calc((100% - 10px) / 2) !important;
        width: calc((100% - 10px) / 2) !important;
        flex: 0 0 calc((100% - 10px) / 2) !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible-mobile="3"] .atlasshop-product-card {
        min-width: calc((100% - 20px) / 3) !important;
        max-width: calc((100% - 20px) / 3) !important;
        width: calc((100% - 20px) / 3) !important;
        flex: 0 0 calc((100% - 20px) / 3) !important;
    }
    
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll[data-max-visible-mobile="4"] .atlasshop-product-card {
        min-width: calc((100% - 30px) / 4) !important;
        max-width: calc((100% - 30px) / 4) !important;
        width: calc((100% - 30px) / 4) !important;
        flex: 0 0 calc((100% - 30px) / 4) !important;
    }
}

@media (min-width: 769px) {
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll .atlasshop-product-card {
        flex: 0 0 auto !important;
        min-width: 280px;
        max-width: 280px;
        width: 280px;
        flex-shrink: 0;
    }
}

/* حالت گرید عادی — minmax(0,1fr) برای جلوگیری از بیرون‌زدگی به‌خاطر min-content آیتم‌ها */
.atlasshop-products-grid-widget:not(.atlasshop-horizontal-scroll) .atlasshop-products-grid[data-columns="1"] {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.atlasshop-products-grid-widget:not(.atlasshop-horizontal-scroll) .atlasshop-products-grid[data-columns="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.atlasshop-products-grid-widget:not(.atlasshop-horizontal-scroll) .atlasshop-products-grid[data-columns="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.atlasshop-products-grid-widget:not(.atlasshop-horizontal-scroll) .atlasshop-products-grid[data-columns="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.atlasshop-products-grid-widget:not(.atlasshop-horizontal-scroll) .atlasshop-products-grid[data-columns="5"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.atlasshop-products-grid-widget:not(.atlasshop-horizontal-scroll) .atlasshop-products-grid[data-columns="6"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* استایل آیکن دکمه افزودن به سبد */
.atlasshop-add-to-cart-icon,
.atlasshop-add-to-cart-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.atlasshop-add-to-cart-icon i,
.atlasshop-add-to-cart-icon svg {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: inherit;
}

.atlasshop-add-to-cart-icon-svg svg {
    width: 14px;
    height: 14px;
    display: block;
    fill: currentColor;
    color: inherit;
}

.atlasshop-product-add-to-cart .atlasshop-add-to-cart-icon,
.atlasshop-product-add-to-cart .atlasshop-add-to-cart-icon-svg {
    color: inherit;
}

.atlasshop-product-add-to-cart .atlasshop-add-to-cart-icon i,
.atlasshop-product-add-to-cart .atlasshop-add-to-cart-icon svg,
.atlasshop-product-add-to-cart .atlasshop-add-to-cart-icon-svg svg {
    color: inherit;
    fill: currentColor;
}

.atlasshop-add-to-cart-text {
    white-space: nowrap;
}

.atlasshop-product-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.atlasshop-product-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    position: relative;
    transition: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    align-self: stretch;
}

.atlasshop-products-grid-widget .atlasshop-product-card.atlasshop-filter-suppressed {
    display: none !important;
}

.atlasshop-product-rating {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* بج ناموجود: زیر عنوان، نوار تمام‌عرض و خوانا */
.atlasshop-product-stock-badge--in-card {
    align-self: stretch;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 0 8px 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(180deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* کارت ناموجود: دکمه به پایین کشیده نشود؛ قیمت ارتفاع رزرو نگیرد */
.atlasshop-product-card--out-of-stock .atlasshop-product-actions {
    margin-top: 6px;
}

.atlasshop-product-card--out-of-stock .atlasshop-product-price-wrapper {
    min-height: 0;
    margin-bottom: 8px;
}

.atlasshop-product-card--out-of-stock .atlasshop-product-title {
    margin-bottom: 6px;
}

.atlasshop-product-card--out-of-stock .atlasshop-product-stock-badge--in-card {
    margin-bottom: 6px;
}

.atlasshop-product-card--out-of-stock:hover .atlasshop-product-info {
    padding-bottom: 0;
}

.atlasshop-animated-product-card--out-of-stock .atlasshop-animated-product-actions {
    margin-top: 6px;
}

.atlasshop-animated-product-card--out-of-stock .atlasshop-animated-product-price-wrapper {
    min-height: 0;
    margin-bottom: 8px;
}

.atlasshop-animated-product-card--out-of-stock .atlasshop-animated-product-title {
    margin-bottom: 6px;
}

.atlasshop-animated-product-card--out-of-stock .atlasshop-product-stock-badge--in-card {
    margin-bottom: 6px;
}

.atlasshop-rating-stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    font-size: 12px;
    align-items: center;
}

.atlasshop-rating-stars .far {
    color: #d1d5db;
}

/* آیکن‌های ستاره به صورت SVG لوکال */
.atlasshop-rating-stars svg {
    width: 14px;
    height: 14px;
    display: block;
    flex-shrink: 0;
}

.atlasshop-rating-stars .star-empty {
    color: #d1d5db;
}

.atlasshop-rating-stars .star-empty svg {
    fill: #d1d5db;
    stroke: #d1d5db;
}

.atlasshop-rating-stars .star-half {
    color: #fbbf24;
}

.atlasshop-rating-stars .star-half svg {
    fill: #fbbf24;
}

.atlasshop-rating-stars .star-full {
    color: #fbbf24;
}

.atlasshop-rating-stars .star-full svg {
    fill: #fbbf24;
}

.atlasshop-rating-value {
    font-size: 12px;
    font-weight: 600;
    color: #333333;
}

.atlasshop-product-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.atlasshop-product-image {
    width: 100%;
    overflow: visible;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
    transition: transform 0.3s ease;
}

.atlasshop-product-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.atlasshop-product-image img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* سایه زیر تصویر با hover */
.atlasshop-product-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.atlasshop-product-image {
    position: relative;
    z-index: 2;
}

/* سایه زیر تصویر */
.atlasshop-product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.15) 40%, transparent 70%);
    border-radius: 20px;
    transition: height 0.5s ease, margin-top 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    filter: blur(4px);
}

.atlasshop-product-card:hover .atlasshop-product-image {
    transform: translateY(-8px);
}

.atlasshop-product-card:hover .atlasshop-product-image::after {
    height: 20px;
    margin-top: 28px;
    transform: translateX(-50%) rotate(1deg);
    opacity: 0.7;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%);
}

.atlasshop-product-card:hover .atlasshop-product-image img {
    transform: scale(1.05);
    position: relative;
    z-index: 1;
}

/* ویژگی‌های محصول در هاور */
.atlasshop-product-features-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 100%);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--atlasshop-primary-color, #f97316);
    padding: 16px 12px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    z-index: 5;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12), 0 -2px 8px rgba(249, 115, 22, 0.15);
    border-radius: 0 0 23px 23px;
    margin: 0 1px 1px 1px;
    pointer-events: none;
}

.atlasshop-product-card:hover .atlasshop-product-features-hover {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.atlasshop-product-features-list {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0;
    flex-wrap: nowrap;
    direction: rtl;
}

.atlasshop-product-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex: 1;
    min-width: 0;
    padding: 4px 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
    max-width: 25%;
}

.atlasshop-product-card:hover .atlasshop-product-feature-item {
    animation: featureFadeIn 0.6s ease forwards;
}

.atlasshop-product-card:hover .atlasshop-product-feature-item:nth-child(1) {
    animation-delay: 0.1s;
}

.atlasshop-product-card:hover .atlasshop-product-feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.atlasshop-product-card:hover .atlasshop-product-feature-item:nth-child(3) {
    animation-delay: 0.3s;
}

.atlasshop-product-card:hover .atlasshop-product-feature-item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes featureFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.atlasshop-product-feature-item:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.atlasshop-product-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    background: linear-gradient(135deg, var(--atlasshop-primary-color, #f97316) 0%, var(--atlasshop-primary-color-hover, #ea580c) 100%);
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
    transition: all 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.atlasshop-product-feature-icon > * {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.atlasshop-product-feature-item:hover .atlasshop-product-feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.atlasshop-product-feature-icon svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
    color: #ffffff !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
}

.atlasshop-product-feature-title {
    font-size: 11px;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    max-width: 100%;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 28px;
}

.atlasshop-product-feature-item:hover .atlasshop-product-feature-title {
    color: var(--atlasshop-primary-color, #f97316);
}

.atlasshop-product-feature-separator {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, transparent 0%, #e5e7eb 20%, #e5e7eb 80%, transparent 100%);
    margin: 0 4px;
    flex-shrink: 0;
    opacity: 0.4;
}

.atlasshop-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    transition: padding-bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.atlasshop-product-card:hover .atlasshop-product-info {
    padding-bottom: 80px;
}

/* ویجت لیست محصولات: بدون پنل/جابه‌جایی هاور (پیش‌تر ویژگی‌ها از زیر کارت می‌آمد) */
.atlasshop-products-grid-widget[data-atlasshop-toolbar="sort"] .atlasshop-product-features-hover {
    display: none !important;
}

.atlasshop-products-grid-widget[data-atlasshop-toolbar="sort"] .atlasshop-product-card:hover .atlasshop-product-image,
.atlasshop-products-grid-widget[data-atlasshop-toolbar="sort"] .atlasshop-product-card:hover .atlasshop-product-image img {
    transform: none;
}

.atlasshop-products-grid-widget[data-atlasshop-toolbar="sort"] .atlasshop-product-card:hover .atlasshop-product-image::after {
    height: 0 !important;
    margin-top: 0 !important;
    opacity: 0 !important;
    transform: translateX(-50%) !important;
}

.atlasshop-products-grid-widget[data-atlasshop-toolbar="sort"] .atlasshop-product-card:hover .atlasshop-product-info {
    padding-bottom: 0;
}

.atlasshop-product-title {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin: 0 0 10px 0;
    line-height: 1.5;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    width: 100%;
}

.atlasshop-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.atlasshop-product-title a:hover {
    color: var(--atlasshop-primary-color, #2563eb);
}

.atlasshop-product-price-wrapper {
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex-shrink: 0;
}

.atlasshop-product-discount {
    display: inline-block;
    margin-bottom: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1.4;
}

.atlasshop-product-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    line-height: 1.45;
}

.atlasshop-product-price del,
.atlasshop-product-price ins {
    display: block;
    width: 100%;
    text-align: center;
}

.atlasshop-product-price del {
    margin: 0;
    order: 1;
}

.atlasshop-product-price ins {
    text-decoration: none;
    order: 2;
}

.atlasshop-product-price > .price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.atlasshop-product-price > .price del,
.atlasshop-product-price > .price ins {
    display: block;
    width: 100%;
    text-align: center;
}

.atlasshop-product-price del .woocommerce-Price-amount,
.atlasshop-product-price ins .woocommerce-Price-amount,
.atlasshop-product-price > .price del .woocommerce-Price-amount,
.atlasshop-product-price > .price ins .woocommerce-Price-amount {
    font: inherit;
    color: inherit;
}

.atlasshop-product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    width: 100%;
    align-items: center !important;
    justify-content: center;
    text-align: center !important;
    direction: ltr;
}

.atlasshop-product-add-to-cart {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    background-color: var(--atlasshop-primary-color, #f97316);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    margin: 0 auto !important;
    text-align: center !important;
    box-sizing: border-box;
}

.atlasshop-product-add-to-cart:hover {
    background-color: var(--atlasshop-primary-color-hover, #ea580c);
    transform: translateY(-1px);
}

.atlasshop-product-add-to-cart:active {
    transform: translateY(0);
}

.atlasshop-product-quick-view {
    text-align: center !important;
    font-size: 13px;
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin: 0 auto;
}

.atlasshop-product-quick-view:hover {
    color: var(--atlasshop-primary-color, #2563eb);
}

.atlasshop-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 16px;
}

/* Modal مشاهده سریع */
.atlasshop-quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.atlasshop-quick-view-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.atlasshop-quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.atlasshop-quick-view-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.atlasshop-quick-view-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background-color: #f3f4f6;
    border-radius: 50%;
    font-size: 24px;
    color: #333333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.atlasshop-quick-view-close:hover {
    background-color: #ef4444;
    color: #ffffff;
}

.atlasshop-quick-view-body {
    padding-top: 20px;
}

.atlasshop-quick-view-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.atlasshop-quick-view-image {
    width: 100%;
}

.atlasshop-quick-view-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.atlasshop-quick-view-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.atlasshop-quick-view-title {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

.atlasshop-quick-view-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

.atlasshop-quick-view-price {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
}

.atlasshop-quick-view-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.atlasshop-quick-view-actions .button,
.atlasshop-quick-view-actions .view-product {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.atlasshop-quick-view-actions .button {
    background-color: var(--atlasshop-primary-color, #f97316);
    color: #ffffff;
}

.atlasshop-quick-view-actions .button:hover {
    background-color: var(--atlasshop-primary-color-hover, #ea580c);
}

.atlasshop-quick-view-actions .view-product {
    background-color: #f3f4f6;
    color: #333333;
}

.atlasshop-quick-view-actions .view-product:hover {
    background-color: #e5e7eb;
}

@media (max-width: 768px) {
    .atlasshop-quick-view-product {
        grid-template-columns: 1fr;
    }
    
    .atlasshop-quick-view-actions {
        flex-direction: column;
    }
    
    .atlasshop-quick-view-actions .button,
    .atlasshop-quick-view-actions .view-product {
        width: 100%;
        text-align: center;
    }
}

/* استایل‌های ریسپانسیو */
@media (max-width: 1200px) {
    .atlasshop-products-grid-widget:not(.atlasshop-horizontal-scroll) .atlasshop-products-grid[data-columns="4"],
    .atlasshop-products-grid-widget:not(.atlasshop-horizontal-scroll) .atlasshop-products-grid[data-columns="5"],
    .atlasshop-products-grid-widget:not(.atlasshop-horizontal-scroll) .atlasshop-products-grid[data-columns="6"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .atlasshop-products-grid-widget:not(.atlasshop-horizontal-scroll) .atlasshop-products-grid[data-columns="3"],
    .atlasshop-products-grid-widget:not(.atlasshop-horizontal-scroll) .atlasshop-products-grid[data-columns="4"],
    .atlasshop-products-grid-widget:not(.atlasshop-horizontal-scroll) .atlasshop-products-grid[data-columns="5"],
    .atlasshop-products-grid-widget:not(.atlasshop-horizontal-scroll) .atlasshop-products-grid[data-columns="6"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    /* در حالت افقی، در تبلت عرض کارت‌ها را تنظیم کن */
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll .atlasshop-product-card {
        min-width: 250px;
        max-width: 250px;
        width: 250px;
    }
}

@media (max-width: 768px) {
    /* موبایل: لغو کامل حالت افقی — گرید چندردیفی بدون اسکرول */
    .elementor-widget-products_grid,
    .elementor-widget-products_grid .elementor-widget-container,
    .elementor-widget-atlasshop_related_products,
    .elementor-widget-atlasshop_related_products .elementor-widget-container,
    .atlasshop-products-grid-widget,
    .atlasshop-products-grid-widget .atlasshop-products-grid-wrapper {
        overflow-x: hidden !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll .atlasshop-products-grid,
    .atlasshop-products-grid-widget:not(.atlasshop-horizontal-scroll) .atlasshop-products-grid {
        display: grid !important;
        flex-wrap: wrap !important;
        flex-direction: unset !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        scroll-snap-type: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .atlasshop-products-grid-widget[data-columns-mobile="1"] .atlasshop-products-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    .elementor-widget-products_grid .atlasshop-products-grid-widget.atlasshop-horizontal-scroll .atlasshop-product-card,
    .atlasshop-products-grid-widget.atlasshop-horizontal-scroll .atlasshop-product-card,
    .atlasshop-products-grid-widget:not(.atlasshop-horizontal-scroll) .atlasshop-product-card {
        min-width: 0 !important;
        max-width: 100% !important;
        width: auto !important;
        flex: none !important;
        scroll-snap-align: unset;
    }
    
    .atlasshop-products-filters {
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
        overflow-x: hidden;
        justify-content: flex-start !important;
    }
    
    .atlasshop-products-filters-wrapper {
        flex-wrap: wrap !important;
        gap: 8px !important;
        flex-shrink: 1;
        min-width: 0;
        width: 100% !important;
    }

    .atlasshop-products-filters--sort {
        flex-wrap: wrap !important;
    }

    .atlasshop-products-sort-options {
        flex-wrap: wrap !important;
        overflow-x: hidden;
    }
    
    .atlasshop-products-filter {
        padding: 8px 14px !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
        flex-shrink: 0;
        gap: 6px !important;
        border-radius: 8px;
    }

    .atlasshop-filter-icon i,
    .atlasshop-filter-icon svg,
    .atlasshop-filter-icon-svg svg {
        font-size: 13px !important;
        width: 13px !important;
        height: 13px !important;
    }

    .atlasshop-view-all-button {
        display: none !important;
    }

    .atlasshop-products-sort-option {
        padding: 5px 10px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        flex-shrink: 0;
    }

    .atlasshop-products-sort-label {
        font-size: 12px !important;
    }
    
    .atlasshop-product-card {
        padding: 10px;
    }
    
    .atlasshop-product-title {
        font-size: 12px;
        min-height: 34px;
    }
    
    .atlasshop-product-add-to-cart {
        padding: 8px;
        font-size: 12px;
    }
    
    .atlasshop-quick-view-content {
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .atlasshop-products-sort-option {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }
    
    .atlasshop-products-filters {
        flex-direction: row !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }
    
    .atlasshop-view-all-button {
        display: none !important;
    }
    
    .atlasshop-products-filters-wrapper {
        order: 1 !important;
        width: 100% !important;
    }
    
    .atlasshop-products-filter {
        width: auto !important;
        justify-content: center;
        padding: 8px 14px !important;
        font-size: 13px !important;
    }
}

/* ============================================
   استایل‌های ویجت نمایش ویژگی‌ها
   ============================================ */

/* Override Elementor wrapper padding/margin */
.elementor-widget-features_showcase .elementor-widget-container,
.elementor-element.elementor-widget-features_showcase {
    padding: 0 !important;
    margin: 0 !important;
}

.atlasshop-features-showcase {
    width: 100%;
    max-width: 100%;
    background-color: #f5f5f5;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    overflow: visible;
    direction: rtl;
}

.atlasshop-features-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.atlasshop-features-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 50px 0;
    position: relative;
    z-index: 2;
    padding: 50px 20px 0 20px;
}

.atlasshop-features-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    position: relative;
    z-index: 2;
    padding: 0 20px 80px 20px;
    direction: rtl;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.atlasshop-features-container::-webkit-scrollbar {
    display: none;
}

.atlasshop-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
    min-width: 150px;
}

.atlasshop-feature-icon-wrapper {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.atlasshop-feature-icon {
    width: 100%;
    height: 100%;
    border-radius: 50% !important;
    border: 3px solid var(--atlasshop-primary-color, #f97316) !important;
    border-style: solid !important;
    background-color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.atlasshop-feature-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.atlasshop-feature-icon i,
.atlasshop-feature-icon svg,
.atlasshop-feature-icon-svg svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.atlasshop-feature-icon i {
    font-size: 1em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.atlasshop-feature-icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.atlasshop-feature-icon-svg svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block;
    fill: currentColor;
    stroke: currentColor;
    object-fit: contain;
}

.atlasshop-feature-text {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin: 0;
    max-width: 150px;
    line-height: 1.5;
}

.atlasshop-feature-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 15px;
    padding-top: 0;
    align-self: flex-start;
    margin-top: 60px;
}

.atlasshop-feature-arrow svg {
    display: block;
    width: 40px;
    height: 10px;
}

.atlasshop-features-top-shape-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50px;
    overflow: visible;
    z-index: 1;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
}

.atlasshop-features-top-shape-wrapper .atlasshop-features-shape {
    width: 100%;
    max-width: 100%;
    height: 94px;
    display: block;
    color: #ffffff;
    margin: 36px 0 0 0 !important;
    padding: 0 !important;
    transform: scaleY(-1) scale(0.5);
    transform-origin: center top;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.atlasshop-features-bottom-shape-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50px;
    overflow: hidden;
    z-index: 1;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
}

.atlasshop-features-bottom-shape-wrapper .atlasshop-features-shape,
.atlasshop-features-bottom-shape {
    width: 100%;
    max-width: 100%;
    height: 94px;
    display: block;
    color: #ffffff;
    margin: 0 0 -14px 0 !important;
    padding: 0 !important;
    transform: scale(0.5);
    transform-origin: 50% 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 1200px) {
    .atlasshop-features-container {
        gap: 0;
    }
    
    .atlasshop-feature-item {
        min-width: 130px;
    }
    
    .atlasshop-feature-icon-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .atlasshop-feature-icon i,
    .atlasshop-feature-icon svg,
    .atlasshop-feature-icon-svg svg {
        width: 40px;
        height: 40px;
    }
    
    .atlasshop-feature-icon i {
        font-size: 40px;
    }
    
    .atlasshop-feature-arrow {
        margin: 0 10px;
        padding-top: 0;
        margin-top: 50px;
    }
    
    .atlasshop-feature-arrow svg {
        width: 30px;
    }
}

@media (max-width: 768px) {
    .atlasshop-features-showcase {
        padding: 40px 15px 0;
    }
    
    .atlasshop-features-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .atlasshop-features-container {
        padding-bottom: 30px;
        justify-content: flex-start;
    }
    
    .atlasshop-feature-item {
        min-width: 120px;
    }
    
    .atlasshop-feature-icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .atlasshop-feature-icon i,
    .atlasshop-feature-icon svg,
    .atlasshop-feature-icon-svg svg {
        width: 30px;
        height: 30px;
    }
    
    .atlasshop-feature-icon i {
        font-size: 30px;
    }
    
    .atlasshop-feature-text {
        font-size: 12px;
        max-width: 120px;
    }
    
    .atlasshop-feature-arrow {
        margin: 0 8px;
        padding-top: 0;
        margin-top: 40px;
    }
    
    .atlasshop-feature-arrow svg {
        width: 25px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .atlasshop-features-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .atlasshop-feature-item {
        min-width: auto;
        width: calc(50% - 10px);
    }
    
    .atlasshop-feature-arrow {
        display: none;
    }
}

/* استایل‌های ویجت محصولات تخفیف‌دار */
.atlasshop-discounted-products-widget {
    width: 100%;
    position: relative;
    direction: rtl;
}

.atlasshop-discounted-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    position: relative;
    z-index: 3;
}

.atlasshop-discounted-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333333;
}

.atlasshop-discounted-navigation {
    display: flex;
    gap: 8px;
}

.atlasshop-discounted-nav-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #f3f4f6;
    color: #666666;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.atlasshop-discounted-nav-button:hover {
    background-color: #e5e7eb;
    color: #333333;
}

.atlasshop-discounted-nav-button:active {
    transform: scale(0.95);
}

.atlasshop-discounted-nav-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.atlasshop-discounted-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.atlasshop-discounted-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    position: relative;
}

.atlasshop-discounted-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    display: none;
    position: relative;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    align-self: stretch;
}

.atlasshop-discounted-slide.active {
    display: flex;
}

.atlasshop-discounted-slide-content {
    padding: 0;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.atlasshop-discounted-product-image {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atlasshop-discounted-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.atlasshop-discounted-product-image a {
    display: block;
}

.atlasshop-discounted-product-info {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 60px;
}

.atlasshop-discounted-product-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    line-height: 1.5;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    width: 100%;
}

.atlasshop-discounted-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.atlasshop-discounted-product-title a:hover {
    color: var(--atlasshop-primary-color, #2563eb);
}

.atlasshop-discounted-discount-banner {
    display: inline-block;
    font-size: 12px;
    color: #ffffff !important;
    background-color: #ef4444;
    font-weight: 600;
    margin-bottom: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1.4;
}

.atlasshop-discounted-product-price-wrapper {
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex-shrink: 0;
}

.atlasshop-discounted-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    line-height: 1.45;
}

.atlasshop-discounted-product-price del,
.atlasshop-discounted-product-price ins {
    display: block;
    width: 100%;
    text-align: center;
}

.atlasshop-discounted-product-price del {
    order: 1;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 400;
    text-decoration: line-through;
    margin: 0;
}

.atlasshop-discounted-product-price ins {
    order: 2;
    text-decoration: none;
    color: #ef4444;
    font-size: 17px;
    font-weight: 700;
}

/* اگر ووکامرس قیمت را داخل span.price بپیچد */
.atlasshop-discounted-product-price > .price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.atlasshop-discounted-product-price > .price del,
.atlasshop-discounted-product-price > .price ins {
    display: block;
    width: 100%;
    text-align: center;
}

.atlasshop-discounted-sale-countdown {
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    font-size: 13px;
    color: #9a3412;
    line-height: 1.55;
}

.atlasshop-discounted-countdown-label {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    color: #c2410c;
}

.atlasshop-discounted-countdown-parts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 4px 8px;
    direction: rtl;
}

.atlasshop-dc-seg {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.atlasshop-dc-val {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #7c2d12;
}

.atlasshop-dc-unit {
    font-size: 11px;
    font-weight: 600;
    color: #9a3412;
}

.atlasshop-discounted-countdown--ended .atlasshop-discounted-countdown-parts {
    opacity: 0.7;
}

.atlasshop-discounted-product-info {
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex-shrink: 0;
}

.atlasshop-discounted-progress-bar {
    position: absolute;
    bottom: 3px;
    left: 4px;
    right: 4px;
    height: 2px;
    background-color: #e5e7eb;
    overflow: hidden;
    border-radius: 1px;
    direction: rtl;
}

.atlasshop-discounted-progress-bar-fill {
    height: 100%;
    background-color: var(--atlasshop-primary-color, #f97316);
    width: 0%;
    transition: none;
    transform-origin: right center;
    direction: rtl;
    position: relative;
}

.atlasshop-discounted-slide.active .atlasshop-discounted-progress-bar-fill {
    animation: progressBarFillRTL linear forwards;
    animation-duration: var(--progress-duration, 4s);
}

@keyframes progressBarFillRTL {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .atlasshop-discounted-title {
        font-size: 20px;
    }
    
    .atlasshop-discounted-nav-button {
        width: 36px;
        height: 36px;
    }
    
    .atlasshop-discounted-product-title {
        font-size: 14px;
    }
    
    .atlasshop-discounted-product-price {
        font-size: 16px;
    }
}

/* استایل‌های ویجت گرید محصولات متحرک */
.atlasshop-animated-products-grid-widget {
    width: 100%;
    max-width: 1600px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
}

.atlasshop-animated-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

.atlasshop-animated-product-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
    align-self: stretch;
    transform-origin: top center;
    transition: transform 0.5s ease, z-index 0s;
    will-change: transform;
    z-index: 1;
}

.atlasshop-animated-product-card:hover {
    z-index: 50;
}

.atlasshop-animated-products-grid {
    overflow: visible;
}

.atlasshop-animated-product-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.atlasshop-animated-product-rating {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.atlasshop-animated-product-rating .atlasshop-rating-stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    font-size: 12px;
    align-items: center;
}

.atlasshop-animated-product-rating .atlasshop-rating-stars svg {
    width: 14px;
    height: 14px;
    display: block;
    flex-shrink: 0;
}

.atlasshop-animated-product-rating .atlasshop-rating-value {
    font-size: 12px;
    font-weight: 600;
    color: #333333;
    margin-right: 4px;
}

.atlasshop-animated-product-image {
    width: 100%;
    overflow: visible;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
    transition: transform 0.3s ease;
}

.atlasshop-animated-product-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.atlasshop-animated-product-image img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.atlasshop-animated-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.atlasshop-animated-product-title {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin: 0 0 10px 0;
    line-height: 1.5;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    width: 100%;
}

.atlasshop-animated-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.atlasshop-animated-product-title a:hover {
    color: var(--atlasshop-primary-color, #2563eb);
}

.atlasshop-animated-product-price-wrapper {
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex-shrink: 0;
}

.atlasshop-animated-product-discount {
    display: inline-block;
    font-size: 12px;
    color: #ffffff !important;
    background-color: #ef4444;
    font-weight: 600;
    margin-bottom: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1.4;
}

.atlasshop-animated-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
}

.atlasshop-animated-product-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.atlasshop-animated-product-view-button {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    background-color: var(--atlasshop-primary-color, #f97316);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center !important;
    direction: ltr;
}

.atlasshop-animated-product-view-button:hover {
    background-color: var(--atlasshop-primary-color-hover, #ea580c);
    transform: translateY(-1px);
    color: #ffffff;
}

/* Responsive برای گرید محصولات متحرک */
.atlasshop-animated-products-grid-widget[data-columns-desktop="1"] .atlasshop-animated-products-grid {
    grid-template-columns: repeat(1, 1fr);
}

.atlasshop-animated-products-grid-widget[data-columns-desktop="2"] .atlasshop-animated-products-grid {
    grid-template-columns: repeat(2, 1fr);
}

.atlasshop-animated-products-grid-widget[data-columns-desktop="3"] .atlasshop-animated-products-grid {
    grid-template-columns: repeat(3, 1fr);
}

.atlasshop-animated-products-grid-widget[data-columns-desktop="4"] .atlasshop-animated-products-grid {
    grid-template-columns: repeat(4, 1fr);
}

.atlasshop-animated-products-grid-widget[data-columns-desktop="5"] .atlasshop-animated-products-grid {
    grid-template-columns: repeat(5, 1fr);
}

.atlasshop-animated-products-grid-widget[data-columns-desktop="6"] .atlasshop-animated-products-grid {
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1024px) {
    .atlasshop-animated-products-grid-widget[data-columns-tablet="1"] .atlasshop-animated-products-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .atlasshop-animated-products-grid-widget[data-columns-tablet="2"] .atlasshop-animated-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .atlasshop-animated-products-grid-widget[data-columns-tablet="3"] .atlasshop-animated-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .atlasshop-animated-products-grid-widget[data-columns-tablet="4"] .atlasshop-animated-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .atlasshop-animated-products-grid-widget[data-columns-mobile="1"] .atlasshop-animated-products-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .atlasshop-animated-products-grid-widget[data-columns-mobile="2"] .atlasshop-animated-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .atlasshop-animated-products-grid {
        gap: 15px;
    }
    
    .atlasshop-animated-product-card {
        padding: 12px;
    }
}

/* ویجت فرم دیدگاه نوشته‌ها (RTL — دو ستون) */
.atlasshop-pc-wrap {
    direction: rtl;
    text-align: right;
    max-width: 100%;
}

.atlasshop-pc-wrap--message .atlasshop-pc-message,
.atlasshop-pc-message {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.atlasshop-pc-heading {
    margin: 0 0 22px 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1.4;
    text-align: right;
}

.atlasshop-pc-title-text {
    display: inline-block;
}

.atlasshop-pc-title-accent {
    border-bottom: 3px solid #eab308;
    padding-bottom: 2px;
}

.atlasshop-pc-form {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 22px 20px;
    background: #ffffff;
    box-sizing: border-box;
}

.atlasshop-pc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: 20px 24px;
    align-items: stretch;
    width: 100%;
    min-height: 0;
}

/* ستون راست (در RTL): نام، ایمیل، وب‌سایت */
.atlasshop-pc-col-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.atlasshop-pc-col-fields--logged {
    justify-content: flex-start;
    min-height: 160px;
}

.atlasshop-pc-logged-in {
    margin: 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

/* ستون چپ (در RTL): دیدگاه */
.atlasshop-pc-col-comment {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    min-height: 100%;
    align-self: stretch;
}

.atlasshop-pc-field {
    margin: 0;
}

.atlasshop-pc-field label,
.atlasshop-pc-comment-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
}

.atlasshop-pc-req {
    color: #f59e0b;
    font-weight: 700;
}

.atlasshop-pc-input,
.atlasshop-pc-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #111827;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.atlasshop-pc-input:focus,
.atlasshop-pc-textarea:focus {
    outline: none;
    border-color: var(--atlasshop-primary-color, #2563eb);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.atlasshop-pc-textarea {
    flex: 1;
    min-height: 168px;
    resize: vertical;
    line-height: 1.55;
}

.atlasshop-pc-footer {
    margin-top: 20px;
    padding-top: 4px;
}

.atlasshop-pc-cookies {
    margin: 0 0 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.55;
    color: #4b5563;
}

.atlasshop-pc-cookies label {
    cursor: pointer;
    font-weight: 400;
    margin: 0;
}

.atlasshop-pc-checkbox {
    margin-top: 4px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.atlasshop-pc-submit-wrap {
    margin: 0;
    text-align: right;
}

.atlasshop-pc-submit {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: var(--atlasshop-primary-color, #2563eb);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.atlasshop-pc-submit:hover {
    background: #1d4ed8;
}

.atlasshop-pc-form--static .atlasshop-pc-submit {
    pointer-events: none;
}

@media (max-width: 640px) {
    .atlasshop-pc-grid {
        grid-template-columns: 1fr;
    }

    .atlasshop-pc-col-comment {
        order: -1;
    }

    .atlasshop-pc-textarea {
        min-height: 140px;
    }
}

/* استایل‌های ویجت اسلایدر بلاگ */
.atlasshop-blog-slider-widget {
    width: 100%;
    direction: rtl;
    position: relative;
}

.atlasshop-blog-slider-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f3f4f6;
    padding: 20px;
    border-radius: 12px;
    min-height: 200px;
}

.atlasshop-blog-slider-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.atlasshop-blog-slider-track {
    display: flex;
    flex-direction: row;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.atlasshop-blog-slider-card {
    flex: 0 0 auto;
    width: var(--blog-slider-card-width, 25%);
    min-width: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.atlasshop-blog-slider-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12),
                0 4px 8px rgba(0, 0, 0, 0.08);
}

.atlasshop-blog-slider-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.atlasshop-blog-slider-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #e5e7eb;
}

.atlasshop-blog-slider-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.atlasshop-blog-slider-card:hover .atlasshop-blog-slider-card-thumb img {
    transform: scale(1.08);
}

.atlasshop-blog-slider-card-title {
    margin: 0;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    transition: color 0.3s ease;
}

.atlasshop-blog-slider-card:hover .atlasshop-blog-slider-card-title {
    color: var(--atlasshop-primary-color, #2563eb);
}

.atlasshop-blog-slider-nav-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #f3f4f6;
    color: #4b5563;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 0;
}

.atlasshop-blog-slider-nav-btn:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.atlasshop-blog-slider-nav-btn:active {
    transform: scale(0.96);
}

.atlasshop-blog-slider-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.atlasshop-blog-slider-nav-icon svg,
.atlasshop-blog-slider-nav-icon img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.atlasshop-blog-slider-nav-icon i {
    font-size: 16px;
}

@media (max-width: 1024px) {
    .atlasshop-blog-slider-inner {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .atlasshop-blog-slider-inner {
        padding: 12px;
        gap: 8px;
    }
    .atlasshop-blog-slider-card-title {
        padding: 10px 12px;
        font-size: 14px;
    }
    .atlasshop-blog-slider-nav-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .atlasshop-blog-slider-widget[data-posts-per-slide] .atlasshop-blog-slider-card {
        width: 100%;
    }
}

/* ویجت لیست مقالات (کارت RTL) */
.setmart-articles-list-widget {
    width: 100%;
    direction: rtl;
    text-align: right;
}

.setmart-articles-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.setmart-articles-list-empty {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.setmart-article-card {
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.setmart-article-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.setmart-article-card__head-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.setmart-article-card__format {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #6b7280;
}

.setmart-article-card__format svg {
    display: block;
}

.setmart-article-card__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    min-width: 0;
}

.setmart-article-card__title a {
    color: inherit;
    text-decoration: none;
}

.setmart-article-card__title a:hover {
    color: var(--atlasshop-primary-color, #2563eb);
}

.setmart-article-card__comments-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background-color: #f3f4f6;
    color: #6b7280;
    white-space: nowrap;
}

.setmart-article-card__body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
}

.setmart-article-card__media {
    flex: 0 0 32%;
    max-width: 220px;
    min-width: 120px;
}

.setmart-article-card__media--placeholder {
    min-height: 120px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.setmart-article-card__media-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.setmart-article-card__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.setmart-article-card__excerpt {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.75;
    color: #6b7280;
    text-align: right;
}

.setmart-article-card__foot {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.setmart-article-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    font-size: 13px;
    color: #9ca3af;
    min-width: 0;
}

.setmart-article-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.setmart-article-card__meta-ic {
    flex-shrink: 0;
    opacity: 0.85;
}

.setmart-article-card__permalink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: none;
    border-radius: 6px;
    background-color: #f3f4f6;
    color: #9ca3af;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.setmart-article-card__permalink:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.setmart-article-card__permalink svg {
    display: block;
}

@media (max-width: 576px) {
    .setmart-article-card__body {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .setmart-article-card__media {
        max-width: none;
        width: 100%;
        flex: none;
    }

    .setmart-article-card__foot {
        flex-wrap: wrap;
    }
}

/* ویجت دسته‌بندی مقالات */
.setmart-article-categories-widget {
    width: 100%;
    direction: rtl;
    text-align: right;
}

.setmart-article-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setmart-article-categories-empty {
    margin: 0;
    padding: 12px 0;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

.setmart-article-categories-item {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.setmart-article-categories-item:last-child {
    border-bottom: none;
}

.setmart-article-categories-name {
    flex: 0 1 auto;
    max-width: 72%;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.setmart-article-categories-name:hover {
    color: var(--atlasshop-primary-color, #2563eb);
}

.setmart-article-categories-leader {
    flex: 1 1 auto;
    min-width: 12px;
    margin: 0 8px 4px;
    border-bottom: 1px dotted #d1d5db;
    height: 0;
    align-self: flex-end;
}

.setmart-article-categories-count {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
    padding-bottom: 1px;
}

/* ویجت جدیدترین مقالات — سایدبار */
.setmart-latest-articles-sidebar-widget {
    width: 100%;
    direction: rtl;
    text-align: right;
}

.setmart-latest-articles-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setmart-latest-articles-sidebar-empty {
    margin: 0;
    padding: 10px 0;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

.setmart-latest-articles-sidebar-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.setmart-latest-articles-sidebar-thumb {
    flex-shrink: 0;
    width: 72px;
    min-width: 72px;
}

.setmart-latest-articles-sidebar-thumb-link {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    background-color: #f3f4f6;
}

.setmart-latest-articles-sidebar-thumb--placeholder {
    min-height: 72px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.setmart-latest-articles-sidebar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.setmart-latest-articles-sidebar-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.setmart-latest-articles-sidebar-title a {
    color: #1f2937;
    text-decoration: none;
}

.setmart-latest-articles-sidebar-title a:hover {
    color: var(--atlasshop-primary-color, #2563eb);
}

.setmart-latest-articles-sidebar-item--no-thumb .setmart-latest-articles-sidebar-title {
    width: 100%;
}

/* ویجت اسلایدر اختصاصی — ناوبری SVG پایین راست */
.atlasshop-exclusive-slider-widget {
    width: 100%;
    direction: rtl;
}

.atlasshop-exclusive-slider-empty {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.atlasshop-exclusive-slider-root {
    width: 100%;
}

.atlasshop-exclusive-slider-viewport {
    position: relative;
    overflow: visible;
    border-radius: var(--atlasshop-exclusive-slider-radius, 20px);
    min-height: var(--atlasshop-exclusive-slider-min-height, 320px);
}

.atlasshop-exclusive-slider-stage {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: var(--atlasshop-exclusive-slider-min-height, 320px);
    border-radius: inherit;
    background: linear-gradient(165deg, #fde8dc 0%, #f5b8a8 55%, #f0a090 100%);
    direction: ltr;
    touch-action: pan-y;
}

.atlasshop-exclusive-slider-viewport.is-atlasshop-es-dragging,
.atlasshop-exclusive-slider-stage.is-atlasshop-es-dragging {
    cursor: grabbing;
    user-select: none;
}

.atlasshop-exclusive-slider-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    direction: ltr;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.atlasshop-exclusive-slider-slide {
    flex-shrink: 0;
    box-sizing: border-box;
    height: 100%;
}

.atlasshop-exclusive-slider-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    min-height: var(--atlasshop-exclusive-slider-min-height, 320px);
    overflow: hidden;
    text-decoration: none;
}

.atlasshop-exclusive-slider-slide-link.is-no-link {
    cursor: grab;
}

.atlasshop-exclusive-slider-viewport.is-atlasshop-es-dragging .atlasshop-exclusive-slider-slide-link,
.atlasshop-exclusive-slider-stage.is-atlasshop-es-dragging .atlasshop-exclusive-slider-slide-link {
    cursor: grabbing;
}

.atlasshop-exclusive-slider-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: var(--atlasshop-exclusive-slider-min-height, 320px);
    object-fit: cover;
    object-position: center;
    pointer-events: auto;
}

.atlasshop-exclusive-slider-viewport--has-nav {
    --atlasshop-exclusive-nav-height: 40px;
    --atlasshop-exclusive-nav-max-width: 40%;
    --atlasshop-exclusive-nav-offset-bottom: 18px;
    --atlasshop-exclusive-nav-shift-left: 24px;
    --atlasshop-exclusive-dot-size: 16px;
    --atlasshop-exclusive-nav-shape-height: 62%;
    --atlasshop-exclusive-nav-shape-lift: 8px;
}

.atlasshop-exclusive-slider-nav {
    position: absolute;
    right: var(--atlasshop-exclusive-nav-shift-left, 24px);
    bottom: calc(-1 * var(--atlasshop-exclusive-nav-offset-bottom, 18px));
    z-index: 5;
    height: var(--atlasshop-exclusive-nav-height, 40px) !important;
    width: min(
        var(--atlasshop-exclusive-nav-max-width, 40%),
        calc(var(--atlasshop-exclusive-nav-height, 40px) * 500 / 94)
    ) !important;
    min-width: 130px;
    max-height: var(--atlasshop-exclusive-nav-height, 40px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 14px 4px;
    box-sizing: border-box;
    color: #ffffff;
    pointer-events: none;
}

.atlasshop-exclusive-slider-nav__shape {
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--atlasshop-exclusive-nav-shape-lift, 8px);
    top: auto;
    width: 100%;
    height: var(--atlasshop-exclusive-nav-shape-height, 62%);
    display: block;
    pointer-events: none;
}

.atlasshop-exclusive-slider-dots {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    pointer-events: auto;
    min-height: var(--atlasshop-exclusive-dot-size, 16px);
}

.atlasshop-exclusive-slider-dots .atlasshop-exclusive-slider-dot {
    pointer-events: auto;
}

/* ربع دایره — گوشهٔ بالا-چپ گرد، لبهٔ پایین و راست صاف */
.atlasshop-exclusive-slider-dot {
    width: var(--atlasshop-exclusive-dot-size, 16px);
    height: var(--atlasshop-exclusive-dot-size, 16px);
    padding: 0;
    border: none;
    border-radius: 100% 0 0 0;
    background-color: #c5cdd8;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    box-shadow: none;
}

.atlasshop-exclusive-slider-dot:hover {
    opacity: 0.85;
}

.atlasshop-exclusive-slider-dot.is-active {
    background-color: #f5894a;
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .atlasshop-exclusive-slider-viewport--has-nav {
        --atlasshop-exclusive-nav-height: 34px;
        --atlasshop-exclusive-nav-max-width: 55%;
    }

    .atlasshop-exclusive-slider-nav {
        min-width: 140px;
        padding: 0 12px 5px;
    }

    .atlasshop-exclusive-slider-dots {
        gap: 8px;
    }
}

/* استایل ویجت بردکرامپ */
.atlasshop-breadcrumb-widget {
    width: 100%;
    direction: rtl;
}

.atlasshop-breadcrumb-wrap {
    text-align: right;
}

.atlasshop-breadcrumb {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 14px;
    line-height: 1.5;
}

.atlasshop-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.atlasshop-breadcrumb a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.atlasshop-breadcrumb a:hover {
    text-decoration: underline;
}

.atlasshop-breadcrumb-current {
    font-weight: 600;
}

.atlasshop-breadcrumb-sep {
    user-select: none;
    font-weight: 400;
}

/* ویجت تصویر و گالری محصول */
.atlasshop-product-gallery-widget {
    width: 100%;
    direction: rtl;
}

.atlasshop-pg-placeholder {
    padding: 20px;
    background: #f3f4f6;
    border-radius: 8px;
    color: #6b7280;
    text-align: center;
    margin: 0;
}

.atlasshop-pg-main-wrap {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 12px;
}

.atlasshop-pg-main {
    flex: 1;
    min-width: 0;
}

.atlasshop-pg-main-inner {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.atlasshop-pg-main-inner.atlasshop-pg-no-image {
    color: #9ca3af;
    font-size: 14px;
}

.atlasshop-pg-main-link {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
}

.atlasshop-pg-main-link img,
.atlasshop-pg-main-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: opacity 0.25s ease;
}

.atlasshop-pg-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.atlasshop-pg-action {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.atlasshop-pg-action:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.atlasshop-pg-action svg {
    width: 20px;
    height: 20px;
}

.atlasshop-pg-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.atlasshop-pg-thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    position: relative;
    box-sizing: border-box;
}

.atlasshop-pg-thumb:hover {
    opacity: 0.95;
    border-color: #d1d5db;
}

.atlasshop-pg-thumb.active {
    box-shadow: 0 0 0 2px #111827;
    border-color: #111827;
}

.atlasshop-pg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* بندانگشتی «بیشتر» (تار + سه نقطه) */
.atlasshop-pg-thumb-more,
.atlasshop-pg-thumb-video {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atlasshop-pg-thumb-blur {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.atlasshop-pg-thumb-more .atlasshop-pg-thumb-blur img,
.atlasshop-pg-thumb-video .atlasshop-pg-thumb-blur img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px);
    transform: scale(1.1);
}

.atlasshop-pg-thumb-more .atlasshop-pg-thumb-blur::after,
.atlasshop-pg-thumb-video .atlasshop-pg-thumb-blur::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
}

.atlasshop-pg-thumb-video .atlasshop-pg-thumb-blur {
    background: #e5e7eb;
}

.atlasshop-pg-thumb-icon {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atlasshop-pg-thumb-icon svg {
    width: 16px;
    height: 16px;
}

.atlasshop-pg-thumb-icon-dots {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
}

.atlasshop-pg-thumb-icon-dots .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffffff;
}

/* پاپ‌آپ گالری - تمام‌صفحه */
.atlasshop-pg-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.atlasshop-pg-popup.atlasshop-pg-popup-open {
    opacity: 1;
    visibility: visible;
}

body.atlasshop-pg-popup-body-open {
    overflow: hidden;
}

.atlasshop-pg-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.atlasshop-pg-popup-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
}

/* هدر: فقط دکمه‌های دانلود و بستن سمت راست */
.atlasshop-pg-popup-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    direction: rtl;
}

.atlasshop-pg-popup-download,
.atlasshop-pg-popup-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    padding: 0;
    text-decoration: none;
}

.atlasshop-pg-popup-download:hover,
.atlasshop-pg-popup-close:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.atlasshop-pg-popup-close {
    border: none;
}

/* بدنه: تصویر بزرگ وسط + فلش چپ و راست */
.atlasshop-pg-popup-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
    min-height: 0;
}

.atlasshop-pg-popup-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f3f4f6;
    color: #374151;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    padding: 0;
}

.atlasshop-pg-popup-arrow:hover {
    background: #e5e7eb;
    color: #111827;
}

.atlasshop-pg-popup-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
}

.atlasshop-pg-popup-main-img {
    max-width: 50vw;
    max-height: 55vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* نوار بندانگشتی پایین */
.atlasshop-pg-popup-thumbs {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    overflow-x: auto;
}

.atlasshop-pg-popup-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.atlasshop-pg-popup-thumb:hover {
    opacity: 0.9;
}

.atlasshop-pg-popup-thumb.active {
    border-color: #111827;
}

.atlasshop-pg-popup-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.atlasshop-pg-lightbox-slideshow {
    display: none !important;
}

/* پاپ‌آپ اشتراک‌گذاری */
.atlasshop-pg-share-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}

.atlasshop-pg-share-popup.atlasshop-pg-share-popup-open {
    visibility: visible;
    opacity: 1;
}

.atlasshop-pg-share-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.atlasshop-pg-share-popup-inner {
    position: relative;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 24px 24px 20px;
    max-width: 460px;
    width: 100%;
}

.atlasshop-pg-share-popup-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.atlasshop-pg-share-popup-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.atlasshop-pg-share-popup-close svg {
    width: 20px;
    height: 20px;
}

.atlasshop-pg-share-popup-title {
    margin: 0 0 10px 0;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    text-align: center;
}

/* متن و محصول در پاپ‌آپ اشتراک‌گذاری */
.atlasshop-pg-share-intro {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    text-align: center;
}

.atlasshop-pg-share-product {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 10px;
    margin-bottom: 14px;
}

.atlasshop-pg-share-product-image {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.atlasshop-pg-share-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.atlasshop-pg-share-product-title {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.atlasshop-pg-share-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 10px 0 14px;
}

.atlasshop-pg-share-channels {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 12px 0;
    margin-bottom: 14px;
}

.atlasshop-pg-share-channel {
    flex: 1;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #111827;
    font-size: 13px;
}

.atlasshop-pg-share-channel + .atlasshop-pg-share-channel {
    border-right: 1px solid #e5e7eb; /* در راست‌به‌چپ خط وسط ستون‌ها */
}

.atlasshop-pg-share-channel-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: #e5edff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
}

.atlasshop-pg-share-channel-label {
    white-space: nowrap;
}

.atlasshop-pg-share-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px dashed #d1d5db;
    background-color: #fff;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.atlasshop-pg-share-copy:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.atlasshop-pg-share-copy-icon svg {
    display: block;
}

.atlasshop-pg-share-copy-success {
    border-color: #16a34a;
    background-color: #ecfdf3;
    color: #166534;
}

body.atlasshop-pg-share-popup-body-open {
    overflow: hidden;
}

/* علاقه‌مندی — آیکن فعال (قرمز) در گالری محصول */
.atlasshop-pg-action-wishlist.is-in-wishlist svg {
    stroke: #ef4444;
    fill: #fecaca;
}

.atlasshop-pg-action-wishlist.is-atlasshop-wishlist-loading {
    opacity: 0.55;
    pointer-events: none;
}

/* پاپ‌آپ سادهٔ پیام علاقه‌مندی */
.atlasshop-wishlist-toast {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.atlasshop-wishlist-toast.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.atlasshop-wishlist-toast-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(17, 24, 39, 0.45);
}

.atlasshop-wishlist-toast-box {
    position: relative;
    z-index: 1;
    max-width: 360px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 44px 20px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    text-align: right;
    direction: rtl;
}

.atlasshop-wishlist-toast-msg {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #111827;
}

.atlasshop-wishlist-toast-close {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    color: #374151;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.atlasshop-wishlist-toast-close:hover {
    background: #e5e7eb;
    color: #111827;
}

body.atlasshop-wishlist-toast-body-open {
    overflow: hidden;
}

/* تب علاقه‌مندی‌ها در حساب کاربری */
.atlasshop-account-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    direction: rtl;
    text-align: right;
}

.atlasshop-account-wishlist-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.atlasshop-account-wishlist-thumb {
    display: block;
    aspect-ratio: 1;
    background: #f9fafb;
}

.atlasshop-account-wishlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.atlasshop-account-wishlist-body {
    padding: 12px 14px 14px;
}

.atlasshop-account-wishlist-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    line-height: 1.45;
    margin-bottom: 10px;
}

.atlasshop-account-wishlist-title:hover {
    color: var(--atlasshop-primary-color, #2563eb);
}

.atlasshop-account-wishlist-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.atlasshop-account-wishlist-remove:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.atlasshop-account-wishlist-remove.is-atlasshop-wishlist-loading {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 768px) {
    .atlasshop-pg-main-wrap {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 12px;
    }

    .atlasshop-pg-main {
        width: 100%;
        order: 2;
    }

    /* علاقه‌مندی و اشتراک‌گذاری بالای تصویر شاخص (نه روی آن) */
    .atlasshop-pg-actions {
        position: static;
        order: 1;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin: 0;
        pointer-events: auto;
    }

    .atlasshop-pg-actions .atlasshop-pg-action {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .atlasshop-pg-actions .atlasshop-pg-action-video {
        display: none;
    }

    .atlasshop-pg-thumb {
        width: 56px;
        height: 56px;
    }
    .atlasshop-pg-thumb-icon {
        width: 30px;
        height: 30px;
    }
    .atlasshop-pg-thumb-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* ویجت نام محصول */
.atlasshop-product-name-widget {
    width: 100%;
    direction: rtl;
    text-align: right;
}

.atlasshop-product-name-placeholder {
    margin: 0;
    padding: 10px 0;
    color: #6b7280;
    font-size: 14px;
}

.atlasshop-product-name-brand {
    font-size: 14px;
    font-weight: 500;
    color: var(--atlasshop-primary-color, #2563eb);
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.atlasshop-product-name-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.atlasshop-product-name-english {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* ویجت امتیاز و متای محصول */
.atlasshop-product-meta-rating-widget {
    width: 100%;
}

.atlasshop-product-meta-rating-widget .atlasshop-pmr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 0;
    font-size: 14px;
    line-height: 1.5;
}

.atlasshop-product-meta-rating-widget .atlasshop-pmr-sku,
.atlasshop-product-meta-rating-widget .atlasshop-pmr-votes {
    color: #6b7280;
}

.atlasshop-product-meta-rating-widget .atlasshop-pmr-reviews a {
    color: var(--atlasshop-primary-color, #2563eb);
    text-decoration: none;
}

.atlasshop-product-meta-rating-widget .atlasshop-pmr-reviews a:hover {
    text-decoration: underline;
}

.atlasshop-product-meta-rating-widget .atlasshop-pmr-sep {
    color: #9ca3af;
    margin: 0 4px;
    user-select: none;
}

.atlasshop-product-meta-rating-widget .atlasshop-pmr-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #6b7280;
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.atlasshop-product-meta-rating-widget .atlasshop-pmr-star {
    flex-shrink: 0;
    vertical-align: middle;
}

.atlasshop-product-meta-rating-widget .atlasshop-pmr-placeholder {
    margin: 0;
    padding: 8px 0;
    color: #6b7280;
    font-size: 14px;
}

/* ویجت امتیاز محصول (خلاصه) */
.atlasshop-product-rating-widget {
    width: 100%;
    background: #f9fafb;
    border-radius: 12px;
    padding: 12px 16px;
}

.atlasshop-product-rating-widget .atlasshop-prw-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.atlasshop-product-rating-widget .atlasshop-prw-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1;
}

.atlasshop-product-rating-widget[dir="rtl"] .atlasshop-prw-right {
    align-items: flex-start;
}

.atlasshop-product-rating-widget .atlasshop-prw-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.atlasshop-product-rating-widget[dir="rtl"] .atlasshop-prw-title-row {
    justify-content: flex-start;
}

.atlasshop-product-rating-widget .atlasshop-prw-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.atlasshop-product-rating-widget .atlasshop-prw-badge {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #10b981;
    border: 2px solid #ecfdf5;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.atlasshop-product-rating-widget .atlasshop-prw-stars .star-rating {
    margin: 0;
}

.atlasshop-product-rating-widget .atlasshop-prw-star-empty,
.atlasshop-product-rating-widget .atlasshop-prw-star-fill {
    font-size: 20px;
}

.atlasshop-product-rating-widget .atlasshop-prw-star-empty {
    color: #d1d5db;
}

.atlasshop-product-rating-widget .atlasshop-prw-stars-vote,
.atlasshop-product-rating-widget .atlasshop-prw-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.atlasshop-product-rating-widget[dir="rtl"] .atlasshop-prw-right .atlasshop-prw-stars,
.atlasshop-product-rating-widget[dir="rtl"] .atlasshop-prw-right .atlasshop-prw-vote-hint {
    align-self: flex-start;
}

.atlasshop-product-rating-widget .atlasshop-prw-star-vote {
    background: none;
    border: none;
    padding: 0;
    font-size: 20px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s;
}

.atlasshop-product-rating-widget .atlasshop-prw-star-vote:hover,
.atlasshop-product-rating-widget .atlasshop-prw-star-vote:hover ~ .atlasshop-prw-star-vote {
    color: #d1d5db;
}

.atlasshop-product-rating-widget .atlasshop-prw-star-vote:hover {
    color: #fbbf24 !important;
}

.atlasshop-product-rating-widget .atlasshop-prw-stars[data-hover="1"] .atlasshop-prw-star-vote:nth-child(-n+1),
.atlasshop-product-rating-widget .atlasshop-prw-stars[data-hover="2"] .atlasshop-prw-star-vote:nth-child(-n+2),
.atlasshop-product-rating-widget .atlasshop-prw-stars[data-hover="3"] .atlasshop-prw-star-vote:nth-child(-n+3),
.atlasshop-product-rating-widget .atlasshop-prw-stars[data-hover="4"] .atlasshop-prw-star-vote:nth-child(-n+4),
.atlasshop-product-rating-widget .atlasshop-prw-stars[data-hover="5"] .atlasshop-prw-star-vote:nth-child(-n+5) {
    color: #fbbf24;
}

.atlasshop-product-rating-widget .atlasshop-prw-vote-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.atlasshop-product-rating-widget .atlasshop-prw-star-vote:disabled {
    cursor: wait;
    opacity: 0.7;
}

.atlasshop-product-rating-widget .atlasshop-prw-left {
    text-align: left;
}

.atlasshop-product-rating-widget[dir="rtl"] .atlasshop-prw-left {
    text-align: right;
}

.atlasshop-product-rating-widget .atlasshop-prw-count {
    font-size: 12px;
    color: #6b7280;
}

.atlasshop-product-rating-widget .atlasshop-prw-count strong {
    font-weight: 600;
    margin: 0 4px;
}

/* تب‌های نحوه پرداخت (ویجت قیمت محصول) */
.atlasshop-ppw-payment-wrap {
    margin-bottom: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.atlasshop-ppw-payment-label {
    margin: 0 0 0.5rem;
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
}

.atlasshop-ppw-payment-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    direction: rtl;
}

.atlasshop-ppw-payment-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid #7dd3fc;
    border-radius: 8px;
    background: #fff;
    color: #0284c7;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-align: center;
}

.atlasshop-ppw-payment-tab:hover {
    background: #f0f9ff;
}

.atlasshop-ppw-payment-tab.is-active {
    background: #e0f2fe;
    border-color: #0ea5e9;
    color: #0369a1;
    cursor: default;
}

.atlasshop-ppw-pane {
    padding-top: 1rem;
}

.atlasshop-ppw-pane-installment .atlasshop-ppw-installment-soon {
    margin: 0.75rem 0 0;
    color: #6b7280;
    font-size: 14px;
}

/* دکمه نارنجی «محاسبه اقساط این محصول» در تب اقساط */
.atlasshop-ppw-installment-tab-inner {
    margin: 0.75rem 0 0;
}

.atlasshop-ppw-installment-calc-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background-color: var(--atlasshop-primary-color-hover, #ea580c);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-family: inherit;
}

.atlasshop-ppw-installment-calc-btn:hover {
    background-color: #c2410c;
    color: #fff;
}

.atlasshop-ppw-installment-calc-btn:focus {
    outline: 2px solid var(--atlasshop-primary-color-hover, #ea580c);
    outline-offset: 2px;
}

/* پاپ‌آپ محاسبه اقساط */
.atlasshop-ppw-installment-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.atlasshop-ppw-installment-popup.is-open {
    opacity: 1;
    visibility: visible;
}

.atlasshop-ppw-installment-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.atlasshop-ppw-installment-popup-box {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(229, 231, 235, 0.9);
    max-width: 680px;
    width: 96%;
    max-height: 90vh;
    overflow: hidden;
    z-index: 1;
}

.atlasshop-ppw-installment-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    flex-shrink: 0;
    z-index: 2;
}

.atlasshop-ppw-installment-popup-total-price {
    margin: 0;
    padding: 14px 24px;
    font-size: 15px;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.atlasshop-ppw-installment-popup-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 24px 16px;
}

.atlasshop-ppw-installment-popup-actions {
    flex-shrink: 0;
    padding: 16px 24px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.atlasshop-ppw-installment-total-price {
    color: var(--atlasshop-primary-color-hover, #ea580c);
    font-weight: 700;
}

.atlasshop-ppw-installment-popup-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #111827;
}

.atlasshop-ppw-installment-popup-close {
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    background: #f3f4f6;
    color: #374151;
    border-radius: 10px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.atlasshop-ppw-installment-popup-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.atlasshop-ppw-installment-popup .atlasshop-ppw-installment-options {
    padding: 22px 0 16px 0;
}

/* رادیو دکمه‌های انتخاب تعداد اقساط (تنظیمات داشبورد) */
.atlasshop-ppw-installment-options {
    margin: 0.75rem 0 0;
}

.atlasshop-ppw-installment-period {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #6b7280;
}

.atlasshop-ppw-installment-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.atlasshop-ppw-installment-legend {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    display: block;
}

.atlasshop-ppw-installment-radios {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.atlasshop-ppw-installment-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    position: relative;
}

.atlasshop-ppw-installment-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.atlasshop-ppw-installment-radio-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111827;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
    user-select: none;
}

.atlasshop-ppw-installment-radio-label:hover .atlasshop-ppw-installment-radio-text {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.atlasshop-ppw-installment-radio:checked + .atlasshop-ppw-installment-radio-text {
    background: var(--atlasshop-primary-color, #2563eb);
    border-color: var(--atlasshop-primary-color, #2563eb);
    color: #ffffff;
}

.atlasshop-ppw-installment-radio:checked + .atlasshop-ppw-installment-radio-text .atlasshop-ppw-installment-per {
    color: rgba(255, 255, 255, 0.92);
}

.atlasshop-ppw-installment-per {
    font-weight: 600;
    color: var(--atlasshop-primary-color, #2563eb);
}

.atlasshop-ppw-installment-result-wrap {
    margin: 16px 0 0 0;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #374151;
}

.atlasshop-ppw-installment-info-label {
    margin: 16px 0 0 0;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.atlasshop-ppw-installment-per-dynamic {
    color: var(--atlasshop-primary-color, #2563eb);
    font-size: 16px;
}

.atlasshop-ppw-installment-popup-footer {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.atlasshop-ppw-installment-down-amount-wrap {
    margin: 0 0 0 0;
    padding-bottom: 12px;
    margin-bottom: 4px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px dotted #d1d5db;
}

.atlasshop-ppw-installment-down-amount {
    color: var(--atlasshop-primary-color, #2563eb);
    font-weight: 600;
}

.atlasshop-ppw-installment-list {
    margin: 0 0 12px 0;
}

.atlasshop-ppw-installment-item {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 10px 0 12px;
    font-size: 14px;
    color: #374151;
    min-width: 0;
    border-bottom: 1px dotted #d1d5db;
}

.atlasshop-ppw-installment-item:first-child {
    padding-top: 4px;
}

.atlasshop-ppw-installment-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.atlasshop-ppw-installment-item .atlasshop-ppw-installment-label {
    flex-shrink: 0;
    white-space: nowrap;
}

.atlasshop-ppw-installment-item .atlasshop-ppw-installment-due {
    flex-shrink: 0;
    min-width: 10em;
    margin-right: 4px;
}

.atlasshop-ppw-installment-leader {
    flex: 1;
    min-width: 12px;
    margin: 0 6px;
    border-bottom: none;
    vertical-align: baseline;
}

.atlasshop-ppw-installment-item strong {
    color: var(--atlasshop-primary-color, #2563eb);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.atlasshop-ppw-installment-due {
    font-size: 13px;
    color: #6b7280;
    font-weight: normal;
}

/* دکمه پاپ‌آپ اقساط: رنگ و سایز از دکمه نقدی همین ویجت کپی می‌شود (JS) */
.atlasshop-ppw-installment-popup .atlasshop-ppw-installment-popup-add-to-cart,
.atlasshop-ppw-installment-popup-add-to-cart.atlasshop-ppw-installment-popup-add-to-cart {
    display: block !important;
    width: 100% !important;
    border: none !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
    box-shadow: none !important;
}

.atlasshop-ppw-installment-popup .atlasshop-ppw-installment-popup-add-to-cart:hover:not(:disabled),
.atlasshop-ppw-installment-popup-add-to-cart.atlasshop-ppw-installment-popup-add-to-cart:hover:not(:disabled) {
    opacity: 0.95 !important;
}

.atlasshop-ppw-installment-popup .atlasshop-ppw-installment-popup-add-to-cart:disabled,
.atlasshop-ppw-installment-popup-add-to-cart.atlasshop-ppw-installment-popup-add-to-cart:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.atlasshop-ppw-installment-fieldset-down {
    margin-bottom: 16px;
}

/* اسلایدر تعداد اقساط (تعداد ماه) */
.atlasshop-ppw-installment-fieldset-count .atlasshop-ppw-installment-radios {
    display: none;
}

.atlasshop-ppw-installment-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.atlasshop-ppw-installment-slider-min,
.atlasshop-ppw-installment-slider-max {
    font-size: 12px;
    color: #6b7280;
    flex-shrink: 0;
}

.atlasshop-ppw-installment-slider-track {
    position: relative;
    flex: 1;
    min-width: 120px;
    padding-top: 40px;
}

.atlasshop-ppw-installment-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    outline: none;
    display: block;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.atlasshop-ppw-installment-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(145deg, #60a5fa 0%, var(--atlasshop-primary-color, #2563eb) 50%, #1d4ed8 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35), 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
    margin-top: -9px;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.atlasshop-ppw-installment-slider:hover::-webkit-slider-thumb,
.atlasshop-ppw-installment-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.45), 0 1px 3px rgba(0, 0, 0, 0.12);
}

.atlasshop-ppw-installment-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(145deg, #60a5fa 0%, var(--atlasshop-primary-color, #2563eb) 50%, #1d4ed8 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35), 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.atlasshop-ppw-installment-slider:hover::-moz-range-thumb,
.atlasshop-ppw-installment-slider:focus::-moz-range-thumb {
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.45), 0 1px 3px rgba(0, 0, 0, 0.12);
}

.atlasshop-ppw-installment-slider-value {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 700;
    color: var(--atlasshop-primary-color, #2563eb);
    display: block;
    white-space: nowrap;
    pointer-events: none;
    transition: left 0.15s ease;
    background: rgba(37, 99, 235, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}


/* ویجت قیمت و تعداد محصول */
.atlasshop-product-price-quantity-widget {
    width: 100%;
}

.atlasshop-product-price-quantity-widget .atlasshop-ppq-placeholder {
    margin: 0;
    padding: 8px 0;
    color: #6b7280;
    font-size: 14px;
}

.atlasshop-product-price-quantity-widget .atlasshop-ppq-price-wrap {
    margin-bottom: 12px;
}

.atlasshop-product-price-quantity-widget .atlasshop-ppq-price {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.atlasshop-product-price-quantity-widget .atlasshop-ppq-price del {
    opacity: 0.7;
    font-weight: 500;
}

.atlasshop-product-price-quantity-widget .atlasshop-ppq-price-updated {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.atlasshop-product-price-quantity-widget .atlasshop-ppq-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.atlasshop-product-price-quantity-widget .atlasshop-ppq-qty-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: #f9fafb;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.atlasshop-product-price-quantity-widget .atlasshop-ppq-qty-btn:hover {
    background: #f3f4f6;
}

.atlasshop-product-price-quantity-widget .atlasshop-ppq-qty-input {
    width: 52px;
    height: 40px;
    padding: 0 4px;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.atlasshop-product-price-quantity-widget .atlasshop-ppq-qty-input::-webkit-outer-spin-button,
.atlasshop-product-price-quantity-widget .atlasshop-ppq-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.atlasshop-product-price-quantity-widget[dir="rtl"] .atlasshop-ppq-qty-input {
    border-left: none;
    border-right: none;
    border-inline-start: 1px solid #e5e7eb;
    border-inline-end: 1px solid #e5e7eb;
}

.atlasshop-ppq-add-to-cart-wrap {
    margin-top: 16px;
    width: 100%;
}

.atlasshop-ppq-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    /* رنگ و پس‌زمینه از تنظیمات المنتور می‌آید */
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    /* ترنزیشن را حذف می‌کنیم تا جهش رنگ نداشته باشد */
    transition: none;
}

.atlasshop-ppq-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* خنثی‌کردن استایل‌های هاور/کلیک ووکامرس برای این دکمه
   تا رنگ و پس‌زمینه دقیقاً همان رنگ عادی (المنتور) باقی بماند */
.atlasshop-product-price-widget .atlasshop-ppq-add-to-cart.button,
.atlasshop-product-price-widget .atlasshop-ppq-add-to-cart.button:hover,
.atlasshop-product-price-widget .atlasshop-ppq-add-to-cart.button:focus,
.atlasshop-product-price-widget .atlasshop-ppq-add-to-cart.button:active {
    box-shadow: none !important;
    transform: none !important;
}

/* رنگ هاور/فوکوس از تنظیمات ویجت (استایل دکمه) قابل تنظیم است */
.atlasshop-product-price-widget .atlasshop-ppq-add-to-cart.button:focus,
.atlasshop-product-price-widget .atlasshop-ppq-add-to-cart.button:active {
    border-color: inherit !important;
}

.atlasshop-ppq-add-to-cart.atlasshop-ppq-add-to-cart-loading {
    opacity: 0.7;
    cursor: wait;
}

/* ویجت متغیرهای محصول */
.atlasshop-product-variations-widget {
    width: 100%;
}

.atlasshop-product-variations-widget .atlasshop-pv-attribute {
    direction: rtl;
    text-align: right;
}

.atlasshop-product-variations-widget .atlasshop-pv-label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.atlasshop-product-variations-widget .atlasshop-pv-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.atlasshop-product-variations-widget .atlasshop-pv-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.atlasshop-product-variations-widget .atlasshop-pv-option:hover {
    border-color: #9ca3af;
}

.atlasshop-product-variations-widget .atlasshop-pv-option.is-selected {
    border-color: var(--atlasshop-primary-color, #2563eb);
    border-width: 2px;
    padding: 7px 11px;
}

.atlasshop-product-variations-widget .atlasshop-pv-option-text {
    order: 1;
}

.atlasshop-product-variations-widget .atlasshop-pv-swatch {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    order: 2;
}

.atlasshop-product-variations-widget .atlasshop-pv-swatch--light {
    border: 1px solid #e5e7eb;
}

.atlasshop-product-variations-widget .atlasshop-pv-check {
    display: none;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    flex-shrink: 0;
    order: 2;
}

.atlasshop-product-variations-widget .atlasshop-pv-option.is-selected .atlasshop-pv-swatch {
    display: none;
}

.atlasshop-product-variations-widget .atlasshop-pv-option.is-selected .atlasshop-pv-check {
    display: inline-flex;
}

.atlasshop-product-variations-widget .atlasshop-pv-check svg {
    display: block;
}

.atlasshop-product-variations-widget .atlasshop-pv-placeholder {
    margin: 0;
    padding: 8px 0;
    color: #6b7280;
    font-size: 14px;
}

/* ویجت قیمت محصول (ادغام امتیاز + قیمت و تعداد) */
.atlasshop-product-price-widget {
    width: 100%;
}

.atlasshop-product-price-widget .atlasshop-product-rating-widget {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

/* مرجع تایپوگرافی پاپ‌آپ (تنظیمات المنتور ویجت قیمت محصول) */
.atlasshop-atc-toast-typography-ref {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0 !important;
    pointer-events: none !important;
}

.atlasshop-atc-toast-ref-title,
.atlasshop-atc-toast-ref-button {
    display: inline-block;
}

/* پاپ‌آپ افزودن به سبد — toast پایین چپ (مشابه setmart-core) */
.atlasshop-add-to-cart-modal.atlasshop-add-to-cart-toast {
    display: none;
    position: fixed !important;
    left: 20px !important;
    bottom: 20px !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: calc(100vw - 40px);
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    z-index: 999999 !important;
    pointer-events: none;
    align-items: flex-end;
    justify-content: flex-start;
    transform: none !important;
    inset: auto auto 20px 20px !important;
}

.atlasshop-add-to-cart-modal.atlasshop-add-to-cart-toast.show {
    display: flex;
    animation: atlasshop-atc-toast-in 0.28s ease;
}

@keyframes atlasshop-atc-toast-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.atlasshop-add-to-cart-toast .atlasshop-add-to-cart-modal-content {
    pointer-events: auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    max-width: min(420px, calc(100vw - 40px));
    width: auto;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.14);
    border: 1px solid #e5e7eb;
    position: relative;
}

.atlasshop-atc-toast-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    direction: rtl;
}

.atlasshop-atc-toast-start {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.atlasshop-atc-toast-message,
.atlasshop-atc-toast-success {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.atlasshop-add-to-cart-toast--error .atlasshop-add-to-cart-modal-title {
    color: #dc2626;
    font-weight: 600;
    white-space: normal;
    max-width: min(240px, 42vw);
    line-height: 1.45;
}

.atlasshop-add-to-cart-toast--error .atlasshop-add-to-cart-modal-error-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.atlasshop-add-to-cart-toast .atlasshop-add-to-cart-modal-close {
    position: static;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0;
    transition: background-color 0.2s;
}

.atlasshop-add-to-cart-toast .atlasshop-add-to-cart-modal-success-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.atlasshop-add-to-cart-toast .atlasshop-add-to-cart-modal-success-icon svg {
    width: 14px;
    height: 14px;
    stroke: #ffffff;
    stroke-width: 3;
    fill: none;
}

.atlasshop-add-to-cart-toast .atlasshop-add-to-cart-modal-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #16a34a;
    white-space: nowrap;
}

.atlasshop-add-to-cart-toast .atlasshop-add-to-cart-modal-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

.atlasshop-add-to-cart-toast .atlasshop-add-to-cart-modal-button:hover {
    background: #e5e7eb;
    transform: none;
    text-decoration: none;
    color: #111827;
}

.atlasshop-atc-toast-cart-chevron {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.atlasshop-atc-toast-cart-chevron svg {
    width: 16px;
    height: 16px;
    stroke: #374151;
}

/* توقف سفارش‌گیری — toast اطلاع‌رسانی (استایل از ویجت قیمت محصول) */
.atlasshop-add-to-cart-toast--order-stop .atlasshop-add-to-cart-modal-go-cart {
    display: none !important;
}

.atlasshop-add-to-cart-toast--order-stop .atlasshop-add-to-cart-modal-content {
    background: #fffbeb;
    border: 1px solid #fde68a;
    box-shadow: 0 10px 36px rgba(180, 83, 9, 0.12), inset 4px 0 0 #f59e0b;
    padding: 16px 18px;
    border-radius: 14px;
}

.atlasshop-add-to-cart-toast--order-stop .atlasshop-atc-toast-inner {
    gap: 12px;
}

.atlasshop-add-to-cart-toast--order-stop .atlasshop-atc-toast-message {
    align-items: flex-start;
    gap: 12px;
}

.atlasshop-add-to-cart-modal-order-stop-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fbbf24 0%, #d97706 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.atlasshop-add-to-cart-modal-order-stop-icon svg {
    width: 20px;
    height: 20px;
}

.atlasshop-atc-toast-order-stop-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.atlasshop-atc-toast-order-stop-heading {
    display: block;
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #b45309;
    line-height: 1.35;
}

.atlasshop-add-to-cart-toast--order-stop .atlasshop-atc-toast-order-stop-message {
    display: block;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #78350f;
    line-height: 1.55;
    white-space: normal;
    max-width: min(300px, 58vw);
}

.atlasshop-add-to-cart-toast--order-stop .atlasshop-add-to-cart-modal-close {
    align-self: flex-start;
    margin-top: 2px;
}

.atlasshop-add-to-cart-toast--order-stop .atlasshop-add-to-cart-modal-close:hover {
    background-color: rgba(180, 83, 9, 0.1);
}

.atlasshop-atc-toast-ref-order-stop-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: #fffbeb;
    box-shadow: inset 4px 0 0 #f59e0b;
}

.atlasshop-atc-toast-ref-order-stop-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #d97706;
    flex-shrink: 0;
}

.atlasshop-atc-toast-ref-order-stop-icon svg {
    width: 14px;
    height: 14px;
}

.atlasshop-atc-toast-ref-order-stop-heading {
    display: block;
    font-size: 12px;
    font-weight: 700;
}

.atlasshop-atc-toast-ref-order-stop-message {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .atlasshop-add-to-cart-toast--order-stop .atlasshop-atc-toast-order-stop-message {
        max-width: calc(100vw - 100px);
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .atlasshop-add-to-cart-modal.atlasshop-add-to-cart-toast {
        left: 12px !important;
        bottom: calc(70px + 12px + env(safe-area-inset-bottom, 0px)) !important;
        inset: auto auto calc(70px + 12px + env(safe-area-inset-bottom, 0px)) 12px !important;
        max-width: calc(100vw - 24px);
    }

    .atlasshop-add-to-cart-toast .atlasshop-add-to-cart-modal-content {
        max-width: calc(100vw - 24px);
        padding: 12px 14px;
    }

    .atlasshop-add-to-cart-toast .atlasshop-add-to-cart-modal-title {
        font-size: 14px;
        white-space: normal;
    }

    .atlasshop-add-to-cart-toast .atlasshop-add-to-cart-modal-button {
        padding: 9px 12px;
        font-size: 12px;
    }
}

.atlasshop-add-to-cart-toast .atlasshop-add-to-cart-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.atlasshop-add-to-cart-toast .atlasshop-add-to-cart-modal-close svg {
    width: 18px;
    height: 18px;
    stroke: #4b5563;
}

/* ویجت توضیحات کوتاه محصول */
.atlasshop-product-short-description-widget {
    width: 100%;
}

.atlasshop-product-short-description-widget .atlasshop-product-short-desc-title {
    margin: 0 0 12px 0;
    font-weight: 600;
}

.atlasshop-product-short-description-widget .atlasshop-product-short-desc {
    margin: 0;
    line-height: 1.6;
}

.atlasshop-product-short-description-widget .atlasshop-product-short-desc a:hover {
    text-decoration: underline;
}

.atlasshop-product-short-description-widget .atlasshop-product-short-desc-placeholder {
    margin: 0;
    padding: 8px 0;
    color: #6b7280;
    font-size: 14px;
}

/* ویجت اطلاعیه */
.atlasshop-announcement-widget {
    width: 100%;
}

.atlasshop-announcement-widget .atlasshop-announcement-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-direction: row-reverse;
}

/* سایز و نوع فونت و رنگ متن فقط از ویجت اطلاعیه (تب استایل / تایپوگرافی) مدیریت شود */
.atlasshop-announcement-widget .atlasshop-announcement-text {
    flex: 1;
    margin: 0;
}

.atlasshop-announcement-widget .atlasshop-announcement-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.atlasshop-announcement-widget .atlasshop-announcement-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* حالت ناموجود — ویجت متغیرها: محتوا تار */
.atlasshop-pv-oos-wrapper.atlasshop-pv-oos-active .atlasshop-pv-oos-blur {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
    opacity: 0.85;
}

/* حالت ناموجود — ویجت قیمت و تعداد: پیام + محتوای تار + دکمه قرمز */
.atlasshop-ppq-oos-wrap {
    width: 100%;
}

.atlasshop-ppq-oos-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #1e3a5f;
    font-size: 15px;
    line-height: 1.5;
}

.atlasshop-ppq-oos-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #94a3b8;
}

.atlasshop-ppq-oos-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.atlasshop-ppq-oos-text {
    flex: 1;
}

.atlasshop-ppq-oos-blur {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
    opacity: 0.85;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.atlasshop-ppq-oos-btn.atlasshop-ppq-oos-notify-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background-color: #dc2626;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.atlasshop-ppq-oos-btn.atlasshop-ppq-oos-notify-btn:hover {
    background-color: #b91c1c;
    color: #fff !important;
}

/* ——— ویجت ساعت آنالوگ ——— */
.atlasshop-clock-widget {
    display: inline-block;
    direction: ltr;
}

.atlasshop-clock-wrapper {
    position: relative;
    display: inline-block;
}

.atlasshop-clock-base {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.atlasshop-clock-dial {
    position: absolute;
    z-index: 1;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    margin: auto;
    border-radius: 50%;
    transform: scale(0.99);
}

/* خطوط سبز روی محیط دایره — هر خط داخل یک شعاع از مرکز به لبه */
.atlasshop-clock-indicator-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 50%;
    margin-left: -1px;
    margin-top: -50%;
    transform-origin: 50% 100%;
    transform: rotate(calc((var(--atlasshop-clock-i, 1) - 1) * 30deg));
    z-index: 0;
    pointer-events: none;
}

.atlasshop-clock-indicator-wrap .atlasshop-clock-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -2px;
    width: 4px;
    height: 10px;
    background: #22c55e;
    border-radius: 1px;
}

.atlasshop-clock-indicator-wrap .atlasshop-clock-indicator--major {
    height: 14px;
}

.atlasshop-clock-hour,
.atlasshop-clock-minute,
.atlasshop-clock-second {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: 50% 100%;
    border-radius: 2px;
}

.atlasshop-clock-hour {
    width: 6px;
    height: 28%;
    margin-left: -3px;
    z-index: 3;
}

.atlasshop-clock-minute {
    width: 4px;
    height: 38%;
    margin-left: -2px;
    z-index: 4;
}

.atlasshop-clock-second {
    width: 2px;
    height: 42%;
    margin-left: -1px;
    z-index: 5;
    transition: transform 0.05s linear;
}

/* روز هفته — وسط سمت راست (موقعیت ساعت ۳) */
.atlasshop-clock-day {
    position: absolute;
    z-index: 2;
    left: 70%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 6px 12px;
    border-radius: 8px;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
}

/* ---------- ویجت تب‌های محصول (ویژگی‌ها، توضیحات، نظرات) ---------- */
.atlasshop-product-tabs {
    width: 100%;
    max-width: 100%;
    font-family: inherit;
}

.atlasshop-pt-placeholder {
    padding: 1em;
    color: #6b7280;
}

/* پس‌زمینه خاکستری تمام عرض؛ گروه تب‌ها در سمت راست نوار؛ دسکتاپ: استیکی هنگام اسکرول */
/* ترتیب از راست به چپ: توضیحات، ویژگی‌های محصول، نظرات (با order ثابت) */
.atlasshop-pt-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-end;
    direction: ltr !important;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: #fafafa;
    border-radius: 10px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (min-width: 769px) {
    .atlasshop-pt-nav {
        position: sticky;
        top: 0;
        z-index: 100;
    }
}

@media (max-width: 768px) {
    .atlasshop-pt-nav {
        margin-bottom: 1rem;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        gap: 0.35rem;
        justify-content: stretch;
    }

    .atlasshop-pt-nav a {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        padding: 0.55rem 0.35rem;
        font-size: 0.72rem;
        border-radius: 6px;
        border: 1px solid #e5e7eb;
    }

    .atlasshop-pt-nav a.is-active {
        border-color: #fdba74;
    }

    .atlasshop-pt-nav-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.atlasshop-pt-nav a.atlasshop-pt-nav-link--description { order: 3; } /* توضیحات → راست */
.atlasshop-pt-nav a.atlasshop-pt-nav-link--features { order: 2; } /* ویژگی‌های محصول → وسط */
.atlasshop-pt-nav a.atlasshop-pt-nav-link--reviews { order: 1; } /* نظرات → چپ */

.atlasshop-pt-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    text-decoration: none;
    font-weight: 600;
    color: #4b5563;
    background: #fff;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    border: none;
    direction: rtl !important; /* عنوان سمت راست، آیکن سمت چپ */
}

.atlasshop-pt-nav a:hover {
    color: #374151;
    background: #f9fafb;
}

.atlasshop-pt-nav a.is-active {
    color: var(--atlasshop-primary-color-hover, #ea580c);
    background: #fff;
}

.atlasshop-pt-nav a.is-active .atlasshop-pt-nav-icon {
    color: inherit;
}

.atlasshop-pt-nav-icon {
    display: inline-flex;
    flex-shrink: 0;
    color: inherit;
    transition: color 0.2s;
}

.atlasshop-pt-nav a:hover .atlasshop-pt-nav-icon {
    color: #6b7280;
}

.atlasshop-pt-nav a.is-active:hover .atlasshop-pt-nav-icon {
    color: inherit;
}

.atlasshop-pt-nav-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.atlasshop-pt-nav-icon i,
.atlasshop-pt-nav-icon .atlasshop-pt-nav-icon-inner {
    font-size: 20px;
    width: 1em;
    height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.atlasshop-pt-nav-text {
    white-space: nowrap;
}

.atlasshop-pt-section {
    padding: 1.5rem 0;
    scroll-margin-top: 1rem;
}

.atlasshop-pt-section-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

/* جدول مشخصات (ویژگی‌های محصول) — هر ردیف دو باکس خاکستری جدا با فاصله سفید */
.atlasshop-pt-specs {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.atlasshop-pt-spec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: #fff;
    cursor: pointer;
    user-select: none;
    gap: 0.5rem;
}

.atlasshop-pt-spec-header:hover {
    background: #fafafa;
}

.atlasshop-pt-spec-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.atlasshop-pt-spec-caret {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--atlasshop-primary-color, #2563eb);
    transition: transform 0.25s ease;
}

.atlasshop-pt-specs[aria-collapsed="true"] .atlasshop-pt-spec-caret {
    transform: rotate(-90deg);
}

.atlasshop-pt-spec-body {
    border-top: 1px solid #e5e7eb;
    background: #fff;
    padding: 0.5rem 0;
}

.atlasshop-pt-specs[aria-collapsed="true"] .atlasshop-pt-spec-body {
    display: none;
}

.atlasshop-pt-spec-row {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: right;
    direction: rtl;
}

.atlasshop-pt-spec-row:last-child {
    margin-bottom: 0;
}

/* عرض ثابت برای ستون عنوان تا همهٔ ردیف‌ها همتراز شوند */
.atlasshop-pt-spec-label {
    font-weight: 500;
    color: #374151;
    background: #fafafa;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    flex: 0 0 14rem;
    width: 14rem;
    min-width: 14rem;
    text-align: right;
}

.atlasshop-pt-spec-value {
    color: #111827;
    text-align: right;
    background: #fafafa;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    flex: 1;
    min-width: 0;
}

.atlasshop-pt-spec-value-item {
    display: block;
}

.atlasshop-pt-spec-value-item + .atlasshop-pt-spec-value-item {
    margin-top: 0.35rem;
}

/* بخش توضیحات: ۳ خط با محو و دکمه «نمایش بیشتر» */
.atlasshop-pt-description-wrap {
    position: relative;
}

.atlasshop-pt-description-wrap.atlasshop-pt-description-empty .atlasshop-pt-description-fade,
.atlasshop-pt-description-wrap.atlasshop-pt-description-empty .atlasshop-pt-description-more,
.atlasshop-pt-description-wrap.atlasshop-pt-description-short .atlasshop-pt-description-fade,
.atlasshop-pt-description-wrap.atlasshop-pt-description-short .atlasshop-pt-description-more {
    display: none;
}

.atlasshop-pt-description-wrap.atlasshop-pt-description-short .atlasshop-pt-description {
    display: block;
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
}

.atlasshop-pt-description {
    line-height: 1.7;
}

.atlasshop-pt-description-wrap:not(.is-expanded) .atlasshop-pt-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(1.7em * 3);
}

/* محو به‌طور کامل روی خط سوم (ارتفاع حدود یک خط) */
.atlasshop-pt-description-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.9rem;
    height: 1.7em;
    min-height: 1.75rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.92) 100%);
    pointer-events: none;
    transition: opacity 0.2s;
}

.atlasshop-pt-description-wrap.is-expanded .atlasshop-pt-description {
    display: block;
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
}

.atlasshop-pt-description-wrap.is-expanded .atlasshop-pt-description-fade {
    opacity: 0;
    pointer-events: none;
}

.atlasshop-pt-description-more {
    display: block;
    margin: 0.5rem auto 0;
    padding: 0;
    border: none;
    background: none;
    font-size: inherit;
    font-weight: 600;
    color: var(--atlasshop-primary-color-hover, #ea580c);
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}

.atlasshop-pt-description-more:hover {
    color: #c2410c;
    text-decoration: underline;
}

.atlasshop-pt-description-wrap.is-expanded .atlasshop-pt-description-more {
    margin-top: 0.75rem;
}

.atlasshop-pt-empty {
    color: #6b7280;
    font-style: italic;
    margin: 0;
}

.atlasshop-pt-reviews-list {
    margin-bottom: 2rem;
}

/* چیدمان هر دیدگاه: آواتار راست، متن و دکمه پاسخ چپ (RTL) — با اولویت بالا برای غلبه بر استایل قالب */
.atlasshop-product-tabs .atlasshop-pt-reviews-list .atlasshop-pt-review-item,
.atlasshop-pt-review-item {
    display: flex !important;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.atlasshop-pt-review-item:last-child {
    border-bottom: none;
}

.atlasshop-pt-review-avatar {
    flex-shrink: 0;
}

.atlasshop-pt-review-avatar .atlasshop-pt-review-avatar-img,
.atlasshop-pt-review-avatar img {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.atlasshop-pt-review-body {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.atlasshop-pt-review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.atlasshop-pt-review-author {
    font-weight: 600;
    color: #111827;
}

.atlasshop-pt-review-content {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #111827;
}

.atlasshop-pt-review-pos,
.atlasshop-pt-review-neg {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: #4b5563;
}

.atlasshop-pt-review-reply-wrap {
    margin: 0.75rem 0 0 0;
}

.atlasshop-product-tabs .atlasshop-pt-review-reply-btn,
.atlasshop-pt-review-reply-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #111827 !important;
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
}

.atlasshop-pt-review-reply-btn:hover {
    opacity: 0.9;
    background: #1f2937;
    color: #fff !important;
}

/* پاسخ‌ها: جعبه سبز روشن و تورفتگی */
.atlasshop-pt-review-children {
    margin-right: 2rem;
    margin-bottom: 0.5rem;
}

[dir="ltr"] .atlasshop-pt-review-children {
    margin-right: 0;
    margin-left: 2rem;
}

.atlasshop-product-tabs .atlasshop-pt-review-item-reply,
.atlasshop-pt-review-item-reply {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #ecfdf5 !important;
    border-radius: 10px;
    border: none;
}

.atlasshop-pt-review-item-reply:last-child {
    margin-bottom: 0;
}

/* بخش نظرات: پس‌زمینه روشن */
#section-reviews.atlasshop-pt-section {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 0.5rem;
}

.atlasshop-pt-review-form-wrap {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    padding: 1.75rem;
    margin-top: 1.25rem;
    border: 1px solid #eee;
}

.atlasshop-pt-review-form-title {
    margin: 0 0 1.25rem;
    font-size: 1.2em;
    font-weight: 600;
    color: #1f2937;
    text-align: right;
}

.atlasshop-pt-review-form .atlasshop-pt-field {
    margin-bottom: 1rem;
}

.atlasshop-pt-review-form .atlasshop-pt-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1f2937;
    text-align: right;
}

.atlasshop-pt-review-form .required {
    color: #dc2626;
}

/* استایل فونت فیلدهای فرم نظرات تا هنگام تایپ همان استایل اعمال شود */
.atlasshop-pt-review-form .atlasshop-pt-input,
.atlasshop-pt-review-form .atlasshop-pt-textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #111827;
    letter-spacing: 0;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #fff;
}

/* در صورت عدم به‌ارث‌بردن فونت از قالب، فونت خوانا اعمال شود */
.atlasshop-product-tabs .atlasshop-pt-review-form .atlasshop-pt-input,
.atlasshop-product-tabs .atlasshop-pt-review-form .atlasshop-pt-textarea {
    font-family: "Vazirmatn", "Vazir", Tahoma, "Segoe UI", sans-serif;
}

.atlasshop-pt-review-form .atlasshop-pt-input::placeholder,
.atlasshop-pt-review-form .atlasshop-pt-textarea::placeholder {
    color: #6b7280;
    opacity: 1;
}

.atlasshop-pt-review-form .atlasshop-pt-input:focus,
.atlasshop-pt-review-form .atlasshop-pt-textarea:focus {
    outline: none;
    border-color: var(--atlasshop-primary-color-hover, #ea580c);
}

.atlasshop-pt-review-form .atlasshop-pt-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.7;
}

/* پلیس‌هولدر از تب استایل ویجت (پلیس‌هولدر نقاط قوت و ضعف) قابل تنظیم است. مقادیر پیش‌فرض در ویجت اعمال می‌شود. */

/* نام و ایمیل در یک سطر */
.atlasshop-pt-name-email-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0;
    width: 100%;
}

.atlasshop-pt-name-email-row .atlasshop-pt-field {
    flex: 1 1 200px;
    min-width: 0;
    margin-bottom: 1rem;
}

/* نقاط قوت و ضعف کنار هم */
.atlasshop-pt-pros-cons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.atlasshop-pt-pros-box,
.atlasshop-pt-cons-box {
    flex: 1;
    min-width: 200px;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #eee;
}

.atlasshop-pt-pros-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 0.5rem;
    text-align: right;
}

.atlasshop-pt-cons-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ed6c02;
    margin-bottom: 0.5rem;
    text-align: right;
}

.atlasshop-pt-emoji {
    margin-right: 0.25rem;
}

.atlasshop-pt-pros-list .atlasshop-pt-input,
.atlasshop-pt-cons-list .atlasshop-pt-input {
    margin-bottom: 0.5rem;
}

.atlasshop-pt-pros-list .atlasshop-pt-input:last-of-type,
.atlasshop-pt-cons-list .atlasshop-pt-input:last-of-type {
    margin-bottom: 0;
}

.atlasshop-pt-add-item {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    color: #f44336;
    cursor: pointer;
    margin-top: 0.5rem;
    text-align: right;
    font-weight: 500;
}

.atlasshop-pt-add-item:hover {
    text-decoration: underline;
}

/* چک‌باکس ذخیره */
.atlasshop-pt-field-checkbox {
    margin-bottom: 1rem;
}

.atlasshop-pt-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    text-align: right;
    cursor: pointer;
}

.atlasshop-pt-checkbox-label .atlasshop-pt-checkbox {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.atlasshop-pt-checkbox-label span {
    flex: 1;
}

@media (min-width: 768px) {
    .atlasshop-pt-review-form .atlasshop-pt-field:not(.atlasshop-pt-field-full):not(.atlasshop-pt-field-inline) {
        display: inline-block;
        width: calc(50% - 0.5rem);
        vertical-align: top;
        margin-left: 0.5rem;
    }
    .atlasshop-pt-review-form .atlasshop-pt-field:nth-child(even):not(.atlasshop-pt-field-full):not(.atlasshop-pt-field-inline) {
        margin-left: 0;
        margin-right: 0.5rem;
    }
}

.atlasshop-pt-submit-wrap {
    margin-top: 1.25rem;
    margin-bottom: 0;
    text-align: center;
}

.atlasshop-pt-review-submit {
    display: inline-block;
    padding: 0.7rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #f44336;
    box-shadow: 0 2px 4px rgba(244,67,54,0.3);
    transition: opacity 0.2s, box-shadow 0.2s;
}

.atlasshop-pt-review-submit:hover {
    opacity: 0.95;
    box-shadow: 0 3px 6px rgba(244,67,54,0.35);
}

.atlasshop-pt-review-message {
    margin-top: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    text-align: right;
}

.atlasshop-pt-review-message.success {
    background: #ecfdf5;
    color: #065f46;
}

.atlasshop-pt-review-message.error {
    background: #fef2f2;
    color: #991b1b;
}

/* ---------- بخش تیکت‌های پشتیبانی (حساب کاربری) ---------- */
.atlasshop-support-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.atlasshop-support-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.atlasshop-support-header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
}

.atlasshop-support-new-ticket-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--atlasshop-primary-color, #2563eb);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

.atlasshop-support-new-ticket-btn:hover {
    background: #1d4ed8;
}

.atlasshop-support-new-ticket-btn:active {
    transform: scale(0.98);
}

/* فرم تیکت جدید */
.atlasshop-support-new-ticket-form {
    margin-bottom: 28px;
    padding: 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.atlasshop-support-new-ticket-form h3 {
    margin: 0 0 20px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
}

.atlasshop-support-form-field {
    margin-bottom: 18px;
}

.atlasshop-support-form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.atlasshop-support-form-field .required {
    color: #dc2626;
}

.atlasshop-support-form-field input[type="text"],
.atlasshop-support-form-field input[type="email"],
.atlasshop-support-form-field select,
.atlasshop-ticket-content-textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #111827;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.atlasshop-support-form-field input:focus,
.atlasshop-support-form-field select:focus,
.atlasshop-ticket-content-textarea:focus {
    outline: none;
    border-color: var(--atlasshop-primary-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.atlasshop-ticket-content-textarea {
    min-height: 160px;
    resize: vertical;
}

.atlasshop-ticket-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
}

.atlasshop-ticket-file-input {
    display: block;
    margin-top: 8px;
    font-size: 0.875rem;
}

.atlasshop-ticket-file-preview {
    margin-top: 8px;
    font-size: 0.8125rem;
    color: #6b7280;
}

.atlasshop-support-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.atlasshop-support-submit-btn {
    padding: 10px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--atlasshop-primary-color, #2563eb);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.atlasshop-support-submit-btn:hover {
    background: #1d4ed8;
}

.atlasshop-support-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.atlasshop-support-cancel-btn {
    padding: 10px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.atlasshop-support-cancel-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.atlasshop-support-message {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
}

.atlasshop-support-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.atlasshop-support-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* لیست تیکت‌ها */
.atlasshop-support-tickets-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.atlasshop-support-tickets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.atlasshop-support-tickets-table th,
.atlasshop-support-tickets-table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
}

.atlasshop-support-tickets-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.atlasshop-support-tickets-table tbody tr:hover {
    background: #f9fafb;
}

.atlasshop-ticket-status,
.atlasshop-ticket-priority {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.atlasshop-ticket-status.status-waiting_for_response {
    background: #fef3c7;
    color: #92400e;
}

.atlasshop-ticket-status.status-under_review {
    background: #dbeafe;
    color: #1e40af;
}

.atlasshop-ticket-status.status-replied {
    background: #d1fae5;
    color: #065f46;
}

.atlasshop-ticket-status.status-closed {
    background: #f3f4f6;
    color: #6b7280;
}

.atlasshop-ticket-priority.priority-low {
    background: #f3f4f6;
    color: #6b7280;
}

.atlasshop-ticket-priority.priority-medium {
    background: #e0e7ff;
    color: #3730a3;
}

.atlasshop-ticket-priority.priority-high {
    background: #fee2e2;
    color: #991b1b;
}

.atlasshop-ticket-view-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--atlasshop-primary-color, #2563eb);
    background: #eff6ff;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.atlasshop-ticket-view-btn:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.atlasshop-support-empty {
    padding: 32px 24px;
    text-align: center;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    color: #6b7280;
    font-size: 0.9375rem;
}

/* نمای جزئیات تیکت */
.atlasshop-ticket-detail-view {
    margin-top: 24px;
}

.atlasshop-ticket-detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.atlasshop-ticket-back-btn {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.atlasshop-ticket-back-btn:hover {
    background: #f3f4f6;
}

.atlasshop-ticket-detail-header h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.atlasshop-ticket-detail-wrapper .atlasshop-ticket-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.atlasshop-ticket-detail-meta-item {
    font-size: 0.875rem;
    color: #374151;
}

.atlasshop-ticket-detail-content-body {
    margin-bottom: 24px;
}

.atlasshop-ticket-detail-content-body h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.atlasshop-ticket-content-text {
    padding: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #374151;
}

.atlasshop-ticket-attachments {
    margin-top: 16px;
}

.atlasshop-ticket-attachments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.atlasshop-ticket-attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
}

.atlasshop-ticket-attachment-link:hover {
    background: #e5e7eb;
}

.atlasshop-ticket-detail-replies h3 {
    margin: 0 0 14px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.atlasshop-ticket-detail-reply {
    margin-bottom: 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.atlasshop-ticket-detail-reply.admin-reply {
    border-right: 4px solid var(--atlasshop-primary-color, #2563eb);
    background: #f8fafc;
}

.atlasshop-ticket-detail-reply-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.atlasshop-ticket-detail-reply-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.atlasshop-ticket-detail-reply-author-info strong {
    display: block;
    font-size: 0.9375rem;
    color: #111827;
}

.atlasshop-ticket-admin-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: var(--atlasshop-primary-color, #2563eb);
    border-radius: 4px;
}

.atlasshop-ticket-detail-reply-date {
    font-size: 0.8125rem;
    color: #6b7280;
}

.atlasshop-ticket-detail-reply-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #374151;
}

.atlasshop-ticket-no-replies {
    font-style: italic;
    color: #6b7280;
    margin: 0;
}

.atlasshop-ticket-reply-form-wrapper {
    margin-top: 24px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.atlasshop-ticket-reply-form-wrapper h3 {
    margin: 0 0 14px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

/* فرم تیکت مهمان (ویجت) — عرض ثابت تا با وسط‌چین شدن در المنتور جمع نشود */
.atlasshop-guest-ticket-form-wrapper {
    width: 480px;
    max-width: 100%;
    min-width: 280px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    box-sizing: border-box;
}

.atlasshop-guest-ticket-form-title {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.atlasshop-guest-ticket-form-field {
    margin-bottom: 18px;
}

.atlasshop-guest-ticket-form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.atlasshop-guest-ticket-form-field .required {
    color: #dc2626;
}

.atlasshop-guest-ticket-form-field input[type="text"],
.atlasshop-guest-ticket-form-field input[type="tel"],
.atlasshop-guest-ticket-form-field textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9375rem;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s;
}

.atlasshop-guest-ticket-form-field input[type="text"]:focus,
.atlasshop-guest-ticket-form-field input[type="tel"]:focus,
.atlasshop-guest-ticket-form-field textarea:focus {
    border-color: var(--atlasshop-primary-color, #2563eb);
    outline: none;
}

.atlasshop-guest-ticket-form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.atlasshop-guest-ticket-form-actions {
    margin-top: 22px;
}

.atlasshop-guest-ticket-form-submit {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: var(--atlasshop-primary-color, #2563eb);
    border: 1px solid var(--atlasshop-primary-color, #2563eb);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.atlasshop-guest-ticket-form-submit:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.atlasshop-guest-ticket-form-message {
    margin-top: 14px;
    padding: 12px 14px;
    font-size: 0.875rem;
    border-radius: 8px;
}

.atlasshop-guest-ticket-form-message.success {
    background: #d1fae5;
    color: #065f46;
}

.atlasshop-guest-ticket-form-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* ——— ویجت منو (افقی، آیکن، زیرمنو، مگامنو) ——— */
.atlasshop-menu-widget {
    direction: rtl;
    font-family: inherit;
    overflow: visible;
}

.elementor-widget-atlasshop_menu {
    overflow: visible;
}

.elementor-widget-atlasshop_menu .elementor-widget-container {
    overflow: visible;
}

.atlasshop-menu-widget .atlasshop-menu,
.atlasshop-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    direction: rtl;
}

.atlasshop-menu-widget .atlasshop-menu li,
.atlasshop-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.atlasshop-menu-widget .atlasshop-menu-item-inner,
.atlasshop-menu .atlasshop-menu-item-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.atlasshop-menu-widget .atlasshop-menu-icon,
.atlasshop-menu .atlasshop-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
    font-size: 1em;
}

.atlasshop-menu-widget .atlasshop-menu-icon i,
.atlasshop-menu .atlasshop-menu-icon i {
    font-style: normal;
}

.atlasshop-menu-widget .atlasshop-menu-icon-img,
.atlasshop-menu .atlasshop-menu-icon-img {
    width: 1.25em;
    height: 1.25em;
    min-width: 1.25em;
    min-height: 1.25em;
    object-fit: contain;
    vertical-align: middle;
    display: block;
}

.atlasshop-menu-widget .atlasshop-menu-link,
.atlasshop-menu .atlasshop-menu-link {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    font-size: 0.95rem;
}

.atlasshop-menu-widget .atlasshop-menu-link:hover,
.atlasshop-menu .atlasshop-menu-link:hover {
    color: var(--atlasshop-primary-color, #2563eb);
}

.atlasshop-menu-widget .atlasshop-menu-chevron,
.atlasshop-menu .atlasshop-menu-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: none;
    background: transparent;
    color: inherit;
}

.atlasshop-menu-widget .atlasshop-menu-chevron::after,
.atlasshop-menu .atlasshop-menu-chevron::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
}

.atlasshop-menu-widget .atlasshop-menu li.menu-item-has-children,
.atlasshop-menu li.menu-item-has-children {
    position: relative;
    overflow: visible;
}

.atlasshop-menu > .menu-item-has-children:has(.atlasshop-mega-menu-content)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 42px;
    pointer-events: auto;
    background: transparent;
    z-index: 10000055;
}

.atlasshop-menu-widget .atlasshop-menu .sub-menu,
.atlasshop-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100%;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 999999;
    pointer-events: none;
}

.atlasshop-menu-widget .atlasshop-menu .sub-menu:not(.atlasshop-mega-menu-content),
.atlasshop-menu .sub-menu:not(.atlasshop-mega-menu-content) {
    min-width: 300px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.atlasshop-menu-widget .atlasshop-menu li:hover > .sub-menu,
.atlasshop-menu li:hover > .sub-menu,
.atlasshop-menu-widget .atlasshop-menu li.menu-item-has-children:hover .sub-menu,
.atlasshop-menu li.menu-item-has-children:hover .sub-menu,
.atlasshop-menu-widget .atlasshop-menu li.menu-item-has-children:hover .atlasshop-mega-menu-content,
.atlasshop-menu li.menu-item-has-children:hover .atlasshop-mega-menu-content {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.atlasshop-menu-widget .atlasshop-menu > .menu-item-has-children:hover,
.atlasshop-menu > .menu-item-has-children:hover {
    z-index: 10000050;
}

.atlasshop-menu-widget .atlasshop-menu .sub-menu li,
.atlasshop-menu .sub-menu li {
    padding: 0;
}

.atlasshop-menu-widget .atlasshop-menu .sub-menu:not(.atlasshop-mega-menu-content) li,
.atlasshop-menu .sub-menu:not(.atlasshop-mega-menu-content) li {
    border-bottom: 1px solid #e8eef5;
}

.atlasshop-menu-widget .atlasshop-menu .sub-menu:not(.atlasshop-mega-menu-content) li:last-child,
.atlasshop-menu .sub-menu:not(.atlasshop-mega-menu-content) li:last-child {
    border-bottom: none;
}

.atlasshop-menu-widget .atlasshop-menu .sub-menu .atlasshop-menu-item-inner,
.atlasshop-menu .sub-menu .atlasshop-menu-item-inner {
    padding: 8px 16px;
    display: flex;
}

.atlasshop-menu-widget .atlasshop-menu .sub-menu:not(.atlasshop-mega-menu-content) .atlasshop-menu-item-inner,
.atlasshop-menu .sub-menu:not(.atlasshop-mega-menu-content) .atlasshop-menu-item-inner {
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    min-height: 48px;
    box-sizing: border-box;
}

.atlasshop-menu-widget .atlasshop-menu .sub-menu:not(.atlasshop-mega-menu-content) .atlasshop-menu-icon:not(:empty),
.atlasshop-menu .sub-menu:not(.atlasshop-mega-menu-content) .atlasshop-menu-icon:not(:empty) {
    display: inline-flex;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.15rem;
    color: inherit;
}

.atlasshop-menu-widget .atlasshop-menu .sub-menu:not(.atlasshop-mega-menu-content) .atlasshop-menu-icon-img,
.atlasshop-menu .sub-menu:not(.atlasshop-mega-menu-content) .atlasshop-menu-icon-img {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
}

.atlasshop-menu-widget .atlasshop-menu .sub-menu.atlasshop-mega-menu-content .atlasshop-menu-icon,
.atlasshop-menu .sub-menu.atlasshop-mega-menu-content .atlasshop-menu-icon {
    display: none;
}

.atlasshop-menu-widget .atlasshop-menu .sub-menu.atlasshop-mega-menu-content .atlasshop-menu-chevron,
.atlasshop-menu .sub-menu.atlasshop-mega-menu-content .atlasshop-menu-chevron {
    display: none;
}

.atlasshop-menu-widget .atlasshop-menu .sub-menu:not(.atlasshop-mega-menu-content) .atlasshop-menu-link,
.atlasshop-menu .sub-menu:not(.atlasshop-mega-menu-content) .atlasshop-menu-link {
    flex: 1;
    min-width: 0;
}

.atlasshop-menu-widget .atlasshop-menu .sub-menu:not(.atlasshop-mega-menu-content) .atlasshop-menu-chevron--sub::after,
.atlasshop-menu .sub-menu:not(.atlasshop-mega-menu-content) .atlasshop-menu-chevron--sub::after {
    border-right: none;
    border-bottom: none;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(-45deg);
    margin-top: 0;
    margin-inline-start: 2px;
}

.atlasshop-mega-menu-content {
    min-width: 320px;
    padding: 0;
    margin-top: 22px;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    z-index: 999999;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    --atlasshop-mega-bridge-h: 38px;
}

.atlasshop-mega-menu-content::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: var(--atlasshop-mega-bridge-h, 38px);
    pointer-events: auto;
    background: transparent;
}

.atlasshop-mega-menu-content.atlasshop-mega-menu-content--fixed {
    position: fixed !important;
    right: auto !important;
    box-sizing: border-box;
    min-width: 0 !important;
    max-width: none !important;
    width: auto;
    margin-top: 0 !important;
}

.atlasshop-mega-menu-template-wrap {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.atlasshop-mega-menu-inner {
    position: relative;
    z-index: 1;
    padding: 12px;
    min-width: 0;
    overflow: visible;
}

.atlasshop-mega-menu-inner .elementor-section,
.atlasshop-mega-menu-inner .elementor-container {
    overflow: visible;
}

.atlasshop-menu-placeholder {
    margin: 0;
    padding: 12px;
    color: #64748b;
    font-size: 0.9rem;
}

/* Elementor: در پیش‌نمایش ویرایش هر برگه، مگامنو باز نماند (هدر داخل برگه محصول و …) */
html.atlasshop-elementor-preview-canvas .atlasshop-mega-menu-content,
html.setmart-elementor-preview-canvas .setmart-mega-menu-content,
html.atlasshop-elementor-preview-canvas .setmart-mm-dropdown,
html.setmart-elementor-preview-canvas .setmart-mm-dropdown,
body.atlasshop-elementor-preview-canvas .atlasshop-mega-menu-content,
body.setmart-elementor-preview-canvas .setmart-mega-menu-content,
body.atlasshop-elementor-preview-canvas .atlasshop-mega-menu-content.atlasshop-mega-menu-content--fixed,
body.setmart-elementor-preview-canvas .setmart-mega-menu-content.setmart-mega-menu-content--fixed,
body.atlasshop-elementor-preview-canvas .atlasshop-mega-menu-content[style],
body.setmart-elementor-preview-canvas .setmart-mega-menu-content[style],
body.atlasshop-elementor-preview-canvas .atlasshop-menu > .menu-item-has-children > .atlasshop-mega-menu-content,
body.setmart-elementor-preview-canvas .setmart-menu > .menu-item-has-children > .setmart-mega-menu-content,
body.atlasshop-elementor-preview-canvas .atlasshop-menu li.menu-item-has-children:hover > .atlasshop-mega-menu-content,
body.setmart-elementor-preview-canvas .setmart-menu li.menu-item-has-children:hover > .setmart-mega-menu-content,
body.atlasshop-elementor-preview-canvas .atlasshop-menu-widget .atlasshop-menu li.menu-item-has-children:hover .atlasshop-mega-menu-content,
body.setmart-elementor-preview-canvas .setmart-menu-widget .setmart-menu li.menu-item-has-children:hover .setmart-mega-menu-content,
body.atlasshop-elementor-preview-canvas .setmart-mm-dropdown,
body.setmart-elementor-preview-canvas .setmart-mm-dropdown,
body.atlasshop-elementor-preview-canvas .setmart-mm-widget.is-open .setmart-mm-dropdown,
body.setmart-elementor-preview-canvas .setmart-mm-widget.is-open .setmart-mm-dropdown,
body.atlasshop-elementor-preview-canvas .atlasshop-mega-menu-inner,
body.setmart-elementor-preview-canvas .setmart-mega-menu-inner,
body.atlasshop-elementor-preview-canvas .atlasshop-mega-menu-template-wrap,
body.setmart-elementor-preview-canvas .setmart-mega-menu-template-wrap,
body.atlasshop-elementor-preview-canvas .setmart-mm-overlay,
body.setmart-elementor-preview-canvas .setmart-mm-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    max-height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    position: absolute !important;
    width: 0 !important;
    left: -9999px !important;
    clip: rect(0, 0, 0, 0) !important;
}

html.atlasshop-elementor-preview-canvas .atlasshop-menu > .menu-item-has-children:hover,
html.setmart-elementor-preview-canvas .setmart-menu > .menu-item-has-children:hover,
body.atlasshop-elementor-preview-canvas .atlasshop-menu > .menu-item-has-children:hover,
body.setmart-elementor-preview-canvas .setmart-menu > .menu-item-has-children:hover {
    z-index: auto !important;
}

/* لغو قانون هاور widgets.css در پیش‌نمایش Elementor */
html.atlasshop-elementor-preview-canvas .atlasshop-menu li.menu-item-has-children:hover .atlasshop-mega-menu-content,
html.setmart-elementor-preview-canvas .setmart-menu li.menu-item-has-children:hover .setmart-mega-menu-content,
html.atlasshop-elementor-preview-canvas .atlasshop-menu li.menu-item-has-children:hover > .sub-menu,
html.setmart-elementor-preview-canvas .setmart-menu li.menu-item-has-children:hover > .sub-menu,
body.atlasshop-elementor-preview-canvas .atlasshop-menu li.menu-item-has-children:hover .atlasshop-mega-menu-content,
body.setmart-elementor-preview-canvas .setmart-menu li.menu-item-has-children:hover .setmart-mega-menu-content,
body.atlasshop-elementor-preview-canvas .atlasshop-menu li.menu-item-has-children:hover > .sub-menu,
body.setmart-elementor-preview-canvas .setmart-menu li.menu-item-has-children:hover > .sub-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* فیلتر کالاهای موجود (سایدبار) — سوئیچ کپسولی + چک‌باکس */
.atlasshop-plpf-widget {
    direction: rtl;
    text-align: right;
}

.atlasshop-plpf-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.atlasshop-plpf-text {
    flex: 1;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #111111;
}

.atlasshop-plpf-handle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.atlasshop-plpf-toggle {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.atlasshop-plpf-switch {
    position: absolute;
    inset: 0;
    display: block;
    border: 2px solid #000000;
    border-radius: 999px;
    background: #ffffff;
    box-sizing: border-box;
    pointer-events: none;
    transition: background-color 0.15s ease;
}

.atlasshop-plpf-switch::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #000000;
    transition: left 0.2s ease;
}

.atlasshop-plpf-toggle:checked + .atlasshop-plpf-switch::after {
    left: calc(100% - 3px - 18px);
}

/* فیلتر رنگ (سایدبار) */
.atlasshop-pcf-widget {
    direction: rtl;
}

.atlasshop-pcf-inner {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px 14px;
    box-sizing: border-box;
}

.atlasshop-pcf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 10px;
}

.atlasshop-pcf-widget:not(.atlasshop-pcf-no-collapse) .atlasshop-pcf-head {
    cursor: pointer;
    user-select: none;
}

.atlasshop-pcf-no-collapse .atlasshop-pcf-toggle {
    display: none;
}

.atlasshop-pcf-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1e3a5f;
    flex: 1;
    text-align: right;
}

.atlasshop-pcf-toggle {
    border: 0;
    background: transparent;
    padding: 4px;
    margin: 0;
    cursor: pointer;
    line-height: 0;
    flex-shrink: 0;
}

.atlasshop-pcf-chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 6px solid #64748b;
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

.atlasshop-pcf-widget[data-expanded="1"] .atlasshop-pcf-chevron {
    transform: rotate(0deg);
}

.atlasshop-pcf-panel {
    display: none;
    overflow: hidden;
}

.atlasshop-pcf-panel.is-open {
    display: block;
}

.atlasshop-pcf-widget.atlasshop-pcf-no-collapse .atlasshop-pcf-panel {
    display: block;
}

.atlasshop-pcf-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    padding-inline-end: 4px;
    scrollbar-width: thin;
}

.atlasshop-pcf-scroll::-webkit-scrollbar {
    width: 8px;
}

.atlasshop-pcf-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.atlasshop-pcf-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.atlasshop-pcf-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.atlasshop-pcf-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 4px;
    margin: 0;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

.atlasshop-pcf-row:hover {
    background-color: #f8fafc;
}

/* ردیف فیلتر برند (بدون سواچ رنگ) */
.atlasshop-pcf-row--brand .atlasshop-pcf-name {
    color: #0f172a;
}

.atlasshop-pcf-checkbox {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

.atlasshop-pcf-checkbox:checked {
    background: #1e3a5f;
    border-color: #1e3a5f;
}

.atlasshop-pcf-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.atlasshop-pcf-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}

.atlasshop-pcf-swatch {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-sizing: border-box;
}

.atlasshop-pcf-swatch--light {
    border-color: #cbd5e1;
}

.atlasshop-pcf-empty {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* فیلتر بازه قیمت (سایدبار) */
.atlasshop-prf-widget {
    direction: rtl;
}

.atlasshop-prf-inner {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px 18px;
    box-sizing: border-box;
}

.atlasshop-prf-title {
    margin: 0 0 14px;
    text-align: right;
}

.atlasshop-prf-pills {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.atlasshop-prf-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #f1f5f9;
    box-sizing: border-box;
}

.atlasshop-prf-pill-label {
    line-height: 1.3;
}

.atlasshop-prf-pill-value {
    direction: ltr;
    unicode-bidi: embed;
    line-height: 1.3;
}

.atlasshop-prf-rail-outer {
    margin-top: 4px;
    padding: 0 2px;
}

/* ارتفاع = اندازهٔ دسته تا خط دقیقاً وسط دایره‌ها بیفتد */
.atlasshop-prf-rail {
    position: relative;
    height: 28px;
    margin: 0;
}

/* نوار خاکستری/قرمز دقیقاً وسط محور عمودی rail */
.atlasshop-prf-track-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    margin-top: -3px;
    height: 6px;
    border-radius: 6px;
    background: #e2e8f0;
    pointer-events: none;
}

.atlasshop-prf-track-fill {
    position: absolute;
    top: 50%;
    margin-top: -3px;
    height: 6px;
    border-radius: 6px;
    background: #7f1d1d;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.atlasshop-prf-in {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    background: none;
    -webkit-appearance: none;
    appearance: none;
    -moz-appearance: none;
    pointer-events: none;
    z-index: 2;
    box-sizing: border-box;
}

.atlasshop-prf-in-max {
    z-index: 3;
}

/* WebKit: بدون margin روی track تا خط وسط جعبهٔ اسلایدر باشد؛ دسته روی خط */
.atlasshop-prf-in::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.atlasshop-prf-in::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    margin-top: 0;
    border-radius: 50%;
    border: 2px solid currentColor;
    background: currentColor;
    cursor: pointer;
    box-sizing: border-box;
}

.atlasshop-prf-in::-moz-range-track {
    height: 6px;
    background: transparent;
    border: 0;
}

.atlasshop-prf-in::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid currentColor;
    background: currentColor;
    cursor: pointer;
    box-sizing: border-box;
}

.atlasshop-prf-ticks {
    height: 10px;
    margin: 6px 6px 0;
    border-radius: 2px;
    opacity: 0.9;
    background: repeating-linear-gradient(
        90deg,
        #93c5fd 0 1px,
        transparent 1px 14px
    );
}

.atlasshop-prf-subtitles {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 8px;
    gap: 8px;
}

.atlasshop-prf-sub {
    line-height: 1.35;
}

/* ——— atlasshop: منو موبایل (نوار پایین + کشو + جستجو) ——— */
@media (min-width: 1024px) {
    .elementor-widget-atlasshop_mobile-menu .atlasshop-mbb-wrap--mobile-only {
        display: none !important;
    }
}

.elementor-widget-atlasshop_mobile-menu .elementor-widget-container {
    padding: 0;
}

.atlasshop-mbb {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999900;
    direction: rtl;
    font-family: inherit;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.atlasshop-mbb__inner {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2px;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 1px;
}

.atlasshop-mbb__item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.atlasshop-mbb__item--center {
    position: relative;
    z-index: 2;
    margin-bottom: 18px;
}

.atlasshop-mbb__item-link,
.atlasshop-mbb__item-link--nohref {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    width: 100%;
    padding: 4px 2px 2px;
    margin: 0;
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.15;
    background: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* بدون پس‌زمینه/هایلایت قرمز یا تم روی هاور، فوکوس و لمس */
.elementor-widget-atlasshop_mobile-menu .atlasshop-mbb a.atlasshop-mbb__item-link:hover,
.elementor-widget-atlasshop_mobile-menu .atlasshop-mbb a.atlasshop-mbb__item-link:focus,
.elementor-widget-atlasshop_mobile-menu .atlasshop-mbb a.atlasshop-mbb__item-link:focus-visible,
.elementor-widget-atlasshop_mobile-menu .atlasshop-mbb a.atlasshop-mbb__item-link:active,
.elementor-widget-atlasshop_mobile-menu .atlasshop-mbb button.atlasshop-mbb__item-link:hover,
.elementor-widget-atlasshop_mobile-menu .atlasshop-mbb button.atlasshop-mbb__item-link:focus,
.elementor-widget-atlasshop_mobile-menu .atlasshop-mbb button.atlasshop-mbb__item-link:focus-visible,
.elementor-widget-atlasshop_mobile-menu .atlasshop-mbb button.atlasshop-mbb__item-link:active,
.atlasshop-mbb a.atlasshop-mbb__item-link:hover,
.atlasshop-mbb a.atlasshop-mbb__item-link:focus,
.atlasshop-mbb a.atlasshop-mbb__item-link:focus-visible,
.atlasshop-mbb a.atlasshop-mbb__item-link:active,
.atlasshop-mbb button.atlasshop-mbb__item-link:hover,
.atlasshop-mbb button.atlasshop-mbb__item-link:focus,
.atlasshop-mbb button.atlasshop-mbb__item-link:focus-visible,
.atlasshop-mbb button.atlasshop-mbb__item-link:active {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit;
    outline: none;
    box-shadow: none;
}

.atlasshop-mbb__item-link--nohref,
.atlasshop-mbb__item-link--disabled {
    cursor: default;
    opacity: 0.55;
    pointer-events: none;
}

.atlasshop-mbb__center-link {
    gap: 6px;
}

.atlasshop-mbb__center-face {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-top: -19px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15);
}

/* نشان تعداد روی آیکن سبد در نوار موبایل (منو موبایل) */
.atlasshop-mbb-cart-badge {
    position: absolute;
    top: -4px;
    inset-inline-start: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    box-sizing: border-box;
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    z-index: 3;
    pointer-events: none;
}

.atlasshop-mbb__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}

.atlasshop-mbb__icon svg {
    width: 1.1em;
    height: 1.1em;
    display: block;
}

.atlasshop-mbb__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}
/* کشوی منو */
.atlasshop-mbb-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.atlasshop-mbb-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.atlasshop-mbb-drawer__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.45);
    cursor: pointer;
}

.atlasshop-mbb-drawer__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.atlasshop-mbb-drawer.is-open .atlasshop-mbb-drawer__panel {
    transform: translateY(0);
}

.atlasshop-mbb-drawer__close {
    position: absolute;
    top: 10px;
    inset-inline-start: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atlasshop-mbb-drawer__menu {
    list-style: none;
    margin: 0;
    padding: 52px 16px 24px;
}

.atlasshop-mbb-drawer__menu > li > .atlasshop-mbb-drawer__link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 0;
    text-decoration: none;
    color: transparent;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.atlasshop-mbb-drawer__menu > li > .atlasshop-mbb-drawer__link > .atlasshop-mbb-drawer__link-text {
    color: #0f172a;
}

.atlasshop-mbb-drawer__menu > li > .atlasshop-mbb-drawer__link > .atlasshop-menu-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75em;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--atlasshop-mbb-drawer-icon-l1, var(--atlasshop-primary-color, #2563eb)) !important;
}

.atlasshop-mbb-drawer__menu > li > .atlasshop-mbb-drawer__link > .atlasshop-menu-icon i {
    color: inherit !important;
}

.atlasshop-mbb-drawer__menu .atlasshop-mbb-drawer__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75em;
    font-size: 1.2rem;
    line-height: 1;
}

/* SVG داخل کشو: غلبه بر fill/stroke ثابت و کلاس e-font-icon-svg المنتور */
.atlasshop-mbb-drawer__menu .atlasshop-mbb-drawer__icon svg {
    width: 1.15em;
    height: 1.15em;
    display: block;
    color: inherit;
}

.atlasshop-mbb-drawer__menu .atlasshop-mbb-drawer__icon svg,
.atlasshop-mbb-drawer__menu .atlasshop-mbb-drawer__icon svg * {
    fill: currentColor !important;
    stroke: currentColor !important;
}

.atlasshop-mbb-drawer__menu .atlasshop-mbb-drawer__icon svg *[fill="none"] {
    fill: none !important;
    stroke: currentColor !important;
}

.elementor-widget-atlasshop_mobile-menu .atlasshop-mbb-drawer__panel .atlasshop-mbb-drawer__menu > li > .atlasshop-mbb-drawer__link > .atlasshop-menu-icon svg,
.elementor-widget-atlasshop_mobile-menu .atlasshop-mbb-drawer__panel .atlasshop-mbb-drawer__menu > li > .atlasshop-mbb-drawer__link > .atlasshop-menu-icon svg * {
    fill: currentColor !important;
    stroke: currentColor !important;
}

.elementor-widget-atlasshop_mobile-menu .atlasshop-mbb-drawer__panel .atlasshop-mbb-drawer__menu > li > .atlasshop-mbb-drawer__link > .atlasshop-menu-icon svg *[fill="none"] {
    fill: none !important;
    stroke: currentColor !important;
}

.elementor-widget-atlasshop_mobile-menu .atlasshop-mbb-drawer__panel .atlasshop-mbb-drawer__menu .sub-menu .atlasshop-mbb-drawer__link > .atlasshop-menu-icon svg,
.elementor-widget-atlasshop_mobile-menu .atlasshop-mbb-drawer__panel .atlasshop-mbb-drawer__menu .sub-menu .atlasshop-mbb-drawer__link > .atlasshop-menu-icon svg * {
    fill: currentColor !important;
    stroke: currentColor !important;
}

.elementor-widget-atlasshop_mobile-menu .atlasshop-mbb-drawer__panel .atlasshop-mbb-drawer__menu .sub-menu .atlasshop-mbb-drawer__link > .atlasshop-menu-icon svg *[fill="none"] {
    fill: none !important;
    stroke: currentColor !important;
}

.elementor-widget-atlasshop_mobile-menu .atlasshop-mbb-drawer__menu > li > .atlasshop-mbb-drawer__link > .atlasshop-menu-icon i::before {
    color: inherit !important;
}

.atlasshop-mbb-drawer__menu .atlasshop-menu-icon-img {
    width: 1.35em;
    height: 1.35em;
    object-fit: contain;
    display: block;
}

.atlasshop-mbb-drawer__menu .atlasshop-mbb-drawer__link-text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
}

.atlasshop-mbb-drawer__menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 12px 8px 0;
}

.atlasshop-mbb-drawer__menu .sub-menu .atlasshop-mbb-drawer__link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-weight: 500;
    font-size: 0.95rem;
    color: transparent;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}

.atlasshop-mbb-drawer__menu .sub-menu .atlasshop-mbb-drawer__link > .atlasshop-mbb-drawer__link-text {
    color: #475569;
}

.atlasshop-mbb-drawer__menu .sub-menu .atlasshop-mbb-drawer__link > .atlasshop-menu-icon {
    font-size: 1.05rem;
    color: var(--atlasshop-mbb-drawer-icon-sub, #64748b) !important;
}

.atlasshop-mbb-drawer__menu .sub-menu .atlasshop-mbb-drawer__link > .atlasshop-menu-icon i {
    color: inherit !important;
}

.atlasshop-mbb-drawer__menu .sub-menu .atlasshop-mbb-drawer__icon {
    font-size: 1.05rem;
}

body.atlasshop-mbb-search-body-lock {
    overflow: hidden;
}

/* لایهٔ جستجوی موبایل */
.atlasshop-mbb-search {
    position: fixed;
    inset: 0;
    z-index: 1000002;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    direction: rtl;
}

.atlasshop-mbb-search.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.atlasshop-mbb-search__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.atlasshop-mbb-search__dialog {
    position: absolute;
    left: 16px;
    right: 16px;
    top: max(12vh, 72px);
    max-width: 520px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    box-sizing: border-box;
    overflow: visible;
}

/* جستجوی overlay منوی موبایل + همان منطق پیشنهاد زندهٔ ویجت جستجو */
.atlasshop-search-widget--mbb {
    position: relative;
    width: 100%;
}

.atlasshop-mbb-search .atlasshop-search-widget--mbb .atlasshop-mbb-search__field-row.atlasshop-search-wrapper {
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    flex-direction: row;
    direction: rtl;
    overflow: visible;
}

.atlasshop-mbb-search .atlasshop-search-widget--mbb .atlasshop-search-input.atlasshop-mbb-search__input {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
}

.atlasshop-mbb-search .atlasshop-search-widget--mbb .atlasshop-search-button.atlasshop-mbb-search__submit {
    border-radius: 12px;
    padding: 0;
    width: 52px;
    min-height: 48px;
    flex-shrink: 0;
}

[dir="rtl"] .atlasshop-mbb-search .atlasshop-search-widget--mbb .atlasshop-search-button.atlasshop-mbb-search__submit {
    border-radius: 12px;
}

.atlasshop-mbb-search__form {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    margin: 0;
    direction: rtl;
}

.atlasshop-mbb-search__input {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.3;
    box-sizing: border-box;
    background: #fff;
}

.atlasshop-mbb-search__input:focus {
    outline: none;
    border-color: var(--atlasshop-primary-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.atlasshop-mbb-search__submit {
    flex: 0 0 auto;
    width: 52px;
    min-height: 48px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 12px;
    background-color: var(--atlasshop-primary-color, #2563eb);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.atlasshop-mbb-search__submit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
}

.atlasshop-mbb-search__submit-icon svg {
    width: 1.15em;
    height: 1.15em;
    display: block;
    fill: currentColor;