/* Styles spécifiques à la boutique IKONU */

/* Variables CSS personnalisées */
:root {
  --ikn-primary: #49714b;
  --ikn-muted: #94ae98;
  --ikn-radius: 14px;
  --ikn-gap: 18px;
}

/* Layout principal pour les fiches produit */
.ikn-summary {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--ikn-gap);
}

@media (max-width: 900px) {
  .ikn-summary {
    grid-template-columns: 1fr;
  }
}

/* Badges et éléments UI */
.ikn-badge {
  display: inline-block;
  background: #eaf0ea;
  color: #315c34;
  border-radius: 9px;
  padding: 4px 8px;
  font-weight: 600;
  font-size: 0.85em;
}

/* Badge vendeur */
.ikn-vendor-badge {
  margin-bottom: 15px;
}

.ikn-vendor-badge img {
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 8px;
}

/* Zone de confiance après ATC */
.ikn-trust {
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: var(--ikn-radius);
  margin-top: 15px;
  font-size: 0.9em;
  color: #666;
}

/* Notes spécifiques aux types de produit */
.ikn-type-note {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: var(--ikn-radius);
  padding: 12px 16px;
  margin: 15px 0;
  font-size: 0.9em;
}

/* Archive hero */
.ikn-archive-hero {
  background: linear-gradient(135deg, var(--ikn-primary), var(--ikn-muted));
  color: white;
  padding: 40px 20px;
  margin-bottom: 30px;
  border-radius: var(--ikn-radius);
}

.ikn-archive-hero h1 {
  margin: 0 0 10px 0;
  font-size: 2.5em;
}

.ikn-archive-hero .desc {
  opacity: 0.9;
  font-size: 1.1em;
}

/* KPIs vendeur */
.ikn-store-kpis {
  margin: 10px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: var(--ikn-radius);
}

