body {
    background-color: #f4f7f6;
    color: #333;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px var(--shadow-color);
    margin-bottom: 20px;
}

.products-list-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-list-page h1 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    color: var(--text-primary);
}

.products-list-page h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-primary);
    border-radius: 2px;
}

.products-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    background-color: var(--background-secondary);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

@media (max-width: 768px) {
    .products-controls {
        flex-direction: column;
    }
    .category-select-wrapper,
    .search-container {
        width: 100%;
    }
}

.category-select-wrapper,
.search-container {
    flex: 1;
    position: relative;
}

#categorySelect,
#searchInput {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--background-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

#searchInput {
    padding-left: 50px;
}

.search-container::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%234A5568%22%3E%3Cpath%20d%3D%22M15.5%2014h-.79l-.28-.27A6.471%206.471%200%200%200%2016%209.5%206.5%206.5%200%201%200%209.5%2016c1.61%200%203.09-.59%204.23-1.57l.27.28v.79l5%204.99L20.49%2020l-4.99-5zm-6%200C7.01%2014%205%2011.99%205%209.5S7.01%205%209.5%205%2014%207.01%2014%209.5%2011.99%2014%209.5%2014z%22%2F%3E%3C%2Fsvg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}

#categorySelect {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%234A5568%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    cursor: pointer;
}

#categorySelect:focus,
#searchInput:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.products-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.products-grid.active {
    display: grid;
}

.product-card {
    background: var(--background-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px var(--shadow-color);
}

.product-card-image {
    width: 100%;
    padding-top: 75%;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--text-primary);
    line-height: 1.4;
}

.product-card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.product-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-card-button {
    display: inline-block;
    background-color: var(--accent-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.product-card-button:hover {
    background-color: var(--accent-hover);
}

.no-results-message {
    display: none;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 50px 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .products-list-page {
        padding: 15px;
    }
    
    .products-list-page h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .product-card-button {
        width: 100%;
        padding: 12px;
    }
}

.last-update {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
}

.mobile-menu-backdrop {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    transition: opacity 0.3s;
}
.mobile-menu-backdrop.open {
    display: block;
    opacity: 1;
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }
  .header-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    padding: 80px 20px 20px;
    overflow-y: auto;
    transform: translateX(100%);
  }
  .header.mobile-menu-active .header-menu {
    transform: translateX(0);
  }
  .mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
    display: block;
  }
  .header.mobile-menu-active .mobile-menu-backdrop {
    opacity: 1;
    visibility: visible;
  }
  .header-menu a {
    width: 100%;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    font-size: 1.1rem;
  }
  .header-menu a:last-child {
    border-bottom: none;
  }
  .hamburger {
    display: block;
    z-index: 1002;
    margin-left: auto;
  }
} 