/*
 * شاپور — لایهٔ components.css
 * اجزای تعاملی (کوییک‌ویو، پاپ‌آپ‌ها، چت)
 * منبع: فاز ۲ مهاجرت از style.css مرجع (خطوط 7418-9499)
 * ترتیب بارگذاری لایه‌ها = ترتیب کسکید اصلی؛ هرگز ترتیب را تغییر ندهید.
 */

/* ============================================
   QUICK VIEW MODAL — v2.4.0
   ============================================ */
.shapor-quickview-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.shapor-quickview-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.shapor-quickview-overlay[hidden] {
    display: none !important;
}
.shapor-quickview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.shapor-quickview-panel {
    position: relative;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, transparent 30%),
        var(--bg-secondary);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 24px;
    max-width: 880px;
    width: calc(100% - 32px);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    margin: 32px auto;
    box-shadow: 0 30px 80px rgba(23, 43, 77, 0.16);
    transform: translateY(-15px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.shapor-quickview-overlay.open .shapor-quickview-panel {
    transform: translateY(0) scale(1);
}
.shapor-quickview-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(30, 58, 95, 0.1);
    color: var(--text-secondary);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s ease;
}
.shapor-quickview-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}
.shapor-quickview-body {
    padding: 30px;
}
.shapor-quickview-loading,
.shapor-quickview-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.shapor-quickview-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(37, 99, 235, 0.2);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    margin: 0 auto 14px;
    animation: shaporQvSpin 0.8s linear infinite;
}
@keyframes shaporQvSpin {
    to { transform: rotate(360deg); }
}

/* Quick View content grid */
.shapor-quickview-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}
.shapor-quickview-image-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-primary));
    border: 1px solid rgba(30, 58, 95, 0.1);
    aspect-ratio: 1;
}
.shapor-quickview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}
.shapor-quickview-sale {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 10px;
}
.shapor-quickview-stock {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(10, 10, 10, 0.85);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
}
.shapor-quickview-stock.in {
    color: var(--accent-green);
}
.shapor-quickview-stock.out {
    color: var(--accent-red);
}
.shapor-quickview-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}
.shapor-quickview-thumbs img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(30, 58, 95, 0.09);
}
.shapor-quickview-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 10px;
    line-height: 1.3;
}
.shapor-quickview-brand {
    display: inline-block;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.08));
    color: var(--accent-green);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}
.shapor-quickview-sku {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 14px;
}
.shapor-quickview-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 14px;
}
.shapor-quickview-price del {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    margin-left: 10px;
}
.shapor-quickview-price ins {
    background: none;
    text-decoration: none;
    color: inherit;
}
.shapor-quickview-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 16px;
}
.shapor-quickview-attrs {
    background: rgba(30, 58, 95, 0.07);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.shapor-quickview-attrs h4 {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 10px;
}
.shapor-quickview-attrs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.shapor-quickview-attrs li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(30, 58, 95, 0.08);
    font-size: 0.85rem;
}
.shapor-quickview-attrs li:last-child {
    border-bottom: none;
}
.shapor-quickview-attrs li span {
    color: var(--text-muted);
}
.shapor-quickview-attrs li strong {
    color: var(--text-primary);
}
.shapor-quickview-actions {
    display: flex;
    gap: 10px;
}
.shapor-quickview-actions > * {
    flex: 1;
    justify-content: center;
}

body.quickview-open {
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .shapor-quickview-panel {
        width: calc(100% - 16px);
        margin: 8px auto;
        max-height: calc(100vh - 16px);
        border-radius: 16px;
    }
    .shapor-quickview-body {
        padding: 20px 16px;
    }
    .shapor-quickview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .shapor-quickview-image-wrap {
        max-width: 300px;
        margin: 0 auto;
    }
    .shapor-quickview-title {
        font-size: 1.2rem;
    }
    .shapor-quickview-price {
        font-size: 1.25rem;
    }
    .shapor-quickview-actions {
        flex-direction: column;
    }
}

/* Quick View button on shop cards */
.shop-card-quick-view {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(10, 10, 10, 0.9);
    color: var(--accent-green);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 22px;
    padding: 7px 14px;
    font-size: 0.74rem;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.shop-card:hover .shop-card-quick-view {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.shop-card-quick-view:hover {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
}
@media (max-width: 768px) {
    /* On mobile, always show the quick view button (no hover) */
    .shop-card-quick-view {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

/* Help text inside label (for the package volume hint) */
.sp-usage-calc-help {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}/* Style the package-volume field slightly differently (highlighted) */
#usagePackageVolume {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.2);
}
#usagePackageVolume:focus {
    background: rgba(37, 99, 235, 0.08);
    border-color: var(--accent-green);
}

/* ============================================
   PHONE CAPTURE POPUP — v2.5.0
   ============================================ */
.shapor-phone-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.shapor-phone-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.shapor-phone-overlay[hidden] {
    display: none !important;
}
.shapor-phone-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.shapor-phone-panel {
    position: relative;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, transparent 30%),
        var(--bg-secondary);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 24px;
    max-width: 440px;
    width: calc(100% - 32px);
    margin: 60px auto;
    padding: 36px 30px 28px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(23, 43, 77, 0.16);
    transform: translateY(-15px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.shapor-phone-overlay.open .shapor-phone-panel {
    transform: translateY(0) scale(1);
}
.shapor-phone-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(30, 58, 95, 0.1);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.shapor-phone-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}
.shapor-phone-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(29, 78, 216, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    animation: shaporPhonePulse 2s ease-in-out infinite;
}
@keyframes shaporPhonePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
}
.shapor-phone-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.4;
}
.shapor-phone-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 22px;
}
.shapor-phone-form {
    text-align: right;
}
.shapor-phone-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(30, 58, 95, 0.08);
    border: 1.5px solid rgba(30, 58, 95, 0.14);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease;
    direction: ltr;
}
.shapor-phone-input-wrap:focus-within {
    border-color: var(--accent-green);
    background: rgba(37, 99, 235, 0.04);
}
.shapor-phone-input-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    padding: 0 14px;
}
.shapor-phone-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-family: 'Vazirmatn', sans-serif;
    outline: none;
    padding: 14px 14px 14px 0;
    text-align: left;
    direction: ltr;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
}
.shapor-phone-input::placeholder {
    color: var(--text-muted);
}
.shapor-phone-error {
    color: var(--accent-red);
    font-size: 0.82rem;
    margin-top: 8px;
    text-align: right;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
}
.shapor-phone-submit {
    width: 100%;
    margin-top: 16px;
    justify-content: center;
    position: relative;
}
.shapor-phone-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}
.shapor-phone-submit-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: shaporPhoneSpin 0.7s linear infinite;
    margin-right: 8px;
}
@keyframes shaporPhoneSpin {
    to { transform: rotate(360deg); }
}
.shapor-phone-skip {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
}
.shapor-phone-skip:hover {
    color: var(--text-secondary);
}
.shapor-phone-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(30, 58, 95, 0.1);
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.5;
}
.shapor-phone-trust svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

