/**
 * KarlGoods Fashion Premium Styles
 * Styles premium pour la présentation des articles vestimentaires
 */

/* Variables spécifiques aux styles premium */
:root {
    --premium-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --premium-transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --premium-highlight: rgba(37, 99, 235, 0.05);
    --premium-spacing: 3rem;
    --premium-radius: 12px;
    --premium-text-spacing: 1.8;
}

/* Grille améliorée pour les articles de mode */
.fashion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--premium-spacing);
    margin-bottom: 5rem;
}

/* Carte d'article de mode premium */
.fashion-card {
    background-color: #fff;
    border-radius: var(--premium-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--premium-transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fashion-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--premium-shadow);
}

/* Image de l'article avec effet premium */
.fashion-image {
    position: relative;
    overflow: hidden;
    height: 380px;
    background-color: #f9f9f9;
}

.fashion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--premium-transition);
    transform-origin: center;
}

/* Effet de zoom subtil au survol */
.fashion-card:hover .fashion-image img {
    transform: scale(1.03);
}

/* Badge premium */
.fashion-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.fashion-badge.new {
    background-color: #2563EB;
    color: white;
}

.fashion-badge.eco {
    background-color: #10B981;
    color: white;
}

.fashion-badge.sale {
    background-color: #EF4444;
    color: white;
}

/* Contenu de l'article avec espacement premium */
.fashion-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Marque avec style premium */
.fashion-brand {
    font-size: 1.4rem;
    font-weight: 500;
    color: #6B7280;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

/* Titre de l'article avec style premium */
.fashion-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Prix avec style premium */
.fashion-price {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.current-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2563EB;
}

.old-price {
    font-size: 1.6rem;
    color: #9CA3AF;
    text-decoration: line-through;
    margin-left: 1rem;
}

/* Options de couleur avec style premium */
.fashion-colors {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.color-option {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.color-option::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.color-option.active::after {
    border-color: #2563EB;
}

.color-option:hover {
    transform: scale(1.1);
}

/* Actions avec style premium */
.fashion-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.btn-view-fashion {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 2rem;
    background-color: #2563EB;
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-fashion i {
    margin-left: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-view-fashion:hover {
    background-color: #1D4ED8;
    text-decoration: none;
    color: white;
}

.btn-view-fashion:hover i {
    transform: translateX(5px);
}

.btn-wishlist {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background-color: #F3F4F6;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.btn-wishlist:hover {
    background-color: #FEE2E2;
    color: #EF4444;
}

/* Effet de lumière virtuelle */
.fashion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.fashion-card:hover::before {
    opacity: 1;
}

/* Vue détaillée au clic (activée par JS) */
.fashion-detail-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fashion-detail-view.active {
    opacity: 1;
    visibility: visible;
}

.fashion-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: white;
    border-radius: var(--premium-radius);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: auto;
    padding: 0;
    transform: translateY(50px);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
}

.fashion-detail-view.active .fashion-detail-container {
    transform: translateY(0);
}

.fashion-detail-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #1F2937;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.fashion-detail-close:hover {
    background-color: #EF4444;
    color: white;
}

.fashion-detail-gallery {
    position: relative;
    height: 100%;
    background-color: #f9f9f9;
}

.fashion-detail-main-image {
    height: 70%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fashion-detail-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fashion-detail-thumbnails {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.fashion-detail-thumbnail {
    width: 8rem;
    height: 8rem;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.fashion-detail-thumbnail.active {
    opacity: 1;
    box-shadow: 0 0 0 2px #2563EB;
}

.fashion-detail-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fashion-detail-info {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.fashion-detail-brand {
    font-size: 1.6rem;
    font-weight: 500;
    color: #6B7280;
    margin-bottom: 1rem;
}

.fashion-detail-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.fashion-detail-price {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
}

.fashion-detail-current-price {
    font-size: 3rem;
    font-weight: 700;
    color: #2563EB;
}

.fashion-detail-old-price {
    font-size: 2rem;
    color: #9CA3AF;
    text-decoration: line-through;
    margin-left: 1.5rem;
}

.fashion-detail-description {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #4B5563;
    margin-bottom: 3rem;
}

.fashion-detail-colors {
    margin-bottom: 3rem;
}

.fashion-detail-colors-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 1.5rem;
}

.fashion-detail-colors-options {
    display: flex;
    gap: 1.5rem;
}

.fashion-detail-color {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.fashion-detail-color::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.fashion-detail-color.active::after {
    border-color: #2563EB;
}

.fashion-detail-color:hover {
    transform: scale(1.1);
}

.fashion-detail-actions {
    display: flex;
    gap: 2rem;
    margin-top: auto;
}

.fashion-detail-btn {
    flex: 1;
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fashion-detail-btn-primary {
    background-color: #2563EB;
    color: white;
}

.fashion-detail-btn-primary:hover {
    background-color: #1D4ED8;
}

.fashion-detail-btn-secondary {
    background-color: #F3F4F6;
    color: #1F2937;
}

.fashion-detail-btn-secondary:hover {
    background-color: #E5E7EB;
}

/* Zoom sur l'image */
.fashion-zoom-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 5;
}

.fashion-zoom-lens {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid #2563EB;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: none;
    display: none;
}

.fashion-zoom-result {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    border: 2px solid #2563EB;
    background-repeat: no-repeat;
    display: none;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Suggestions de tenues complètes */
.fashion-outfit-suggestions {
    margin-top: 4rem;
}

.fashion-outfit-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 2rem;
}

.fashion-outfit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.fashion-outfit-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.fashion-outfit-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.fashion-outfit-item-info {
    padding: 1rem;
    background-color: #F9FAFB;
}

.fashion-outfit-item-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #1F2937;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fashion-outfit-item-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2563EB;
}

/* Animation de chargement élégante */
@keyframes fashionFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fashion-card {
    animation: fashionFadeIn 0.6s ease forwards;
}

.fashion-card:nth-child(2) {
    animation-delay: 0.1s;
}

.fashion-card:nth-child(3) {
    animation-delay: 0.2s;
}

.fashion-card:nth-child(4) {
    animation-delay: 0.3s;
}

.fashion-card:nth-child(5) {
    animation-delay: 0.4s;
}

.fashion-card:nth-child(6) {
    animation-delay: 0.5s;
}

.fashion-card:nth-child(7) {
    animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 1200px) {
    .fashion-detail-container {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
    
    .fashion-detail-gallery {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .fashion-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .fashion-outfit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fashion-detail-info {
        padding: 2.5rem;
    }
}

@media (max-width: 480px) {
    .fashion-image {
        height: 320px;
    }
    
    .fashion-content {
        padding: 2rem;
    }
    
    .fashion-title {
        font-size: 1.8rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
}