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

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
}

/* Хедер — минималистичный */
.header {
    padding: 28px 40px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #1a1a1a 0%, #5a5a5a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.logo small {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #999;
    letter-spacing: 2px;
    background: none;
    background-clip: unset;
    -webkit-background-clip: unset;
    color: #999;
}

.header-right {
    display: flex;
    gap: 32px;
    align-items: center;
}

.header-link {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.header-link:hover {
    color: #000;
}

/* Main container */
.main-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

/* Герой-секция */
.hero {
    margin-bottom: 60px;
    text-align: center;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 500;
    letter-spacing: -1px;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.hero-accent {
    width: 60px;
    height: 2px;
    background: #d4af7a;
    margin: 24px auto 0;
}

/* Фильтры — в одну линию, минимализм */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 24px;
}

.filter-chip {
    background: transparent;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 40px;
    font-family: 'Inter', sans-serif;
}

.filter-chip.active {
    color: #1a1a1a;
    background: #f5f5f5;
}

.filter-chip:hover {
    color: #1a1a1a;
}

.price-filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafafa;
    padding: 0 16px;
    border-radius: 40px;
}

.price-filter-group input {
    width: 90px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.price-filter-group span {
    color: #ccc;
}

.reset-filter {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.reset-filter:hover {
    background: #f5f5f5;
}

/* Сетка товаров — премиальная, с большими отступами */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 48px 32px;
}

/* Карточка товара — элегантная */
.product-card {
    background: white;
    transition: all 0.25s ease;
    cursor: pointer;
}

.product-image-wrapper {
    background: #fafaf8;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.02);
}

.tryon-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    padding: 14px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
}

.product-card:hover .tryon-overlay {
    transform: translateY(0);
}

.tryon-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
    border-radius: 0;
}

.tryon-btn:hover {
    background: #d4af7a;
    color: #1a1a1a;
}

.product-info {
    text-align: left;
}

.product-brand {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #aaa;
    margin-bottom: 8px;
}

.product-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.price {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
}

.old-price {
    font-size: 14px;
    color: #bbb;
    text-decoration: line-through;
    margin-left: 10px;
    font-weight: 400;
}

.size-info {
    font-size: 12px;
    color: #aaa;
    margin-top: 8px;
    letter-spacing: 0.3px;
}

/* no results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #aaa;
    font-size: 15px;
}

/* footer */
.footer {
    border-top: 1px solid #f0f0f0;
    padding: 40px;
    text-align: center;
    color: #aaa;
    font-size: 12px;
    letter-spacing: 1px;
    margin-top: 60px;
}



/* ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

.cards{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}


.garment-card{
    border: 3px solid #D9D9D9;
    border-radius: 10px;
    margin-top: 3vh;
    padding: 10px;
    margin-right: 2vw;
}

.garment-img{
    max-width:18vw;
    height:41vh;
    margin-bottom: 0;
    user-select: none;
}


#conteiner-for-window{
    height:100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
}

.window{
    display:none;
    justify-content: space-around;
    position: fixed;
    margin-bottom: 14vh;
    width: 45vw;
    max-height: 60vh;
    background-color: #ffffff;
    border: 1.5px solid #d4af7a;
    border-radius: 10px;
    padding: 40px 50px;
    z-index: 9999;
}
.upload-placeholder{
    display: grid;
    align-items: center;
}
.upload-box{
    display: grid;
    align-items: center;
}
.result{
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner{
    height: 80px;
    width: 80px;
    border-radius: 50%;
    border: 4px solid #d4af7a ;
    border-top:4px solid #88704e;
    animation: spin 1s ease-in-out infinite;
    
}
@keyframes spin {
    0%{transform: rotate(0deg);}
    100%{transform: rotate(360deg);}
}

.img-in-modal{
    background-color: #ffffff;
    border: 1px dashed #d4af7a;
    height: 41vh;
    width: 15vw;
    border-radius: 10px;
}

.txt-in-modal{
    font-size: 1.5em;
    font-weight: 100;
    color: #d4af7a;
    user-select: none;
    margin-left: 15px;
}
.close-modal{
    position: absolute;
    background-color: #ffffff;
    color: #5C5B5B;
    border-radius: 50%;
    transform: rotate(45deg);
    border: 1px solid #d4af7a;
    user-select: none;
    width:25px;
    height: 25px;
    margin-left: 90%;
}

.result-photo{
    width: 100%;
    height: 100%;
    border-radius: 10px;
}



@media (max-width: 480px) {
    .main-container {
        padding: 20px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .filters-bar {
        flex-wrap: wrap;
        justify-content: center;
    }
    .garment-img{
        max-width: 36vw;
    }
    .window{
        width: 80vw;
        padding: 20px 20px;
        
    }
    .img-in-modal{

    }
    .result{
        width:70vw;
        
    }
    .upload-box{
        position: absolute;
        bottom: 0px;
        height: 93px;
        width: 70px;
        margin-bottom: 30px;
        margin-left: 10px;
    }
    .txt-in-modal{
        font-size: 0.7em;
        margin-left: 7px;
    }
    .close-modal{
        margin-top: -10px;
        right: 0;
        
    }
    .spinner{
        height: 50px;
        width: 50px;
    }
    .garment-card {
        padding: 5px;
    }
}

@media (min-width: 3840px) {
    .header{
        border-bottom: 1px solid #eaeaea;
    }
    .logo{
        font-size: 45px;
    }
    .logo small {
        font-size: 20px;

    }
    .header-link {
        font-size: 23px;
    }
    
    .hero h1 {
        font-size: 80px;
    }
    .hero p {
        font-size: 23px;
    }
    .main-container {
        max-width: 2400px;
    }
    .product-title {
        font-size: 25px;
    }
    .price {
        font-size: 23px;
    }
    .product-brand {
        font-size: 15px;
    }
    .size-info {
        font-size: 18px;
    }
    .tryon-btn{
        font-size: 23px;
    }
    .close-modal {
        font-size: 35px;
    }
    .txt-in-modal {
    font-size: 5.5em;
    }
    .spinner{
        height: 150px;
        width: 150px;
    }
}
