/* Okurlar Custom Shop Styles */

/* Reset and Base Styles */
body.okurlar-custom-shop {
    margin: 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden !important;
    width: 100% !important;
}

body.okurlar-custom-shop * {
    box-sizing: border-box;
}

/* Override all containers for full width */
body.okurlar-custom-shop .container,
body.okurlar-custom-shop .container-fluid,
body.okurlar-custom-shop .wp-block-group,
body.okurlar-custom-shop .site-main,
body.okurlar-custom-shop .content-area {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

/* Ultimate override for any theme interference */
body.okurlar-custom-shop .okurlar-shop-container,
body.okurlar-custom-shop .shop-main-content,
body.okurlar-custom-shop .shop-layout,
body.okurlar-custom-shop .shop-content,
body.okurlar-custom-shop .products-grid,
body.okurlar-custom-shop .no-products-found {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Prevent any wrapper from adding margins */
body.okurlar-custom-shop .site,
body.okurlar-custom-shop .site-content,
body.okurlar-custom-shop .content-area,
body.okurlar-custom-shop .site-main,
body.okurlar-custom-shop .hentry,
body.okurlar-custom-shop .entry-content,
body.okurlar-custom-shop .wp-site-blocks {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.okurlar-shop-container {
    max-width: 100%;
    margin: 0;
    width: 100vw; /* Full viewport width */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Hero Section */
.shop-hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 80px 0 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shop-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><polygon points="36 34 6 34 6 6 36 6"/></g></g></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* Breadcrumb */
.shop-breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.shop-breadcrumb .container {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
    width: 100%;
}

.breadcrumb-item {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-item.current {
    color: #495057;
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #6c757d;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Shop specific container override */
.okurlar-custom-shop .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.shop-main-content {
    padding: 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
    min-height: 100vh; /* Maintain full viewport height */
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    align-items: start;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Sidebar Styles */
.shop-sidebar {
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    padding: 30px 0;
}

/* Desktop sidebar - override mobile styles */
@media (min-width: 901px) {
    .shop-sidebar {
        position: sticky !important;
        top: 0 !important;
        left: auto !important;
        width: auto !important;
        transform: none !important;
        z-index: auto !important;
        box-shadow: none !important;
    }
}

.sidebar-widget {
    border-bottom: 1px solid #e9ecef;
    padding: 25px 30px;
    background: white;
    margin-bottom: 2px;
}

.sidebar-widget:last-child {
    border-bottom: none;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category List */
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    margin-bottom: 8px;
}

.category-item.parent-category {
    margin-bottom: 12px;
}

/* Category Checkbox Styles (matches brand checkbox pattern) */
.category-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    position: relative;
    justify-content: space-between;
    width: 100%;
}

.category-checkbox:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.05);
    border-color: rgba(0, 123, 255, 0.2);
}

.category-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Custom Checkbox for Categories */
.category-checkbox::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-checkbox:has(input[type="checkbox"]:checked)::before {
    background: #007bff;
    border-color: #007bff;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="white"><path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.category-checkbox:has(input[type="checkbox"]:checked) {
    color: #007bff;
    font-weight: 600;
    background: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
}

/* Legacy filter-link support for backward compatibility */
.category-item .filter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.category-item.parent-category > .filter-link {
    font-weight: 600;
    color: #2c3e50;
    padding: 12px 0;
    border-bottom: 2px solid #e9ecef;
}

.category-item .filter-link:hover,
.category-item .filter-link.active {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    padding-left: 10px;
    padding-right: 10px;
}

/* Child Categories */
.child-categories {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
}

.category-item.child-category .category-checkbox {
    padding: 8px 12px 8px 20px;
    font-size: 0.9rem;
    color: #6c757d;
    border-left: 3px solid #e9ecef;
    margin-left: 10px;
    border-radius: 0 6px 6px 0;
}

.category-item.child-category .category-checkbox:hover {
    border-left-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.category-item.child-category .filter-link {
    padding: 8px 0 8px 20px;
    font-size: 0.9rem;
    color: #6c757d;
    border-left: 3px solid #e9ecef;
    margin-left: 10px;
}

.category-item.child-category .filter-link:hover {
    border-left-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.category-name {
    font-weight: 500;
    flex: 1;
}

.category-count {
    background: #e9ecef;
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: auto;
}

/* Category Actions - Removed since we no longer use buttons */

/* Widget Category Form */
.widget-category-form .category-list {
    margin-bottom: 0;
}

/* Brand List */
.brand-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.brand-list li {
    margin-bottom: 8px;
}

.brand-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    position: relative;
}

.brand-list label:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.05);
    border-color: rgba(0, 123, 255, 0.2);
}

.brand-list input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Custom Checkbox */
.brand-list label::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.brand-list input[type="checkbox"]:checked + label::before,
.brand-list label:has(input[type="checkbox"]:checked)::before {
    background: #007bff;
    border-color: #007bff;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="white"><path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.brand-list input[type="checkbox"]:checked + span,
.brand-list label:has(input[type="checkbox"]:checked) {
    color: #007bff;
    font-weight: 600;
    background: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
}

.brand-count {
    background: #e9ecef;
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: auto;
}

/* Vehicle Filter */
.vehicle-filter {
    padding: 0;
}

.vehicle-model-list {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    max-height: 250px;
    overflow-y: auto;
}

.vehicle-model-list li {
    margin-bottom: 6px;
}

.vehicle-model-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    position: relative;
}

.vehicle-model-list label:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.05);
    border-color: rgba(0, 123, 255, 0.2);
}

.vehicle-model-list input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Custom Checkbox for Vehicle Models */
.vehicle-model-list label::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.vehicle-model-list input[type="checkbox"]:checked + span {
    color: #007bff;
    font-weight: 600;
}

.vehicle-model-list label:has(input[type="checkbox"]:checked)::before {
    background: #007bff;
    border-color: #007bff;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="white"><path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.vehicle-model-list label:has(input[type="checkbox"]:checked) {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
}

.model-count {
    background: #e9ecef;
    color: #6c757d;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: auto;
}

.vehicle-filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.apply-filter-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 8px;
}

