/* Variables for Premium UI Color Theme */
:root {
    --primary-color: #4e73df;
    --primary-hover: #2e59d9;
    --discount-color: #ff4757;
    --text-dark: #2d3436;
    --text-muted: #858796;
    --bg-light: #f8f9fc;
    --white: #ffffff;
    --card-shadow: 0 10px 25px rgba(78, 115, 223, 0.05);
    --card-hover-shadow: 0 15px 35px rgba(78, 115, 223, 0.15);
}

/* Global Reset */
body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

/* ক্যাটাগরি হেডার এরিয়া */
.category-header {
    margin-bottom: 35px;
    border-bottom: 2px solid #eaecf4;
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title i {
    color: var(--primary-color);
    background: rgba(78, 115, 223, 0.1);
    padding: 10px;
    border-radius: 12px;
}

.product-count {
    font-size: 0.9rem;
    color: var(--primary-color);
    background: rgba(78, 115, 223, 0.08);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    border: 1px solid rgba(78, 115, 223, 0.2);
}

/* রেসপন্সিভ গ্রিড লেআউট */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

/* কার্ড লিঙ্ক রিসেট */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* মডার্ন প্রোডাক্ট কার্ড ডিজাইন */
.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 15px;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(78, 115, 223, 0.2);
}

/* স্টাইলিশ ডিসকাউন্ট ব্যাজ */
.product-badge-discount {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--discount-color), #ff6b81);
    color: var(--white);
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 10px;
    z-index: 2;
    box-shadow: 0 5px 10px rgba(255, 71, 87, 0.3);
}

/* উইশলিস্ট বাটন */
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.25rem;
    color: #ced6e0;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    background: var(--white);
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.wishlist-btn:hover {
    color: var(--discount-color);
    transform: scale(1.15);
}

/* ইমেজ রেন্ডারিং ও কন্টেইনার */
.product-img-wrapper {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafbfe;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-img-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

/* টাইটেল */
.product-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #2c3e50;
    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: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* রেটিং রো ও কার্ড বাটন */
.rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f3f9;
}

.rating-row span {
    font-size: 0.8rem;
    color: #ffa502;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.add-to-cart-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(78, 115, 223, 0.2);
}

.add-to-cart-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 15px rgba(78, 115, 223, 0.4);
}

/* শূন্য ক্যাটাগরি মেসেজ */
.no-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.no-products i {
    font-size: 4.5rem;
    color: #dcdde1;
    margin-bottom: 20px;
}

.no-products h3 {
    margin: 0 0 10px 0;
    color: #2f3640;
    font-size: 1.4rem;
}

.no-products p {
    color: var(--text-muted);
    margin: 0;
}