body.phone-popup-open {
    overflow: hidden !important;
}

@media (max-width: 480px) {
    .shapor-phone-panel {
        margin: 16px auto;
        padding: 30px 22px 22px;
        border-radius: 18px;
    }
    .shapor-phone-title {
        font-size: 1.05rem;
    }
}

/* ============================================
   SHIPPING INFO POPUP — v2.5.0
   ============================================ */
.shapor-shipping-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.shapor-shipping-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.shapor-shipping-overlay[hidden] {
    display: none !important;
}
.shapor-shipping-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.shapor-shipping-panel {
    position: relative;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.05) 0%, transparent 30%),
        var(--bg-secondary);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 24px;
    max-width: 520px;
    width: calc(100% - 32px);
    margin: 60px auto;
    padding: 36px 30px 28px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(23, 43, 77, 0.16);
    transform: translateY(-15px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.shapor-shipping-overlay.open .shapor-shipping-panel {
    transform: translateY(0) scale(1);
}
.shapor-shipping-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(30, 58, 95, 0.1);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.shapor-shipping-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}
.shapor-shipping-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(29, 78, 216, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
}
.shapor-shipping-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 22px;
}
.shapor-shipping-content {
    text-align: right;
    margin-bottom: 24px;
}
.shapor-shipping-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: rgba(30, 58, 95, 0.07);
    border: 1px solid rgba(30, 58, 95, 0.09);
    border-radius: 14px;
    margin-bottom: 10px;
}
.shapor-shipping-item-free {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(29, 78, 216, 0.03));
    border-color: rgba(37, 99, 235, 0.2);
}
.shapor-shipping-item-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}
.shapor-shipping-item-body {
    flex: 1;
}
.shapor-shipping-item-body strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.shapor-shipping-item-body p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}
.shapor-shipping-cost,
.shapor-shipping-free {
    color: var(--accent-green);
    font-weight: 800;
}
.shapor-shipping-ok {
    width: 100%;
    justify-content: center;
}

/* Shipping info trigger button (on checkout page) */
.shapor-shipping-notice {
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 16px 0;
    text-align: center;
}
.shapor-shipping-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--accent-green);
    font-size: 0.92rem;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.shapor-shipping-trigger:hover {
    background: rgba(37, 99, 235, 0.1);
}
.shapor-shipping-hint {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 8px 0 0;
    line-height: 1.5;
}

/* Inamad badge on checkout */
.shapor-inamad-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 14px;
    margin: 16px 0;
}
.shapor-inamad-badge {
    flex-shrink: 0;
}
.shapor-inamad-badge img {
    max-height: 80px;
    width: auto;
}
.shapor-inamad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px dashed rgba(37, 99, 235, 0.3);
    border-radius: 10px;
    color: var(--accent-green);
    font-size: 0.78rem;
    font-weight: 600;
}
.shapor-inamad-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: right;
    flex: 1;
}

@media (max-width: 768px) {
    .shapor-shipping-panel,
    .shapor-phone-panel {
        margin: 16px auto;
        padding: 30px 22px 22px;
        border-radius: 18px;
    }
    .shapor-shipping-title {
        font-size: 1.05rem;
    }
    .shapor-inamad-section {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   THANK YOU PAGE — v2.6.0
   ============================================ */
.shapor-thankyou-page {
    background:
        radial-gradient(ellipse at top right, rgba(37, 99, 235, 0.06), transparent 60%),
        var(--bg-primary);
    min-height: 100vh;
    padding: 0 0 60px;
}

.ty-hero {
    padding: 60px 0 30px;
    text-align: center;
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(37, 99, 235, 0.12), transparent 60%);
}

/* Animated checkmark */
.ty-success-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}
.ty-checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 4;
    stroke: #fff;
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 var(--accent-green);
    animation: ty-fill-circle 0.6s ease-in-out 0.4s forwards, ty-scale 0.4s ease-in-out 1s forwards;
}
.ty-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke: var(--accent-green);
    stroke-miterlimit: 10;
    fill: none;
    animation: ty-stroke-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.ty-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: ty-stroke-check 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
@keyframes ty-stroke-circle {
    to { stroke-dashoffset: 0; }
}
@keyframes ty-stroke-check {
    to { stroke-dashoffset: 0; }
}
@keyframes ty-fill-circle {
    to { box-shadow: inset 0 0 0 50px var(--accent-green); }
}
@keyframes ty-scale {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.ty-checkmark-warn {
    animation: none;
}
.ty-checkmark-warn .ty-checkmark-circle {
    stroke: var(--accent-orange);
    animation: ty-stroke-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.ty-checkmark-warn .ty-checkmark-check {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: ty-stroke-check 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.ty-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 10px;
    animation: ty-fade-up 0.6s ease 1.2s both;
}
.ty-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    animation: ty-fade-up 0.6s ease 1.4s both;
}
@keyframes ty-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ty-order-section {
    padding: 20px 0;
}
.ty-order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.ty-card {
    background: var(--bg-card);
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 6px 20px rgba(23, 43, 77, 0.09);
}
.ty-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-green);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(30, 58, 95, 0.1);
}
.ty-card-head h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.ty-order-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ty-order-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(30, 58, 95, 0.08);
    font-size: 0.92rem;
}
.ty-order-list li:last-child { border-bottom: none; }
.ty-order-list li span { color: var(--text-muted); }
.ty-order-list li strong { color: var(--text-primary); }
.ty-total { color: var(--accent-green) !important; font-size: 1.05rem; }
.ty-status-completed { color: var(--accent-green) !important; }
.ty-status-processing { color: var(--accent-gold) !important; }
.ty-status-pending { color: var(--accent-orange) !important; }
.ty-status-cancelled, .ty-status-failed, .ty-status-refunded { color: var(--accent-red) !important; }

