/* Variables for Modern Light UI Theme */
:root {
    --primary-color: #0284c7;       /* Vibrant cyan-blue */
    --primary-hover: #0369a1;       /* Darker blue on hover */
    --discount-color: #ef4444;      /* Red badge */
    --new-color: #16a34a;           /* Green price color */
    --text-dark: #0f172a;           /* Main dark text */
    --text-muted: #64748b;          /* Muted text */
    --title-color: #1e40af;         /* Deep royal blue for headings */
    --bg-light: #eafaf1;            /* Minty light background */
    --glass-bg: #ffffff;            /* Pure white cards */
    --glass-border: #e2e8f0;        /* Subtle border */
    --border-color: #38bdf8;        /* Cyan accent border */
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 8px 25px rgba(2, 132, 199, 0.15);
}

/* Global Reset & Body Background */
body {
    font-family: 'Segoe UI', 'Hind Siliguri', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(187, 247, 208, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(224, 242, 254, 0.8) 0%, transparent 40%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
}

/* ক্যাটাগরি হেডার এরিয়া */
.category-header {
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--title-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title i {
    color: var(--primary-color);
    background: #e0f2fe;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.product-count {
    font-size: 0.85rem;
    color: #be185d;
    background: #fce7f3;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    border: 1px solid #f472b6;
    box-shadow: 0 2px 6px rgba(244, 114, 182, 0.2);
}

/* রেসপন্সিভ গ্রিড লেআউট */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* কার্ড লিঙ্ক রিসেট */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* গ্লাসমোরফিক প্রোডাক্ট কার্ড ডিজাইন */
.product-card {
    background: var(--glass-bg);
    border-radius: 15px;
    padding: 12px;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #ec4899;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.2);
}

/* স্টাইলিশ ডিসকাউন্ট ব্যাজ */
.product-badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--discount-color);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* উইশলিস্ট বাটন */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.1rem;
    color: #ec4899;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 8px;
    border-radius: 50%;
    border: 1px solid #f472b6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.wishlist-btn:hover {
    color: #ffffff;
    background: #ec4899;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* ইমেজ রেন্ডারিং ও কন্টেইনার */
.product-img-wrapper {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--glass-border);
}

.product-img-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

/* টাইটেল */
.product-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 5px 0 10px 0;
    color: var(--title-color);
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* প্রাইস রো */
.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--new-color);
}

.old-price {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: line-through;
}

/* রেটিং রো ও কার্ড বাটন */
.rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--glass-border);
}

.rating-row span {
    font-size: 0.75rem;
    color: #d97706;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.add-to-cart-btn {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: #e0f2fe;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
    transform: scale(1.05);
}

/* শূন্য ক্যাটাগরি মেসেজ */
.no-products {
    text-align: center;
    padding: 50px 20px;
    background: var(--glass-bg);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    border: 2px solid var(--border-color);
}

.no-products i {
    font-size: 3.5rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.no-products h3 {
    margin: 0 0 10px 0;
    color: var(--title-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.no-products p {
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

/* মোবাইল রেসপন্সিভ অ্যাডজাস্টমেন্ট */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .product-img-wrapper {
        height: 130px;
    }
}