/* =========================================
   1. PRODUCT SECTION (FULL WIDTH)
   ========================================= */
section#products {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto;
    display: block !important;
    padding: 40px 0 !important;
    background-color: #fff;
    overflow: hidden;
}

section#products .content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px; /* স্ক্রিনের একদম কিনারে যাতে না ঠেকে যায় */
    padding-right: 20px;
}

@media (max-width: 768px) {
    section#products .content-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* =========================================
   2. SCROLL CONTAINER (LOGIC & GAP)
   ========================================= */
.product-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 10px 0;
    scroll-behavior: smooth;
}

.product-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.product-scroll-container .row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px; /* কার্ডের মাঝখানের গ্যাপ কমানো হয়েছে */
    margin: 0;
}

/* =========================================
   3. PRODUCT CARD DESIGN (REFERENCE STYLE)
   ========================================= */
.product-card-col {
    flex: 0 0 auto;
    width: 280px; /* ডেস্কটপ সাইজ */
    padding: 0;
}

@media (max-width: 768px) {
    .product-card-col {
        width: 180px; /* মোবাইল সাইজ */
    }
}

.product-inner {
    position: relative;
    background: transparent;
    transition: 0.3s;
    height: 100%;
    border: none !important;
    padding: 0 !important; /* মাঝখানের এক্সট্রা প্যাডিং কমানো */
}

/* ৩:৪ রেশিও থাম্বনেইল */
.un-product-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4; 
    background: #fcfcfc;
    border-radius: 4px; /* হালকা রাউন্ড */
}

.un-product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

/* হোভার ইমেজ ইফেক্ট */
.img-secondary {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-inner:hover .img-secondary {
    opacity: 1;
}

.product-inner:hover .img-primary {
    opacity: 0;
}

/* ডিসকাউন্ট ব্যাজ */
.deal-badge {
    position: absolute;
    top: 10px;
    left: 0;
    background: #ff0000;
    color: #fff;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    z-index: 5;
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.4s ease;
}

.product-inner:hover .deal-badge {
    opacity: 1;
    transform: translateX(0);
}

/* ৪. টাইটেল ও প্রাইস (বাম দিকে এলাইন) */
.un-product-details {
    text-align: left;
    padding-top: 10px;
}

.un-product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.2;
    white-space: normal; /* টাইটেল যাতে ভেঙে নিচে আসে */
}

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

.price-wrapper {
    font-size: 14px;
    color: #444;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 5px;
    font-size: 13px;
    font-weight: 400;
}

.premium-price, .current-price {
    font-weight: 700;
    color: #000;
}

/* =========================================
   5. SCROLL BUTTONS
   ========================================= */
.scroll-wrapper {
    position: relative;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    color: #333;
    z-index: 10;
    cursor: pointer;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.3s;
}

.scroll-btn:hover {
    background: #000;
    color: #fff;
}

.left-btn { left: 5px; }
.right-btn { right: 5px; }

@media (max-width: 768px) {
    .scroll-btn { display: none; } /* মোবাইলে বাটন হাইড করে টাচ স্ক্রল রাখা ভালো */
}