.ty-shipping-info { padding-bottom: 14px; border-bottom: 1px solid rgba(30, 58, 95, 0.1); margin-bottom: 14px; }
.ty-shipping-name { color: var(--text-primary); font-weight: 700; font-size: 1rem; margin: 0 0 6px; }
.ty-shipping-phone, .ty-shipping-address { color: var(--text-secondary); font-size: 0.88rem; margin: 4px 0; }
.ty-shipping-estimate {
    display: flex;
    gap: 12px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
}
.ty-shipping-estimate-icon { font-size: 1.5rem; flex-shrink: 0; }
.ty-shipping-estimate strong { display: block; color: var(--text-primary); font-size: 0.9rem; margin-bottom: 4px; }
.ty-shipping-estimate p { color: var(--text-secondary); font-size: 0.82rem; line-height: 1.6; margin: 0; }

/* Detailed shipping notice (v2.19.16) */
.ty-shipping-notice {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(37, 99, 235, 0.04));
    border: 1px solid rgba(37, 99, 235, 0.30);
    border-right: 5px solid #2563eb;
    border-radius: 14px;
    padding: 18px 22px;
    margin: 18px 0;
}
.ty-shipping-notice-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 12px;
}
.ty-shipping-notice-body { flex: 1; }
.ty-shipping-notice-body h3 {
    color: #2563eb;
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.ty-shipping-notice-msg {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.95;
    margin: 0 0 12px;
}
.ty-shipping-notice-msg strong { color: var(--text-primary); }
.ty-shipping-notice-sms {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: #0f172a !important;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.ty-shipping-notice-sms:hover { background: #1d4ed8; transform: translateY(-1px); }
@media (max-width: 640px) {
    .ty-shipping-notice { flex-direction: column; gap: 12px; padding: 14px 16px; }
    .ty-shipping-notice-icon { width: 44px; height: 44px; font-size: 1.6rem; }
}

/* Items list */
.ty-items-list { list-style: none; padding: 0; margin: 0; }
.ty-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(30, 58, 95, 0.08);
}
.ty-item:last-child { border-bottom: none; }
.ty-item-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
    border: 1px solid rgba(30, 58, 95, 0.08);
}
.ty-item-image img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.ty-item-name { font-size: 0.92rem; color: var(--text-primary); margin: 0 0 4px; font-weight: 600; }
.ty-item-qty { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.ty-item-price { color: var(--accent-green); font-weight: 800; font-size: 0.95rem; }

/* SMS notice */
.ty-sms-notice {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(29, 78, 216, 0.02));
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 16px;
    margin: 20px 0;
}
.ty-sms-icon { font-size: 2rem; flex-shrink: 0; }
.ty-sms-content { flex: 1; }
.ty-sms-content h3 { color: var(--text-primary); font-size: 1rem; margin: 0 0 6px; }
.ty-sms-content p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; margin: 0 0 12px; }
.ty-sms-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ty-sms-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25); }

/* Channels grid */
.ty-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 20px 0;
}
.ty-channel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s ease;
}
.ty-channel:hover { transform: translateY(-2px); border-color: rgba(37, 99, 235, 0.25); }
.ty-channel-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ty-channel-whatsapp .ty-channel-icon { background: #25d366; color: #fff; }
.ty-channel-baleh .ty-channel-icon { background: #29a0dc; color: #fff; }
.ty-channel-rubika .ty-channel-icon { background: #c5344c; color: #fff; }
.ty-channel-body strong { display: block; font-size: 0.92rem; color: var(--text-primary); }
.ty-channel-body p { font-size: 0.78rem; color: var(--text-muted); margin: 2px 0 0; }

/* CTA row */
.ty-cta-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.ty-cta-row .btn { flex: 1; min-width: 200px; justify-content: center; }

@media (max-width: 768px) {
    .ty-hero { padding: 40px 0 24px; }
    .ty-title { font-size: 1.4rem; }
    .ty-order-grid { grid-template-columns: 1fr; }
    .ty-sms-notice { flex-direction: column; text-align: center; }
    .ty-cta-row { flex-direction: column; }
    .ty-cta-row .btn { width: 100%; }
}

/* ============================================
   MY ACCOUNT PAGE — v2.6.0
   ============================================ */
.shapor-account-page {
    background:
        radial-gradient(ellipse at top, rgba(37, 99, 235, 0.04), transparent 50%),
        var(--bg-primary);
    min-height: 100vh;
    padding: 0 0 60px;
}
.ma-hero {
    padding: 40px 0 20px;
    background:
        radial-gradient(600px 200px at 50% 0%, rgba(37, 99, 235, 0.08), transparent 60%);
}
.ma-hero-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}
.ma-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}
.ma-greeting h1 { color: var(--text-primary); font-size: 1.5rem; margin: 0 0 6px; font-weight: 800; }
.ma-greeting p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }
.ma-quick-links { display: flex; gap: 8px; }
.ma-quick-link {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.ma-quick-link:hover { transform: translateY(-2px); }
.ma-quick-link-wa { background: #25d366; color: #fff; }
.ma-quick-link-baleh { background: #29a0dc; color: #fff; }
.ma-quick-link-rubika { background: #c5344c; color: #fff; }

/* Stats */
.ma-stats { padding: 20px 0; }
.ma-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ma-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 4px 16px rgba(23, 43, 77, 0.09);
}
.ma-stat-icon { font-size: 1.8rem; line-height: 1; }
.ma-stat-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ma-stat-value { color: var(--accent-green); font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.ma-stat-label { color: var(--text-muted); font-size: 0.78rem; }

/* Content */
.ma-content { padding: 20px 0; }
.ma-content-body {
    background: var(--bg-card);
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 6px 24px rgba(23, 43, 77, 0.09);
}

/* Override WooCommerce's default nav */
.ma-content .woocommerce-MyAccount-navigation {
    margin-bottom: 20px;
}
.ma-content .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(30, 58, 95, 0.1);
}
.ma-content .woocommerce-MyAccount-navigation ul li {
    padding: 0;
}
.ma-content .woocommerce-MyAccount-navigation ul li a {
    display: inline-block;
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}
.ma-content .woocommerce-MyAccount-navigation ul li.is-active a,
.ma-content .woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-green);
}
.ma-content .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: var(--accent-red);
}
.ma-content .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Orders list (inside ma-content-body) */
.ma-orders-list { display: flex; flex-direction: column; gap: 12px; }
.ma-order-card {
    background: rgba(30, 58, 95, 0.07);
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 14px;
    padding: 16px 18px;
    transition: border-color 0.2s ease;
}
.ma-order-card:hover { border-color: rgba(37, 99, 235, 0.2); }
.ma-order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.ma-order-info { display: flex; align-items: center; gap: 10px; }
.ma-order-num { color: var(--text-primary); font-weight: 700; font-size: 1rem; }
.ma-order-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
}
.ma-order-status-pending { background: rgba(249, 115, 22, 0.15); color: var(--accent-orange); }
.ma-order-status-processing { background: rgba(251, 191, 36, 0.15); color: var(--accent-gold); }
.ma-order-status-hold { background: rgba(160, 160, 160, 0.15); color: var(--text-secondary); }
.ma-order-status-completed { background: rgba(37, 99, 235, 0.15); color: var(--accent-green); }
.ma-order-status-cancelled, .ma-order-status-failed, .ma-order-status-refunded {
    background: rgba(239, 68, 68, 0.15); color: var(--accent-red);
}
.ma-order-date { color: var(--text-muted); font-size: 0.82rem; }
.ma-order-body { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.ma-order-summary { display: flex; gap: 20px; flex-wrap: wrap; }
.ma-order-summary-item { display: flex; flex-direction: column; gap: 2px; }
.ma-order-summary-item span { color: var(--text-muted); font-size: 0.75rem; }
.ma-order-summary-item strong { color: var(--text-primary); font-size: 0.95rem; }
.ma-order-total { color: var(--accent-green) !important; }
.ma-order-actions { display: flex; gap: 8px; }
.ma-order-view, .ma-order-reorder {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: 0.82rem;
    border-radius: 10px;
    text-decoration: none;
}
.ma-order-view { background: rgba(30, 58, 95, 0.09); color: var(--text-secondary); border: 1px solid rgba(30, 58, 95, 0.12); }
.ma-order-view:hover { background: rgba(30, 58, 95, 0.12); color: var(--text-primary); }
.ma-order-reorder { background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald)); color: #fff; }
.ma-order-reorder:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }

