/* --- 1. FONTS & GLOBAL --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    overflow-x: hidden;
}

/* --- 2. HERO & SERVICES https://threesbd.com/wp-content/uploads/2025/01/BAS_25SS-scaled.jpg --- */
.hero-section {
    height: 730px;
    background-image: url('asset/bg/hero.png');
    background-position: center;
    background-size: cover;
}

.service-icon {
    background: black;
    color: white;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
}

/* --- 3. NAVBAR & MENU --- */
.logo-font {
    letter-spacing: 0px;
}

.brand-lists ul li {
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.brand-lists ul li:hover {
    padding-left: 8px;
    color: #555;
}

#overlay { transition: opacity 0.4s ease; }
.accordion-content { transition: max-height 0.3s ease-out; }
#mobileSearchContainer { transition: all 0.3s ease-in-out; }

/* --- 4. GENERIC SLIDER SYSTEM (For all sliders) --- */
/* --- SLIDER FIX --- */
#productSlider, #relatedSlider, #feedbackSlider, #brandSlider {
    display: flex !important;
    overflow-x: auto !important; /* মোবাইলে স্ক্রল সচল রাখবে */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* আইফোনে মোমেন্টাম স্ক্রল */
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: auto !important; /* ব্রাউজারকে সোয়াইপ করতে বাধা দেবে না */
}

#productSlider::-webkit-scrollbar, 
#relatedSlider::-webkit-scrollbar, 
#feedbackSlider::-webkit-scrollbar {
    display: none;
}

/* ড্র্যাগ করার সময় স্ন্যাপ বন্ধ করার জন্য (JS এর মাধ্যমে trigger হবে) */
.dragging {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
    cursor: grabbing !important;
}

/* --- 5. PRODUCT CARDS --- */
.product-card, .product-card-v2 {
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    cursor: grab;
}

.product-card:hover, .product-card-v2:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-5px);
}

.product-card img {
    pointer-events: none;
    -webkit-user-drag: none;
}

.product-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

/* --- 6. DOTS & BADGES --- */
.dot {
    width: 8px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active {
    background: #000;
    width: 25px;
    border-radius: 10px;
}

.product-card .absolute {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    letter-spacing: -0.2px;
}

/* --- 7. BUTTONS & FILTERS --- */
.filter-btn {
    border: 1px solid #000;
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 700;
    background: transparent;
    transition: all 0.3s ease;
    min-width: 80px;
}

.filter-btn:hover, .filter-btn.active {
    background: black;
    color: white;
}

/* --- 8. BRANDS & BANNER --- */
.brand-item img {
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.banner-text-shadow {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* --- 9. FOOTER --- */
footer a { transition: color 0.3s ease; }
footer li span { line-height: 1.6; }
.payment-box { filter: brightness(0) invert(1); }

/* --- 10. MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .product-card {
        padding: 8px !important;
    }
    
    .product-card h3 {
        line-height: 1.2;
        margin-bottom: 5px;
    }

    .container .relative h2, h2 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }

    .product-card .absolute {
        padding: 2px 8px;
        font-size: 9px;
    }

    .hero-section {
        height: 500px; /* মোবাইলে হিরো সেকশন একটু ছোট করা হলো */
    }
}

/* iOS-এ ছবির ওপর লং প্রেস করলে মেনু আসা বন্ধ করা */
.product-card {
    -webkit-touch-callout: none;
}




/* সাইডবার এবং কার্ট ড্রয়ারে টেক্সট সিলেক্ট হওয়া বন্ধ করা */
#mobileSidebar, #cartSidebar {
    user-select: none; /* স্ট্যান্ডার্ড */
    -webkit-user-select: none; /* Safari/iPhone */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

/* ক্লিক করলে যে হাইলাইট হয় তা বন্ধ করা (Mobile UX এর জন্য জরুরি) */
#mobileSidebar *, #cartSidebar *, .nav-link, button {
    -webkit-tap-highlight-color: transparent;
}

/* কার্ট এবং সাইডবারের টাইটেল ও মেনু আইটেমের জন্য */
.accordion-header, .product-card, h2 {
    cursor: pointer;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

.shake-error {
    animation: shake 0.3s ease-in-out;
    border-color: #ef4444 !important; /* Red-500 */
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}





/* future cart */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}




#pcSearchResults {
    width: 250px !important; /* রেজাল্ট বক্সের নির্দিষ্ট উইডথ */
    max-height: 400px;
    overflow-y: auto;
}

#mobileSearchResults {
    width: 100% !important; /* মোবাইলে পুরোটা জায়গা নিবে */
    max-height: 350px;
    overflow-y: auto;
}








/* Toast Notification Animations */
@keyframes toast-slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-animate {
    animation: toast-slide-in 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

#toast-container {
    pointer-events: none; /* যাতে পেজের অন্য ক্লিকে বাধা না দেয় */
}

#toast-container > div {
    pointer-events: auto; /* নোটিফিকেশনের ভেতরের বাটন যাতে কাজ করে */
}