/* --- 1. FONTS & GLOBAL RESETS --- */
@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;
}

/* --- 2. HEADER & NAVIGATION COMPONENTS --- */
.logo-font { letter-spacing: 0px; }
#overlay { transition: opacity 0.4s ease; }
.accordion-content { transition: max-height 0.3s ease-out; }
#mobileSearchContainer { transition: all 0.3s ease-in-out; }

.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; }

/* --- 3. PRODUCT DETAILS (Zoom & Gallery) --- */
#zoomArea {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    cursor: crosshair;
}

#zoomArea:hover #mainImage {
    transform: scale(2.2); /* জুমের মাত্রা */
}

#mainImage {
    transition: transform 0.2s ease-out;
    pointer-events: none;
    transform-origin: center center;
}

.thumb-img {
    width: 70px; height: 70px;
    border: 1px solid #eee;
    padding: 5px;
    cursor: pointer;
    object-fit: contain;
    flex-shrink: 0;
    transition: 0.3s;
}
.thumb-img.active {
    border: 2px solid black;
    transform: scale(1.05);
}

/* --- 4. PRODUCT OPTIONS (Buttons & Tabs) --- */
.size-btn {
    width: 45px; height: 45px;
    border: 1px solid #ddd;
    font-weight: 800;
    font-size: 13px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.size-btn:hover, .size-btn.selected {
    background: black;
    color: white;
    border-color: black;
}

.tab-link {
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}
.active-tab {
    color: black !important;
    border-bottom-color: black !important;
}
.tab-pane { animation: slideUp 0.4s ease; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 5. UNIVERSAL SLIDER SYSTEM (iPhone/Safari Optimized) --- */
/* --- iPhone & Safari Ultimate 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;
}

/* --- 6. UI COMPONENTS (Dots & Toast) --- */
.dot {
    width: 8px; height: 8px;
    background-color: #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
}
.dot.active {
    background-color: #000;
    width: 25px;
    border-radius: 10px;
}

#relatedDots {
    min-height: 10px;
    margin-top: 1rem;
}

/* Toast Notifications */
@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; }

/* --- 7. MODAL ANIMATIONS --- */
#imageModal.flex, #sizeChartModal.flex { animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- 8. MOBILE RESPONSIVE FIXES --- */
@media (max-width: 768px) {
    .product-card {
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
}



@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;
}