.ma-orders-empty {
    text-align: center;
    padding: 40px 20px;
}
.ma-orders-empty-icon { font-size: 3rem; margin-bottom: 14px; opacity: 0.5; }
.ma-orders-empty h3 { color: var(--text-primary); font-size: 1.1rem; margin: 0 0 8px; }
.ma-orders-empty p { color: var(--text-secondary); font-size: 0.88rem; margin: 0 0 18px; }

.ma-orders-pagination { margin-top: 20px; text-align: center; }
.ma-orders-pagination .page-numbers {
    display: inline-flex; gap: 4px; padding: 6px 12px;
    background: rgba(30, 58, 95, 0.08); color: var(--text-secondary);
    border-radius: 8px; text-decoration: none; margin: 0 2px;
    border: 1px solid rgba(30, 58, 95, 0.1);
}
.ma-orders-pagination .page-numbers.current {
    background: var(--accent-green); color: #fff; border-color: var(--accent-green);
}

/* Help banner */
.ma-help { padding: 30px 0; }
.ma-help-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(29, 78, 216, 0.02));
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 16px;
}
.ma-help-icon { font-size: 2rem; flex-shrink: 0; }
.ma-help-body { flex: 1; }
.ma-help-body h3 { color: var(--text-primary); font-size: 1rem; margin: 0 0 4px; }
.ma-help-body p { color: var(--text-secondary); font-size: 0.85rem; margin: 0; }
.ma-help-actions { display: flex; gap: 8px; flex-shrink: 0; }

@media (max-width: 768px) {
    .ma-hero-grid { grid-template-columns: auto 1fr; }
    .ma-quick-links { grid-column: 1 / -1; justify-content: flex-start; }
    .ma-stats-grid { grid-template-columns: 1fr; }
    .ma-help-card { flex-direction: column; text-align: center; }
    .ma-help-actions { width: 100%; }
    .ma-help-actions .btn { flex: 1; }
    .ma-content .woocommerce-MyAccount-navigation ul { flex-direction: column; }
    .ma-content .woocommerce-MyAccount-navigation ul li a { display: block; width: 100%; }
}

/* ============================================
   FOOTER CHANNELS — v2.6.0
   ============================================ */
