﻿
/*.store-products-page {
    padding-top: 10px;
}



.search-box {
    margin-bottom: 15px;
}



    .search-box input {
        width: 100%;
        padding: 12px;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        font-family: "Vazir";
        font-size: 14px;
    }



.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}



.product-card {
    background: white;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
}



.product-image {
    width: 100%;
    height: 120px;
    object-fit: scale-down;
    border-radius: 10px;
    margin-bottom: 8px;
}



.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}



.product-price {
    color: #16a34a;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}



.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.qty-box {
    display: flex;
    align-items: center;
    gap: 6px;
}



.qty-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    width: 26px;
    height: 26px;
}



.add-btn {
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
}



.load-more-container {
    text-align: center;
    margin-top: 20px;
}



.load-more-btn {
    background: #22c55e;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
}
.scroll-loader {
    text-align: center;
    padding: 15px;
    color: #64748b;
    font-size: 13px;
    display: none;
}
.product-card {
    cursor: pointer;
}

.product-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.add-btn {
    background: #22c55e;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
}
.qty-control {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

    .qty-control button {
        background: #fff;
        border: none;
        padding: 8px 15px;
        font-size: 18px;
        cursor: pointer;
        color: #0f172a;
        transition: 0.2s;
    }

        .qty-control button:hover {
            background: #e2e8f0;
        }

    .qty-control span {
        padding: 0 15px;
        font-weight: bold;
        min-width: 30px;
        text-align: center;
    }
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    border-radius: 15px;
    max-height: 90vh;
    overflow-y: auto;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

    .form-row input {
        flex: 1;
    }

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.pay-options {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.upload-box {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 15px;
}

.btn-block {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.order-code-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    border: 1px solid #e0e0e0;
    font-family: monospace;
    font-size: 1.2em;
}
.upload-area {
    border: 2px dashed #007bff;
    background: #f8fbff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

    .upload-area:hover {
        background: #eff6ff;
        border-color: #0056b3;
    }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.text-danger {
    color: red;
}*/

/* افکت لرزش برای خطای اعتبارسنجی */
/*@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.shake-effect {
    animation: shake 0.2s ease-in-out 0s 2;
    border: 1px solid red !important;
    border-radius: 12px;
}

.payment-cards-box {
    margin-top: 15px;
}

.payment-card-list {
    display: grid;
    gap: 12px;
}

.payment-card-item {
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
    border: 1px solid #d8e7ff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.payment-card-bank {
    font-weight: bold;
    color: #0d6efd;
    font-size: 15px;
    margin-bottom: 6px;
}

.payment-card-number {
    direction: ltr;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.payment-card-owner {
    font-size: 18px;
    font-weight: bold;
    color: #555;
}
.payment-card-number-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;*/ /* وسط‌چین افقی */
    /*gap: 10px;
    margin: 8px 0;
}

.payment-card-number {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    direction: ltr;*/ /* مهم برای کارت */
    /*text-align: center;
}

.copy-card-btn {
    background: #0d6efd;
    border: none;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

    .copy-card-btn:hover {
        background: #084298;
    }*/
.store-products-page {
    padding: 15px;
}

/* ---------- SEARCH ---------- */

.search-box {
    margin-bottom: 20px;
}

    .search-box input {
        width: 100%;
        border-radius: 15px;
        border: 1px solid #D4AF37;
        padding: 12px 15px;
        font-family: "Vazir";
        outline: none;
    }

/* ---------- GRID ---------- */

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ---------- PRODUCT CARD ---------- */

.product-card {
    background: #fff;
    border-radius: 20px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.image-wrapper {
    width: 100%;
    height: 140px;
    background: #f8f8f8;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.product-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-title {
    font-size: 12px;
    font-weight: 600;
    color: #222;
    height: 36px;
    overflow: hidden;
    line-height: 1.4;
}

.price-container {
    margin: 6px 0;
}

.special-price {
    color: #B8860B;
    font-weight: bold;
}

/* ---------- ADD BUTTON ---------- */

.add-btn {
    background: #000;
    color: #D4AF37;
    border: 1px solid #D4AF37;
    border-radius: 12px;
    padding: 8px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}
/*festival////////////////////////////////*/
.festival-box {
    position: relative;
    margin: 20px 16px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.festival-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.festival-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    color: white;
}

.festival-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 15px;
}

.festival-timer {
    display: flex;
    gap: 10px;
}

.timer-item {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    min-width: 55px;
}

    .timer-item span {
        font-size: 18px;
        font-weight: bold;
        display: block;
    }

    .timer-item small {
        font-size: 11px;
    }

/*festival////////////////////////////////*/


.plusButton {
    background: #157f4ec9;
    color: #ffffff;
    border: 1px solid #D4AF37;
    border-radius: 12px;
    padding: 8px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

.minuseButton {
    background: #7b1212ad;
    color: #ffffff;
    border: 1px solid #D4AF37;
    border-radius: 12px;
    padding: 8px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}