/* Global Overflow Prevention & Container Optimization */
body.elementor-page .elementor-section,
body .elementor-widget-container {
    overflow-x: hidden !important;
}

/* Elementor container width optimization for plugin */
body .elementor-widget-container .loto-products-widget,
.elementor-widget-container .loto-products-widget {
    max-width: none !important; /* ✅ Remove any Elementor width constraints */
    width: 100% !important;
}

/* Loto Products Widget Styles */
.loto-products-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 20px 0 50px 0; /* ✅ No horizontal padding on widget - let container handle it */
    color: #333;
    position: relative;
    overflow-x: hidden !important; /* ✅ Prevent horizontal scroll */
    overflow-y: visible !important; /* Allow vertical content */
    margin-left: auto !important; /* Theme override - center widget */
    margin-right: auto !important; /* Theme override - center widget */
    max-width: 100vw; /* ✅ Never exceed viewport width */
    width: 100%; /* Full width for centering */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Additional theme-independent overrides */
body .loto-products-widget {
    margin-left: auto !important;
    margin-right: auto !important;
}

.loto-products-widget * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header Pattern */
.loto-products-widget .header-pattern {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 5px;
}

/* ========================================
   HORIZONTAL TOP FILTER BAR - Clean Container Below Header
   ======================================== */
.loto-products-widget .color-filter-panel {
    position: relative; /* ✅ Normal flow, not sticky */
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto; /* ✅ Centered */
    /* ❌ NO background, border, or shadow - completely transparent */
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 20px 0;
    margin-bottom: 32px; /* ✅ Space before products */
    margin-top: 8px; /* ✅ Small space after header */
    z-index: 10;
    backdrop-filter: none;
    transition: none;
    box-sizing: border-box;
    overflow-x: hidden;
}

.loto-products-widget .color-filter-panel:hover {
    /* ❌ NO hover effect - completely invisible container */
    background: transparent;
    border: none;
    box-shadow: none;
    transform: none;
}

/* REMOVED: Old vertical panel styles */

/* Filter Tab - REMOVED (not needed for horizontal) */
.loto-products-widget .color-filter-panel .filter-tab {
    display: none;
}

/* Color Cards Container - Single wrapper for everything */
.loto-products-widget .color-filter-panel .color-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* ========================================
   COLLAPSIBLE SEARCH - SOLA Açılır (Tüm Ürünler'in yanında)
   ======================================== */
.loto-products-widget .filter-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    height: 56px;
    /* gap: 12px wrapper'da ayarlı - ekstra margin yok */
}

/* Collapsed State - Just Icon Button */
.loto-products-widget .filter-search.collapsed {
    width: 56px;
}

/* Expanded State - Full Search Bar, SOLA doğru genişler */
.loto-products-widget .filter-search.expanded {
    width: min(350px, 50vw);
    max-width: 350px;
}

/* Search Toggle Button (Magnifying Glass) - Ultra Modern - No Outer Shadow */
.loto-products-widget .search-toggle-btn {
    width: 56px;
    height: 56px;
    border: 2px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    /* 🎨 Modern gradient with brand color */
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(239, 246, 255, 1) 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    /* ❌ NO outer shadows - only inset */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1);
    position: relative;
    overflow: hidden;
}