.footer-col-channels .footer-channels-desc {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin: 0 0 10px;
}
.footer-channels { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-channel {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(30, 58, 95, 0.08);
    border: 1px solid rgba(30, 58, 95, 0.12);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.footer-channel:hover { transform: translateY(-1px); }/* ============================================
   NOTIFICATION BAR — v2.8.0
   ============================================ */
.shapor-notice-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1002;
    padding: 8px 16px; text-align: center;
    font-size: 0.85rem; font-weight: 600; color: #fff;
    display: flex; align-items: center; justify-content: center;
    gap: 12px;
}
/* When notice bar is visible, push header down */
body.has-notice-bar .site-header { top: 36px !important; }/* ============================================
   ABOUT PAGE — v2.8.0 (team, certs, timeline, video)
   ============================================ */
.about-team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.about-team-card {
    background: var(--bg-card); border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 18px; padding: 24px; text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.about-team-card:hover { transform: translateY(-4px); border-color: rgba(37, 99, 235,0.2); }
.about-team-avatar {
    width: 80px; height: 80px; margin: 0 auto 14px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235,0.15), rgba(29, 78, 216,0.08));
    border: 2px solid rgba(37, 99, 235,0.25);
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.about-team-card h3 { font-size: 1rem; color: var(--text-primary); margin: 0 0 4px; }
.about-team-card span { display: block; font-size: 0.78rem; color: var(--accent-green); margin-bottom: 8px; font-weight: 600; }
.about-team-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.about-certs-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.about-cert-card {
    background: var(--bg-card); border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 16px; padding: 24px; text-align: center;
}
.about-cert-icon { font-size: 2.5rem; margin-bottom: 10px; }
.about-cert-card h3 { font-size: 0.95rem; color: var(--text-primary); margin: 0 0 6px; }
.about-cert-card p { font-size: 0.8rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

.about-timeline { position: relative; padding-right: 30px; max-width: 700px; margin: 0 auto; }
.about-timeline::before { content: ''; position: absolute; right: 8px; top: 0; bottom: 0; width: 2px; background: rgba(37, 99, 235,0.2); }
.about-timeline-item { position: relative; margin-bottom: 24px; }
.about-timeline-dot { position: absolute; right: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-green); border: 2px solid var(--bg-secondary); }
.about-timeline-content { background: var(--bg-card); border: 1px solid rgba(30, 58, 95, 0.1); border-radius: 14px; padding: 16px 18px; }
.about-timeline-year { display: inline-block; background: rgba(37, 99, 235,0.12); color: var(--accent-green); padding: 2px 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 700; margin-bottom: 6px; }
.about-timeline-content h3 { font-size: 0.95rem; color: var(--text-primary); margin: 0 0 4px; }
.about-timeline-content p { font-size: 0.82rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

.about-video-section { padding: 60px 0; }
.about-video-wrapper { max-width: 800px; margin: 0 auto; border-radius: 18px; overflow: hidden; }
.about-video-placeholder {
    aspect-ratio: 16/9; background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid rgba(37, 99, 235,0.15); border-radius: 18px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.about-video-play {
    width: 72px; height: 72px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease; box-shadow: 0 8px 24px rgba(37, 99, 235,0.3);
}
.about-video-play:hover { transform: scale(1.1); }
.about-video-placeholder p { color: var(--text-secondary); font-size: 0.95rem; }

@media (max-width: 768px) {
    .about-team-grid, .about-certs-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 480px) {
    .about-team-grid, .about-certs-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ARTICLES — v2.8.0
   ============================================ */
.articles-section { padding: 40px 0; }
.articles-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.article-card {
    background: var(--bg-card); border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 18px; overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease;
}
.article-card:hover { transform: translateY(-4px); border-color: rgba(37, 99, 235,0.2); }
.article-card-image { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-secondary); }.article-card-cat {
    position: absolute; top: 10px; right: 10px;
    background: rgba(37, 99, 235,0.9); color: #fff; font-size: 0.72rem;
    padding: 3px 10px; border-radius: 8px; font-weight: 700;
}
.article-card-body { padding: 16px 18px; }
.article-card-date { font-size: 0.75rem; color: var(--text-muted); display: block; margin-bottom: 6px; }
.article-card-title { font-size: 1rem; color: var(--text-primary); margin: 0 0 8px; line-height: 1.4; }
.article-card-title a { color: inherit; text-decoration: none; }
.article-card-title a:hover { color: var(--accent-green); }
.article-card-excerpt { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin: 0 0 10px; }
.article-card-read { font-size: 0.85rem; color: var(--accent-green); text-decoration: none; font-weight: 600; }
.article-card-read:hover { text-decoration: underline; }@media (max-width: 1024px) { .articles-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }

/* Single article */
.article-single-page { padding: 20px 0 60px; }
.article-single { max-width: 800px; margin: 0 auto; }
.article-single-head { text-align: center; margin: 24px 0; }
.article-single-cat { display: inline-block; background: rgba(37, 99, 235,0.12); color: var(--accent-green); padding: 4px 14px; border-radius: 12px; font-size: 0.78rem; font-weight: 700; margin-bottom: 12px; }
.article-single-title { font-size: 1.8rem; color: var(--text-primary); margin: 0 0 12px; line-height: 1.4; }
.article-single-meta { display: flex; gap: 16px; justify-content: center; color: var(--text-muted); font-size: 0.82rem; }
.article-single-image { border-radius: 18px; overflow: hidden; margin-bottom: 24px; }
.article-single-image img { width: 100%; height: auto; }
.article-single-content { color: var(--text-secondary); font-size: 0.95rem; line-height: 2; }
.article-single-content h2, .article-single-content h3 { color: var(--text-primary); }
.article-single-content p { margin-bottom: 16px; }
.article-single-content img { border-radius: 12px; }
.article-single-cta { text-align: center; padding: 30px; background: var(--bg-card); border: 1px solid rgba(37, 99, 235,0.15); border-radius: 18px; margin: 30px 0; }
.article-single-cta h3 { color: var(--text-primary); margin: 0 0 6px; }
.article-single-cta p { color: var(--text-secondary); margin: 0 0 16px; }
.article-single-related { margin-top: 40px; }
.article-single-related h3 { color: var(--text-primary); margin-bottom: 20px; }

/* ============================================
   CHAT WIDGET — v2.8.0
   ============================================ */
.shapor-chat-widget { position: fixed; bottom: 80px; z-index: 999; }
.shapor-chat-left { left: 20px; }
.shapor-chat-right { right: 20px; }
.shapor-chat-toggle {
    width: 56px; height: 56px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, #25d366, #128c7e); color: #fff;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4); transition: transform 0.3s ease;
    animation: shaporChatPulse 2s ease-in-out infinite;
}
.shapor-chat-toggle:hover { transform: scale(1.08); }
@keyframes shaporChatPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 6px 30px rgba(37,211,102,0.7); }
}
.shapor-chat-panel {
    position: fixed; bottom: 145px; width: 340px; max-width: calc(100vw - 32px);
    background: var(--bg-secondary); border: 1px solid rgba(30, 58, 95, 0.12);
    border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(23, 43, 77, 0.12);
    opacity: 0; transform: translateY(10px); transition: all 0.3s ease; pointer-events: none;
    z-index: 1000;
}
.shapor-chat-left .shapor-chat-panel { left: 20px; }
.shapor-chat-right .shapor-chat-panel { right: 20px; }
.shapor-chat-panel:not([hidden]) { opacity: 1; transform: translateY(0); pointer-events: auto; }
.shapor-chat-head {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px;
}
.shapor-chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.shapor-chat-head strong { display: block; font-size: 0.92rem; }
.shapor-chat-status { font-size: 0.72rem; opacity: 0.9; }
.shapor-chat-body { padding: 16px; }
.shapor-chat-welcome-msg { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.7; margin: 0 0 14px; }
.shapor-chat-option {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px;
    background: rgba(30, 58, 95, 0.07); border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 12px; text-decoration: none; color: var(--text-primary);
    margin-bottom: 8px; transition: all 0.2s ease; cursor: pointer; font-family: inherit;
}
.shapor-chat-option:hover { background: rgba(30, 58, 95, 0.1); border-color: rgba(37, 99, 235,0.2); }
.shapor-chat-option svg { flex-shrink: 0; }
.shapor-chat-option strong { display: block; font-size: 0.88rem; }
.shapor-chat-option span { font-size: 0.75rem; color: var(--text-muted); }
.shapor-chat-wa svg { color: #25d366; }
.shapor-chat-baleh svg { color: #29a0dc; }
.shapor-chat-sms svg { color: var(--accent-green); }

@media (max-width: 480px) {
    .shapor-chat-panel { width: calc(100vw - 40px); }
}

/* ============================================
   FERTILIZER WIZARD — v2.8.0
   ============================================ */
.wizard-section { padding: 60px 0; background: var(--bg-secondary); }
.wizard-container {
    max-width: 700px; margin: 0 auto; background: var(--bg-card);
    border: 1px solid rgba(37, 99, 235,0.15); border-radius: 20px; padding: 28px;
    box-shadow: 0 12px 40px rgba(23, 43, 77, 0.12);
}
/* v2.24.1 — این دو قاعده فقط برای ویزارد قدیمی v2.8.0 (المان #wizardContainer)
   معتبرند. قبلاً بدون اسکوپ بودند و ویزارد «برنامه کودی» (که کلاس wizard-step
   را با attribute-based toggling استفاده می‌کند) را کاملاً نامرئی می‌کردند. */
#wizardContainer .wizard-step { display: none; }
#wizardContainer .wizard-step.wizard-step-active { display: block; animation: wizardFadeIn 0.4s ease; }
@keyframes wizardFadeIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
.wizard-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.wizard-step-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
}
.wizard-step-head h3 { font-size: 1.1rem; color: var(--text-primary); margin: 0; }
.wizard-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.wizard-option {
    padding: 14px 16px; background: rgba(30, 58, 95, 0.07);
    border: 1.5px solid rgba(30, 58, 95, 0.12); border-radius: 14px;
    color: var(--text-secondary); font-size: 0.92rem; font-family: inherit;
    cursor: pointer; transition: all 0.2s ease; text-align: center;
}
.wizard-option:hover { border-color: rgba(37, 99, 235,0.3); background: rgba(37, 99, 235,0.06); color: var(--text-primary); }
.wizard-option.selected { border-color: var(--accent-green); background: rgba(37, 99, 235,0.12); color: var(--accent-green); font-weight: 600; }
.wizard-progress { margin-top: 20px; height: 4px; background: rgba(30, 58, 95, 0.1); border-radius: 2px; overflow: hidden; }.wizard-result { text-align: center; animation: wizardFadeIn 0.4s ease; }.wizard-result h3 { color: var(--text-primary); margin: 0 0 16px; }.wizard-result-actions .btn { min-width: 180px; justify-content: center; }
.wizard-restart { background: none; border: none; color: var(--text-muted); font-size: 0.85rem; cursor: pointer; font-family: inherit; }
.wizard-restart:hover { color: var(--accent-green); }

@media (max-width: 600px) {
    .wizard-options { grid-template-columns: 1fr; }    .wizard-result-actions .btn { width: 100%; }
}

/* ============================================
   CHAT WIDGET PHONE STEP — v2.9.0
   ============================================ */
.shapor-chat-phone-prompt { color: var(--text-secondary); font-size: 0.82rem; margin: 0 0 10px; }
.shapor-chat-phone-input-wrap {
    display: flex; align-items: center; gap: 6px;
    background: rgba(30, 58, 95, 0.08); border: 1.5px solid rgba(30, 58, 95, 0.14);
    border-radius: 10px; padding: 8px 10px; direction: ltr;
}
.shapor-chat-phone-input-wrap:focus-within { border-color: var(--accent-green); }
.shapor-chat-phone-input-wrap svg { color: var(--text-muted); flex-shrink: 0; }
.shapor-chat-phone-input {
    flex: 1; border: none; background: transparent; color: var(--text-primary);
    font-size: 0.95rem; font-family: 'Vazirmatn', sans-serif; outline: none;
    text-align: left; direction: ltr; min-width: 0;
}
.shapor-chat-phone-input::placeholder { color: var(--text-muted); }
.shapor-chat-phone-error {
    color: var(--accent-red); font-size: 0.78rem; margin-top: 6px;
    background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
    padding: 4px 8px; border-radius: 6px;
}
.shapor-chat-phone-skip:hover { color: var(--text-secondary) !important; }

/* ============================================
   v2.9.1 — Fix large product images on mobile
   Some uploaded product images have very large dimensions and overflow
   their containers. These rules enforce strict sizing constraints.
   ============================================ */

/* Shop card image — strict constraints */
.shop-card-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 100%;
}
@media (max-width: 768px) {
    .shop-card-image img {
        max-height: 200px;
        padding: 8px;
    }
}
@media (max-width: 480px) {
    .shop-card-image img {
        max-height: 180px;
        padding: 6px;
    }
}

/* Product card (homepage swiper) image */
.product-card-media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.product-card-media img,
.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 100%;
}
@media (max-width: 768px) {
    .product-card-media img,
    .product-image {
        max-height: 200px;
        padding: 8px;
    }
}

