/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Shabnam', 'Inter', sans-serif;
    direction: rtl;
    background: linear-gradient(145deg, #f8f0ff 0%, #ffe6f0 50%, #fff0f5 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== BOKEH EFFECT ===== */
.bokeh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.bokeh {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: floatBokeh 20s infinite alternate;
}
@keyframes floatBokeh {
    0% { transform: translate(0,0) scale(1); opacity:0.4; }
    100% { transform: translate(30px,-30px) scale(1.2); opacity:0.7; }
}

/* ===== FONTS ===== */
@font-face {
    font-family: 'Playfair Display';
    src: url('webfont/playfair-display-v40-latin-regular.woff2') format('woff2');
    font-weight: 400;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('webfont/playfair-display-v40-latin-700.woff2') format('woff2');
    font-weight: 700;
}
@font-face {
    font-family: 'Inter';
    src: url('webfont/inter-v20-latin-regular.woff2') format('woff2');
    font-weight: 400;
}
@font-face {
    font-family: 'Inter';
    src: url('webfont/inter-v20-latin-700.woff2') format('woff2');
    font-weight: 700;
}
@font-face {
    font-family: 'Vazir';
    src: url('webfont/Vazir-Medium-FD.woff2') format('woff2');
    font-weight: normal;
}
@font-face {
    font-family: 'Shabnam';
    src: url('webfont/Shabnam-FD.woff2') format('woff2');
    font-weight: normal;
}

h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', 'Vazir', serif;
}

/* ===== CONTAINER عریض ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ===== HEADER ===== */
.glass-header {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212,175,55,0.5);
    border-radius: 0 0 32px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

/* ===== لوگو ===== */
.logo-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: -60px;
    position: relative;
    z-index: 101;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none; /* جلوگیری از مسدود کردن کلیک روی هدر */
}
.main-logo {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.9);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    padding: 5px;
    pointer-events: auto; /* اگر لوگو خودش لینک دارد، این خط را فعال کنید */

}

/* ===== تیتر هدر ===== */
.glass-header .text-gold {
    font-size: 1.5rem;
    white-space: nowrap;
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 100px 20px 100px;
}
.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p {
    font-size: 1.3rem;
    color: #4a2e4a;
    max-width: 700px;
    margin: 20px auto;
}
.btn-gold {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: white;
    padding: 12px 32px;
    border-radius: 40px;
    display: inline-block;
    transition: 0.3s;
    text-decoration: none;
}
.btn-gold:hover {
    transform: scale(1.02);
}
.hero::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4AF37, #B8860B, #D4AF37, transparent);
    margin: 40px 0 20px;
    box-shadow: 0 1px 4px rgba(212, 175, 55, 0.3);
}

/* ===== PRODUCT GRID (دسکتاپ) ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin: 60px 0 80px;
    align-items: start;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(16px);
    border-radius: 32px;
    border: 1px solid rgba(212,175,55,0.6);
    overflow: hidden;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.glass-card:hover {
    transform: translateY(-8px);
    border-color: #D4AF37;
}
.product-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f9f4f9;
}
.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c1e2c;
}
.product-desc {
    font-size: 0.85rem;
    color: #4d3b4d;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #D4AF37;
}
.old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.9rem;
    margin-right: 10px;
}
.discount-badge {
    background: #ffb347;
    color: white;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.7rem;
    margin-right: 10px;
}
.add-to-cart {
    background: rgba(212,175,55,0.2);
    border: 1px solid #D4AF37;
    border-radius: 40px;
    padding: 10px;
    text-align: center;
    color: #B8860B;
    margin-top: 20px;
    transition: 0.3s;
    text-decoration: none;
}
.add-to-cart:hover {
    background: #D4AF37;
    color: white;
}

/* ===== FOOTER ===== */
.glass-footer {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(12px);
    text-align: center;
    padding: 30px;
    margin-top: 60px;
}

/* ===== RESPONSIVE (موبایل و تبلت) ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    .main-logo {
        width: 120px;
        height: 120px;
    }
    .logo-container {
        margin-top: 30px;
        margin-bottom: -40px;
    }
    .glass-header .text-gold {
        font-size: 1rem;
        white-space: normal;
        max-width: 180px;
        line-height: 1.3;
    }
    .glass-header .container {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .hero {
        padding-top: 60px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    /* دو ستون در موبایل با !important برای اطمینان */
    .products-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        margin: 30px 0 40px !important;
    }
    /* تنظیم کارت برای جا شدن در ستون‌های باریک */
    .glass-card {
        border-radius: 20px;
    }
.product-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f9f4f9;
}
    .product-info {
        padding: 12px;
    }
    .product-title {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    .product-desc {
        font-size: 0.65rem;
        -webkit-line-clamp: 2;
        margin: 5px 0;
    }
/* ===== قیمت‌ها و تخفیف ===== */
.price-wrapper {
    display: flex;
  gap: 4px 6px;
        flex-wrap: wrap;
    align-items: center;
    margin-top: 4px;
}

.price {
    font-size: 1rem;
    font-weight: bold;
    color: #D4AF37;
}

.old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.6rem;
}

.discount-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-radius: 12px;
    padding: 1px 6px;
    font-size: 0.55rem;
    font-weight: bold;
    display: inline-block;
    white-space: nowrap;
    min-width: auto;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(238, 90, 36, 0.3);
}
    .add-to-cart {
        padding: 6px;
        font-size: 0.7rem;
        margin-top: 10px;
    }
}

