* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Raleway, Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header {
    display: flex;
    padding: 0 2rem;
    background-color: white;
    /*background-color: rgb(35, 31, 32);*/
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
    border-bottom: 1px rgb(230, 230, 230) solid;
    position: relative;
    top: 0;
    z-index: 100;
    height: 70px;
    /*box-shadow: 4px 8px 8px rgb(0, 0, 0.1);*/
}

.header-section {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
    gap: 2rem;
}

.header-titles {
    justify-content: center;
}
.header-title {
    color: black;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
}

.header-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: black;
    transition: width 0.3s ease;
}

.header-title:hover::after {
    width: 100%;
}

.header-center {
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 65px; 
    width: auto; 
    object-fit: contain;
}

.header-right {
    justify-content: flex-end;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

/*.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #333;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}
*/

.header-breadcrumbs {
    width: 100%;
    background-color: white;
}

.header-breadcrumbs a {
    position: relative;
    color: black;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
    font-weight: 400;
}

.header-breadcrumbs a:last-child {
    text-decoration: underline;
    font-size: 0.8rem;
}

.header-breadcrumbs a:hover {
    color: #000;
}

.header-breadcrumbs a:active {
    transform: scale(0.97);
    text-shadow: 0 0 0.05px currentColor, 0 0 0.05px currentColor;
    color: #444;
    transition: transform 0.1s ease, text-shadow 0.1s ease, color 0.1s ease;
}

.header-breadcrumbs .separator {
    margin: 0;
    color: #999;
}

/* Main container layout */
.main-container {
    display: flex;
    max-width: 1400px;
    margin: 0rem auto;
    padding: 0 2rem;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

/* Sidebar styles */
.sidebar {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.categories-link {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0;
    font-weight: 400;
}

.browse-by {
    font-weight: 400;
    margin-top: 3.5rem;
}

hr {
    margin-top: 0.5rem;
    border-color: white;
}

.category-list {
    list-style: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0rem;
}

.category-list li {
    margin: 0.75rem 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 50%;
    font-size: 0.8rem;
    line-height: 1rem;
    font-weight: 600;
}

.non-active {
    position: relative;
}

.non-active:hover {
    text-decoration: underline;
}

.active {
    text-decoration: underline;
}

/* Content area */
.content {
    flex: 5;
}

.results-sort-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.results-count {
    font-size: 0.9rem;
    color: #666;
}

.sort-options {
    font-size: 0.9rem;
    font-weight: 500;
}

.sort-dropdown {
    position: relative;
    display: inline-block;
}

.sort-button {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.sort-button:hover {
    background-color: #f5f5f5;
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.sort-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.sort-dropdown-content .sort-option {
    color: #333;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.sort-dropdown-content .sort-option:hover {
    background-color: #f5f5f5;
}

.sort-dropdown-content .sort-option.active {
    background-color: #f0f0f0;
    font-weight: 500;
}

.sort-dropdown:hover .sort-dropdown-content {
    display: block;
}

.sort-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.results-divider {
    height: 1px;
    background-color: #ddd;
    margin-bottom: 0.5rem;
}

.product-title {
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;

}

/* Product grid */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 1rem;
}

.product-item {
    width: calc((100% - 40px) / 3);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.product-card {
    width: 100%;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
}

.product-card-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-info {
    text-align: left;
    margin-top: 0;
    width: 100%;
}

.product-name {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.product-sizes {
    font-size: 0.8rem;
    color: #666;
}

.footer {
    background-color: black;
    padding: 2.5rem 2rem;
}

.footer-title-container {
    margin-left: auto;
    margin-right: auto;
    max-width: fit-content;
    margin-bottom: 2rem;
}

.h2-footer-text {
    color: white;
    font-weight: 200;
    text-align: center;
    margin-bottom: 0.5rem;
}

.footer-divider {
    width: 100%;
    color: white;
}

.p-footer-text {
    color: white;
    text-align: left;
    margin-left: 2rem;
}

.footer-centered-container {
    display: flex;
    justify-content: space-between;
    gap: 5rem;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
}

.footer-label {
    margin-bottom: 0;
    color: white;
}

.footer-label-description {
    color: white;
}

.contacts-divider {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px white solid;
    width: 100%;
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .category-list li {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {  
    .header-right {
        display: none;
    }

    .header-left {
        display: none;
    }
    
    .search-container {
        width: 100%;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .product-image {
        height: 120px;
    }
}