:root {
    --primary:#3bb77e;
    --secondary:#fca204;
    --border:#e5e7eb;
}
.section {padding:20px 0;}
.section-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
    position: relative;
    letter-spacing: 0.5px;
}

.section-title span {
    display: inline-block;
    padding: 0 20px;
    background: #fff;
    position: relative;
    z-index: 1;
}

.section-title::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #ff4d4d, transparent);
    transform: translateY(-50%);
    z-index: 0;
}

/* GRID */
.product-grid {
    display:grid;
    grid-template-columns: repeat(5, 1fr);
    gap:12px;
}

/* CARD */
.product-card {
    border:1px solid var(--border);
    border-radius:12px;
    overflow:hidden;
    background:#fff;
    transition:.3s;
    display:flex;
    flex-direction:column;
}
.product-card:hover {
    transform:translateY(-5px);
    box-shadow:0 6px 18px rgba(0,0,0,.08);
}

/* IMAGE */
.product-img {
    width: 100%;
    height: 220px;          /* তুমি চাইলে adjust করো */
    overflow: hidden;
    border-radius: 8px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* main magic */
    object-position: center;
    transition: 0.3s ease;
}

.product-img img:hover {
    transform: scale(1.05);
}

/* BODY */
.product-body {
    padding:10px;
    display:flex;
    flex-direction:column;
    flex-grow:1;
}

.product-title {
    font-size:13px;
    height:36px;
    overflow:hidden;
}

/* PRICE */
.price {color:var(--primary);font-weight:700;}
.old-price {text-decoration:line-through;font-size:12px;color:#999;}

/* BUTTON */
.product-actions{
    display:flex;
    gap:10px;
    margin-top:10px;
}

.product-actions button,
.product-actions a{
    flex:1;
    height:48px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    text-decoration:none;
    font-weight:600;
    transition:.3s ease;
}

/* Cart Button */
.btn-cart-custom{
    background:#fff;
    border:1.5px solid #e5e7eb;
    color:#111827;
}

.btn-cart-custom:hover{
    border-color:#2563eb;
    color:#2563eb;
    transform:translateY(-2px);
}

/* Buy Button */
.btn-buy-custom{
    background:linear-gradient(135deg,#2563eb,#4f46e5);
    color:#fff;
    border:none;
    box-shadow:0 8px 20px rgba(37,99,235,.25);
}

.btn-buy-custom:hover{
    color:#fff;
    transform:translateY(-2px);
    box-shadow:0 12px 25px rgba(37,99,235,.35);
}

/* SLIDER */
.slider img {
    height:250px;
    object-fit:cover;
}

/* Tablet */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ⭐ MOBILE → 2 ITEMS */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* very small mobile */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .container-flex {
        flex-wrap: wrap;
        gap: 1px;
    }
    .top-bar {
        font-size: 9px !important;
    }
}

/* HERO IMAGE */
.hero-img{
    height:350px;
    object-fit:cover;
    transition:.6s ease;
}

.hero-slider:hover .hero-img{
    transform:scale(1.03);
}

/* DARK OVERLAY */
.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.1));
}

/* HIGHLIGHT BOX (MAIN FEATURE) */
.highlight-box{
    position:absolute;
    left:40px;
    bottom:40px;
    z-index:2;
    padding:18px 22px;
    border-radius:14px;
    background:rgba(59, 183, 126, 0.18);
    backdrop-filter: blur(8px);
    border:1px solid rgba(255,255,255,0.25);
    box-shadow:0 8px 25px rgba(0,0,0,0.2);
    max-width:55%;
}

/* TEXT */
.highlight-box h2{
    font-size:26px;
    font-weight:700;
    color:#fff;
    margin-bottom:5px;
}

.highlight-box p{
    font-size:14px;
    color:#f1f1f1;
    margin-bottom:10px;
}

/* BUTTON */
.highlight-box .btn{
    border-radius:25px;
    font-weight:600;
    padding:6px 14px;
}

/* INDICATORS */
.hero-indicators button{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#fca204;
}

/* MOBILE RESPONSIVE */
@media(max-width:768px){
    .hero-img{
        height:200px;
    }
    .highlight-box {
        left: 3px;
        bottom: 1px;
        max-width: 52%;
        padding: 4px 5px;
    }

    .highlight-box h2{
        font-size:15px;
    }

    .highlight-box p{
        font-size:8px;
        margin-bottom:1px !important;
    }
}