﻿.home-seo-text.line-motion {
    background: #fff;
    padding: 100px 20px;
}

.line-motion .seo-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 65px 55px;
    text-align: center;
}

/* ===============================
   SVG MOTION LINE – DESKTOP FIXED
   =============================== */

.motion-line {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

    .motion-line rect {
        fill: none;
        stroke: url(#luxuryRed);
        stroke-width: 0.95; /* ✅ desktop = mobile */
        stroke-dasharray: 120 420;
        stroke-linecap: round;
        animation: lineFlow 9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
        opacity: 0.9;
        filter: drop-shadow(0 0 2px rgba(139, 29, 29, 0.45)) drop-shadow(0 0 6px rgba(177, 18, 38, 0.25));
    }

/* smooth animation */
@keyframes lineFlow {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -540;
    }
}

/* ===============================
   TEXT
   =============================== */

.line-motion h2 {
    font-size: 30px;
    font-weight: 700;
    color: #111;
    margin-bottom: 22px;
    letter-spacing: -0.2px;
}

.line-motion p {
    font-size: 16.5px;
    line-height: 1.95;
    color: #3f3f3f;
    max-width: 820px;
    margin: 0 auto;
}

    .line-motion p strong {
        font-weight: 600;
        color: #111;
    }

/* ===============================
   MOBILE – REFINED
   =============================== */

@media (max-width: 768px) {
    .home-seo-text.line-motion {
        padding: 70px 15px;
    }

    .line-motion .seo-container {
        padding: 45px 25px;
    }

    .motion-line rect {
        stroke-width: 1;
        stroke-dasharray: 90 360;
        animation-duration: 7s;
    }

    .line-motion h2 {
        font-size: 22px;
    }

    .line-motion p {
        font-size: 15px;
        line-height: 1.85;
    }
}
.Seo-title {
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1.25;
    color: #111;
    margin: 40px 0 30px;
    text-align: center;
    position: relative;
}

    /* subtle accent underline */
    .Seo-title::after {
        content: "";
        display: block;
        width: 64px;
        height: 3px;
        margin: 18px auto 0;
        background: linear-gradient( 90deg, #4a0c0c, #b11226, #6f1111 );
        border-radius: 2px;
        opacity: 0.9;
    }
















/* visually-hidden */


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.home-seo-text {
    margin-top: 40px;
    font-size: 14px;
    color: #777;
}

    .home-seo-text h2 {
        font-size: 16px;
        margin-bottom: 8px;
    }



.size-guide-note {
    margin-top: 22px;
    padding: 20px 22px;
    background: linear-gradient(180deg, #ffffff, #fafafa);
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    position: relative;
}

    /* تیتر ظریف بالا */
    .size-guide-note::before {
        content: "راهنمای انتخاب سایز";
        position: absolute;
        top: -11px;
        right: 16px;
        background: #fff;
        padding: 0 10px;
        font-size: 17px;
        font-weight: 700;
        color: #8B0000;
    }

    /* هر خط */
    .size-guide-note p {
        margin: 10px 0;
        padding-right: 14px;
        font-size: 16px;
        line-height: 1.9;
        color: #333;
        position: relative;
    }

        /* نقطه راهنما */
        .size-guide-note p::before {
            content: "";
            width: 6px;
            height: 6px;
            background-color: #8B0000;
            border-radius: 50%;
            position: absolute;
            right: 0;
            top: 11px;
        }

/* عدد سایز */
.size-highlight {
    color: #8B0000;
    font-weight: 800;
    font-size: 19px;
}
























/* روح */

/* =========================
   انیمیشن شناور روح
========================= */
@keyframes floatGhost {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

/* =========================
   آیکن روح
========================= */
.ghost-icon {
    display: block;
    width: 60px;
    height: 60px;
    animation: floatGhost 3s infinite ease-in-out;
    transition: all 0.3s ease-in-out;
}

/* =========================
   کانتینر روح (فقط موبایل)
========================= */
.ghost-container {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

@media (max-width: 480px) {
    .ghost-container {
        bottom: 12px;
        left: 12px;
        transform: scale(0.95);
    }
}

/* دسکتاپ: روح مخفی */
@media (min-width: 481px) {
    .ghost-container {
        display: none;
    }
}

/* =========================
   بدنه روح
========================= */
.ghost-body {
    width: 40px;
    height: 40px;
    animation: floatGhost 3s infinite ease-in-out;
    transition: all 0.3s ease-in-out;
}

/* =========================
   پیام کوچک بالای روح
========================= */
.ghost-message {
    margin-top: 6px;
    color: #ffffff;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 10px;
    max-width: 180px;
    text-align: center;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.ghost-show .ghost-message {
    opacity: 1;
}

/* =========================
   Toast پیش‌فرض (موبایل)
========================= */
.ghost-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    width: max-content;
    background: #d94242;
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 16px;
    text-align: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

    .ghost-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(-4px);
    }

/* =========================
   موبایل: فونت بزرگ‌تر
========================= */
@media (max-width: 480px) {
    .ghost-toast {
        font-size: 20px;
    }
}

/* =========================
   دسکتاپ: Overlay نیمه‌شفاف
========================= */
@media (min-width: 481px) {
    .ghost-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        backdrop-filter: blur(4px);
        z-index: 99998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }

        .ghost-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }
}

/* =========================
   دسکتاپ: مدال وسط صفحه
========================= */
@media (min-width: 481px) {
    .ghost-toast {
        top: 50%;
        left: 50%;
        bottom: auto;
        right: auto;
        transform: translate(-50%, -50%) scale(0.96);
        max-width: 520px;
        width: calc(100% - 64px);
        padding: 26px 34px;
        font-size: 24px;
        border-radius: 22px;
        text-align: center;
        direction: rtl;
        background: rgba(217, 66, 66, 0.92);
        box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    }

        .ghost-toast.show {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
}

/* =========================
   انواع پیام
========================= */
.ghost-toast.success {
    background: rgba(65, 152, 72, 0.92);
}

.ghost-toast.info {
    background: rgba(34, 23, 174, 0.92);
}

.ghost-toast.error {
    background: rgba(217, 41, 41, 0.92);
}

/* =========================
   حالت‌های روح
========================= */
.ghost-neutral .ghost-body {
    animation: neutral 2s infinite;
}

.ghost-happy .ghost-body {
    animation: happy 2s infinite;
}

.ghost-sad .ghost-body {
    animation: sad 2s infinite;
}

/* =========================
   انیمیشن حالت‌ها
========================= */
@keyframes neutral {
    0%,100% {
        opacity: 0.85;
    }

    50% {
        opacity: 1;
    }
}

@keyframes happy {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes sad {
    0% {
        transform: rotate(0);
    }

    50% {
        transform: rotate(6deg);
    }

    100% {
        transform: rotate(0);
    }
}



























/* =========================================
  بخش سورت بندی و اردرینگ
   ========================================= */

/* Overall spacing from top */
.tf-shop-control {
    margin-top: 28px;
    margin-bottom: 18px;
}

/* Wrapper */
.x7-sorter-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Label */
.x7-sorter-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

/* List */
.x7-sorter-list {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Link – premium typography */
.x7-sorter-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.25px;
    line-height: 1;
    font-family: "IRANYekan", "YekanBakh", "Vazirmatn", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2c2c2c;
    background-color: #f7f7f7;
    border: 1px solid #e4e4e4;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

    /* Hover */
    .x7-sorter-link:hover {
        background-color: #ededed;
        color: #000;
        transform: translateY(-1px);
    }

    /* Active */
    .x7-sorter-link.is-active {
        background-color: #111;
        border-color: #111;
        color: #fff;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
        cursor: default;
    }

        /* Prevent hover override */
        .x7-sorter-link.is-active:hover {
            transform:;
        }

/* =========================
   Mobile – horizontal scroll
   ========================= */
/* =========================================
   x7 Product Sorter – Mobile fine-tuning
   Patch v3.1
   ========================================= */

@media (max-width: 768px) {

    .x7-sorter-list {
        gap: 8px; /* قبل: 14px → الان دقیق */
    }

    .x7-sorter-link {
        padding: 9px 15px; /* قبل: 9px 18px */
        font-size: 14px;
        border-radius: 999px;
    }

        .x7-sorter-link.is-active {
            box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
        }
}
















/* پرداخت موفق */


.payment-success-container {
    max-width: 440px;
    margin: 50px auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: 'Vazir', sans-serif;
}

/* Header */
.success-header {
    background: linear-gradient(135deg, #2c6f3c, #3fa66b);
    padding: 32px 20px 28px;
    text-align: center;
    color: #fff;
}

    .success-header h2 {
        margin: 14px 0 8px;
        font-size: 24px;
    }

    .success-header p {
        font-size: 14px;
        opacity: 0.95;
    }

/* Icon */
.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

    .success-icon svg {
        width: 34px;
        height: 34px;
        fill: #fff;
    }

/* Card */
.success-card {
    padding: 26px 24px 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 15px;
    color: #2d2d2d;
}

    .info-row span {
        opacity: 0.7;
    }

    .info-row strong {
        font-weight: 600;
    }

    /* Highlight amount */
    .info-row.highlight {
        background: #f1faf4;
        padding: 12px 14px;
        border-radius: 10px;
        color: #1e7c4a;
        margin-bottom: 16px;
    }

    /* Unique code emphasis */
    .info-row.code {
        border: 1px dashed #2c6f3c;
        padding: 12px 14px;
        border-radius: 10px;
        color: #2c6f3c;
        font-size: 16px;
    }

/* Divider */
.divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

/* Button */
.return-home {
    display: block;
    margin: 0 24px 26px;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    background: #2c6f3c;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .return-home:hover {
        background: #245c32;
        transform: translateY(-1px);
    }
























/* =========================
   Luxury Inventory Modal مودال عدم موجودی
   ========================= */

.inventory-modal .modal-dialog {
    max-width: 520px;
    margin: 1rem auto;
}

.inventory-modal-content {
    position: relative;
    border-radius: 28px;
    background: linear-gradient(180deg,#111,#0a0a0a);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 35px 80px rgba(0,0,0,.65);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

    .inventory-modal-content::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right,rgba(255,0,0,.08),transparent 30%);
        pointer-events: none;
    }

.inventory-modal-body {
    padding: 36px 28px 28px;
    text-align: center;
}

/* =========================
   ICON
   ========================= */

.inventory-icon-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* glow نرم پشت آیکن */

.inventory-icon-glow {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,50,50,.25), rgba(255,0,0,0));
    filter: blur(12px);
    animation: pulseGlow 3.5s ease-in-out infinite;
}

/* حلقه چرخان */

.inventory-icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient( from 0deg, rgba(255,0,0,0) 0deg, rgba(255,70,70,.15) 40deg, rgba(255,60,60,.95) 90deg, rgba(255,70,70,.18) 130deg, rgba(255,0,0,0) 180deg, rgba(255,0,0,0) 360deg );
    animation: spinRing 7s linear infinite;
    filter: blur(.8px);
}

    .inventory-icon-ring::after {
        content: "";
        position: absolute;
        inset: 10px;
        border-radius: 50%;
        background: #0b0b0b;
        border: 1px solid rgba(255,255,255,.07);
        box-shadow: inset 0 0 12px rgba(255,255,255,.03), 0 0 18px rgba(255,0,0,.06);
    }

/* آیکن */

.inventory-icon-core {
    position: relative;
    z-index: 2;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.08), 0 10px 25px rgba(0,0,0,.35);
}

.inventory-icon {
    width: 34px;
    height: 34px;
    color: #f5f5f5;
    opacity: .95;
}

/* =========================
   MESSAGE
   ========================= */

.inventory-message-box {
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.inventory-message-text {
    color: #ffffffd9;
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
    font-weight: 500;
}

/* =========================
   BUTTONS
   ========================= */

.inventory-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.inventory-btn {
    min-width: 150px;
    height: 48px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    transition: .25s;
}

.inventory-btn-primary {
    background: linear-gradient(180deg,#ffffff,#dcdcdc);
    color: #111;
}

    .inventory-btn-primary:hover {
        transform: translateY(-2px);
        background: #fff;
        box-shadow: 0 12px 22px rgba(255,255,255,.12);
    }

.inventory-btn-secondary {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
}

    .inventory-btn-secondary:hover {
        background: rgba(255,255,255,.09);
        transform: translateY(-2px);
    }

/* close */

.inventory-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    display: grid;
    place-items: center;
    transition: .25s;
}

    .inventory-close:hover {
        background: rgba(255,255,255,.12);
        transform: rotate(90deg);
    }

    .inventory-close span {
        position: absolute;
        width: 16px;
        height: 1.6px;
        background: #fff;
        border-radius: 20px;
    }

        .inventory-close span:first-child {
            transform: rotate(45deg);
        }

        .inventory-close span:last-child {
            transform: rotate(-45deg);
        }

/* =========================
   ANIMATION
   ========================= */

@keyframes spinRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseGlow {
    0%,100% {
        opacity: .55;
        transform: scale(1);
    }

    50% {
        opacity: .9;
        transform: scale(1.08);
    }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width:600px) {

    .inventory-modal-body {
        padding: 28px 18px 22px;
    }

    .inventory-message-text {
        font-size: 14.5px;
    }

    .inventory-actions {
        flex-direction: column-reverse;
    }

    .inventory-btn {
        width: 100%;
    }

    .inventory-icon-wrap {
        width: 90px;
        height: 90px;
    }

    .inventory-icon-core {
        width: 58px;
        height: 58px;
    }

    .inventory-icon {
        width: 26px;
        height: 26px;
    }
}




























/* =========================
   دکمه اضافه و کم چک اوت
   ========================= */


/* quantity box */
.wg-quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    height: 36px;
}

    /* buttons + - */
    .wg-quantity .btn-quantity {
        width: 34px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 500;
        cursor: pointer;
        color: #333;
        transition: all .2s ease;
        user-select: none;
    }

        /* hover effect */
        .wg-quantity .btn-quantity:hover {
            background: #f5f5f5;
        }

        /* active click */
        .wg-quantity .btn-quantity:active {
            transform: scale(.95);
        }

    /* quantity input */
    .wg-quantity .quantity-product {
        width: 40px;
        height: 100%;
        border: none;
        text-align: center;
        font-size: 14px;
        font-weight: 500;
        background: transparent;
    }

    /* remove focus outline */
    .wg-quantity input:focus {
        outline: none;
    }

/* mobile optimization */
@media (max-width:768px) {

    .wg-quantity {
        height: 30px;
        border-radius: 8px;
    }

        .wg-quantity .btn-quantity {
            width: 28px;
            height: 30px;
            font-size: 16px;
        }

        .wg-quantity .quantity-product {
            width: 32px;
            font-size: 13px;
        }
}




































/* سفارشات مشتری */



.zxq-orders-wrap {
    max-width: 1200px;
    margin: auto;
    padding: 30px 15px;
    direction: rtl;
}

.zxq-orders-title {
    font-size: 30px;
    font-weight: 900;
    color: #111;
    margin-bottom: 35px;
}

.zxq-order-box {
    background: #111;
    border-radius: 18px;
    margin-bottom: 30px;
    border: 1px solid #1f1f1f;
    overflow: hidden;
    transition: .25s;
}

    .zxq-order-box:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 40px rgba(0,0,0,.45);
    }

.zxq-order-head {
    background: #0c0c0c;
    padding: 18px 24px;
    border-bottom: 2px solid #e11d48;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.zxq-order-code {
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}

.zxq-order-user {
    color: #e11d48;
    font-weight: 700;
    font-size: 14px;
}

.zxq-order-body {
    padding: 24px;
}

.zxq-order-address {
    background: #0b0b0b;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 25px;
    color: #ddd;
    font-size: 14px;
}

.zxq-products-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

    .zxq-products-table thead th {
        color: #888;
        font-size: 12px;
        font-weight: 700;
        padding-bottom: 8px;
        text-align: right;
    }

    .zxq-products-table tbody tr {
        background: #0c0c0c;
        border: 1px solid #1f1f1f;
    }

    .zxq-products-table td {
        padding: 16px;
    }

.zxq-product-title {
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}

.zxq-product-price {
    color: #2eeb38;
    
    font-size: 25px;
    text-align: left;
}

.zxq-variant-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zxq-chip {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
}

    .zxq-chip strong {
        color: #e11d48;
        margin-right: 4px;
    }

.zxq-empty-box {
    background: #0d0d0d;
    border: 1px dashed #333;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: #aaa;
}
@media(max-width:768px) {

    .zxq-order-body {
        padding: 18px 14px;
    }

    .zxq-products-table {
        border-spacing: 0;
    }

        .zxq-products-table thead {
            display: none;
        }

        .zxq-products-table,
        .zxq-products-table tbody,
        .zxq-products-table tr {
            display: block;
            width: 100%;
        }

            .zxq-products-table tr {
                background: #0c0c0c;
                border: 1px solid #222;
                border-radius: 14px;
                padding: 14px;
                margin-bottom: 14px;
            }

            .zxq-products-table td {
                display: block;
                padding: 6px 0;
                width: 100%;
            }

    .zxq-product-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .zxq-variant-wrap {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .zxq-chip {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 10px;
    }

    .zxq-product-price {
        color: #2eeb38;
        text-align: right;
        margin-top: 10px;
        font-size: 20px;
    }

    .zxq-order-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .zxq-orders-title {
        font-size: 24px;
    }
}
