/* public/css/shop.css — استایل صفحه فروشگاه */

:root {
    --dark-navy: #0a1f44;
    --royal-blue: #1e3a8a;
    --luxury-gold: #c5a059;
    --light-gold: #e8c77e;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-muted: #64748b;
}

body {
    background-color: var(--bg-color);
    font-family: 'Vazirmatn', sans-serif;
    overflow-x: hidden;
}

/* 1. HERO BANNER */
.modern-hero {
    background: linear-gradient(120deg, var(--dark-navy) 0%, var(--royal-blue) 100%);
    border-radius: 24px;
    padding: 50px 40px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(10, 31, 68, 0.12);
    margin-top: 20px;
    margin-bottom: 45px;
}
.modern-hero::before {
    content: ''; position: absolute; top: -50%; left: -10%;
    width: 350px; height: 350px; background: rgba(197, 160, 89, 0.15);
    border-radius: 50%; filter: blur(60px);
}
.hero-title {
    font-size: 2.3rem; font-weight: 900; letter-spacing: -0.5px;
    margin-bottom: 15px; text-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.hero-title span { color: var(--light-gold); }

/* 2. SPECIAL PRODUCTS SLIDER */
.special-section {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px 25px;
    margin-bottom: 50px;
    box-shadow: 0 10px 35px rgba(10, 31, 68, 0.02);
    position: relative;
}
.special-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px; border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
}
.special-header h3 {
    font-weight: 900; color: var(--dark-navy); margin: 0;
    display: flex; align-items: center; gap: 8px; font-size: 1.5rem;
}
.special-header h3 i { color: #ef4444; }

.slider-nav-btns { display: flex; gap: 8px; }
.slider-nav-btn {
    background: #f1f5f9; border: none; width: 40px; height: 40px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--dark-navy); font-size: 0.9rem; cursor: pointer;
    transition: all 0.3s ease;
}
.slider-nav-btn:hover {
    background: var(--dark-navy); color: var(--light-gold);
    transform: translateY(-2px);
}

.slider-outer-container { position: relative; overflow: hidden; }
.product-slider {
    display: flex; gap: 20px; overflow-x: auto; padding: 10px 5px;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.product-slider::-webkit-scrollbar { display: none; }
.slider-item { flex: 0 0 calc(33.333% - 14px); scroll-snap-align: start; }

/* 3. CATEGORY FILTERS */
.filter-section {
    display: flex; flex-direction: column; align-items: center;
    margin-bottom: 45px;
}
.category-segmented-control {
    background: #ffffff;
    padding: 6px;
    border-radius: 50px;
    display: inline-flex;
    gap: 6px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.category-segmented-control::-webkit-scrollbar { display: none; }

.cat-pill {
    padding: 10px 24px;
    border-radius: 40px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex; align-items: center; gap: 8px;
}
.cat-pill:hover:not(.active) { background: #f8fafc; color: var(--dark-navy); }
.cat-pill.active {
    background: var(--dark-navy); color: var(--light-gold);
    box-shadow: 0 6px 15px rgba(10,31,68,0.12);
}

/* 4. PRODUCT CARDS */
.premium-card {
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 20px;
    height: 100%; display: flex; flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}
.premium-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(10, 31, 68, 0.06);
    border-color: rgba(197, 160, 89, 0.25);
}

.card-img-box {
    position: relative; height: 200px; padding: 15px;
    background: radial-gradient(circle, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px 20px 0 0; display: flex; align-items: center; justify-content: center;
}
.card-img-box img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    transition: transform 0.4s ease;
}
.premium-card:hover .card-img-box img { transform: scale(1.05); }

.badge-pro {
    position: absolute; top: 12px; right: 12px;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(5px);
    padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 800;
    color: var(--dark-navy); box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.badge-discount {
    position: absolute; top: 12px; left: 12px;
    background: #ef4444; color: white; padding: 4px 10px;
    border-radius: 20px; font-size: 0.75rem; font-weight: 800;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.card-info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.product-title {
    font-size: 1.05rem; font-weight: 800; color: var(--dark-navy);
    line-height: 1.5; margin-bottom: 12px; text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-title:hover { color: var(--luxury-gold); }

.price-box {
    background: #f8fafc; border-radius: 12px; padding: 10px;
    text-align: center; margin-top: auto; margin-bottom: 12px;
    border: 1px solid rgba(0,0,0,0.01);
}
.price-box.discounted { background: #fffdf5; border-color: rgba(197, 160, 89, 0.15); }
.old-price { text-decoration: line-through; color: #a0aec0; font-size: 0.8rem; margin-left: 6px; }
.current-price { font-size: 1.15rem; font-weight: 900; color: var(--dark-navy); }
.current-price.text-danger { color: #ef4444 !important; }

.btn-buy-pro {
    background: var(--dark-navy); color: white !important;
    text-decoration: none; border: none; border-radius: 12px;
    padding: 10px; font-weight: 700; font-size: 0.9rem;
    transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; gap: 8px;
}
.btn-buy-pro:hover {
    background: linear-gradient(135deg, var(--luxury-gold), var(--light-gold));
    color: var(--dark-navy) !important; box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}
.btn-buy-pro.disabled { pointer-events: none; opacity: 0.55; filter: grayscale(100%); }

/* 5. RESPONSIVE */
@media (max-width: 991px) {
    .slider-item { flex: 0 0 calc(50% - 10px); }
}

@media (max-width: 768px) {
    .modern-hero { padding: 35px 25px; border-radius: 20px; text-align: center; }
    .hero-title { font-size: 1.6rem; }
    .slider-item { flex: 0 0 calc(100% - 10px); }
    .special-header { padding-bottom: 10px; }
    .special-header h3 { font-size: 1.25rem; }
    .mobile-stacked-grid .col-product {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    .card-img-box { height: 180px; }
}
