﻿/* -------------------- RESET & BASE -------------------- */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 10% 20%, #1a1a1a, #0a0a0a);
    font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
}
.landing-card h5{
 display: none !important;
}

.payment-card-bank{
 color: aliceblue;
}

.payment-card-number{
 color: aliceblue;
}

.payment-card-owner{
 color: aliceblue;
}

/* فعال کردن حالت فلکس برای ظرف اصلی */
.pay-options {
    display: flex;
    flex-direction: column; /* چیدمان زیر هم */
}

/* جابه‌جایی: کارت به کارت (value 1) بیاید اول */
.pay-options label:has(input[value="1"]) {
    order: 1;
}

/* پرداخت آنلاین (value 2) بیاید بعد از آن */
.pay-options label:has(input[value="2"]) {
    order: 2;
}
.store-body {
    max-width: 450px;
    margin: 0 auto;
    background: #0f0f0f;
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 0;
}

/* -------------------- HEADER (طلایی مشکی) -------------------- */
.store-header {
    background: #000000cc;
    backdrop-filter: blur(12px);
    border-bottom: 2px solid #D4AF37;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.store-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.store-logo img {
    border-radius: 50%;
    border: 1px solid #D4AF37;
    transition: transform 0.2s ease;
}

    .store-logo img:hover {
        transform: scale(1.02);
    }

.store-cart {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

#cart-total-header, #cart-count-header {
    color: #1e1e1e;
    font-weight: 800;
}

/* -------------------- دکمه شناور سبد خرید -------------------- */
#floating-cart {
    position: fixed;
    bottom: 28px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: #000;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 22px;
    z-index: 1500;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

    #floating-cart:active {
        transform: scale(0.92);
    }

    #floating-cart span {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #D4AF37;
        color: #000;
        border-radius: 50%;
        width: 22px;
        height: 22px;
        font-size: 12px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 0 2px #000;
    }

@media (min-width: 460px) {
    #floating-cart {
        left: calc(50% - 210px);
    }
}

/* -------------------- دراور سبد خرید (drawer) -------------------- */
#cart-drawer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 450px;
    height: 80vh;
    background: #111111ee;
    backdrop-filter: blur(20px);
    border-radius: 32px 32px 0 0;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    flex-direction: column;
    z-index: 2500;
    box-shadow: 0 -10px 40px rgba(212, 175, 55, 0.2);
    border-top: 1px solid #D4AF37;
}

    #cart-drawer.open {
        transform: translate(-50%, 0);
    }

.cart-header {
    padding: 20px 24px;
    border-bottom: 1px solid #D4AF3740;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: #D4AF37;
    background: #00000080;
    border-radius: 32px 32px 0 0;
}

.close-cart {
    font-size: 26px;
    cursor: pointer;
    color: #fff;
    transition: 0.2s;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-footer {
    padding: 20px;
    background: #0a0a0a;
    border-top: 1px solid #D4AF3740;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    flex-wrap: wrap;
    gap: 12px;
}

.checkout-btn {
    background: linear-gradient(95deg, #D4AF37, #B8860B);
    border: none;
    padding: 12px 20px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(212,175,55,0.4);
}

    .checkout-btn:active {
        transform: scale(0.97);
    }

/* آیتم سبد خرید */
.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e1e1e;
    border-radius: 24px;
    padding: 12px;
    border: 1px solid #D4AF3740;
}

.cart-item-info {
    flex: 1;
    text-align: right;
}

.cart-item-name {
    font-weight: 700;
    color: #D4AF37;
    font-size: 14px;
}

.cart-item-price {
    color: #aaa;
    font-size: 12px;
}

.qty-stepper {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    border-radius: 40px;
    overflow: hidden;
}

    .qty-stepper button {
        background: transparent;
        border: none;
        color: #D4AF37;
        font-size: 18px;
        font-weight: bold;
        padding: 6px 14px;
        cursor: pointer;
        transition: 0.1s;
    }

        .qty-stepper button:active {
            background: #D4AF3720;
        }

.fa-trash {
    color: #ff6b6b;
    font-size: 18px;
    transition: 0.1s;
}

    .fa-trash:active {
        transform: scale(0.9);
    }

/* -------------------- لندینگ (landing) -------------------- */
.landing-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 50px 24px;
    align-items: center;
}

.landing-card {
    width: 100%;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 30px 16px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border: 1px solid #D4AF3766;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

    .landing-card:hover {
        transform: translateY(-6px);
        border-color: #D4AF37;
        box-shadow: 0 20px 35px rgba(212, 175, 55, 0.2);
        background: #1a1a1a;
    }

.landing-icon {
    font-size: 52px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.landing-title {
    font-size: 18px;
    font-weight: 800;
    color: #D4AF37;
}

/* -------------------- مودال چک‌اوت (شیشه‌ای) -------------------- */
#checkout-modal, #success-modal {
    display: none;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 3000;
    align-items: flex-end;
    justify-content: center;
}

.modal-content {
    background: #141414dd;
    backdrop-filter: blur(20px);
    width: 100%;
    border-radius: 36px 36px 0 0;
    padding: 28px 22px;
    max-height: 90vh;
    overflow-y: auto;
    border-top: 2px solid #D4AF37;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #D4AF37;
    font-size: 1.3rem;
    font-weight: 800;
}

#close-checkout-btn {
    font-size: 28px;
    cursor: pointer;
    color: #D4AF37;
}

/* فرم */
#order-form input, #order-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: #1e1e1e;
    border: 1px solid #D4AF3766;
    border-radius: 24px;
    color: #fff;
    font-family: 'Vazir';
    font-size: 14px;
    margin-bottom: 14px;
    transition: 0.2s;
}

    #order-form input:focus, #order-form textarea:focus {
        border-color: #D4AF37;
        outline: none;
        box-shadow: 0 0 10px #D4AF3740;
    }

.discount-container {
    background: #1e1e1e;
    border-radius: 24px;
    border: 1px dashed #D4AF37 !important;
}

#btn-show-discount {
    background: transparent;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    border-radius: 40px;
    padding: 8px 16px;
}

.total-section {
    background: #1e1e1e;
    padding: 16px;
    border-radius: 24px;
}

.pay-options input {
    width:5% !important;
    margin: 15px 0;
}

.pay-opt {
    background: #1e1e1e;
    padding: 12px 18px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 1px solid #D4AF3766;
}

    .pay-opt input {
        width: 18px;
        margin: 0;
    }

/* کارت بانکی */
.payment-card-item {
    background: linear-gradient(145deg, #1f1f1f, #151515);
    border-radius: 28px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid #D4AF3766;
}

.payment-card-number-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #00000066;
    padding: 12px;
    border-radius: 40px;
    margin: 12px 0;
}

.copy-card-btn {
    background: #D4AF37;
    color: #000;
    border: none;
    border-radius: 40px;
    padding: 6px 14px;
    font-weight: bold;
}

.upload-area {
    border: 2px dashed #D4AF37;
    background: #1e1e1e;
    border-radius: 28px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.btn-block {
    width: 100%;
    padding: 14px;
    border-radius: 40px;
    font-weight: bold;
    border: none;
    margin-top: 12px;
    background: #D4AF37;
    color: #000;
}

/* مودال موفقیت */
.success-box {
    background: #0c0c0c;
    border: 2px solid #D4AF37;
    text-align: center;
    border-radius: 48px;
}

.order-code-box {
    background: #1e1e1e;
    border-radius: 32px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}
