.catalog-page { padding: 40px 0; min-height: 80vh; }
 


 .sorting-wrapper { 
     position: absolute;
     right: 0;
     bottom: 0;
     display: flex; 
     align-items: center; 
     gap: 12px; 
 }
 .sorting-wrapper label { font-size: 14px; font-weight: 700; color: var(--muted); }
 
 .custom-select { 
     appearance: none; 
     background: #fff; 
     border: 1px solid var(--border); 
     padding: 12px 40px 12px 20px; 
     border-radius: 14px; 
     font-family: inherit; 
     font-size: 14px; 
     font-weight: 700; 
     cursor: pointer;
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
     background-repeat: no-repeat; 
     background-position: right 15px center;
     transition: 0.3s;
 }
 .custom-select:hover { border-color: var(--primary); }

 .catalog-layout { 
     display: grid; 
     grid-template-columns: 320px 1fr; 
     gap: 60px; 
     align-items: flex-start;
 }

 .filters-sidebar { 
     background: #fff; 
     border: 1px solid var(--border); 
     padding: 32px; 
     border-radius: var(--radius-lg); 
     height: fit-content; 
     position: sticky; 
     top: 120px; 
 }
 
 .filter-group { 
     margin-bottom: 32px; 
     border-bottom: 1px solid var(--bg-light); 
     padding-bottom: 24px; 
 }
 .filter-group:last-child { border: none; }
 .filter-group h4 { font-size: 16px; font-weight: 800; margin-bottom: 18px; }

 .custom-check { 
     display: flex; 
     align-items: center; 
     gap: 12px; 
     margin-bottom: 12px; 
     cursor: pointer; 
     font-weight: 600; 
     color: var(--muted); 
     font-size: 15px;
 }
 .custom-check input { 
     width: 20px; 
     height: 20px; 
     accent-color: var(--accent); 
     cursor: pointer;
 }
 .custom-check:hover { color: var(--primary); }

 .price-range { display: flex; gap: 12px; }
 .price-range input { 
     width: 100%; 
     padding: 12px; 
     border-radius: 12px; 
     border: 1px solid var(--border); 
     font-family: inherit;
     font-size: 14px;
     font-weight: 600;
     background: var(--bg-light);
 }

 .toggle-availability { 
     display: flex; 
     align-items: center; 
     gap: 12px; 
     cursor: pointer; 
     font-weight: 700;
     font-size: 14px;
 }
 
 .reset-btn { 
     width: 100%; 
     background: none; 
     border: none; 
     padding: 10px; 
     color: var(--muted); 
     font-weight: 700; 
     cursor: pointer; 
     margin-top: 10px;
     font-size: 14px;
 }
 .reset-btn:hover { color: #ff3b30; }
 
 .catalog-grid { 
     display: grid; 
     grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
     gap: 30px; 
 }
 
 .p-card { 
     border: 1px solid var(--border); 
     border-radius: var(--radius-md); 
     padding: 24px; 
     transition: var(--transition); 
     display: flex; 
     flex-direction: column; 
     background: #fff;
 }
 .p-card:hover { 
     border-color: var(--accent); 
     box-shadow: var(--shadow); 
 }
 
 .p-image { 
     background: var(--bg-light); 
     height: 240px; 
     border-radius: 20px; 
     display: flex; 
     align-items: center; 
     justify-content: center; 
     margin-bottom: 20px; 
     overflow: hidden; 
 }
 .p-image img { 
     max-width: 85%; 
     max-height: 85%; 
     object-fit: contain; 
     mix-blend-mode: multiply; 
     transition: 0.5s ease;
 }
 .p-card:hover .p-image img {  }
 
 .p-brand { 
     color: var(--accent); 
     font-size: 11px; 
     font-weight: 800; 
     text-transform: uppercase; 
     letter-spacing: 1.5px; 
 }
 .p-details h4 { 
     font-size: 18px; 
     font-weight: 700; 
     margin: 10px 0; 
     flex-grow: 1; 
     line-height: 1.3;
 }
 .p-footer { 
     display: flex; 
     justify-content: space-between; 
     align-items: center; 
     padding-top: 20px; 
     border-top: 1px solid var(--border); 
     margin-top: 10px;
 }
 .p-price { font-size: 22px; font-weight: 800; letter-spacing: -1px; }
 
 .add-btn { 
     background: var(--primary); 
     color: #fff; 
     border: none; 
     width: 44px; 
     height: 44px; 
     border-radius: 50%; 
     font-size: 24px; 
     cursor: pointer; 
     display: flex;
     align-items: center;
     justify-content: center;
     transition: 0.3s;
 }
 .add-btn:hover { background: var(--accent); }

 .product-card-link { text-decoration: none; color: inherit; display: block; }
 .product-card-link:hover h4 { color: var(--accent); }
 
 .mobile-filter-btn {
     display: none;
     align-items: center;
     justify-content: center;
     gap: 10px;
     width: 100%;
     padding: 16px;
     background: #fff;
     border: 1px solid var(--border);
     border-radius: 14px;
     font-family: inherit;
     font-size: 16px;
     font-weight: 700;
     cursor: pointer;
     margin-bottom: 30px;
     transition: 0.3s;
 }
 .mobile-filter-btn:hover { border-color: var(--primary); }
 
 .filters-header-mobile {
     display: none;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 30px;
     padding-bottom: 20px;
     border-bottom: 1px solid var(--border);
 }
 .filters-header-mobile h3 { font-size: 24px; font-weight: 800; }
 .close-filters-btn {
     width: 40px;
     height: 40px;
     border: none;
     background: var(--bg-light);
     border-radius: 50%;
     font-size: 28px;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .filters-overlay {
     display: none;
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.5);
     z-index: 998;
 }
 .filters-overlay.active { display: block; }

@media (max-width: 1100px) {
     .catalog-layout { grid-template-columns: 1fr; }
     
     .filters-sidebar { 
         position: fixed;
         top: 0;
         left: 0;
         width: 100%;
         max-width: 400px;
         height: 100vh;
         z-index: 999;
         border-radius: 0;
         transform: translateX(-100%);
         transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
         overflow-y: auto;
         padding-top: 30px;
     }
     
     .filters-sidebar.active {
         transform: translateX(0);
     }
     
     .filters-header-mobile { display: flex; }
     .mobile-filter-btn { display: flex; }
 }
 
 @media (max-width: 768px) {
     .catalog-header { 
         flex-direction: column; 
         align-items: center; 
         gap: 25px; 
         min-height: auto;
     }
     .catalog-header h1 { font-size: 32px; }
     
     .sorting-wrapper { position: static; width: 100%; justify-content: center; }
     .custom-select { flex: 1; max-width: 300px; }
     
     .catalog-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
     
     .p-card { padding: 16px; }
     .p-image { height: 180px; }
     .p-details h4 { font-size: 15px; }
     .p-price { font-size: 18px; }
     .add-btn { width: 38px; height: 38px; font-size: 20px; }
 }
 
 @media (max-width: 500px) {
     .catalog-grid { grid-template-columns: 1fr; }
     
     .filters-sidebar { max-width: 100%; }
     
     .p-image { height: 220px; }
     .p-details h4 { font-size: 17px; }
     .p-price { font-size: 20px; }
 }
