/* Variables for Dark Neon Cyberpunk UI Theme */
:root {
    --primary-color: #00f3ff;
    --primary-hover: #60efff;
    --discount-color: #ff0055;
    --new-color: #00ff87;
    --text-dark: #f1f5f9;
    --text-muted: #94a3b8;
    --bg-dark: #080c14;
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.12);
    --border-color: rgba(0, 243, 255, 0.3);
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    --card-hover-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

/* Global Reset & Body Background */
body {
    font-family: 'Segoe UI', 'Hind Siliguri', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 243, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 127, 0.08) 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: 1px 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(--primary-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title i {
    color: var(--primary-color);
    background: rgba(0, 243, 255, 0.1);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.product-count {
    font-size: 0.85rem;
    color: #ff007f;
    background: rgba(255, 0, 127, 0.1);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    border: 1px solid rgba(255, 0, 127, 0.3);
    box-shadow: 0 0 8px rgba(255, 0, 127, 0.3);
}

/* রেসপন্সিভ গ্রিড লেআউট */
.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);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 12px;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #ff007f;
    box-shadow: 0 0 18px rgba(255, 0, 127, 0.5);
}

/* স্টাইলিশ ডিসকাউন্ট ব্যাজ */
.product-badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--discount-color);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 0 8px var(--discount-color);
}

/* উইশলিস্ট বাটন */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.1rem;
    color: #ff007f;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    background: rgba(15, 23, 42, 0.8);
    padding: 6px 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 0, 127, 0.3);
    box-shadow: 0 0 8px rgba(255, 0, 127, 0.2);
}

.wishlist-btn:hover {
    color: #ffffff;
    background: #ff007f;
    transform: scale(1.1);
    box-shadow: 0 0 12px #ff007f;
}

/* ইমেজ রেন্ডারিং ও কন্টেইনার */
.product-img-wrapper {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    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.9rem;
    font-weight: 600;
    margin: 5px 0 10px 0;
    color: #38bdf8;
    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: 1rem;
    font-weight: bold;
    color: var(--new-color);
    text-shadow: 0 0 6px rgba(0, 255, 135, 0.3);
}

.old-price {
    font-size: 0.8rem;
    color: #64748b;
    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: #ffcc00;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.add-to-cart-btn {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 243, 255, 0.1);
    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: #000;
    box-shadow: 0 0 12px var(--primary-color);
    transform: scale(1.05);
}

/* শূন্য ক্যাটাগরি মেসেজ */
.no-products {
    text-align: center;
    padding: 50px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.no-products i {
    font-size: 3.5rem;
    color: #64748b;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(100, 116, 139, 0.3);
}

.no-products h3 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.no-products p {
    color: var(--text-muted);
    margin: 0;
}

/* মোবাইল রেসপন্সিভ অ্যাডজাস্টমেন্ট */
@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;
    }
}