body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
}

/* হেডার ও সার্চ বার */
header {
    background: linear-gradient(135deg, #ff5722, #ff784e);
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
header h1 {
    color: white;
    margin: 0 0 12px 0;
    font-size: 24px;
}
.search-box {
    width: 90%;
    max-width: 500px;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    outline: none;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ডাইনামিক ব্যানার ডিজাইন (ব্যাকগ্রাউন্ড ইমেজ ও ভাসমান টেক্সট) */
.banner-container {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}
.banner-slider {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ব্যানারের ওপর ডার্ক ওভারলে ও গ্লাস ইফেক্ট */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* লেখাগুলো নিচে নামিয়ে আনবে */
    text-align: center;
    padding-bottom: 25px;      /* নিচ থেকে কিছুটা গ্যাপ থাকবে */
    padding-left: 15px;
    padding-right: 15px;
}

.banner-title {
    color: #ffffff;
    font-size: 22px; /* একটু ছোট করে দিলাম যাতে দেখতে সুন্দর লাগে */
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.banner-subtitle {
    color: #ffccbc;
    font-size: 14px; /* একটু ছোট করে দিলাম যাতে টাইটেলের নিচে মানানসই লাগে */
    margin: 0;
    font-weight: 600;
    text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

/* ক্যাটাগরি ও অন্যান্য ডিজাইন অপরিবর্তিত রাখা হয়েছে */
.categories-container, .sub-categories-container, .container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}
.section-title {
    color: #212529;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: bold;
    border-left: 4px solid #ff5722;
    padding-left: 8px;
}
.categories-grid, .sub-categories-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
}
.categories-grid::-webkit-scrollbar, .sub-categories-grid::-webkit-scrollbar { display: none; }

.cat-card {
    background: white;
    border: 1px solid #e9ecef;
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #495057;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    min-width: 100px;
}
.cat-card.active, .cat-card:hover {
    background: #ff5722;
    color: white;
    border-color: #ff5722;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255,87,34,0.4);
}

.sub-cat-card {
    background: #ffffff;
    border: 1px solid #ffccbc;
    color: #ff5722;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    white-space: nowrap;
}
.sub-cat-card.active, .sub-cat-card:hover {
    background: #ff5722;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255,87,34,0.35);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #f1f3f5;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}
.product-img-box {
    width: 100%;
    height: 160px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f5;
}
.product-info {
    padding: 15px;
    text-align: left;
}
.product-info h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #343a40;
}
.price {
    color: #ff5722;
    font-weight: bold;
    font-size: 17px;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #fafbfc;
    border-top: 1px solid #eee;
}
.icon-btn {
    background: white;
    border: 1px solid #dee2e6;
    font-size: 16px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.whatsapp-icon { color: #25D366; border-color: #25D366; }
.whatsapp-icon:hover { background: #25D366; color: white; transform: scale(1.1); }
.phone-icon { color: #007bff; border-color: #007bff; }
.phone-icon:hover { background: #007bff; color: white; transform: scale(1.1); }
.order-btn {
    background: #ff5722;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(255,87,34,0.4);
}
.order-btn:hover {
    background: #e64a19;
    box-shadow: 0 6px 18px rgba(255,87,34,0.6);
    transform: translateY(-2px);
}
.no-product {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 16px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);


}

/* ক্যাটাগরি গ্রিড ও কার্ড স্টাইল */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 20px; /* কার্ডগুলোর মাঝের দূরত্ব বাড়িয়ে দেওয়া হলো */
    padding: 20px; /* চারপাশের জায়গা বাড়ানো হলো যাতে শ্যাডো কেটে না যায় */
}


/* শিমার বা লোডিং ইফেক্ট এনিমেশন */
@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.shimmer-card {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 104px;
    animation: shimmer 1.5s infinite linear;
    border-radius: 15px;
    height: 100px;
}




.cat-card {
    background: white;
    padding: 15px 10px;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    /* শ্যাডো হালকা ও সুন্দর করা হলো যাতে জট না লাগে */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}



.cat-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    border-radius: 50%;
    object-fit: cover;
}

.cat-card span {
    display: block;
    font-size: 12px; /* ফন্ট একটু ছোট করা হলো যাতে সুন্দরভাবে ফিট হয় */
    font-weight: 600;
    color: #333;
    white-space: normal; /* লেখা বড় হলে অটোমেটিক নিচের লাইনে চলে যাবে */
    line-height: 1.2; /* দুই লাইনের মাঝে হালকা গ্যাপ */
    margin-top: 5px;
}


.cat-card.active {
    border-color: #ff5722;
    background: #fff5f2;
    /* সিলেক্টেড কার্ডের গ্লোয়িং শ্যাডো ব্যালেন্স করা হলো */
    box-shadow: 0 10px 25px rgba(255, 87, 34, 0.25);
}

.cat-card:hover {
    transform: translateY(-5px);
    /* হোভার করলে শ্যাডো সুন্দর লাগবে */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}




/* সাব-ক্যাটাগরি কন্টেইনার ও সিঙ্গেল লাইন হরাইজন্টাল স্ক্রল ডিজাইন */
.sub-categories-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px 15px 20px;
}

.sub-categories-grid {
    display: flex;
    flex-direction: row; /* সব কার্ড সবসময় এক লাইনে পাশাপাশি থাকবে */
    flex-wrap: nowrap;   /* কোনোভাবেই নিচে ভাঙবে না, স্ক্রল হবে */
    gap: 12px;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: none;
}

.sub-categories-grid::-webkit-scrollbar {
    display: none;
}

.sub-card {
    background: white;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    width: 100px;
    min-width: 100px; /* কার্ড ছোট হয়ে যাওয়া রোধ করবে */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sub-card img {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
    border-radius: 50%;
    object-fit: cover;
}

.sub-card span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    white-space: normal; 
    line-height: 1.2;
    text-align: center;
}

.sub-card.active {
    border-color: #ff5722;
    background: #fff5f2;
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.25);
}

.sub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