/* Cartes produit */
.ikn-card {
  border: 1px solid #e9ecef;
  border-radius: var(--ikn-radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ikn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ikn-card a {
  text-decoration: none;
  color: inherit;
}

.ikn-card h3 {
  padding: 15px;
  margin: 0;
  font-size: 1.1em;
}

/* Améliorations pour les fiches produit */
.single-product .product {
  margin-bottom: 40px;
}

.single-product .woocommerce-product-gallery {
  border-radius: var(--ikn-radius);
  overflow: hidden;
}

.single-product .entry-summary {
  padding: 20px;
  background: #fafafa;
  border-radius: var(--ikn-radius);
}

/* Améliorations pour la loop */
.woocommerce ul.products li.product {
  border-radius: var(--ikn-radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Boutons personnalisés */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--ikn-primary);
  border-radius: var(--ikn-radius);
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.2s;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: #315c34;
  transform: translateY(-1px);
}

/* Prix stylisés */
.woocommerce .price {
  color: var(--ikn-primary);
  font-weight: 700;
  font-size: 1.2em;
}

.woocommerce .price del {
  color: #999;
  font-weight: 400;
}

.woocommerce .price ins {
  text-decoration: none;
  color: #e74c3c;
}

/* Styles pour les archives produits */

/* Filtres personnalisés */
.ikn-custom-filters {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.ikn-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.ikn-filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.ikn-filter-group select {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: #fff;
    font-size: 0.9em;
    transition: border-color 0.3s ease;
}

.ikn-filter-group select:focus {
    outline: none;
    border-color: #49714b;
}

/* Grille des produits */
.ikn-products-grid {
    display: grid;
    gap: 25px;
    margin: 0;
    padding: 0;
}

/* Grille responsive optimisée pour éviter les lignes incomplètes */
@media (min-width: 1200px) {
    .ikn-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .ikn-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .ikn-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .ikn-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Cartes de produits */
.product {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product:hover img {
    transform: scale(1.05);
}

/* Badges */
.ikn-loop-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.ikn-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
}

/* Informations vendeur */
.ikn-loop-vendor {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 0.85em;
}

.ikn-vendor-link {
    color: #49714b;
    text-decoration: none;
    font-weight: 500;
}

.ikn-vendor-link:hover {
    text-decoration: underline;
}

.ikn-vendor-rating-small {
    margin-left: auto;
}

.ikn-vendor-rating-small .stars {
    color: #f39c12;
    font-size: 0.8em;
}

/* Actions rapides */
.ikn-quick-actions {
    display: flex;
    gap: 8px;
    padding: 15px;
    border-top: 1px solid #e9ecef;
}

.ikn-quick-actions button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ikn-quick-add-to-cart {
    background: #49714b;
    color: #fff;
}

.ikn-quick-add-to-cart:hover {
    background: #365138;
}

.ikn-quick-wishlist,
.ikn-quick-compare {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.ikn-quick-wishlist:hover,
.ikn-quick-compare:hover {
    background: #e9ecef;
    color: #495057;
}

/* Header de catégorie */
.ikn-archive-hero {
    background: linear-gradient(135deg, #49714b 0%, #365138 100%);
    color: #fff;
    padding: 40px 20px;
    margin-bottom: 30px;
    border-radius: 12px;
    text-align: center;
}

.ikn-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.ikn-hero-image {
    margin-bottom: 20px;
}

.ikn-hero-image img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.ikn-hero-text h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.ikn-hero-description {
    font-size: 1.1em;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.ikn-hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.ikn-stat {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Badges de produit sur les pages single */
.ikn-product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.ikn-product-badges .ikn-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Badge vendeur sur les pages produit */
.ikn-vendor-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #e9ecef;
}

.ikn-vendor-badge .ikn-badge {
    background: #49714b;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.ikn-vendor-badge .ikn-badge:hover {
    background: #365138;
    color: #fff;
}

.ikn-vendor-rating {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ikn-vendor-rating .stars {
    color: #f39c12;
    font-size: 0.9em;
}

.ikn-vendor-rating small {
    color: #6c757d;
    font-size: 0.8em;
}

/* Zone de confiance */
.ikn-trust {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.ikn-trust-items {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.ikn-trust-item {
    color: #49714b;
    font-weight: 500;
    font-size: 0.9em;
}

/* Informations supplémentaires */
.ikn-additional-info {
    margin: 30px 0;
}

.ikn-delivery-info,
.ikn-return-info {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #e9ecef;
}

.ikn-delivery-info h4,
.ikn-return-info h4 {
    color: #49714b;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.ikn-delivery-info ul,
.ikn-return-info ul {
    margin: 0;
    padding-left: 20px;
}

.ikn-delivery-info li,
.ikn-return-info li {
    margin-bottom: 8px;
    color: #495057;
}

/* Grille des châteaux récents */
.ikn-recent-stores {
    margin: 30px 0;
}

.ikn-recent-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cartes de châteaux */
.ikn-store-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.ikn-store-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: #49714b;
}

.ikn-store-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Image du château */
.ikn-store-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ikn-store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ikn-store-card:hover .ikn-store-image img {
    transform: scale(1.05);
}

/* Badge "Nouveau" */
.ikn-store-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Contenu de la carte */
.ikn-store-content {
    padding: 20px;
}

.ikn-store-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.ikn-store-avatar {
    flex-shrink: 0;
}

.ikn-store-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ikn-store-name {
    margin: 0;
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

/* Informations du château */
.ikn-store-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ikn-store-products-count {
    color: #49714b;
    font-weight: 600;
    font-size: 0.9em;
}

.ikn-store-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ikn-store-rating .stars {
    color: #f39c12;
    font-size: 0.9em;
}

.ikn-store-rating small {
    color: #6c757d;
    font-size: 0.8em;
}

/* Call to action */
.ikn-store-actions {
    text-align: center;
}

.ikn-store-cta {
    display: inline-block;
    background: linear-gradient(135deg, #49714b, #365138);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(73, 113, 75, 0.3);
}

.ikn-store-card:hover .ikn-store-cta {
    background: linear-gradient(135deg, #365138, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(73, 113, 75, 0.4);
}

/* Message "Aucun château" */
.ikn-no-stores {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 1.1em;
}

/* Indicateur de produits masqués */
.ikn-hidden-products-indicator {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #6c757d;
    font-size: 0.9em;
}

.ikn-hidden-products-indicator p {
    margin: 0;
}

.ikn-hidden-products-indicator strong {
    color: #49714b;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .ikn-custom-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ikn-filter-group {
        min-width: auto;
    }
    
    .ikn-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .ikn-hero-text h1 {
        font-size: 2em;
    }
    
    .ikn-hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .ikn-quick-actions {
        flex-direction: column;
    }
    
    .ikn-trust-items {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .ikn-vendor-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ikn-vendor-rating {
        margin-left: 0;
        margin-top: 8px;
    }
    
    /* Grille responsive pour les châteaux */
    .ikn-recent-stores-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }
    
    .ikn-store-content {
        padding: 15px;
    }
    
    .ikn-store-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .ikn-store-name {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .ikn-recent-stores-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ikn-store-image {
        height: 180px;
    }
    
    .ikn-store-content {
        padding: 12px;
    }
}