.apply-filter-btn:hover {
    background: #0056b3;
}

.clear-filter-btn {
    width: 100%;
    padding: 10px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.clear-filter-btn:hover {
    background: #545b62;
}

/* Vehicle Select Styles */
.vehicle-select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    transition: border-color 0.3s ease;
}

.vehicle-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Mobile Filter Button - Hidden on Desktop */
.mobile-filter-btn-toolbar {
    display: none;
}

.mobile-filter-close {
    display: none;
}

.mobile-sidebar-overlay {
    display: none;
}

/* Shop Content Area */
.shop-content {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 600px; /* Minimum height to maintain layout */
    width: 100%; /* Force full width */
    flex: 1; /* Take remaining space in flex layout */
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    gap: 15px;
}

/* Mobile Filter Button in Toolbar */
.mobile-filter-btn-toolbar {
    display: none;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.mobile-filter-btn-toolbar:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.mobile-filter-btn-toolbar:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

.mobile-filter-btn-toolbar .filter-icon {
    width: 20px;
    height: 20px;
    color: white;
    transition: transform 0.3s ease;
}

.mobile-filter-btn-toolbar:hover .filter-icon {
    transform: scale(1.1);
}

.shop-results-info {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.results-count {
    font-weight: 500;
    color: #495057;
}

.search-results-info {
    font-weight: 600;
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.show-options {
    display: flex;
    align-items: center;
    gap: 5px;
}

.show-option {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #ddd;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
}

.show-option.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.show-option:hover {
    background: #e9ecef;
}

.separator {
    color: #6c757d;
    margin: 0 5px;
}

/* View Options */
.shop-view-options {
    display: flex;
    gap: 5px;
}

.view-option {
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-option.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.view-option:hover {
    background: #e9ecef;
}

/* Sorting */
#shop-sorting {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 200px;
}

/* Products Grid */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    padding: 30px 25px !important;
    transition: opacity 0.3s ease;
    min-height: 500px !important;
    width: 100% !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.product-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #007bff;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 10px;
}

.product-compatibility {
    margin-bottom: 15px;
}

.compatibility-info {
    font-size: 0.9rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
}


.view-product {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background 0.3s ease;
    display: inline-block;
}

.view-product:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* List View Styles */
.products-grid.list-view .product-item {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    gap: 20px;
}

.products-grid.list-view .product-image {
    aspect-ratio: 1;
    max-width: 200px;
}

.products-grid.list-view .product-info {
    padding: 20px 0;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Products Message */
.no-products-found {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 80px 30px !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important;
    min-height: 500px !important;
    border: 2px dashed #e9ecef !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.no-products-found .no-products-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-products-found h3 {
    color: #495057;
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.no-products-found p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
    max-width: 400px;
}

/* Legacy no-products class for backward compatibility */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 30px;
    color: #6c757d;
    font-size: 1.2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 30px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pagination */
.shop-pagination {
    text-align: center;
    padding: 30px 25px;
    border-top: 1px solid #f0f0f0;
}

.shop-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.shop-pagination .page-numbers:hover,
.shop-pagination .page-numbers.current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}



/* Responsive Design */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        min-height: 400px; /* Maintain minimum height on tablets */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 900px) {
    /* Show mobile filter button for tablets too */
    .mobile-filter-btn-toolbar {
        display: flex !important;
    }
    
    .shop-layout {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .shop-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 320px !important;
        min-height: 100vh !important;
        background: #f8f9fa !important;
        z-index: 99999 !important;
        transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        border-right: 1px solid #e9ecef !important;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2) !important;
        padding: 0 !important;
        transform: translateX(0) !important;
    }
    
    /* Mobile sidebar header */
    .shop-sidebar::before {
        content: "";
        display: block;
        height: 70px;
        background: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    /* Mobile sidebar content wrapper */
    .shop-sidebar .sidebar-content {
        padding: 20px 0 30px 0;
    }
    
    /* Mobile sidebar widgets */
    .shop-sidebar .sidebar-widget {
        margin-bottom: 0;
        padding: 20px 25px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .shop-sidebar .widget-title {
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 16px;
        font-weight: 600;
        color: #343a40;
    }
    
    /* Mobile category and brand lists */
    .shop-sidebar .category-list,
    .shop-sidebar .brand-list,
    .shop-sidebar .vehicle-model-list {
        margin: 0;
        padding: 0;
    }
    
    .shop-sidebar .category-item,
    .shop-sidebar .brand-list li,
    .shop-sidebar .vehicle-model-list li {
        padding: 8px 0;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .shop-sidebar .category-item:last-child,
    .shop-sidebar .brand-list li:last-child,
    .shop-sidebar .vehicle-model-list li:last-child {
        border-bottom: none;
    }
    
    .shop-sidebar.sidebar-open {
        left: 0 !important;
    }
    
    /* Close button for mobile */
    .mobile-filter-close {
        display: block !important;
    }
    
    /* Overlay styles */
    .mobile-sidebar-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 99998 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-sidebar-overlay.overlay-active {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

@media (max-width: 768px) {
    
@media (max-width: 768px) {    /* Show mobile filter button in toolbar */
    .mobile-filter-btn-toolbar {
        display: flex;
    }
    
    /* Mobile Filter Close Button */
    .mobile-filter-close {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute;
        top: 15px;
        right: 15px;
        background: #dc3545;
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 18px;
        font-weight: bold;
        line-height: 1;
        cursor: pointer;
        z-index: 100000 !important;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    }
    
    .mobile-filter-close:hover {
        background: #c82333;
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    }
    
    .mobile-filter-close:active {
        transform: rotate(90deg) scale(0.95);
    }
    
    /* Overlay for mobile sidebar */
    .mobile-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99998 !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-sidebar-overlay.overlay-active {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 20px 15px;
        min-height: 300px; /* Maintain minimum height on mobile */
    }
    
    .shop-toolbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        gap: 10px;
    }
    
    .shop-results-info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        min-height: 250px; /* Minimum height for mobile */
    }
    
    .products-grid.list-view .product-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .no-products-found {
        padding: 40px 20px; /* Reduce padding on mobile */
        min-height: 250px; /* Adjust height for mobile */
    }
    
    .no-products-found .no-products-icon {
        font-size: 3rem; /* Smaller icon on mobile */
    }
    
    .shop-sidebar {
        margin-top: 20px;
    }
    
}

/* Smooth transitions */
* {
    transition: all 0.2s ease;
}

/* Focus states for accessibility */
.apply-filter-btn:focus,
.show-option:focus,
.view-option:focus,
.view-product:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Custom scrollbar styles removed - sidebar now has dynamic height */
}

.shop-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Ultimate override for any theme interference */
body.okurlar-custom-shop .okurlar-shop-container,
body.okurlar-custom-shop .shop-main-content,
body.okurlar-custom-shop .shop-layout,
body.okurlar-custom-shop .shop-content,
body.okurlar-custom-shop .products-grid,
body.okurlar-custom-shop .no-products-found {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Prevent any wrapper from adding margins */
body.okurlar-custom-shop .site,
body.okurlar-custom-shop .site-content,
body.okurlar-custom-shop .content-area,
body.okurlar-custom-shop .site-main,
body.okurlar-custom-shop .hentry,
body.okurlar-custom-shop .entry-content,
body.okurlar-custom-shop .wp-site-blocks {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}/* Attributes and Tags Filter Styles */
.widget_okurlar_attributes_filter,
.widget_okurlar_tags_filter {
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.widget_okurlar_attributes_filter:hover,
.widget_okurlar_tags_filter:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.widget_okurlar_attributes_filter .widget-title,
.widget_okurlar_tags_filter .widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
    position: relative;
}

.widget_okurlar_attributes_filter .widget-title:after,
.widget_okurlar_tags_filter .widget-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #28a745;
}

.attributes-list,
.tags-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

.attributes-list::-webkit-scrollbar,
.tags-list::-webkit-scrollbar {
    width: 6px;
}

.attributes-list::-webkit-scrollbar-track,
.tags-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.attributes-list::-webkit-scrollbar-thumb,
.tags-list::-webkit-scrollbar-thumb {
    background: #007cba;
    border-radius: 3px;
}

.attributes-list label,
.tags-list label {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.attributes-list label:last-child,
.tags-list label:last-child {
    border-bottom: none;
}

.attributes-list label:hover,
.tags-list label:hover {
    color: #007cba;
    background-color: rgba(0, 124, 186, 0.05);
    padding-left: 5px;
}

.attributes-list input[type="checkbox"],
.tags-list input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #007cba;
    cursor: pointer;
}

.attributes-list .count,
.tags-list .count {
    margin-left: auto;
    background: #e9ecef;
    color: #6c757d;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.attributes-list label:hover .count,
.tags-list label:hover .count {
    background: #007cba;
    color: white;
}

/*@media (max-width: 768px) {`n/* Mobile styles for attributes and tags */
@media (max-width: 768px) {
    .widget_okurlar_attributes_filter,
    .widget_okurlar_tags_filter {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .widget_okurlar_attributes_filter .widget-title,
    .widget_okurlar_tags_filter .widget-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .attributes-list,
    .tags-list {
        max-height: 150px;
    }
    
    .attributes-list label,
    .tags-list label {
        padding: 10px 0;
        font-size: 0.9rem;
    }
}