/* Quick View modal image */
.shapor-quickview-image {
    max-height: 100%;
}

/* Single product gallery main image */
.sp-gallery-main {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.sp-main-img {
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media (max-width: 768px) {
    .sp-gallery-main {
        max-width: 360px;
        margin: 0 auto;
    }
    .sp-main-img {
        padding: 20px;
    }
}/* Article card images */
.article-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}/* Make add-to-cart button full width now that WA button is removed */
.shop-card-actions .shop-card-btn-primary,
.product-card-actions .product-card-btn-primary {
    width: 100%;
    justify-content: center;
}

/* ============================================
   v2.10.0 — MOBILE CARD FIXES
   Fix oversized product card batches on mobile.
   Force strict dimensions and reduce padding.
   ============================================ */
@media (max-width: 768px) {
    .shop-card,
    .product-card {
        max-width: 100%;
        overflow: hidden;
    }
    .shop-card-image,
    .product-card-media {
        aspect-ratio: 1 / 1;
        max-height: 220px;
    }
    .shop-card-image img,
    .product-card-media img,
    .product-image {
        max-height: 220px;
        padding: 14px !important;
        object-fit: contain !important;
    }
    .shop-card-body,
    .product-info {
        padding: 12px !important;
    }
    .shop-card-title,
    .product-name {
        font-size: 0.88rem !important;
        line-height: 1.4;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .shop-card-price,
    .product-price {
        font-size: 0.92rem !important;
    }
    .shop-card-actions,
    .product-card-actions {
        padding: 0 12px 12px !important;
    }
    .shop-card-btn-primary,
    .product-card-btn-primary {
        font-size: 0.82rem !important;
        padding: 9px 10px !important;
    }
}
@media (max-width: 480px) {
    .shop-card-image img,
    .product-card-media img,
    .product-image {
        max-height: 170px;
        padding: 10px !important;
    }
    .shop-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .shop-card-image,
    .product-card-media {
        max-height: 170px;
    }
}

/* ============================================
   v2.10.0 — HERO BACKGROUND DECORATIONS
   Beautiful floating elements in homepage hero
   ============================================ */
.hero {
    position: relative;
    overflow: hidden;
}
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hero::before {
    top: -60px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
    animation: heroFloat1 8s ease-in-out infinite;
}
.hero::after {
    bottom: -80px;
    right: -40px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.08), transparent 70%);
    animation: heroFloat2 10s ease-in-out infinite;
}
@keyframes heroFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 30px) scale(1.1); }
}
@keyframes heroFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(0.9); }
}
.hero-content { position: relative; z-index: 1; }

