/* Clothing-specific styles only */

.clothing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    width: 100%;
}

.clothing-item {
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.clothing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.2);
}

.clothing-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder {
    color: #ccc;
    font-size: 1.2rem;
    text-align: center;
}

.footer-text {
    text-align: center;
    font-family: 'Optima', serif;
    font-size: 1.5rem;
    color: #fff;
    margin-top: 40px;
    padding: 20px;
    border-top: 2px solid #fff;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 50vw;
    max-height: 80vh;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    overflow: auto;
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-image {
    width: 40%;
    height: auto;
    object-fit: contain;
    background-color: #f5f5f5;
    display: block;
    flex-shrink: 0;
    margin: 0 auto;
}

.modal-info {
    padding: 30px;
    flex-shrink: 0;
}

.modal-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.modal-size {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 15px;
}

.modal-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background-color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #000;
    background-color: rgba(255, 255, 255, 1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .header {
        padding: 20px;
    }

    .title {
        font-size: 2rem;
    }

    .container {
        padding: 20px;
    }

    .clothing-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .modal-content {
        margin: 1% auto;
        max-width: 98vw;
        max-height: 98vh;
    }

    .modal-info {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 35px;
        height: 35px;
    }
}