﻿
/*body {
    font-family: "Vazir";
    margin: 0;
    background: #f8fafc;
}



.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: #0f172a;
    color: white;
    font-size: 14px;
}



.store-logo {
    font-size: 18px;
    font-weight: 700;
}



.store-cart {
    background: #22c55e;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}



.store-container {
    padding: 20px;
}



.landing-wrapper {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}



.landing-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #111;
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}



.landing-icon {
    font-size: 40px;
    margin-bottom: 10px;
}



.landing-title {
    font-size: 18px;
    font-weight: 600;
}



#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}



    #splash-screen img {
        width: 150px;
    }

#floating-cart {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #0f172a;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 1000;
}

    #floating-cart span {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #22c55e;
        color: white;
        border-radius: 50%;
        width: 22px;
        height: 22px;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

#cart-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: white;
    transform: translateY(100%);
    transition: .3s;
    z-index: 2000;
    border-radius: 20px 20px 0 0;
}

    #cart-drawer.open {
        transform: translateY(0);
    }

.cart-header {
    padding: 15px;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
}

.cart-items {
    padding: 15px;
    overflow-y: auto;
    height: calc(100% - 140px);
}

.cart-footer {
    padding: 15px;
    border-top: 1px solid #e5e7eb;
}

.checkout-btn {
    background: #22c55e;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    margin-right: 52%;
}
.empty-cart {
    text-align: center;
    color: #64748b;
    padding: 40px 10px;
    font-size: 14px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}*/
/* ردیف محصول در سبد */
/*.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item-info {
    flex: 1;
    padding-left: 10px;
    text-align: right;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.5;
}

.cart-item-price {
    font-size: 12px;
    color: #64748b;
}*/

/* استپر تعداد (دکمه‌های + و -) */
/*.qty-stepper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

    .qty-stepper button {
        background: transparent;
        border: none;
        padding: 5px 12px;
        font-size: 16px;
        cursor: pointer;
        color: #0f172a;
    }

        .qty-stepper button:active {
            background: #e2e8f0;
        }

    .qty-stepper span {
        font-size: 14px;
        font-weight: bold;
        min-width: 25px;
        text-align: center;
    }

.empty-cart-msg {
    text-align: center;
    padding: 50px 20px;
    color: #94a3b8;
    font-size: 14px;
}
.price-container {
    margin: 10px 0;
    text-align: center;
    min-height: 45px;*/ /* برای یکنواخت ماندن اندازه کارت‌ها */
/*}

.old-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.special-price {
    font-size: 15px;
    font-weight: bold;
    color: #059669;*/ /* سبز برای قیمت اصلی خرید */
/*}*/

/* برای اینکه تصویر محصول هم تراز باشد */
/*.image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}*/
/* تنظیمات پایه */
/* ---------- GLOBAL ---------- */
/* ---------- 1. تنظیمات پایه (Global) ---------- */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.woff2') format('woff2'); /* مسیر فونت خود را چک کنید */
}

/* ---------- 1. تنظیمات پایه (Global) ---------- */
body {
    margin: 0;
    padding: 0;
    background: #121212;
    font-family: 'Vazir', Tahoma, sans-serif;
    direction: rtl;
}

.store-body {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    background: #312d2d;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ---------- 2. هدر (Header) ---------- */
.store-header {
    background: #000;
    border-bottom: 2px solid #D4AF37;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.store-logo {
    color: #D4AF37;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}

.store-cart-badge {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: #000;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ---------- 3. دکمه شناور سبد خرید (اصلاح شده) ---------- */
#floating-cart {
    position: fixed;
    bottom: 30px;
    left: 20px; /* فاصله ثابت از سمت چپ */
    width: 54px;
    height: 54px;
    background: #000;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 18px;
    z-index: 1500;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    transition: transform 0.2s; /* برای انیمیشن کلیک */
}

#cart-total-header, #cart-count-header {
    color: aliceblue;
}
/* برای اینکه در دسکتاپ (مانیتور بزرگ) دکمه خیلی به لبه نچسبد و کنار باکس مرکزی بماند */
@media (min-width: 460px) {
    #floating-cart {
        left: calc(50% - 210px); /* تنظیم موقعیت در کنار باکس 450 پیکسلی */
    }
}

#floating-cart:active {
    transform: scale(0.9);
}


.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #D4AF37;
    color: #000;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- 4. صفحه لندینگ (Landing Cards) ---------- */
.landing-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 20px;
    align-items: center;
}

.landing-card {
    width: 90%;
    background: #fff;
    border-radius: 24px;
    padding: 35px 20px;
    text-align: center;
    text-decoration: none;
    color: #111;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .landing-card:hover {
        transform: translateY(-8px);
        border-color: #D4AF37;
        box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
    }

