* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
            overflow-x: hidden;
        }

        .main-layout {
            display: flex;
            min-height: 100vh;
            max-width: 1400px;  
            margin: 0 auto;     
            gap: 0;
        }

        /* Sidebar Styles */
        .sidebar {
            width: 250px;
            background: white;
            padding: 25px 0;
            min-height: 100vh;
            position: sticky;
            top: 0;
        }

        .sidebar-title {
            font-size: 28px;
            font-weight: 600;
            color: #333;
            padding: 0 25px 20px 25px;
            margin-bottom: 20px;
            margin-top: 25px;
        }

        .category-list {
            list-style: none;
        }

        .category-item {
            margin: 0;
        }

        .category-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 25px;
            color: #666;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
            border-left: 3px solid transparent;
        }

        .category-link:hover {
            background-color: #f8f9fa;
            color: #525b64;
            border-left-color: #464c52;
        }

        .category-link.active {
            background-color: #e3f2fd;
            color: #525b64;
            border-left-color: #464c52;
            font-weight: 600;
        }

        .category-arrow {
            font-size: 12px;
            transition: transform 0.2s ease;
        }

        /* Content Area */
        .content-area {
            flex: 1;
            padding: 0 20px;
            max-width: calc(100% - 250px);
            margin: 0 auto; 
        }

        /* Page Title */
        .page-title {
            font-size: 28px;
            font-weight: 600;
            color: #333;
            margin-bottom: 20px;
            padding-top: 25px;
        }

        /* Search and Filter Section */
        .controls-section {
            background: white;
            padding: 25px;
            margin-bottom: 30px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            width: 100%;
            max-width: 1200px; 
            margin: 0 auto 30px auto;  
        }

        .search-container {
            position: relative;
            max-width: 100%;
            margin: 0 auto 20px auto;
            width: 100%;
        }

        .search-input {
            width: 100%;
            padding: 12px 20px 12px 45px;
            border: 2px solid #e5e5e5;
            border-radius: 25px;
            font-size: 14px;
            background-color: #f8f9fa;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: #007bff;
            background-color: white;
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
        }

        .search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
            font-size: 16px;
        }

        /* Filter Section */
        .filters-row {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            width: 100%;
        }

        .filter-select {
            padding: 10px 35px 10px 15px;
            border: 2px solid #e5e5e5;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            background-color: white;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
            background-position: right 12px center;
            background-repeat: no-repeat;
            background-size: 16px;
            min-width: 130px;
            max-width: 200px;
            transition: all 0.2s ease;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
        }

        .filter-select:hover {
            border-color: #007bff;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
        }

        .filter-select:focus {
            outline: none;
            border-color: #007bff;
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
        }

        /* Instruments Grid */

        .instruments-container {
            position: relative;
            overflow: hidden;
            padding: 0 5px;
            display: flex;
            justify-content: center;
            margin: 0 auto;  
        }

        .instruments-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
            width: 100%;
            max-width: 1200px;  
            margin: 0 auto 40px auto;
            padding: 0 10px;
        }

        @media (min-width: 768px) {
            .instruments-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .instrument-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            cursor: pointer;
            border: 1px solid #e5e5e5;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            width: 100%;
            max-width: 100%;
            min-width: 0;
        }

        .instrument-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
            border-color: #007bff;
        }

        .card-image {
            width: 100%;
            aspect-ratio: 16 / 9;
            overflow: hidden;
            position: relative;
            height: auto;
            min-height: 180px;
            max-height: 220px;
        }

        .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.2s ease;
        }

        .instrument-card:hover .card-image img {
            transform: scale(1.03);
        }

        .card-content {
            padding: 16px;
        }

        .instrument-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 6px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .brand-name {
            font-size: 14px;
            color: #666;
            margin-bottom: 8px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .price {
            font-size: 14px;
            color: #007bff;
            font-weight: 600;
        }

        /* CUSTOM PAGINATION */
        .pagination-wrapper {
            display: flex;
            justify-content: center;
            margin: 40px 0;
            width: 100%;
        }

        .custom-pagination {
            display: flex;
            gap: 0;
            align-items: center;
            background: white;
            padding: 8px;
            border-radius: 30px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            border: 1px solid #e5e5e5;
        }

        .pagination-prev {
            width: 40px;
            height: 40px;
            border: 2px solid #e5e5e5;
            border-radius: 25px 0 0 25px;
            background: white;
            color: #666;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.2s ease;
            margin-right: 8px;
        }

        .pagination-prev:hover {
            border-color: #007bff;
            background: #f8f9fa;
            color: #007bff;
        }

        .pagination-next {
            width: 40px;
            height: 40px;
            border: 2px solid #e5e5e5;
            border-radius: 0 25px 25px 0;
            background: white;
            color: #666;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.2s ease;
            margin-left: 8px;
        }

        .pagination-next:hover {
            border-color: #007bff;
            background: #f8f9fa;
            color: #007bff;
        }

        .page-number {
            width: 40px;
            height: 40px;
            border: 1px solid #e5e5e5;
            border-radius: 50%;
            background: white;
            color: #666;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
            transition: all 0.2s ease;
            margin: 0 2px;
        }

        .page-number:hover {
            border-color: #007bff;
            color: #007bff;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
        }

        .page-number.active {
            background: #007bff;
            border-color: #007bff;
            color: white;
            transform: scale(1.05);
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .main-layout {
                flex-direction: column;
                max-width: 100%;
            }
            
            .sidebar {
                width: 100%;
                min-height: auto;
                position: static;
                border-right: none;
                border-bottom: 1px solid #e5e5e5;
                padding: 15px 0;
            }
            
            .content-area {
                max-width: 100%;
                padding: 0 15px;
            }
            
            .instruments-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
            
            .filters-row {
                flex-direction: column;
                gap: 12px;
            }
            
            .filter-select {
                width: 100%;
                min-width: auto;
                max-width: none;
            }
            
            .card-image {
                height: 150px;
            }
            
            .page-title {
                font-size: 24px;
                padding-top: 15px;
            }
            
            .controls-section {
                padding: 20px 15px;
            }
        }

        @media (max-width: 480px) {
            .content-area {
                padding: 0 10px;
            }
            
            .controls-section {
                padding: 15px 10px;
            }
            
            .search-input {
                padding: 10px 15px 10px 35px;
            }
            
            .instruments-grid {
                gap: 12px;
            }
            
            .card-image {
                height: 120px;
            }
            
            .card-content {
                padding: 12px;
            }
            
            .instrument-title {
                font-size: 14px;
            }
            
            .brand-name,
            .price {
                font-size: 12px;
            }
        }

        /* Loading Animation */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .instrument-card {
            animation: fadeIn 0.3s ease-out;
        }

        /* Prevent horizontal scroll */
        html, body {
            max-width: 100%;
            overflow-x: hidden;
        }