/**
 * Vendor Store Template - Compléments spécifiques
 * Styles complémentaires au design system principal (lla-vendor-template.css)
 * Contient uniquement les éléments UNIQUES au template vendor store
 * 
 * @package LLA_Marketplace_Connector
 * @since 2.0.0
 * @updated 2026-01-28 - Nettoyage des doublons
 */

/* ============================================
   Sidebar Card (spécifique vendor store)
   ============================================ */
.lla-vendor-sidebar {
  position: sticky;
  top: var(--lla-spacing-xl);
  height: fit-content;
}

.lla-vendor-card {
  background: white;
  border-radius: var(--lla-radius-lg);
  box-shadow: var(--lla-shadow-md);
  overflow: hidden;
}

.lla-vendor-card__header {
  padding: var(--lla-spacing-lg);
  border-bottom: 1px solid var(--lla-border, var(--lla-gray-200));
}

.lla-vendor-card__header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--lla-foreground, var(--lla-gray-900));
}

.lla-vendor-card__body {
  padding: var(--lla-spacing-lg);
}

.lla-vendor-card__footer {
  padding: var(--lla-spacing-lg);
  border-top: 1px solid var(--lla-border, var(--lla-gray-200));
  background: var(--lla-gray-50);
}

.lla-vendor-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--lla-spacing-md);
  margin-bottom: var(--lla-spacing-lg);
  color: var(--lla-muted-foreground, var(--lla-gray-700));
  font-size: 0.875rem;
  line-height: 1.5;
}

.lla-vendor-info-item:last-child {
  margin-bottom: 0;
}

.lla-vendor-info-item svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--lla-primary);
}

.lla-vendor-info-item a {
  color: var(--lla-muted-foreground, var(--lla-gray-700));
  text-decoration: none;
  transition: color 0.2s ease;
}

.lla-vendor-info-item a:hover {
  color: var(--lla-primary);
}

@media (max-width: 1024px) {
  .lla-vendor-sidebar {
    position: static;
  }
}

/* ============================================
   Modal (pour iframe messagerie)
   ============================================ */
.lla-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--lla-spacing-md);
}

.lla-modal.lla-modal--open {
  display: flex;
}

.lla-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.lla-modal__content {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  background: white;
  border-radius: var(--lla-radius-xl);
  box-shadow: var(--lla-shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lla-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--lla-spacing-lg);
  border-bottom: 1px solid var(--lla-border, var(--lla-gray-200));
}

.lla-modal__header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--lla-foreground, var(--lla-gray-900));
}

.lla-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--lla-muted-foreground, var(--lla-gray-500));
  cursor: pointer;
  border-radius: var(--lla-radius-md);
  transition: var(--lla-transition);
}

.lla-modal__close:hover {
  background: var(--lla-muted, var(--lla-gray-100));
  color: var(--lla-foreground, var(--lla-gray-700));
}

.lla-modal__iframe {
  flex: 1;
  width: 100%;
  border: none;
}

/* ============================================
   Featured Products Badge
   ============================================ */
.lla-featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--lla-primary) 0%, var(--lla-primary-hover) 100%);
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--lla-radius-sm);
  box-shadow: 0 2px 8px rgba(var(--lla-primary-rgb, 212, 175, 55), 0.4);
  animation: lla-featured-glow 2s ease-in-out infinite;
}

.lla-featured-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.lla-product-featured {
  position: relative;
}

.lla-product-featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--lla-primary) 0%, var(--lla-primary-light) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lla-product-featured:hover::before {
  opacity: 1;
}

@keyframes lla-featured-glow {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(var(--lla-primary-rgb, 212, 175, 55), 0.4);
  }

  50% {
    box-shadow: 0 2px 15px rgba(var(--lla-primary-rgb, 212, 175, 55), 0.6);
  }
}

/* ============================================
   Promo Badge
   ============================================ */
.lla-vendor-store .products .product .woocommerce-loop-product__link,
.lla-vendor-store .products .product>a:first-child,
.lla-vendor-store .products .product .attachment-woocommerce_thumbnail,
.lla-vendor-store .woocommerce ul.products li.product a.woocommerce-loop-product__link {
  position: relative;
  display: block;
}

.lla-promo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--lla-radius-sm, 4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  animation: lla-promo-pulse 2s ease-in-out infinite;
}

@keyframes lla-promo-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

/* Cache le badge WooCommerce "En solde" si promo badge actif */
.product:has(.lla-promo-badge) .onsale {
  display: none !important;
}

/* ============================================
   Contact Section (spécifique)
   ============================================ */
.lla-contact-section {
  max-width: 600px;
  margin: 0 auto;
}

.lla-contact-card {
  background: var(--lla-muted, var(--lla-beige-50, #FDFCFA));
  border-radius: var(--lla-radius-xl);
  padding: var(--lla-spacing-2xl);
  text-align: center;
  box-shadow: var(--lla-shadow-md);
}

.lla-contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  color: var(--lla-primary);
  margin-bottom: var(--lla-spacing-lg);
  box-shadow: var(--lla-shadow-md);
}

.lla-contact-card h3 {
  margin: 0 0 var(--lla-spacing-md);
  font-size: 1.5rem;
  color: var(--lla-foreground, var(--lla-gray-900));
}

.lla-contact-card p {
  margin-bottom: var(--lla-spacing-xl);
  color: var(--lla-muted-foreground, var(--lla-gray-600));
  line-height: 1.6;
}

.lla-contact-divider {
  position: relative;
  text-align: center;
  margin: var(--lla-spacing-2xl) 0;
}

.lla-contact-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--lla-border, var(--lla-gray-200));
}

.lla-contact-divider span {
  position: relative;
  display: inline-block;
  padding: 0 var(--lla-spacing-md);
  background: white;
  color: var(--lla-muted-foreground, var(--lla-gray-500));
  font-size: 0.875rem;
  font-weight: 500;
}

.lla-contact-direct {
  background: white;
  border-radius: var(--lla-radius-lg);
  padding: var(--lla-spacing-xl);
  box-shadow: var(--lla-shadow-md);
}

.lla-contact-direct h4 {
  margin: 0 0 var(--lla-spacing-lg);
  font-size: 1.125rem;
  color: var(--lla-foreground, var(--lla-gray-900));
}

.lla-contact-direct__item {
  display: flex;
  align-items: center;
  gap: var(--lla-spacing-md);
  padding: var(--lla-spacing-md);
  border-radius: var(--lla-radius-md);
  color: var(--lla-muted-foreground, var(--lla-gray-700));
  text-decoration: none;
  transition: var(--lla-transition);
}

.lla-contact-direct__item:hover {
  background: var(--lla-muted, var(--lla-beige-50, #FDFCFA));
  color: var(--lla-primary);
}

.lla-contact-direct__item svg {
  flex-shrink: 0;
  color: var(--lla-primary);
}

@media (max-width: 480px) {
  .lla-contact-card {
    padding: var(--lla-spacing-lg);
  }

  .lla-contact-card__icon {
    width: 64px;
    height: 64px;
  }
}

/* ============================================
   Empty State
   ============================================ */
.lla-empty-state {
  text-align: center;
  padding: var(--lla-spacing-2xl);
  color: var(--lla-muted-foreground, var(--lla-gray-500));
}

.lla-empty-state svg {
  margin-bottom: var(--lla-spacing-lg);
  opacity: 0.5;
}

.lla-empty-state h3 {
  margin: 0 0 var(--lla-spacing-sm);
  font-size: 1.25rem;
  color: var(--lla-foreground, var(--lla-gray-700));
}

.lla-empty-state p {
  margin: 0;
  font-size: 0.875rem;
}