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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #7f8c8d 100%);
    min-height: 100vh;
    padding: 16px;
    color: #FFF5E1; /* Кремовый цвет для всего текста */
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.view {
    display: none;
    flex: 1;
}

.view.active {
    display: block;
}

/* Категории */
.categories-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.category-card {
    background: linear-gradient(135deg, #000000 0%, #666666 100%); /* Диагональный градиент черный-серый */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Серая тень */
    cursor: pointer;
    transition: transform 0.2s ease;
    height: calc((100vh - 100px) / 3);
    color: #FFF5E1; /* Кремовый цвет текста */
}

.category-card:hover {
    transform: translateY(-2px);
}

.category-card img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    border-bottom: 2px solid #333;
}

.category-card h3 {
    padding: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #FFF5E1; /* Кремовый цвет текста */
}

/* Коллекция */
.collection-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 0 16px;
}

.back-button {
    background: linear-gradient(135deg, #000000 0%, #666666 100%); /* Градиент для кнопок */
    color: #FFF5E1; /* Кремовый цвет текста */
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Серая тень */
}

.back-button:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #1a1a1a 0%, #777777 100%);
}

#collection-title {
    font-size: 24px;
    color: #FFF5E1; /* Кремовый цвет текста */
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.dresses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 16px;
}

.dress-card {
    background: linear-gradient(135deg, #000000 0%, #666666 100%); /* Диагональный градиент черный-серый */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Серая тень */
    cursor: pointer;
    transition: transform 0.2s ease;
    color: #FFF5E1; /* Кремовый цвет текста */
}

.dress-card:hover {
    transform: translateY(-2px);
}

.dress-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 2px solid #333;
}

/* Детали платья */
.detail-header {
    padding: 0 16px;
    margin-bottom: 20px;
}

.dress-info {
    background: linear-gradient(135deg, #000000 0%, #666666 100%); /* Градиент для информационного блока */
    border-radius: 12px;
    padding: 16px;
    margin: 0 16px 20px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Серая тень */
    line-height: 1.6;
    color: #FFF5E1; /* Кремовый цвет текста */
}

.dress-info h3 {
    color: #FFF5E1; /* Кремовый цвет заголовка */
    margin-bottom: 12px;
    font-size: 20px;
}

.dress-info p {
    color: #FFF5E1; /* Кремовый цвет текста */
    font-size: 16px;
}

.dress-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
}

.gallery-item {
    background: linear-gradient(135deg, #000000 0%, #666666 100%); /* Градиент для галереи */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Серая тень */
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Контакты */
.contacts {
    background: linear-gradient(135deg, #000000 0%, #666666 100%); /* Градиент для контактов */
    border-radius: 12px;
    padding: 20px;
    margin-top: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Серая тень */
    color: #FFF5E1; /* Кремовый цвет текста */
}

.contacts h3 {
    margin-bottom: 16px;
    color: #FFF5E1; /* Кремовый цвет заголовка */
    font-size: 20px;
}

.contacts p {
    margin-bottom: 8px;
    color: #FFF5E1; /* Кремовый цвет текста */
    line-height: 1.5;
    font-size: 16px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .dresses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-card h3 {
        font-size: 14px;
    }
    
    .dress-card img {
        height: 300px;
    }
    
    .gallery-item img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .dresses-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .dress-card img {
        height: 250px;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .category-card {
        height: calc((100vh - 80px) / 3);
    }
}