/* Decorative leaf particles */
.hero-particle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: heroParticleFloat 6s ease-in-out infinite;
}
.hero-particle:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.hero-particle:nth-child(2) { top: 60%; left: 85%; animation-delay: 1s; font-size: 1.2rem; }
.hero-particle:nth-child(3) { top: 80%; left: 15%; animation-delay: 2s; font-size: 1rem; }
.hero-particle:nth-child(4) { top: 30%; left: 75%; animation-delay: 3s; font-size: 1.3rem; }
@keyframes heroParticleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}.shapor-shipping-notice-checkout-top .shapor-shipping-trigger {
    font-size: 0.95rem;
}
.shapor-shipping-notice-checkout-top .shapor-shipping-hint {
    margin: 0;
    flex: 1;
    min-width: 200px;
}.brands-slider {
    display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
    padding-bottom: 12px; scrollbar-width: none; -ms-overflow-style: none;
}
.brands-slider::-webkit-scrollbar { display: none; }
.brands-slider .brand-card {
    flex: 0 0 300px; max-width: 300px;
}@media (max-width: 768px) {
    .brands-slider .brand-card { flex: 0 0 260px; max-width: 260px; }
}

/* ============================================
   v2.11.0 — BACK TO TOP ABOVE CHAT WIDGET
   ============================================ */
.back-to-top {
    z-index: 1001 !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout) .back-to-top {
    bottom: 90px;
}

/* ============================================
   v2.11.0 — CHECKOUT: hide ship-to-different-address + show order review in desktop
   ============================================ */
.woocommerce-shipping-fields {
    display: none !important;
}
/* On desktop, show order review (col-2) side by side with billing (col-1) */
@media (min-width: 900px) {
    .woocommerce-checkout #customer_details {
        display: grid !important;
        grid-template-columns: 1.4fr 1fr !important;
        gap: 32px !important;
    }
    .woocommerce-checkout #customer_details .col-2 {
        display: block !important;
    }
    .woocommerce-checkout #customer_details .col-2 .woocommerce-checkout-review-order {
        position: sticky; top: 100px;
    }
}

/* ============================================
   v2.11.0 — WELCOME LEAD POPUP (shown on first visit)
   ============================================ */
.shapor-welcome-popup-overlay {
    position: fixed; inset: 0; z-index: 5000;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.shapor-welcome-popup-overlay.open { opacity: 1; pointer-events: auto; }
.shapor-welcome-popup-overlay[hidden] { display: none !important; }
.shapor-welcome-popup-backdrop {
    position: absolute; inset: 0;
    background: rgba(5,5,5,0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.shapor-welcome-popup-panel {
    position: relative; max-width: 440px; width: calc(100% - 32px);
    margin: 50px auto; padding: 36px 28px 28px; text-align: center;
    background:
        linear-gradient(180deg, rgba(37, 99, 235,0.08) 0%, transparent 40%),
        var(--bg-secondary);
    border: 1px solid rgba(37, 99, 235,0.2); border-radius: 24px;
    box-shadow: 0 30px 80px rgba(23, 43, 77, 0.16);
    transform: translateY(-15px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.shapor-welcome-popup-overlay.open .shapor-welcome-popup-panel {
    transform: translateY(0) scale(1);
}
.shapor-welcome-popup-close {
    position: absolute; top: 14px; left: 14px; width: 34px; height: 34px;
    border: none; background: rgba(30, 58, 95, 0.1); color: var(--text-secondary);
    border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.shapor-welcome-popup-close:hover { background: rgba(239,68,68,0.15); color: var(--accent-red); }
.shapor-welcome-popup-icon {
    width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235,0.18), rgba(29, 78, 216,0.08));
    border: 1px solid rgba(37, 99, 235,0.3);
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    animation: shaporWelcomePulse 2s ease-in-out infinite;
}
@keyframes shaporWelcomePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(37, 99, 235,0); }
}
.shapor-welcome-popup-title {
    font-size: 1.25rem; font-weight: 800; color: var(--text-primary); margin: 0 0 8px;
}
.shapor-welcome-popup-desc {
    color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin: 0 0 20px;
}
.shapor-welcome-popup-discount-badge {
    display: inline-block; background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff; padding: 6px 18px; border-radius: 12px; font-size: 0.92rem; font-weight: 800;
    margin-bottom: 16px; box-shadow: 0 4px 14px rgba(239,68,68,0.3);
}
.shapor-welcome-popup-input-wrap {
    display: flex; align-items: center; gap: 6px;
    background: rgba(30, 58, 95, 0.08); border: 1.5px solid rgba(30, 58, 95, 0.14);
    border-radius: 14px; overflow: hidden; padding: 8px 12px; direction: ltr;
}
.shapor-welcome-popup-input-wrap:focus-within { border-color: var(--accent-green); }
.shapor-welcome-popup-input-wrap svg { color: var(--text-muted); flex-shrink: 0; }
.shapor-welcome-popup-input {
    flex: 1; border: none; background: transparent; color: var(--text-primary);
    font-size: 1rem; font-family: 'Vazirmatn',sans-serif; outline: none;
    text-align: left; direction: ltr; min-width: 0;
}
.shapor-welcome-popup-input::placeholder { color: var(--text-muted); }
.shapor-welcome-popup-error {
    color: var(--accent-red); font-size: 0.8rem; margin-top: 8px; text-align: right;
    background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
    padding: 6px 10px; border-radius: 8px;
}
.shapor-welcome-popup-submit {
    width: 100%; margin-top: 14px; justify-content: center;
}
.shapor-welcome-popup-skip {
    display: block; width: 100%; margin-top: 8px; background: none; border: none;
    color: var(--text-muted); font-size: 0.82rem; cursor: pointer; font-family: inherit; padding: 6px;
}
.shapor-welcome-popup-skip:hover { color: var(--text-secondary); }
.shapor-welcome-popup-trust {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(30, 58, 95, 0.1);
    color: var(--text-muted); font-size: 0.72rem;
}
.shapor-welcome-popup-trust svg { color: var(--accent-green); }

body.welcome-popup-open { overflow: hidden !important; }

@media (max-width: 480px) {
    .shapor-welcome-popup-panel { margin: 16px auto; padding: 28px 20px 22px; border-radius: 18px; }
    .shapor-welcome-popup-title { font-size: 1.1rem; }
}

/* ============================================
   v2.12.0 — CATEGORY AUTO-SCROLL SLIDER
   Horizontal loop, no nav buttons, auto-scroll
   ============================================ */
.cat-auto-slider {
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.cat-auto-slider-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: catAutoScroll 30s linear infinite;
}
.cat-auto-slider:hover .cat-auto-slider-track {
    animation-play-state: paused;
}
/* RTL: scroll from right to left (positive translateX) */
@keyframes catAutoScroll {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}
.cat-auto-slide {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(30, 58, 95, 0.08);
    border: 1px solid rgba(30, 58, 95, 0.12);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.cat-auto-slide:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--accent-green);
}
.cat-auto-slide.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(29, 78, 216, 0.06));
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--accent-green);
}
.cat-auto-slide-icon {
    font-size: 1.1rem;
    line-height: 1;
}
.cat-auto-slide-count {
    background: rgba(30, 58, 95, 0.12);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 1px 7px;
    border-radius: 8px;
    font-weight: 600;
}
.cat-auto-slide.active .cat-auto-slide-count {
    background: rgba(37, 99, 235, 0.2);
    color: var(--accent-green);
}

