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

body {
    background-color: white;
    /*background-color: #f8f8f8;*/
    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;
}

a:hover {
    color: #777;
}

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

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    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;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    cursor: pointer;
    font-size: 1.2rem;
    color: #555;
    transition: color 0.3s ease;
}

.search-icon: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;
}

.search-icon:hover {
    color: #000;
}

.search-input {
    position: absolute;
    left: 2rem;
    width: 0;
    padding: 0.5rem;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    font-size: 1rem;
    transition: width 0.3s ease;
    opacity: 0;
}

.search-input.active {
    width: 250px;
    opacity: 1;
}


.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%;
    padding: 0.5rem 0rem;
    background-color: white;
    margin: auto;
    max-width: 1200px;
}

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

.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;
}

@media (max-width: 768px) {
    .header-breadcrumbs {
        padding: 0.5rem 1rem;
    }
}

.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0;
}

.product-container {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-image-container {
    flex: 1;
    position: sticky;
    top: 60px;
    align-self: flex-start;
    background-color: white;
    padding: 0;
    height: 550px;
    width: 700px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1;
}


.product-image-container .product-title {
    margin-top: 1rem;
    text-align: center;
    font-size: 1.8rem;
}

.product-image {
    height: 450px; 
    width: 100%; 
    object-fit: cover; 
    display: block; 
}

.thumbnail-gallery {
    display: flex;
    justify-content: left;
    margin-top: 0;
    background-color: white;
    gap: 0.2rem
}

.thumbnail {
    width: 90px;
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease;
    border: 1px solid white;
}

.thumbnail:hover {
    border-color: #999;
}

.thumbnail.active {
    border-color: black;
}

.image-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.image-control-btn {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.image-control-btn:hover {
    background-color: rgba(255, 255, 255, 1);
}

.product-info {
    flex: 1;
}

.product-title {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    color: black;
}

.sizes-container {
    background-color: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sizes-heading {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 0rem;
    font-weight: 300;
}

.size-buttons-1, .size-buttons-3, .size-buttons-4, .size-buttons-5 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 5px;
    margin-top: 0;
    margin-bottom: 0;
}

.size-button {
    padding: 8px 16px;
    background-color: white;
    border: 1px solid black;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 110px;
    text-align: center;
    font-size: 0.9rem;
    z-index: 99;
}

.size-button.active {
    background-color: #333;
    color: white;
    border-color: #333;
}

.size-button:hover {
    background-color: #e0e0e0;
}

.size-button.active:hover {
    background-color: #444;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin-top: 20px;
    display: none;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 6px;
}

.slide-caption {
    text-align: center;
    padding: 10px 0;
    color: #555;
    font-style: italic;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    z-index: 2;
    border: none;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.slideshow-dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background-color: #333;
}



/*.related-products {
}*/

.related-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #222;
}

.related-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-item {
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.related-image {
    width: 100%;
    object-fit: contain;
    margin-bottom: 0.8rem;
}

.related-name {
    font-weight: 400;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ddd;
}

.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: 768px) {
    .header {
        padding: 1rem;
    }
    
    .header-center {
        flex: 1;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .product-container {
        flex-direction: column;
    }
    
    .product-info {
        margin-top: 1rem;
    }
    
    .related-items {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .search-container {
        width: 150px;
    }
    
    .search-container:hover, .search-container:focus-within {
        width: 180px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .sizes-container {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .related-title {
        font-size: 1.3rem;
    }
}