/* ==========================================
   HOMEPAGE & PRODUCT CARDS STYLING
   ========================================== */

.site-main-homepage {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* 1. Hero Main Banner */
.hero-banner-section {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #ffffff;
    background: rgba(0,0,0,0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

/* 2. Section Header Title & View All */
.home-product-section {
    margin-bottom: 50px;
    position: relative;
}

.section-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8c3f23;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: #111111;
    margin: 0;
}

.view-all-btn {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid #8c3f23;
    border-radius: 20px;
    color: #8c3f23;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background-color: #8c3f23;
    color: #ffffff;
}

/* 3. Product Card Styling (Image 1 replica) */
.product-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.product-card-image {
    position: relative;
    background-color: #ffffff;
    padding: 5px;
    text-align: center;
}

.product-card-image img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.card-top-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-action-btn {
    background: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #222222;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background 0.2s ease, color 0.2s ease;
}

.card-action-btn:hover {
    background-color: #8c3f23;
    color: #ffffff;
}

.product-card-details {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.product-title a {
    color: #111111;
    text-decoration: none;
}

.product-subtitle {
    font-size: 13px;
    color: #666666;
    margin: 0 0 8px 0;
}

.product-rating {
    color: #f39c12;
    font-size: 12px;
    margin-bottom: 8px;
}

.product-price {
    font-size: 16px;
    font-weight: 800;
    color: #111111;
}

/* Card Buttons (Add to cart & Buy now) */
.product-card-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 12px 12px 12px;
}

.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #8c3f23;
    color: #ffffff;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.btn-add-to-cart:hover {
    background-color: #70311a;
}

.btn-buy-now {
    display: block;
    text-align: center;
    background-color: #111111;
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.btn-buy-now:hover {
    background-color: #333333;
}

/* 4. Promo Banner Section (Image 2 Replica) */
.promo-banner-section {
    margin-bottom: 50px;
}

.promo-banner-card {
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.promo-image-wrapper img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.promo-content {
    padding: 30px 20px;
    max-width: 650px;
    margin: 0 auto;
}

.promo-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: #8c3f23;
    margin-bottom: 12px;
}

.promo-content p {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.promo-btn {
    display: inline-block;
    width: 100%;
    max-width: 450px;
    background-color: #8c3f23;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.2s ease;
}

.promo-btn:hover {
    background-color: #70311a;
}

/* Swiper Nav Arrows for Products */
.product-slider-swiper .swiper-button-next,
.product-slider-swiper .swiper-button-prev {
    color: #111111;
    background: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-slider-swiper .swiper-button-next::after,
.product-slider-swiper .swiper-button-prev::after {
    font-size: 14px;
    font-weight: bold;
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    .product-subtitle{
        display:none;
    }
    .product-title {
    font-size: 16px;          /* আপনার ডিজাইন অনুযায়ী ফন্ট সাইজ সামঞ্জস্য করতে পারেন */
    line-height: 1.3;         /* লাইনের উচ্চতা */
    height: 2.6em;            /* ২ লাইনের সমান উচ্চতা নির্ধারণ (line-height × 2) */
    
    display: -webkit-box;
    -webkit-line-clamp: 2;    /* সর্বোচ্চ ২ লাইন দেখাবে */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;  /* ২ লাইনের বেশি হলে শেষে ... দেখাবে */
    margin-bottom: 10px;      /* নিচের দিকে মার্জিন (প্রয়োজন অনুযায়ী) */
}

.product-title a {
    color: inherit;
    text-decoration: none;
    display: block;
}
    .promo-content h2 {
        font-size: 22px;
    }
    .product-card-image img {
        height: 100px;
    }
}




    