.loto-products-widget .search-toggle-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loto-products-widget .search-toggle-btn:hover {
    /* 🎨 Elevated brand color hover - NO outer shadows */
    background: linear-gradient(135deg,
        rgba(239, 246, 255, 1) 0%,
        rgba(219, 234, 254, 1) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.loto-products-widget .search-toggle-btn:hover::before {
    opacity: 1;
}

.loto-products-widget .search-toggle-btn .search-icon {
    color: #3b82f6;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: none; /* ❌ No drop shadow */
}

.loto-products-widget .search-toggle-btn:hover .search-icon {
    color: #2563eb;
    transform: scale(1.2) rotate(-5deg);
    filter: none; /* ❌ No drop shadow */
}

/* Hide toggle button when expanded */
.loto-products-widget .filter-search.expanded .search-toggle-btn {
    display: none;
}

/* Show toggle button when collapsed */
.loto-products-widget .filter-search.collapsed .search-toggle-btn {
    display: flex;
}

/* Search Input Wrapper - SOLA Açılır */
.loto-products-widget .search-input-wrapper {
    position: absolute;
    right: 0;  /* Sağdan başla, sola doğru genişle */
    left: auto;
    top: 0;
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    /* 🎨 Modern glassmorphism background */
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(239, 246, 255, 0.98) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 0 14px 0 18px;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: scaleX(0);
    transform-origin: right center; /* Sağdan sola açılsın */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* ❌ NO outer shadows - only inset */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px) saturate(180%);
}

/* Show input when expanded */
.loto-products-widget .filter-search.expanded .search-input-wrapper {
    opacity: 1;
    visibility: visible;
    transform: scaleX(1);
}

/* Hide input when collapsed */
.loto-products-widget .filter-search.collapsed .search-input-wrapper {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Search Input Field */
.loto-products-widget .filter-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    padding: 0;
}

.loto-products-widget .filter-search-input::placeholder {
    color: #9ca3af;
}

/* Close Button - Ultra Modern */
.loto-products-widget .search-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    /* 🎨 Soft gradient background */
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.1) 0%,
        rgba(220, 38, 38, 0.1) 100%);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    /* ❌ NO outer shadows - only inset */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.loto-products-widget .search-close-btn:hover {
    /* 🎨 Vibrant red hover - NO outer shadows */
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.15) 0%,
        rgba(220, 38, 38, 0.15) 100%);
    transform: rotate(90deg) scale(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.loto-products-widget .search-close-btn svg {
    color: #ef4444;
    transition: all 0.3s ease;
    filter: none; /* ❌ No drop shadow */
}

.loto-products-widget .search-close-btn:hover svg {
    color: #dc2626;
    filter: none; /* ❌ No drop shadow */
}

/* All Products Button - Ultra Modern Premium Style - Navy Gray - No Outer Shadow */
.loto-products-widget .clear-filters {
    padding: 14px 32px;
    /* 🎨 Navy-grayish gradient */
    background: linear-gradient(135deg,
        #475569 0%,
        #334155 50%,
        #1e293b 100%);
    border: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    /* ❌ NO outer shadows - only insets */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-left: 72px;
    height: 56px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.loto-products-widget .clear-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    transition: left 0.5s ease;
}

.loto-products-widget .clear-filters:hover::before {
    left: 100%;
}

.loto-products-widget .clear-filters svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    filter: none; /* ❌ No drop shadow */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.loto-products-widget .clear-filters:hover {
    /* 🎨 Intense hover effect - darker navy gray - NO outer shadows */
    background: linear-gradient(135deg,
        #334155 0%,
        #1e293b 50%,
        #0f172a 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.loto-products-widget .clear-filters:hover svg {
    transform: scale(1.15) rotate(15deg);
    filter: none; /* ❌ No drop shadow */
}

.loto-products-widget .clear-filters:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* Color Cards Wrapper - Responsive Multi-line */
.loto-products-widget .color-filter-panel .color-cards-wrapper {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px; /* Tüm elementler arası boşluk */
    overflow-x: visible !important;
    overflow-y: visible !important;
    padding: 4px 20px 12px 20px; /* Eşit padding */
    align-items: center;
    justify-content: flex-start !important; /* Soldan başla */
    max-height: none !important;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
}

/* Custom Scrollbar - REMOVED (No longer needed with wrap) */

/* Filtered products - smooth animations */
.loto-products-widget .product-card.filtered-out {
    opacity: 0.3 !important;
    transform: scale(0.95) !important;
    filter: grayscale(50%) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.loto-products-widget .product-card.filtered-active {
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideIn {
    from {
        opacity: 0.5;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Elementor editörde her zaman gizli */
.elementor-editor-active .loto-products-widget .color-filter-panel,
body.elementor-editor-active .loto-products-widget .color-filter-panel {
    display: none !important;
}

/* Filter tab tamamen kaldırıldı */

/* OLD VERTICAL PANEL STYLES REMOVED - Using horizontal top bar layout now */

/* ========================================
   COLOR CARDS - Ultra Modern Pill Design
   ======================================== */
.loto-products-widget .color-card {
    position: relative;
    display: inline-flex !important;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    /* 🎨 Modern soft gradient */
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(249, 250, 251, 0.98) 100%);
    border: 2px solid rgba(0, 0, 0, 0.04);
    /* 🎨 Color accent top border with glow */
    border-top: 4px solid var(--filter-color, #e5e7eb);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    min-width: 145px;
    height: 56px;
    overflow: hidden;
    /* ❌ NO outer shadows - only inset */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.loto-products-widget .color-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--filter-color, #e5e7eb);
    filter: blur(8px);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.loto-products-widget .color-card:hover {
    transform: translateY(-5px) scale(1.02);
    /* ❌ NO outer shadows - only inset */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.06);
    border-top-width: 5px;
}

.loto-products-widget .color-card:hover::after {
    opacity: 0.7;
    filter: blur(12px);
}

.loto-products-widget .color-card.active {
    /* 🎨 Premium dark mode active state - EXTENDED & HIGHLIGHTED - NO GLOW */
    background: linear-gradient(135deg,
        #1e293b 0%,
        #0f172a 50%,
        #020617 100%);
    border-color: rgba(255, 255, 255, 0.15);
    border-top-color: var(--filter-color, #3b82f6);
    border-top-width: 6px; /* ✨ Thicker accent */
    /* ❌ NO outer shadows - only insets */
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.15),    /* Top highlight */
        inset 0 -2px 0 rgba(0, 0, 0, 0.5);          /* Bottom shadow */
    transform: translateY(-8px) scale(1.08); /* ✨ Bigger scale + more lift */
    min-width: 165px; /* ✨ Extended width */
    z-index: 10; /* ✨ Above others */
}

.loto-products-widget .color-card.active::after {
    opacity: 0; /* ❌ NO glow effect */
    filter: none;
    height: 6px;
}

.loto-products-widget .color-card.active .card-title {
    color: #ffffff !important;
    letter-spacing: 2px; /* ✨ More spacing */
    transform: translateY(-6px);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
    font-size: 14px; /* ✨ Slightly bigger */
}

.loto-products-widget .color-card.active .card-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    font-size: 11px; /* ✨ Slightly bigger */
}

/* Gradient Accent Bar - Now used for color glow effect */

/* Color Card Content - Product Card Style */
.loto-products-widget .color-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    gap: 0;
    flex: 1;
    position: relative;
    z-index: 2;
    height: 100%;
}

/* Card Info - Centered Vertical Layout */
.loto-products-widget .card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    width: 100%;
}

.loto-products-widget .card-title {
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    transform: translateY(0);
}

.loto-products-widget .color-card:hover .card-title {
    letter-spacing: 1.5px;
    color: #000000;
    transform: translateY(-6px);
}

.loto-products-widget .card-subtitle {
    color: rgba(0, 0, 0, 0.5);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    white-space: nowrap;
}

.loto-products-widget .color-card:hover .card-subtitle {
    color: rgba(0, 0, 0, 0.7);
    opacity: 1;
    transform: translateY(0);
}

/* Old color indicator (not used) */
.loto-products-widget .color-indicator {
    display: none;
}

/* Old clear-filters styles removed - using horizontal layout styles */

.loto-products-widget .pattern-bar {
    width: 22px;
    height: 4px;
    background-color: #d8d8d8;
}

/* Son 4 bar siyah */
.loto-products-widget .pattern-bar:nth-last-child(-n+4) {
    background-color: #2c2c2c;
}

/* Şirket Bilgisi */
.loto-products-widget .company-info {
    text-align: center;
    margin-bottom: 80px;
    font-size: 13px;
    letter-spacing: 2.5px;
    line-height: 1.8;
    color: #2c2c2c;
    font-weight: 300;
    text-transform: uppercase;
}

/* Ürün Grid Container - Ultra Responsive Grid */
.loto-products-widget .products-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* ✅ Fixed 5 columns - same size always */
    gap: 20px; /* ✅ Smaller gap for tighter fit */
    padding: 0 20px; /* ✅ Minimal padding */
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* ✅ Smooth fade animation */
    justify-content: center !important; /* ✅ Force center alignment */
    place-items: center; /* ✅ Center items within grid cells */
    overflow: visible !important;
    box-sizing: border-box;
}

/* Responsive adjustments - progressive minmax values */

/* Very large screens - 5 cards per row */
@media (min-width: 1800px) {
    /* ✅ Filter wrapper - search button inline, no extra padding */
    .loto-products-widget .color-filter-panel .color-cards-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .loto-products-widget .products-container {
        grid-template-columns: repeat(5, 1fr) !important; /* ✅ Fixed 5 columns */
        gap: 24px;
        padding: 0 35px;
        justify-content: center !important;
        place-items: center;
    }
}

/* Large screens - 5 cards per row */
@media (min-width: 1400px) and (max-width: 1799px) {
    /* ✅ Filter wrapper - search button inline, no extra padding */
    .loto-products-widget .color-filter-panel .color-cards-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .loto-products-widget .products-container {
        grid-template-columns: repeat(5, 1fr) !important; /* ✅ Fixed 5 columns */
        gap: 22px;
        padding: 0 30px;
        justify-content: center !important;
        place-items: center;
    }
}

/* Medium-large screens - 4 cards per row */
@media (min-width: 1100px) and (max-width: 1399px) {
    /* ✅ Filter wrapper - search button inline, no extra padding */
    .loto-products-widget .color-filter-panel .color-cards-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .loto-products-widget .products-container {
        grid-template-columns: repeat(4, 1fr) !important; /* ✅ Fixed 4 columns */
        gap: 22px;
        padding: 0 28px;
        justify-content: center !important;
        place-items: center;
    }
}

/* Medium screens - 3 cards per row */
@media (min-width: 900px) and (max-width: 1099px) {
    /* ✅ Filter wrapper - search button inline, no extra padding */
    .loto-products-widget .color-filter-panel .color-cards-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .loto-products-widget .products-container {
        grid-template-columns: repeat(3, 1fr) !important; /* ✅ Fixed 3 columns */
        gap: 20px;
        padding: 0 25px;
        justify-content: center !important;
        place-items: center;
    }
}

/* Desktop small-medium screens - 3 cards per row (above mobile) */
@media (min-width: 769px) and (max-width: 899px) {
    /* ✅ Filter wrapper - search button inline, no extra padding */
    .loto-products-widget .color-filter-panel .color-cards-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .loto-products-widget .products-container {
        grid-template-columns: repeat(3, 1fr) !important; /* ✅ Fixed 3 columns */
        gap: 18px;
        padding: 0 22px;
        justify-content: center !important;
        place-items: center;
    }
}

/* Desktop small screens - 2 cards per row */
@media (min-width: 600px) and (max-width: 768px) {
    /* ✅ Filter wrapper - NO extra padding (SAME AS MARBLE) */
    .loto-products-widget .color-filter-panel .color-cards-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }

    .loto-products-widget .products-container {
        grid-template-columns: repeat(2, 1fr) !important; /* ✅ 2 columns like marble */
        gap: 20px;
        padding: 0 15px; /* SAME AS MARBLE - consistent padding */
        width: 100%;
        display: grid !important;
        margin: 0 auto !important;
        justify-items: center !important;
        box-sizing: border-box;
    }
}

/* Small tablet screens - 2 cards per row */
@media (min-width: 480px) and (max-width: 599px) {
    /* ✅ Filter wrapper - consistent padding (SAME AS MARBLE) */
    .loto-products-widget .color-filter-panel .color-cards-wrapper {
        padding-left: 12px;
        padding-right: 12px;
    }

    .loto-products-widget .products-container {
        grid-template-columns: repeat(2, 1fr) !important; /* ✅ 2 columns for small tablets */
        gap: 16px;
        padding: 0 12px;
        display: grid !important;
        justify-content: center !important;
        place-items: center;
    }

    .loto-products-widget .product-card {
        max-width: 100% !important; /* ✅ Override desktop max-width */
    }
}

/* Mobile phones - 2 cards per row */
@media (max-width: 479px) {
    /* ✅ Filter wrapper - consistent padding (SAME AS MARBLE) */
    .loto-products-widget .color-filter-panel .color-cards-wrapper {
        padding-left: 12px;
        padding-right: 12px;
    }

    .loto-products-widget .products-container {
        grid-template-columns: repeat(2, 1fr) !important; /* ✅ 2 columns for mobile */
        gap: 12px;
        padding: 0 12px;
        display: grid !important;
        justify-content: center !important;
        place-items: center;
    }

    .loto-products-widget .product-card {
        max-width: 100% !important; /* ✅ Override desktop max-width */
    }
}

/* Scroll bar stili */
.loto-products-widget .products-container::-webkit-scrollbar {
    height: 8px;
}

.loto-products-widget .products-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.loto-products-widget .products-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.loto-products-widget .products-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Ürün Kartı - Perfect Grid Fit */
.loto-products-widget .product-card {
    position: relative;
    cursor: pointer;
    width: 100%; /* ✅ Fill grid cell */
    max-width: 280px; /* ✅ NEVER GROW LARGER - compact size for 5 column layout */
    margin: 0 auto; /* ✅ Center card within grid cell */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    order: 0;
    transform-origin: center center;
    box-sizing: border-box; /* ✅ Include borders in width */
}

/* Product card hover state for better UX */
.loto-products-widget .product-card:hover {
    transform: translateY(-3px);
}

/* Default: show all products */
.loto-products-widget .product-card {
    display: block;
}

/* Dim products when search doesn't match */
.loto-products-widget .product-card.search-hidden {
    opacity: 0.3 !important;
    transform: scale(0.95) !important;
    filter: grayscale(50%) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Filtrelenmeyen kartlar alta gider */
.loto-products-widget .product-card.filtered-out {
    opacity: 0.3;
    transform: scale(0.95);
    order: 2;
}

/* Seçilen renkteki kartlar */
.loto-products-widget .product-card.filtered-active {
    order: -1;
    transform: scale(1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Filtrelenmiş ürünler için hover efekti */
.loto-products-widget .product-card.filtered-active:hover {
    transform: scale(1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Mermer Görsel Container - Fluid Responsive */
.loto-products-widget .loto-container {
    position: relative;
    width: 100%; /* ✅ Fluid width matching parent card */
    aspect-ratio: 0.7; /* ✅ Maintain 280:400 ratio (7:10) */
    margin-bottom: 40px;
    margin-left: 0; /* ✅ No auto margin - full width */
    margin-right: 0;
    border-radius: 10px; /* 12 × 0.8 ≈ 10 */
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* 10 × 0.8 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mermer Görsel */
.loto-products-widget .loto-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* OPTIMIZED: Lazy loading placeholder */
.loto-products-widget .loto-lazy {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: lotoShimmer 1.5s linear infinite;
}

.loto-products-widget .loto-loaded {
    animation: lotoFadeIn 0.4s ease-in;
}

@keyframes lotoShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes lotoFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loto-products-widget .product-card:hover .loto-image {
    transform: scale(1.05);
}

/* Ürün Kod Badge - %20 Küçültülmüş */
.loto-products-widget .product-code-badge {
    position: absolute;
    top: 12px; /* 15 × 0.8 */
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px); /* 10 × 0.8 */
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 11px; /* 8 × 0.8, 14 × 0.8 */
    border-radius: 5px; /* 6 × 0.8 */
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.15), /* 4 × 0.8 */
        0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    font-size: 9px; /* 11 × 0.8 */
    font-weight: 500;
    letter-spacing: 1.2px; /* 1.5 × 0.8 */
    text-transform: uppercase;
    color: #1a1a1a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.loto-products-widget .product-card:hover .product-code-badge {
    transform: translateY(-2px);
    box-shadow:
        0 5px 13px rgba(0, 0, 0, 0.2), /* 6 × 0.8 */
        0 2px 6px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Ürün İsim Alanı - Fluid Responsive */
.loto-products-widget .product-name-area {
    position: relative;
    width: 100%; /* ✅ Fluid width - card genişliğine uyar */
    max-width: 100%; /* ✅ Never overflow parent */
    margin: 0 auto;
    margin-top: -40px; /* -50 × 0.8 */
    z-index: 10;
    box-sizing: border-box; /* ✅ Include padding in width */
}

.loto-products-widget .product-name-bg {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    padding: 19px 24px 16px; /* 24 × 0.8, 30 × 0.8, 20 × 0.8 */
    box-shadow:
        0 -4px 16px rgba(0, 0, 0, 0.05), /* -5 × 0.8 */
        0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 6px; /* 8 × 0.8 */
    border: 2px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.loto-products-widget .product-card:hover .product-name-bg {
    transform: translateY(-4px); /* -5 × 0.8 */
    box-shadow:
        0 -8px 24px rgba(0, 0, 0, 0.1), /* -10 × 0.8 */
        0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Ürün İsmi - %20 Küçültülmüş */
.loto-products-widget .product-name {
    color: #1a1a1a;
    font-size: 13px; /* 16 × 0.8 */
    letter-spacing: 2.4px; /* 3 × 0.8 */
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.loto-products-widget .product-card:hover .product-name {
    letter-spacing: 3.2px; /* 4 × 0.8 */
}

/* Alt Accent Çizgisi - %20 Küçültülmüş */
.loto-products-widget .product-accent {
    height: 2px;
    width: 0;
    margin: 10px auto 0; /* 12 × 0.8 */
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
}

.loto-products-widget .product-card:hover .product-accent {
    width: 64px; /* 80 × 0.8 */
}

/* Removed old divider and form-icons styles - no longer used in new design */

/* Image display optimization */
.loto-products-widget .loto-image {
    background-repeat: no-repeat;
    object-fit: cover;
    background-size: cover;
}

/* Pagination Styles - Önceki/Sonraki Butonları */
.loto-products-widget .loto-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    z-index: 50;
}

.loto-products-widget .loto-pagination-top {
    margin-top: 0;
    margin-bottom: 40px;
}

.loto-products-widget .loto-pagination-bottom {
    margin-top: 50px;
    margin-bottom: 0;
}

/* Önceki/Sonraki Butonları */
.loto-products-widget .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    /* Mobile touch support */
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    touch-action: manipulation;
    pointer-events: auto !important;
    position: relative;
    z-index: 100;
}

.loto-products-widget .page-btn:hover:not(:disabled) {
    color: #000;
    border-color: #333;
    background-color: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.loto-products-widget .page-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.loto-products-widget .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.loto-products-widget .page-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Sayfa Bilgisi */
.loto-products-widget .page-info {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    white-space: nowrap;
}

.loto-products-widget .page-info .current-page {
    font-weight: 600;
    color: #333;
}

/* OLD RESPONSIVE RULES REMOVED - Using new fluid grid system above (lines 498-567) */
/* These hard-coded rules were overriding the auto-fit minmax grid */

/* ================================================
   📱 MOBILE CONTROLS - BASE (Hidden by default, shown only on mobile)
   ================================================ */
.loto-products-widget .mobile-controls-wrapper {
    display: none;  /* Hidden by default - only shown on mobile with media query */
}

.loto-products-widget .mobile-filter-dropdown {
    display: none;  /* Hidden by default - jQuery slideDown will show it */
}

.loto-products-widget .mobile-search-bar {
    display: none;  /* Hidden by default - jQuery slideDown will show it */
}

/* Mobile Filter Modal - Drawer Style with Cinematic Animations */
.mobile-filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 999999;
    display: none;
    pointer-events: none;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-filter-modal.active {
    display: block;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    animation: overlayFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes overlayFadeIn {
    from {
        background: rgba(0, 0, 0, 0);
    }
    to {
        background: rgba(0, 0, 0, 0.6);
    }
}

.mobile-filter-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    width: 85%;
    max-width: 320px;
    height: auto; /* İçeriğe göre yükseklik */
    max-height: 85vh; /* Maksimum ekranın %85'i */
    padding: 16px; /* 20px → 16px (butonla uyumlu) */
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    border-radius: 0 24px 24px 0; /* 36px → 24px daha kompakt */
    transform: translateX(-100%) scale(0.95);
    opacity: 0;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: fixed;
    top: 50%; /* Ortalanmış */
    left: 0;
    transform: translateX(-100%) translateY(-50%) scale(0.95); /* Dikey ortalama ekle */
    transform-origin: left center;
}

.mobile-filter-modal.active .mobile-filter-content {
    transform: translateX(0) translateY(-50%) scale(1); /* Dikey ortalama koru */
    opacity: 1;
    animation: drawerSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes drawerSlideIn {
    0% {
        transform: translateX(-100%) translateY(-50%) scale(0.95);
        opacity: 0;
    }
    60% {
        transform: translateX(2%) translateY(-50%) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translateX(0) translateY(-50%) scale(1);
        opacity: 1;
    }
}

/* Closing animation */
.mobile-filter-modal.closing .mobile-filter-content {
    animation: drawerSlideOut 0.35s cubic-bezier(0.4, 0, 0.6, 1);
    transform: translateX(-100%) translateY(-50%) scale(0.95);
    opacity: 0;
}

@keyframes drawerSlideOut {
    0% {
        transform: translateX(0) translateY(-50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-100%) translateY(-50%) scale(0.95);
        opacity: 0;
    }
}

.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px; /* 24px → 16px daha kompakt */
    padding-bottom: 12px; /* 16px → 12px daha kompakt */
    border-bottom: 2px solid #E5E7EB;
}

.mobile-filter-title {
    font-size: 14px; /* Filtre butonuyla aynı boyut */
    font-weight: 600; /* Filtre butonuyla aynı ağırlık */
    color: #1F2937;
    letter-spacing: -0.02em;
}

.mobile-filter-close {
    background: rgba(31, 41, 55, 0.08);
    border: none;
    width: 32px; /* 36px → 32px daha kompakt */
    height: 32px; /* 36px → 32px daha kompakt */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px; /* 22px → 20px daha kompakt */
    color: #4B5563;
    transition: all 0.2s ease;
}

.mobile-filter-close:active {
    background: rgba(31, 41, 55, 0.15);
    transform: scale(0.95);
}

/* Smooth scrollbar for drawer */
.mobile-filter-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 41, 55, 0.2) transparent;
}

.mobile-filter-content::-webkit-scrollbar {
    width: 6px;
}

.mobile-filter-content::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-filter-content::-webkit-scrollbar-thumb {
    background: rgba(31, 41, 55, 0.2);
    border-radius: 3px;
}

.mobile-filter-content::-webkit-scrollbar-thumb:hover {
    background: rgba(31, 41, 55, 0.3);
}

.mobile-filter-colors {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
}

/* Mobile drawer: Make color cards slightly smaller and cleaner with stagger animation */
.mobile-filter-modal .color-card {
    min-height: 54px;
    max-height: 70px;
    opacity: 0;
    transform: translateX(-20px);
    animation: cardSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    border-radius: 12px !important; /* 14px → 12px (buton 8px, biraz daha yuvarlak) */
}

.mobile-filter-modal .color-card-content {
    border-radius: 12px !important; /* İçerik köşeleri de uyumlu */
}

/* Mobil drawer'da yazı boyutları daha okunabilir */
.mobile-filter-modal .card-title {
    font-size: 12px !important; /* 10px → 12px */
    font-weight: 600 !important; /* 500 → 600 (butonla uyumlu) */
}

.mobile-filter-modal .card-subtitle {
    font-size: 10px !important; /* 8px → 10px */
}

.mobile-filter-modal .color-card.active .color-card-content {
    border-radius: 12px !important; /* Aktif kartlar uyumlu */
}

.mobile-filter-modal .color-card:hover::after {
    border-radius: 12px !important; /* Hover shadow köşeleri uyumlu */
}

.mobile-filter-modal .color-card-content::before {
    border-radius: 12px !important; /* Gradient overlay köşeleri uyumlu */
}

/* Stagger animation for each card */
.mobile-filter-modal.active .color-card:nth-child(1) { animation-delay: 0.1s; }
.mobile-filter-modal.active .color-card:nth-child(2) { animation-delay: 0.15s; }
.mobile-filter-modal.active .color-card:nth-child(3) { animation-delay: 0.2s; }
.mobile-filter-modal.active .color-card:nth-child(4) { animation-delay: 0.25s; }
.mobile-filter-modal.active .color-card:nth-child(5) { animation-delay: 0.3s; }
.mobile-filter-modal.active .color-card:nth-child(6) { animation-delay: 0.35s; }
.mobile-filter-modal.active .color-card:nth-child(7) { animation-delay: 0.4s; }
.mobile-filter-modal.active .color-card:nth-child(8) { animation-delay: 0.45s; }
.mobile-filter-modal.active .color-card:nth-child(9) { animation-delay: 0.5s; }
.mobile-filter-modal.active .color-card:nth-child(10) { animation-delay: 0.55s; }

@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile "Tüm Ürünler" card styling */
.mobile-all-products-card {
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    margin-bottom: 8px;
    border-radius: 12px !important; /* Uyumlu köşeler */
}

.mobile-all-products-card .color-card-content {
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%) !important;
    border: 2px solid #4B5563 !important;
    border-radius: 12px !important; /* İçerik de uyumlu */
}

.mobile-all-products-card .card-title {
    color: white !important;
    font-weight: 600;
}

.mobile-all-products-card .card-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.mobile-all-products-card:hover .color-card-content {
    background: linear-gradient(135deg, #374151 0%, #4B5563 100%) !important;
}

.mobile-all-products-card.active .color-card-content {
    background: linear-gradient(135deg, #374151 0%, #4B5563 100%) !important;
    border-color: #6B7280 !important;
}

/* Mobile Search Modal - Cinematic Center Popup */
.mobile-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 999999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
    transition: background 0.3s ease;
}

.mobile-search-modal.active {
    display: flex;
    background: rgba(0, 0, 0, 0.7);
    animation: overlayFadeIn 0.3s ease;
}

.mobile-search-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    width: calc(100% - 32px);
    max-width: 500px;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-search-modal.active .mobile-search-content {
    transform: scale(1) translateY(0);
    opacity: 1;
    animation: searchPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes searchPopIn {
    0% {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    60% {
        transform: scale(1.05) translateY(5px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Closing animation for search */
.mobile-search-modal.closing .mobile-search-content {
    animation: searchPopOut 0.3s cubic-bezier(0.4, 0, 0.6, 1);
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
}

@keyframes searchPopOut {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
}

.mobile-search-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
}

.mobile-search-input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.mobile-search-results {
    margin-top: 16px;
    max-height: 50vh;
    overflow-y: auto;
    border-radius: 8px;
    background: white;
}

.mobile-search-result-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mobile-search-result-item:last-child {
    border-bottom: none;
}

.mobile-search-result-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #3B82F6;
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-search-result-item:hover {
    background: #f0f7ff;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.mobile-search-result-item:hover::before {
    transform: scaleY(1);
}

.mobile-search-result-item:active {
    transform: translateX(2px) scale(0.98);
}

.mobile-search-result-name {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.mobile-search-result-item:hover .mobile-search-result-name {
    color: #3B82F6;
}

.mobile-search-result-code {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    /* ================================================
       📱 MOBILE CONTROLS - PREMIUM DESIGN (0'DAN REFACTOR)
       ================================================ */

    /* Mobile Controls Wrapper */
    .loto-products-widget .mobile-controls-wrapper {
        display: flex !important;
        gap: 10px;
        padding: 12px;
        margin-bottom: 12px;
    }

    /* Mobile Filter Button (Desktop Card Style) */
    .loto-products-widget .mobile-filter-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(249, 250, 251, 0.98) 100%);
        border: 2px solid rgba(0, 0, 0, 0.06);
        border-top: 4px solid #3B82F6;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
    }

    .loto-products-widget .mobile-filter-btn:active {
        transform: scale(0.96);
        border-top-width: 5px;
    }

    .loto-products-widget .mobile-btn-content {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .loto-products-widget .mobile-btn-icon {
        color: #1a1a1a;
        flex-shrink: 0;
    }

    .loto-products-widget .mobile-btn-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
        text-align: left;
    }

    .loto-products-widget .mobile-btn-title {
        color: #1a1a1a;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        line-height: 1.2;
    }

    .loto-products-widget .mobile-btn-subtitle {
        color: rgba(0, 0, 0, 0.5);
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.3px;
    }

    .loto-products-widget .mobile-btn-chevron {
        color: #666;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .loto-products-widget .mobile-filter-btn.active .mobile-btn-chevron {
        transform: rotate(180deg);
    }

    /* Mobile Search Button */
    .loto-products-widget .mobile-search-btn {
        width: 52px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        color: white;
        flex-shrink: 0;
    }

    .loto-products-widget .mobile-search-btn:active {
        transform: scale(0.92);
        box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    }

    /* Mobile Filter Dropdown (Desktop-Style) - Start hidden, jQuery slideDown will show */
    .loto-products-widget .mobile-filter-dropdown {
        display: none;  /* ✅ Start hidden for jQuery slideDown */
        position: relative;
        margin: 0 12px 16px;
        background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(249, 250, 251, 0.98) 100%);
        border: 2px solid rgba(0, 0, 0, 0.06);
        border-radius: 16px;
        overflow: hidden;
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Mobile Filter Header */
    .loto-products-widget .mobile-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 18px;
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    }

    .loto-products-widget .mobile-filter-title {
        color: white;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        margin: 0;
    }

    .loto-products-widget .mobile-filter-close-btn {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        cursor: pointer;
        color: white;
        transition: all 0.2s ease;
        padding: 0;
    }

    .loto-products-widget .mobile-filter-close-btn:active {
        transform: scale(0.9);
        background: rgba(255, 255, 255, 0.2);
    }

    /* Mobile Filter Cards Container */
    .loto-products-widget .mobile-filter-cards {
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-height: 420px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Scrollbar Styling */
    .loto-products-widget .mobile-filter-cards::-webkit-scrollbar {
        width: 6px;
    }

    .loto-products-widget .mobile-filter-cards::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 3px;
    }

    .loto-products-widget .mobile-filter-cards::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

    /* Mobile Color Card (Desktop Style Adapted) */
    .loto-products-widget .mobile-filter-cards .color-card {
        width: 100% !important;
        min-width: 100% !important;
        height: 64px;
        margin: 0;
    }

    /* Mobile Search Bar (Premium Input) - Start hidden, jQuery slideDown will show */
    .loto-products-widget .mobile-search-bar {
        display: none;  /* ✅ Start hidden for jQuery slideDown */
        margin: 0 12px 16px;
    }

    .loto-products-widget .mobile-search-inner {
        display: flex;
        align-items: center;
        gap: 12px;
        background: white;
        border: 2px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        padding: 14px 16px;
        box-shadow:
            0 4px 12px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 1);
        transition: all 0.3s ease;
    }

    .loto-products-widget .mobile-search-inner:focus-within {
        border-color: #3B82F6;
        box-shadow:
            0 0 0 4px rgba(59, 130, 246, 0.1),
            0 6px 16px rgba(0, 0, 0, 0.12);
    }

    .loto-products-widget .mobile-search-icon {
        color: #999;
        flex-shrink: 0;
        transition: color 0.3s ease;
    }

    .loto-products-widget .mobile-search-inner:focus-within .mobile-search-icon {
        color: #3B82F6;
    }

    .loto-products-widget .mobile-search-input {
        flex: 1;
        border: none;
        outline: none;
        font-size: 14px;
        font-weight: 500;
        color: #1a1a1a;
        background: transparent;
        font-family: inherit;
        padding: 0;
    }

    .loto-products-widget .mobile-search-input::placeholder {
        color: #999;
        font-weight: 400;
    }

    .loto-products-widget .mobile-search-clear-btn {
        width: 28px;
        height: 28px;
        display: none;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.05);
        border: none;
        border-radius: 6px;
        cursor: pointer;
        color: #666;
        transition: all 0.2s ease;
        padding: 0;
        flex-shrink: 0;
    }

    .loto-products-widget .mobile-search-clear-btn.visible {
        display: flex !important;
    }

    .loto-products-widget .mobile-search-clear-btn:active {
        transform: scale(0.9);
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }

    /* Mobile specific grid - 2 columns */
    .loto-products-widget .products-container {
        grid-template-columns: repeat(2, 1fr) !important; /* ✅ 2 ürün yan yana mobilde - FORCE */
        gap: 16px !important;
        padding: 0 12px !important;
        display: grid !important;
        justify-content: center !important;
        place-items: center;
    }

    .loto-products-widget .product-card {
        width: 100%;
        max-width: 100% !important; /* ✅ Override desktop max-width for mobile */
        min-width: auto;
    }

    .loto-products-widget .loto-container {
        width: 100%;
        height: auto;
        aspect-ratio: 7/10; /* Responsive height */
        margin-bottom: 16px;
    }

    .loto-products-widget .loto-image {
        width: 100%;
        height: 100%;
    }

    .loto-products-widget .product-name-area {
        width: 100%; /* Responsive width */
        margin-top: -32px; /* -40 × 0.8 */
    }

    .loto-products-widget .product-name-bg {
        padding: 10px 12px 9px; /* Küçük padding 2'li görünümde */
        border-radius: 5px; /* 6 × 0.8 */
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    .loto-products-widget .product-name {
        font-size: 9px; /* Daha küçük font 2'li görünümde */
        letter-spacing: 1.2px;
    }

    .loto-products-widget .product-card:hover .product-name {
        letter-spacing: 2.4px; /* 3 × 0.8 */
    }

    .loto-products-widget .product-card:hover .product-name-bg {
        transform: translateY(-2px); /* -3 × 0.8 */
        border-color: rgba(0, 0, 0, 0.12);
    }

    .loto-products-widget .product-accent {
        height: 1px; /* 1.5 × 0.8 */
    }

    .loto-products-widget .product-card:hover .product-accent {
        width: 48px; /* 60 × 0.8 */
    }

    /* Mobile responsive badge - 2'li görünüm için optimize */
    .loto-products-widget .product-code-badge {
        top: 6px;
        left: 6px;
        padding: 4px 6px;
        font-size: 7px;
        letter-spacing: 0.6px;
        border-radius: 3px;
        box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.12),
            0 1px 3px rgba(0, 0, 0, 0.08);
    }

    .loto-products-widget .product-card:hover .product-code-badge {
        transform: translateY(-1px);
        box-shadow:
            0 3px 10px rgba(0, 0, 0, 0.18), /* 4 × 0.8 */
            0 2px 5px rgba(0, 0, 0, 0.12);
    }

    .loto-products-widget .loto-pagination {
        gap: 10px;
        flex-wrap: wrap;
    }

    /* Mobil pagination butonları */
    .loto-products-widget .page-btn {
        padding: 10px 14px;
        font-size: 13px;
        gap: 6px;
        border-radius: 6px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .loto-products-widget .page-btn svg {
        width: 14px;
        height: 14px;
    }

    .loto-products-widget .page-info {
        font-size: 13px;
        order: -1;
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
}

/* Tablet: Adjust padding for smaller screens */
@media (min-width: 769px) and (max-width: 1200px) {
    .loto-products-widget {
        padding: 50px 20px 50px 214px !important; /* Adjusted for 200px panel */
    }
}

/* Mobile: Hide color filter panel and reset widget padding */
@media (max-width: 768px) {
    .loto-products-widget .color-filter-panel {
        display: none !important;
        visibility: hidden !important;
    }

    /* Reset left padding on mobile (no filter panel visible) */
    .loto-products-widget {
        padding: 50px 20px !important;
    }
}

/* ============================================
   Loto Products Popup Styles
   ============================================ */

/* THEME-AGNOSTIC Body lock when popup is open */
/* High specificity to override ANY theme styles */
html.loto-popup-open,
html.loto-scroll-locked,
html.modal-open {
    overflow: hidden !important;
    height: 100% !important;
}

body.loto-popup-open,
body.loto-scroll-locked,
body.modal-open {
    overflow: hidden !important;
    /* CRITICAL: position:fixed is set by JS with !important and top:-scrollY */
    /* DO NOT add position:fixed here - it breaks scroll position restoration */
    width: 100% !important;
    background: transparent !important;
}

/* Extra specificity for stubborn themes like Agntix */
body.loto-popup-open.loto-scroll-locked,
body.modal-open.loto-scroll-locked {
    overflow: hidden !important;
    width: 100% !important;
}

/* Ensure z-index is higher than theme elements */
.loto-popup-overlay,
.loto-popup-overlay-widget {
    z-index: 999999 !important;
}

/* Popup Overlay - Simple and clean - %20 Küçültülmüş */
.loto-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px; /* 20 × 0.8 */
    box-sizing: border-box;
    pointer-events: none;

    /* Dark semi-transparent background as default */
    background: rgba(0, 0, 0, 0.85) !important;
}

/* When backdrop-filter is supported, use it */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .loto-popup-overlay {
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    }
}

/* When active */
.loto-popup-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Ensure no white background leaks through */
body > .loto-popup-overlay {
    isolation: isolate;
}

/* Removed duplicate styles - handled above */

/* Ensure no white background from parent elements */
.loto-products-widget,
.elementor-widget-rubenz-widget-loto-products {
    background: transparent !important;
}

/* Reset any inherited backgrounds */
body > .loto-popup-overlay {
    background-attachment: fixed !important;
    isolation: isolate;
}

/* Entrance animations */
.loto-popup-overlay.active .loto-popup-gallery {
    animation: fadeIn 0.5s ease-out 0.3s both;
}

.loto-popup-overlay.active .loto-popup-info {
    animation: slideInRight 0.5s ease-out 0.4s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Popup Container - Sadece Çerçeve %20 Büyütülmüş */
.loto-popup-overlay .loto-popup {
    background: rgba(255, 255, 255, 0.95);
    width: 90%;
    max-width: 1152px; /* 960 × 1.2 */
    height: 80vh;
    max-height: 768px; /* 640 × 1.2 */
    min-height: 576px; /* 480 × 1.2 */
    position: relative !important;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.9) translateY(16px);
    margin: auto;
    z-index: 1001 !important;
    flex-shrink: 0;
    border-radius: 13px;
}

.loto-popup-overlay.active .loto-popup {
    transform: scale(1) translateY(0);
}

/* Close Button - %20 Küçültülmüş */
.loto-popup-close {
    position: absolute;
    top: 19px; /* 24 × 0.8 */
    right: 19px; /* 24 × 0.8 */
    width: 38px; /* 48 × 0.8 */
    height: 38px; /* 48 × 0.8 */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.1); /* 4 × 0.8, 20 × 0.8 */
}

.loto-popup-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 24px rgba(0, 0, 0, 0.15); /* 6 × 0.8, 30 × 0.8 */
}

.loto-popup-close:active {
    transform: scale(0.95);
}

.loto-popup-close svg {
    width: 16px; /* 20 × 0.8 */
    height: 16px; /* 20 × 0.8 */
    color: rgba(0, 0, 0, 0.7);
    transition: color 0.3s ease;
}

.loto-popup-close:hover svg {
    color: #000;
}

/* Popup Content */
.loto-popup-content {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Gallery Section - %20 Küçültülmüş */
.loto-popup-gallery {
    flex: 1;
    background: #0a0a0a;
    display: flex;
    flex-direction: row;
    position: relative;
    min-height: 400px; /* 500 × 0.8 */
    height: 100%;
    border-radius: 13px 0 0 13px; /* 16 × 0.8 ≈ 13 */
    overflow: hidden;
}

/* Info Section - %20 Küçültülmüş */
.loto-popup-info {
    width: 336px; /* 420 × 0.8 */
    padding: 48px; /* 60 × 0.8 */
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-shrink: 0;
    height: 100%;
    position: relative;
    border-radius: 0 16px 16px 0; /* 20 × 0.8 */
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

/* Custom scrollbar for info section */
.loto-popup-info::-webkit-scrollbar {
    width: 5px; /* 6 × 0.8 ≈ 5 */
}

.loto-popup-info::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.loto-popup-info::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px; /* 3 × 0.8 ≈ 2 */
}

.loto-popup-info::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Popup Title - %20 Küçültülmüş */
.popup-title {
    font-size: 29px; /* 36 × 0.8 ≈ 29 */
    font-weight: 300;
    letter-spacing: 3px; /* 4 × 0.8 ≈ 3 */
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 24px; /* 30 × 0.8 */
    position: relative;
    transition: all 0.3s ease;
}

/* Popup Divider - %20 Küçültülmüş */
.popup-divider {
    width: 80px; /* 100 × 0.8 */
    height: 3px; /* 4 × 0.8 ≈ 3 */
    background: linear-gradient(90deg,
        #2c2c2c 0%,
        rgba(44, 44, 44, 0.4) 50%,
        transparent 100%);
    margin-bottom: 40px; /* 50 × 0.8 */
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.popup-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 100%);
    animation: dividerShine 4s ease-in-out infinite;
}

@keyframes dividerShine {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Description and Projects - %20 Küçültülmüş */
.popup-description,
.popup-projects {
    margin-bottom: 32px; /* 40 × 0.8 */
    position: relative;
    padding-left: 16px; /* 20 × 0.8 */
}

.popup-description::before,
.popup-projects::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px; /* 3 × 0.8 ≈ 2 */
    height: 100%;
    background: linear-gradient(to bottom, #2c2c2c 0%, transparent 100%);
    opacity: 0.3;
}

.popup-description h3,
.popup-projects h3 {
    font-size: 10px; /* 12 × 0.8 ≈ 10 */
    font-weight: 600;
    letter-spacing: 2px; /* 3 × 0.8 ≈ 2 */
    text-transform: uppercase;
    color: #999;
    margin-bottom: 16px; /* 20 × 0.8 */
    position: relative;
}

.popup-description h3::after,
.popup-projects h3::after {
    content: '';
    position: absolute;
    bottom: -6px; /* -8 × 0.8 ≈ -6 */
    left: 0;
    width: 24px; /* 30 × 0.8 */
    height: 1px;
    background: #2c2c2c;
    opacity: 0.3;
}

.popup-description-text,
.popup-projects-text {
    font-size: 12px; /* 15 × 0.8 */
    line-height: 1.9;
    color: #444;
    white-space: pre-wrap;
    font-weight: 300;
}

/* Contact Banner in Popup - sağa uzatılmış */
#contact-banner {
    position: absolute !important;
    top: 64vh !important;
    bottom: 3vh !important;
    left: 4vw !important;
    right: 53vw !important;
    height: auto !important;
    width: auto !important;
    border-radius: 10px !important;
}

/* Popup Cart Widget - Banner'ın yanında - açıklama kutusuyla sol sınır hizalı */
#popup-cart-widget {
    position: absolute !important;
    top: 64vh !important;
    bottom: 3vh !important;
    left: 40vw !important;
    right: 19vw !important;
}

/* Popup Product Card Container - Responsive - sağ alt köşede, 2vw sola kaydırılmış */
.loto-popup-overlay #popup-product-card-container {
    position: absolute !important;
    top: 64vh !important;
    bottom: 3vh !important;
    left: 75vw !important;
    right: 5vw !important;
    width: auto !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* Popup Product Card Inner Wrapper */
.loto-popup-overlay #popup-product-card-container > div {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Popup Product Card Image Container - Responsive - menü ile aynı oran 7:10 (280×400) */
.loto-popup-overlay #popup-product-image {
    width: 100% !important;
    aspect-ratio: 7/10 !important;
    max-height: 25vh !important;
    flex-shrink: 1 !important;
    margin: 0 auto 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Desktop card image inside */
.loto-popup-overlay #popup-product-image #desktop-card-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Popup Product Card Name Area - Responsive - menüdeki gibi overlap */
.loto-popup-overlay #popup-product-name-area {
    width: 100% !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    margin-top: -3.5vh !important;
}

/* Navigation buttons positioning */
.loto-popup-overlay #popup-product-card-container button {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
}

/* Responsive Styles - %20 Küçültülmüş */
@media (max-width: 1024px) {
    .loto-popup {
        height: 90vh;
        max-height: 95vh;
    }

    .loto-popup-content {
        flex-direction: column;
    }

    .loto-popup-gallery {
        min-height: 240px; /* 300 × 0.8 */
        flex-direction: column;
    }

    .loto-popup-info {
        width: 100%;
        padding: 24px; /* 30 × 0.8 */
    }

    .popup-title {
        font-size: 19px; /* 24 × 0.8 ≈ 19 */
    }

    /* Hide product card on smaller screens */
    .loto-popup-overlay #popup-product-card-container {
        display: none !important;
    }

    /* Adjust cart widget and banner to use full width */
    #contact-banner {
        right: 45vw !important;
    }

    #popup-cart-widget {
        right: 10vw !important;
    }
}

