/* =========================================================
   HOMEPAGE ONLY STYLES
   Extracted from the previous combined stylesheet.
   ========================================================= */

/*==============================
 HERO SECTION
==============================*/
.hero{
    padding: 40px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
}

.hero-box {
    width: 100%;
    background: linear-gradient(135deg, #f8fbff, #f2f7ff);
    border-radius: 30px;
    padding: 60px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.hero-left{
    width:48%;
    position:relative;
    z-index:2;
}

.offer{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 16px;
    background:#dbeafe;
    color:#2563eb;
    font-weight:600;
    font-size: 13px;
    border-radius:40px;
    margin-bottom:20px;
}

.hero-left h1{
    font-size:52px;
    line-height:1.15;
    font-weight:800;
    color: #0f172a;
    margin-bottom:20px;
}

.hero-left h1 span{
    color:#2563eb;
}

.hero-left p{
    font-size:15px;
    line-height:1.8;
    color:#64748b;
    max-width:460px;
    margin-bottom:30px;
}

.shop-btn{
    padding:14px 32px;
    border-radius:50px;
    background:linear-gradient(45deg, #2563eb, #4f46e5);
    color:#fff;
    font-size:15px;
    font-weight:700;
    display:inline-flex;
    align-items:center;
    gap:10px;
    box-shadow:0 10px 25px rgba(37,99,235,0.25);
    transition:.35s;
}

.shop-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37,99,235,0.35);
}

.hero-right{
    width:48%;
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:2;
}

.slider{
    width: 440px;
    height: 380px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 25px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0,0,0,0.06);
}

.slide{
    position:absolute;
    inset:0;
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    transform:scale(0.95);
    transition:opacity .6s ease, transform .6s ease;
}

.slide.active{
    opacity:1;
    transform:scale(1);
}

.slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badges */
.badge{
    position:absolute;
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 16px;
    background:#fff;
    border-radius:14px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    z-index:10;
    border: 1px solid #f1f5f9;
}

.badge i{
    width:36px;
    height:36px;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    background:linear-gradient(45deg,#2563eb,#4f46e5);
    color:#fff;
    font-size:14px;
}

.badge h4{
    font-size:13px;
    margin-bottom:2px;
    color: #0f172a;
}

.badge p{
    font-size:11px;
    color:#64748b;
}

.badge1{ top:20px; left:-20px; }
.badge2{ bottom:30px; right:-20px; }

.slider-dots{
    position:absolute;
    left:50%;
    bottom:15px;
    transform:translateX(-50%);
    display:flex;
    gap:8px;
    z-index: 15;
}

.dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#cbd5e1;
    cursor:pointer;
    transition:.35s;
}

.dot.active{
    width:22px;
    border-radius:20px;
    background:#2563eb;
}

/*==============================
 CATEGORY SECTION
==============================*/
.categories{
    padding:60px 5%;
    background:#fff;
}

.section-heading{
    text-align:center;
    margin-bottom:40px;
}

.section-heading h2{
    font-size:36px;
    font-weight:800;
    color:#0f172a;
}

.section-heading p{
    margin-top:8px;
    color:#64748b;
    font-size:15px;
}

.category-container{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:20px;
}

.category-card{
    background:#f8fafc;
    border-radius:20px;
    padding:25px 15px;
    text-align:center;
    border:1px solid #e2e8f0;
    cursor:pointer;
    transition:.35s;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
}

.category-card:hover{
    border-color:#2563eb;
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(37,99,235,.12);
}

.category-card i{
    font-size:38px;
    margin-bottom:12px;
}

.category-card h3{
    font-size:15px;
    font-weight:700;
    color:#0f172a;
}

.category-card span{
    display:block;
    margin-top:6px;
    color:#64748b;
    font-size:12px;
}

