﻿/* products page */
.store-products-page {
    padding: 16px;
}

/* جستجو */
.search-box input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 48px;
    border: 1px solid #D4AF37;
    background: #1a1a1a;
    color: #fff;
    font-family: 'Vazir';
    font-size: 14px;
    transition: 0.2s;
}

    .search-box input:focus {
        outline: none;
        box-shadow: 0 0 12px #D4AF3780;
    }

/* گرید محصولات */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

/* کارت محصول */
.product-card {
    background: #141414;
    border-radius: 28px;
    padding: 14px 12px 16px;
    border: 1px solid #D4AF3740;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .product-card:hover {
        transform: translateY(-4px);
        border-color: #D4AF37;
        box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
    }

.image-wrapper {
    background: #0a0a0a;
    border-radius: 24px;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
}

.product-image {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
}

.product-title {
    font-size: 13px;
    font-weight: 700;
    color: #eee;
    text-align: center;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
}

.price-container {
    text-align: center;
    margin: 5px 0;
}

.old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 11px;
    display: inline-block;
    margin-left: 8px;
}

.special-price {
    color: #D4AF37;
    font-weight: 800;
    font-size: 15px;
}

.post-free {
    color: #2ecc71;
    font-size: 11px;
    font-weight: bold;
}

/* دکمه‌های افزودن / کنترل تعداد */
.product-actions {
    margin-top: 8px;
}

.add-btn {
    background: linear-gradient(95deg, #D4AF37, #B8860B);
    border: none;
    border-radius: 40px;
    padding: 10px;
    width: 100%;
    font-weight: 800;
    color: #000;
    font-size: 13px;
    cursor: pointer;
    transition: 0.15s;
}

    .add-btn:active {
        transform: scale(0.96);
    }

.qty-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: #2a2a2a;
    border-radius: 60px;
    padding: 4px;
}

.plusButton, .minuseButton {
    background: #D4AF37;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    color: #000;
}

.qty-stepper span {
    color: #D4AF37;
    font-weight: bold;
    min-width: 28px;
    text-align: center;
}

/* باکس جشنواره */
.festival-box {
    margin: 20px 0;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.festival-banner {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.festival-overlay {
    background: linear-gradient(90deg, #000000aa, #00000066);
    padding: 20px;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.festival-title {
    font-size: 24px;
    font-weight: 800;
    color: #D4AF37;
    text-shadow: 0 2px 5px black;
}

.festival-timer {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.timer-item {
    background: #00000099;
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 6px 12px;
    text-align: center;
    color: #D4AF37;
    font-weight: bold;
}

    .timer-item span {
        font-size: 20px;
        display: block;
    }

.loader {
    text-align: center;
    padding: 16px;
    color: #D4AF37;
}