@media (max-width: 768px) {
    .cat-auto-slide {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .cat-auto-slider-track {
        animation-duration: 20s;
    }
}

/* ============================================
   v2.13.0 — CART TOAST NOTIFICATION
   ============================================ */
.shapor-cart-toast {
    position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
    z-index: 5000; display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(15,15,15,0.97), rgba(8,8,8,0.98));
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235,0.3); border-radius: 16px;
    box-shadow: 0 12px 40px rgba(23, 43, 77, 0.16);
    opacity: 0; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    max-width: 380px; width: calc(100% - 32px);
}
.shapor-cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.shapor-cart-toast-icon { font-size: 1.5rem; flex-shrink: 0; }
.shapor-cart-toast-body { flex: 1; }
.shapor-cart-toast-body strong { display: block; color: #fff; font-size: 0.92rem; }
.shapor-cart-toast-body p { color: var(--accent-green); font-size: 0.8rem; margin: 2px 0 0; }
.shapor-cart-toast-close {
    background: none; border: none; color: var(--text-muted); font-size: 1.4rem;
    cursor: pointer; padding: 0 4px; line-height: 1;
}
.shapor-cart-toast-close:hover { color: #fff; }

@media (max-width: 480px) {
    .shapor-cart-toast { bottom: 90px; padding: 12px 16px; }
    .shapor-cart-toast-body strong { font-size: 0.85rem; }
    .shapor-cart-toast-body p { font-size: 0.75rem; }
}

/* ============================================
   v2.13.0 — CART PHONE POPUP (after add-to-cart)
   ============================================ */
.shapor-cart-phone-popup {
    position: fixed; inset: 0; z-index: 5100;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.shapor-cart-phone-popup.show { opacity: 1; pointer-events: auto; }
.shapor-cart-phone-popup-backdrop {
    position: absolute; inset: 0; background: rgba(5,5,5,0.85);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.shapor-cart-phone-popup-panel {
    position: relative; max-width: 380px; width: calc(100% - 32px);
    margin: 60px auto; padding: 32px 24px 22px; text-align: center;
    background:
        linear-gradient(180deg, rgba(37, 99, 235,0.08) 0%, transparent 40%),
        var(--bg-secondary);
    border: 1px solid rgba(37, 99, 235,0.2); border-radius: 20px;
    box-shadow: 0 30px 80px rgba(23, 43, 77, 0.16);
    transform: translateY(-15px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.shapor-cart-phone-popup.show .shapor-cart-phone-popup-panel {
    transform: translateY(0) scale(1);
}
.shapor-cart-phone-popup-close {
    position: absolute; top: 12px; left: 12px; width: 30px; height: 30px;
    border: none; background: rgba(30, 58, 95, 0.1); color: var(--text-secondary);
    border-radius: 8px; cursor: pointer; font-size: 1.3rem; line-height: 1;
}
.shapor-cart-phone-popup-icon {
    width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235,0.18), rgba(29, 78, 216,0.08));
    border: 1px solid rgba(37, 99, 235,0.3);
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.shapor-cart-phone-popup-panel h3 { color: var(--text-primary); font-size: 1.1rem; margin: 0 0 8px; }
.shapor-cart-phone-popup-panel p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; margin: 0 0 16px; }
.shapor-cart-phone-popup-input-wrap {
    display: flex; background: rgba(30, 58, 95, 0.08);
    border: 1.5px solid rgba(30, 58, 95, 0.14); border-radius: 12px; overflow: hidden;
    padding: 8px 12px; direction: ltr;
}
.shapor-cart-phone-popup-input-wrap:focus-within { border-color: var(--accent-green); }
.shapor-cart-phone-popup-input-wrap input {
    flex: 1; border: none; background: transparent; color: var(--text-primary);
    font-size: 1rem; font-family: 'Vazirmatn',sans-serif; outline: none;
    text-align: left; direction: ltr; min-width: 0;
}
.shapor-cart-phone-popup-input-wrap input::placeholder { color: var(--text-muted); }
.shapor-cart-phone-popup-error {
    color: var(--accent-red); font-size: 0.78rem; margin-top: 6px; text-align: right;
    background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
    padding: 4px 8px; border-radius: 6px;
}
.shapor-cart-phone-popup-submit { width: 100%; margin-top: 12px; justify-content: center; }
.shapor-cart-phone-popup-skip {
    display: block; width: 100%; margin-top: 6px; background: none; border: none;
    color: var(--text-muted); font-size: 0.8rem; cursor: pointer; font-family: inherit; padding: 4px;
}
.shapor-cart-phone-popup-skip:hover { color: var(--text-secondary); }