@media (max-width: 768px) {
    .loto-popup-overlay {
        padding: 0;
    }

    .loto-popup {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        min-height: auto;
    }

    .loto-popup-gallery {
        flex-direction: column;
    }

    .loto-popup-info {
        padding: 16px; /* 20 × 0.8 */
        width: 100%;
    }

    .popup-title {
        font-size: 16px; /* 20 × 0.8 */
        letter-spacing: 2px;
    }
}

/* ============================================
   Enhanced Backdrop Filter Support
   ============================================ */

/* Force hardware acceleration for better blur performance */
.loto-popup-overlay {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Additional vendor prefixes and fallbacks */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .loto-popup-overlay {
        background-color: transparent !important;
        backdrop-filter: blur(25px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    }
}

/* Safari specific fixes */
@supports (-webkit-backdrop-filter: blur(1px)) {
    .loto-popup-overlay {
        -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
        backdrop-filter: blur(25px) saturate(180%) !important;
    }
}

/* Firefox specific adjustments */
@-moz-document url-prefix() {
    .loto-popup-overlay {
        background: rgba(255, 255, 255, 0.01) !important;
    }
}

/* Ensure overlay is above all other elements */
.loto-popup-overlay {
    pointer-events: auto !important;
}

.loto-popup-overlay.active {
    pointer-events: auto !important;
}

/* Keep page content visible but don't change backgrounds */

/* Temporarily transparent elements */
.loto-temp-transparent {
    background-color: transparent !important;
}

/* Product filtering styles - Enhanced specificity */
.loto-products-widget .products-container .product-card.filtered-out {
    opacity: 0.3 !important;
    transform: scale(0.95) !important;
    filter: grayscale(50%) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none !important;
}

.loto-products-widget .products-container .product-card.filtered-active {
    opacity: 1 !important;
    transform: scale(1) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 2 !important;
    position: relative !important;
}

/* Backup with even higher specificity for troubleshooting */
body .loto-products-widget .products-container .product-card.filtered-out {
    opacity: 0.3 !important;
    transform: scale(0.95) !important;
    filter: grayscale(50%) !important;
}

body .loto-products-widget .products-container .product-card.filtered-active {
    opacity: 1 !important;
    transform: scale(1) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08) !important;
    z-index: 2 !important;
    position: relative !important;
}

.loto-products-widget .product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.loto-products-widget .product-card.search-hidden {
    opacity: 0.3 !important;
    transform: scale(0.95) !important;
    filter: grayscale(50%) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Removed duplicate styles - handled above */
/* Desktop: Hide mobile controls - MUST use !important to override mobile media query */
@media (min-width: 769px) {
    .loto-products-widget .mobile-controls-wrapper {
        display: none !important;
    }

    .loto-products-widget .mobile-filter-dropdown {
        display: none !important;
    }

    .loto-products-widget .mobile-search-bar {
        display: none !important;
    }
}