.landing-icon {
    font-size: 50px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.landing-title {
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

/* ---------- 5. سبد خرید (Cart Drawer) ---------- */
#cart-drawer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 450px;
    height: 85vh;
    background: #fff;
    border-radius: 30px 30px 0 0;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 2500;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}

    #cart-drawer.open {
        transform: translate(-50%, 0);
    }

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

.cart-footer-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 800;
    font-size: 17px;
}

.checkout-btn {
    width: 100%;
    background: #000;
    color: #D4AF37;
    border: none;
    padding: 16px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* ---------- 6. مودال نهایی چک‌اوت (Checkout Modal) ---------- */
#checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 3000; /* بالاتر از دراور سبد خرید */
    backdrop-filter: blur(4px);
}
#success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 4000; /* بالاتر از دراور سبد خرید */
    backdrop-filter: blur(4px);
}
/* ---------- مودال موفقیت نهایی (Success Modal) ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 4000; /* بالاتر از همه لایه‌ها */
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-box {
    width: 85%;
    background: #fff;
    border-radius: 30px;
    padding: 30px 20px;
    text-align: center;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid #c8e6c9;
}

.success-box h4 {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.6;
}

.success-box p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* باکس کد سفارش */
.order-code-box {
    background: #f8f8f8;
    border: 2px dashed #D4AF37;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    direction: ltr; /* برای نمایش بهتر کد انگلیسی */
}

#order-id-display {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 900;
    color: #000;
    letter-spacing: 1px;
}

#copy-code-btn {
    background: #000;
    color: #D4AF37;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #copy-code-btn:active {
        transform: scale(0.9);
    }

/* دکمه فهمیدم */
#success-done-btn {
    width: 100%;
    background: #000;
    color: #D4AF37;
    border: none;
    padding: 16px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.modal-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #fff;
    border-radius: 35px 35px 0 0;
    padding: 30px 25px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease-out;
    box-sizing: border-box;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ---------- 7. فرم سفارش (Order Form) ---------- */
.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

#order-form input,
#order-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #eee;
    border-radius: 16px;
    font-family: 'Vazir';
    font-size: 14px;
    background: #fdfdfd;
    transition: 0.3s;
    box-sizing: border-box;
    margin-bottom: 5px;
}

    #order-form input:focus,
    #order-form textarea:focus {
        border-color: #D4AF37;
        background: #fff;
        outline: none;
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
    }

#order-form label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: bold;
    color: #555;
}

#order-form .payTypeLabel{
    width:5% !important;
}
/* ---------- 8. قیمت‌ها (Price Styles) ---------- */
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-left: 8px;
}

.special-price {
    color: #B8860B;
    font-weight: bold;
}

/* ---------- 9. کارت بانکی (Premium Card Style) ---------- */
.payment-card-item {
    background: linear-gradient(135deg, #ffffff, #f9f6f0);
    border: 1px solid #D4AF37;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    margin: 15px 0;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.1);
}

.payment-card-bank {
    font-size: 13px;
    color: #888;
    font-weight: bold;
    display: block;
    margin-bottom: 12px;
}

.payment-card-number-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0f0f0;
    padding: 12px 15px;
    border-radius: 14px;
    direction: ltr;
}

.payment-card-number {
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #222;
}

.copy-card-btn {
    background: #000;
    color: #D4AF37;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

    .copy-card-btn:active {
        transform: scale(0.95);
    }

.payment-card-owner {
    display: block;
    margin-top: 15px;
    font-size: 15px;
    font-weight: bold;
    color: #333;
    text-align: right;
}

/* ---------- 10. انتخاب نحوه پرداخت ---------- */
.pay-options-wrapper {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.pay-opt {
    flex: 1;
    background: #f5f5f5;
    padding: 12px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}

    .pay-opt.active {
        border-color: #D4AF37;
        background: #fff9eb;
    }

/* ---------- 11. دکمه‌های عمومی ---------- */
.btn-primary {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
}

.btn-success {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
}

.close-modal-btn {
    background: #f0f0f0;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ---------- اصلاح بخش آپلود فیش ---------- */
.upload-area {
    border: 2px dashed #D4AF37; /* کادر خط‌چین طلایی */
    background: #fff9eb; /* پس‌زمینه بسیار ملایم طلایی */
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

    .upload-area:hover {
        background: #fff4d6;
        border-color: #B8860B;
    }

.upload-icon {
    font-size: 40px;
    color: #007bff; /* رنگ آبی آیکون آپلود */
    margin-bottom: 5px;
}

.upload-text {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* اگر تصویری انتخاب شد، پیش‌نمایش آن داخل کادر باشد */
#preview-image {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 10px;
    display: none; /* در ابتدا مخفی است */
}