/* Category Colors */
.pink i{ color:#ec4899; }
.blue i{ color:#2563eb; }
.green i{ color:#10b981; }
.yellow i{ color:#f59e0b; }
.orange i{ color:#f97316; }
.purple i{ color:#7c3aed; }

/*==============================
 PRODUCTS SECTION
==============================*/
.products{
    padding:60px 5% 60px 5%;
    background:#f8fafc;
}

.title-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:35px;
}

.title-row h2{
    font-size:36px;
    font-weight:800;
}

.view-all{
    padding:10px 24px;
    border-radius:40px;
    background:linear-gradient(45deg,#2563eb,#4f46e5);
    color:#fff;
    font-weight:600;
    font-size:14px;
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:20px;
}

.product-card{
    position:relative;
    background:#fff;
    border-radius:22px;
    padding:20px;
    border:1px solid #e2e8f0;
    box-shadow:0 10px 30px rgba(0,0,0,.04);
    transition:.35s;
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(37,99,235,.12);
}

.sale{
    position:absolute;
    top:15px;
    left:15px;
    padding:4px 10px;
    border-radius:20px;
    color:#fff;
    font-size:11px;
    font-weight:700;
    z-index:2;
}

.sale.red{ background:#ef4444; }
.sale.blue{ background:#2563eb; }
.sale.orange{ background:#f97316; }
.sale.green{ background:#10b981; }
.sale.purple{ background:#7c3aed; }

.product-img{
    height:160px;
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:15px;
}

.product-img img{
    max-width:130px;
    max-height: 100%;
    object-fit:contain;
}

.product-card h3{
    font-size:15px;
    font-weight:700;
    margin-bottom:8px;
    text-align:center;
}

.rating{
    display:flex;
    justify-content:center;
    gap:4px;
    margin-bottom:10px;
    color:#f59e0b;
    font-size:12px;
}

.price{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    margin-bottom:15px;
}

.price span{
    font-size:18px;
    font-weight:800;
    color:#2563eb;
}

.price del{
    color:#94a3b8;
    font-size:13px;
}

.cart-btn{
    width:100%;
    height:42px;
    border-radius:30px;
    background:linear-gradient(45deg,#2563eb,#4f46e5);
    color:#fff;
    font-size:13px;
    font-weight:700;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
}

/*==============================*
 * RESPONSIVE BREAKPOINTS
 *==============================*/

@media (max-width: 1200px) {

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-container {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Tablet */
@media (max-width: 992px) {

    .hero-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 40px;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero-left p {
        margin: 0 auto 25px;
    }

    /* Navbar hide থাকবে */
    .navbar {
        display: none;
    }

    /* Search bar hide হবে না */
    .search-box {
        display: flex !important;
    }

    .slider {
        width: 100%;
        max-width: 380px;
        height: 320px;
    }

    .badge1 {
        top: 10px;
        left: 0;
    }

    .badge2 {
        bottom: 10px;
        right: 0;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Mobile / Small Tablet */
@media (max-width: 768px) {

    .product-grid,
    .category-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .hero-left h1 {
        font-size: 36px;
    }

    /* Search bar visible */
    .search-box {
        display: flex !important;
    }
}


/* Small Mobile */
@media (max-width: 480px) {

    .product-grid,
    .category-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .search-box {
        display: flex !important;
    }
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero {
    padding: 32px 0 18px;
    background: #ffffff;
}

.hero-box {
    width: 100%;
    min-height: 400px;
    padding: 45px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    border-radius: 24px;
}

.hero-left,
.hero-right {
    width: 50%;
    min-width: 0;
}

.hero-left h1 {
    font-size: clamp(38px, 4vw, 52px);
}

.slider {
    width: min(100%, 350px);
    height: 300px;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: contain;
    object-position: center;
    transform: scale(1.18);
    background: #ffffff;
}

/* =========================================================
   CATEGORY SECTION
   ========================================================= */

.categories {
    padding: 18px 0 65px;
}

.section-heading {
    margin-bottom: 24px;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    padding-left: 36px;
    padding-right: 36px;
}

.category-card {
    min-width: 0;
    padding: 20px 14px;
    border-radius: 16px;
}

.category-card i {
    font-size: 32px;
}

.category-card h3 {
    padding: 0 5px;
    font-size: 13px;
    line-height: 1.4;
}

.category-card span {
    font-size: 10px;
}

/* =========================================================
   FEATURED PRODUCTS SECTION
   ========================================================= */

.products {
    padding: 58px 0 65px;
}

.products .title-row,
.products .product-grid {
    padding-left: 24px;
    padding-right: 24px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

/* Product Card */

.product-card {
    position: relative;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    background: #ffffff;
}

/* Product Image */

.product-img {
    width: 100%;
    height: 230px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.product-img img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    object-fit: cover;
    object-position: center;
}

/* Product Category Hidden */

.product-category-name {
    display: none !important;
}

/* Product Name + Rating Same Line */

.product-title-rating {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
}

.product-title-rating h3 {
    min-width: 0;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
    font-size: 14px;
    line-height: 1.2;
}

.product-title-rating h3 a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-title-rating .rating {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}

/* Price */

.product-card .price {
    margin-left: 14px;
    margin-right: 14px;
}

/* Product Buttons */

.product-card-actions {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 7px;
    margin-left: 14px;
    margin-right: 14px;
    margin-bottom: 14px;
}

.details-btn,
.cart-btn {
    min-height: 38px;
    padding: 7px 6px;
    font-size: 10px;
}

/* =========================================================
   SERVICE SECTION
   ========================================================= */

.service-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 34px 0;
}

/* =========================================================
   TABLET VERSION
   ========================================================= */

@media (max-width: 992px) {

    .hero-box {
        flex-direction: column;
        text-align: center;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero-left p {
        margin-left: auto;
        margin-right: auto;
    }

    .category-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBILE VERSION
   ========================================================= */

@media (max-width: 700px) {

    .hero,
    .categories,
    .products,
    .service-strip {
        width: calc(100% - 16px);
    }

    /* Hero */

    .hero {
        padding-top: 18px;
        padding-bottom: 10px;
    }

    .hero-box {
        min-height: auto;
        padding: 32px 18px;
        gap: 28px;
        border-radius: 18px;
    }

    .hero-left h1 {
        font-size: 34px;
    }

    .slider {
        width: 100%;
        max-width: 340px;
        height: 280px;
    }

    .badge1 {
        top: 8px;
        left: 0;
    }

    .badge2 {
        right: 0;
        bottom: 8px;
    }

    /* Categories */

    .categories {
        padding-top: 10px;
        padding-bottom: 45px;
    }

    .section-heading {
        margin-bottom: 20px;
    }

    .category-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .category-card {
        padding: 15px 7px;
        border-radius: 14px;
    }

    .category-card i {
        font-size: 26px;
        margin-bottom: 7px;
    }

    .category-card h3 {
        padding: 0 2px;
        font-size: 11px;
    }

    .category-card span {
        font-size: 9px;
    }

    /* Products */

    .products {
        padding-top: 45px;
        padding-bottom: 50px;
    }

    .products .title-row,
    .products .product-grid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-card {
        border-radius: 15px;
    }

    .product-img {
        height: 170px;
    }

    .product-title-rating {
        min-height: 36px;
        padding: 8px;
        column-gap: 5px;
    }

    .product-title-rating h3 {
        font-size: 11px;
    }

    .product-title-rating .rating {
        gap: 1px;
        font-size: 7px;
    }

    .product-card .price {
        margin-left: 8px;
        margin-right: 8px;
    }

    .product-card-actions {
        grid-template-columns: 1fr;
        gap: 7px;
        margin-left: 8px;
        margin-right: 8px;
        margin-bottom: 10px;
    }

    .details-btn,
    .cart-btn {
        min-height: 36px;
        font-size: 10px;
    }

    /* Service */

    .service-strip {
        grid-template-columns: 1fr;
    }

    /* Footer */

    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* =========================================================
   SMALL PHONE VERSION
   ========================================================= */

@media (max-width: 420px) {

    .hero-left h1 {
        font-size: 30px;
    }

    .slider {
        height: 250px;
    }

    .category-container {
        gap: 7px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .category-card {
        padding: 13px 4px;
    }

    .category-card i {
        font-size: 23px;
    }

    .category-card h3 {
        font-size: 10px;
    }

    .category-card span {
        font-size: 8px;
    }

    .product-grid {
        gap: 8px;
    }

    .product-img {
        height: 145px;
    }

    .product-title-rating {
        padding: 7px 6px;
    }

    .product-title-rating h3 {
        font-size: 10px;
    }

    .product-title-rating .rating {
        font-size: 6px;
    }

    .price span {
        font-size: 14px;
    }

    .price del {
        font-size: 10px;
    }

    .details-btn,
    .cart-btn {
        min-height: 34px;
        padding: 6px 4px;
        font-size: 9px;
    }
}



/* =========================================================
   MOBILE RESPONSIVE HERO SECTION (EXACT CLASS FIX)
   ========================================================= */

@media (max-width: 768px) {
    /* পুরো হিরো কন্টেন্ট মোবাইল স্ক্রিনের মাঝখানে রাখার জন্য */
    .hero-left {
        text-align: center !important;
        padding: 10px !important;
    }

    /* "New Collection 2026" ব্যাজ */
    .hero-left .offer {
        font-size: 11px !important;
        padding: 4px 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
    }

    /* "Upgrade Your Tech Life" মূল টাইটেল */
    .hero-left h1 {
        font-size: 22px !important; /* টাইটেল আরো ছোট ও সুন্দর দেখাবে */
        line-height: 1.25 !important;
        margin-top: 12px !important;
        margin-bottom: 10px !important;
    }

    .hero-left h1 span {
        font-size: 22px !important;
    }

    /* প্যারাগ্রাফ ডেসক্রিপশন */
    .hero-left p {
        font-size: 12px !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
        padding: 0 5px !important;
    }

    /* "Shop Now" বাটন */
    .hero-left .shop-btn {
        font-size: 12px !important;
        padding: 8px 18px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
}

/* =========================================
   CATEGORY IMAGE AND FALLBACK ICON
========================================= */

.category-image {
    width: 92px;
    height: 92px;
    margin: 0 auto 12px;
    padding: 4px;
    overflow: hidden;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease;
}

.category-image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.category-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef2f7;
    color: currentColor;
    font-size: 34px;
}

.category-card:hover .category-image {
    transform: translateY(-3px) scale(1.04);
}

@media (max-width: 600px) {
    .category-image {
        width: 72px;
        height: 72px;
        margin-bottom: 9px;
    }

    .category-image-placeholder {
        font-size: 27px;
    }
}

/* =========================================================
   FEATURED PRODUCT CARD — PRODUCT INDEX MATCH
   Desktop and mobile overrides
========================================================= */

/* Keep all featured cards equal height */
.products .product-grid {
    align-items: stretch;
}

.products .product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-width: 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Category and product title */
.products .product-card > .product-category-name {
    margin-bottom: 2px !important;
    text-align: center !important;
}

.products .product-card > h3 {
    margin: 6px 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* Rating */
.products .product-card > div[aria-label*="out of 5 stars"] {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 2px !important;
    width: 100% !important;
    margin: 6px 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

.products .product-card > div[aria-label*="out of 5 stars"] i {
    color: #f59e0b !important;
}

.products .product-card > div[aria-label*="out of 5 stars"] span {
    margin-left: 2px !important;
    color: #6b7280 !important;
    font-size: 10px !important;
}

/* Price: the element immediately after rating */
.products .product-card > div[aria-label*="out of 5 stars"] + div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

.products .product-card > div[aria-label*="out of 5 stars"] + div > span {
    color: #2563eb !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.products .product-card > div[aria-label*="out of 5 stars"] + div > del {
    color: #9ca3af !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

/* Action area: the element immediately after price */
.products .product-card > div[aria-label*="out of 5 stars"] + div + div {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: auto !important;
    padding-top: 8px !important;
    box-sizing: border-box !important;
}

.products .product-card > div[aria-label*="out of 5 stars"] + div + div > a {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    height: 32px !important;
    padding: 5px 10px !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 50px !important;
    color: #2563eb !important;
    background: #eff6ff !important;
    box-sizing: border-box !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.products .product-card > div[aria-label*="out of 5 stars"] + div + div > form {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.products .product-card > div[aria-label*="out of 5 stars"] + div + div button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100% !important;
    height: 32px !important;
    min-width: 0 !important;
    padding: 5px 8px !important;
    border: 0 !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    background: #3b82f6 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.products .product-card > div[aria-label*="out of 5 stars"] + div + div button:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
}

/* =========================================================
   FEATURED PRODUCT CARD — MOBILE ONLY
========================================================= */

@media screen and (max-width: 768px) {
    .products .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .products .product-card {
        padding: 8px !important;
        border-radius: 12px !important;
    }

    .products .product-card .product-img {
        height: 105px !important;
        margin-bottom: 5px !important;
    }

    .products .product-card .product-img img {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 105px !important;
        object-fit: cover !important;
    }

    .products .product-card > .product-category-name {
        font-size: 8px !important;
    }

    .products .product-card > h3 {
        min-height: 28px !important;
        margin: 4px 0 2px !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    .products .product-card > div[aria-label*="out of 5 stars"] {
        justify-content: center !important;
        gap: 2px !important;
        margin: 4px 0 5px !important;
    }

    .products .product-card > div[aria-label*="out of 5 stars"] i {
        color: #f59e0b !important;
        font-size: 8px !important;
    }

    .products .product-card > div[aria-label*="out of 5 stars"] span {
        margin-left: 1px !important;
        font-size: 7px !important;
    }

    .products .product-card > div[aria-label*="out of 5 stars"] + div {
        gap: 3px !important;
        margin: 2px 0 7px !important;
    }

    .products .product-card > div[aria-label*="out of 5 stars"] + div > span {
        flex: 0 1 auto !important;
        font-size: 12px !important;
    }

    .products .product-card > div[aria-label*="out of 5 stars"] + div > del {
        flex: 0 1 auto !important;
        font-size: 7px !important;
    }

    /* Details above, Add To Cart below */
    .products .product-card > div[aria-label*="out of 5 stars"] + div + div {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-end !important;
        gap: 5px !important;
        padding: 0 !important;
    }

    .products .product-card > div[aria-label*="out of 5 stars"] + div + div > a,
    .products .product-card > div[aria-label*="out of 5 stars"] + div + div button {
        width: 100% !important;
        min-width: 0 !important;
        height: 28px !important;
        padding: 3px 4px !important;
        border-radius: 7px !important;
        font-size: 8px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        overflow: hidden !important;
    }

    .products .product-card > div[aria-label*="out of 5 stars"] + div + div > form {
        display: block !important;
        width: 100% !important;
    }

    .products .product-card > div[aria-label*="out of 5 stars"] + div + div i {
        display: inline-block !important;
        flex: 0 0 auto !important;
        font-size: 8px !important;
    }

    .products .product-card .sale {
        top: 7px !important;
        left: 6px !important;
        min-height: 21px !important;
        padding: 3px 6px !important;
        font-size: 7px !important;
    }
}

@media screen and (max-width: 390px) {
    .products .product-card {
        padding: 6px !important;
    }

    .products .product-card > div[aria-label*="out of 5 stars"] + div > span {
        font-size: 11px !important;
    }

    .products .product-card > div[aria-label*="out of 5 stars"] + div > del {
        font-size: 6px !important;
    }

    .products .product-card > div[aria-label*="out of 5 stars"] + div + div > a,
    .products .product-card > div[aria-label*="out of 5 stars"] + div + div button {
        height: 27px !important;
        padding: 3px 2px !important;
        font-size: 7px !important;
    }
}

/* Mobile version — Hero text section hide */
@media screen and (max-width: 768px) {
    .hero .hero-left {
        display: none !important;
    }

    /* Hero image/slider পুরো width নেবে */
    .hero .hero-right {
        width: 100% !important;
    }

    .hero .hero-box {
        padding: 15px 10px !important;
        gap: 0 !important;
    }
}

/* Mobile — Header এবং Hero image-এর মাঝে ফাঁকা */
@media screen and (max-width: 768px) {
    .hero {
        padding-top: 45px !important;
    }

    .hero .hero-box {
        margin-top: 0 !important;
    }
}

/* Mobile — Featured Products এবং View All এক লাইনে */
@media screen and (max-width: 768px) {
    .products .title-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .products .title-row > div {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .products .title-row h2 {
        margin: 0 !important;
        font-size: 19px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .products .title-row p {
        margin-top: 5px !important;
        font-size: 10px !important;
        white-space: nowrap !important;
    }

    .products .title-row .view-all {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 70px !important;
        height: 34px !important;
        padding: 5px 12px !important;
        border-radius: 30px !important;
        font-size: 10px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }
}
/* Homepage three-banner layout */
.home-banner-section{width:100%;padding:32px var(--section-x,5%) 64px}.home-banner-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:16px;height:420px}.home-banner-left{display:grid;grid-template-rows:1fr 1fr;gap:16px;min-width:0}.home-banner-card{display:block;overflow:hidden;border-radius:18px;background:#f3f6fb;border:1px solid #dce5f1;min-width:0;box-shadow:0 8px 28px rgba(15,23,42,.06)}.home-banner-card img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.home-banner-card:hover img{transform:scale(1.025)}.home-banner-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#94a3b8;text-transform:capitalize}.home-banner-empty i{font-size:34px}.home-banner-large{height:100%}.home-banner-small{height:100%}@media(max-width:800px){.home-banner-section{padding-top:18px;padding-bottom:42px}.home-banner-grid{grid-template-columns:1fr;height:auto}.home-banner-large{height:300px;grid-row:1}.home-banner-left{grid-row:2;grid-template-columns:1fr 1fr;grid-template-rows:none}.home-banner-small{height:155px}}@media(max-width:520px){.home-banner-grid{gap:10px}.home-banner-left{gap:10px}.home-banner-large{height:220px}.home-banner-small{height:115px}.home-banner-card{border-radius:11px}.home-banner-empty span{font-size:11px}.home-banner-empty i{font-size:24px}}

/* Service cards directly below the homepage banners */
.home-banner-section{padding-bottom:18px}.home-banner-services{width:calc(100% - 68px);max-width:1252px;margin:0 auto 34px;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.home-banner-services .service-item{margin:0}@media(max-width:900px){.home-banner-services{width:calc(100% - 44px);grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.home-banner-section{padding-bottom:12px}.home-banner-services{width:calc(100% - 24px);grid-template-columns:1fr;margin-bottom:24px;gap:10px}}

/* Final banner sizing and document-flow fix */
.home-banner-section {
    box-sizing: border-box;
    padding-top: 24px;
    padding-bottom: 14px;
    overflow: hidden;
}

.home-banner-grid {
    height: 380px;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
}

.home-banner-left {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.home-banner-large {
    grid-column: 1;
    grid-row: 1;
}

.home-banner-card {
    position: relative;
    height: 100%;
    min-height: 0;
}

.home-banner-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-banner-slider {
    isolation: isolate;
}

.home-banner-slides,
.home-banner-slide {
    position: absolute;
    inset: 0;
}

.home-banner-slide {
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.home-banner-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-banner-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    color: #2563eb;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.16);
    cursor: pointer;
    transform: translateY(-50%);
}

.home-banner-arrow:hover {
    color: #fff;
    background: #2563eb;
}

.home-banner-arrow-prev { left: 14px; }
.home-banner-arrow-next { right: 14px; }

.home-banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 7px;
    transform: translateX(-50%);
}

.home-banner-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.25);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.home-banner-dot.is-active {
    width: 28px;
    background: #2563eb;
}

.home-banner-services {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    clear: both;
    z-index: 1;
    margin-top: 0;
    margin-bottom: 28px;
}

.categories {
    position: relative !important;
    clear: both;
    margin-top: 0 !important;
    padding-top: 20px;
}

/* Home section "See more" buttons */
.home-see-more-wrap {
    display: flex;
    justify-content: flex-end;
    padding: 18px 36px 0;
}

.home-see-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid #159947;
    border-radius: 8px;
    background: #159947;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(21, 153, 71, 0.16);
    transition: background .2s ease, transform .2s ease;
}

.home-see-more:hover {
    background: #0f7a38;
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 800px) {
    .home-banner-grid {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .home-banner-left {
        grid-column: 1;
        grid-row: 2;
    }

    .home-banner-large {
        grid-column: 1;
        grid-row: 1;
        height: 280px;
    }

    .home-banner-small {
        height: 135px;
    }
}

@media (max-width: 520px) {
    .home-banner-section {
        padding-bottom: 4px;
    }

    .home-banner-grid {
        align-items: start;
    }

    .home-banner-left {
        height: auto;
        min-height: 0;
        align-self: start;
    }

    .home-banner-large {
        height: 225px;
    }

    .home-banner-small {
        height: 105px;
    }

    .home-banner-arrow {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .home-see-more-wrap {
        padding: 16px 12px 0;
    }
}

.category-card.category-is-hidden {
    display: none !important;
}

.home-see-more {
    border: 0;
    cursor: pointer;
}