/**
 * Panier vide — hero, univers, châteaux et produits suggérés
 */

.woocommerce-cart.ikn-cart-empty-page .woocommerce,
.woocommerce-cart.ikn-cart-empty-page .e-cart__container .woocommerce {
  background: transparent;
  box-shadow: none;
  padding: 20px 0 40px;
}

.ikn-cart-empty {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  font-family: 'Segoe UI', sans-serif;
}

/* Hero */
.ikn-cart-empty__hero {
  text-align: center;
  background: linear-gradient(135deg, #f9f9f7 0%, #eef3eb 100%);
  border-radius: 20px;
  padding: 48px 32px 40px;
  margin-bottom: 40px;
  border: 1px solid rgba(73, 113, 75, 0.12);
  box-shadow: 0 8px 32px rgba(51, 77, 51, 0.06);
}

.ikn-cart-empty__hero-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 16px;
  opacity: 0.9;
}

.ikn-cart-empty__title {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #334d33;
}

.ikn-cart-empty__message {
  margin: 0 auto 28px;
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #5a6b5a;
}

.ikn-cart-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.ikn-cart-empty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.ikn-cart-empty__btn--primary {
  background: #8ba981;
  color: #fff !important;
  border: none;
}

.ikn-cart-empty__btn--primary:hover {
  background: #66835c;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(102, 131, 92, 0.35);
}

.ikn-cart-empty__btn--secondary {
  background: #fff;
  color: #334d33 !important;
  border: 2px solid #8ba981;
}

.ikn-cart-empty__btn--secondary:hover {
  background: #f3f7f2;
  border-color: #66835c;
}

/* Sections */
.ikn-cart-empty__section {
  margin-bottom: 44px;
}

.ikn-cart-empty__section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.ikn-cart-empty__section-title {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 700;
  color: #334d33;
}

.ikn-cart-empty__section-subtitle {
  margin: 0;
  color: #6c757d;
  font-size: 0.98rem;
}

.ikn-cart-empty__section-link {
  color: #49714b !important;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}

.ikn-cart-empty__section-link:hover {
  color: #334d33 !important;
  text-decoration: underline;
}

/* Pills univers */
.ikn-cart-empty__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ikn-cart-empty__pill {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d8e3d4;
  color: #334d33 !important;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ikn-cart-empty__pill:hover {
  background: #eef3eb;
  border-color: #8ba981;
  transform: translateY(-1px);
}

/* Châteaux — ajustements dans le contexte panier */
.ikn-cart-empty__stores.ikn-recent-stores {
  margin: 0;
}

.ikn-cart-empty__stores .ikn-recent-stores-grid {
  max-width: none;
}

/* Grille produits */
.ikn-cart-empty__products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.ikn-cart-empty__product {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.ikn-cart-empty__product:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.ikn-cart-empty__product-image {
  position: relative;
  display: block;
  height: 170px;
  overflow: hidden;
}

.ikn-cart-empty__product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ikn-cart-empty__product:hover .ikn-cart-empty__product-image img {
  transform: scale(1.04);
}

.ikn-cart-empty__product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #334d33;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(73, 113, 75, 0.2);
}

.ikn-cart-empty__product-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ikn-cart-empty__product-vendor {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #49714b;
}

.ikn-cart-empty__product-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ikn-cart-empty__product-title a {
  color: #2c3e50 !important;
  text-decoration: none;
}

.ikn-cart-empty__product-title a:hover {
  color: #49714b !important;
}

.ikn-cart-empty__product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #49714b;
  margin-bottom: 14px;
}

.ikn-cart-empty__product-price .woocommerce-Price-amount,
.ikn-cart-empty__product-price bdi {
  color: #49714b !important;
}

.ikn-cart-empty__product-cta {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 11px 16px;
  border-radius: 9px;
  background: #8ba981;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.ikn-cart-empty__product-cta:hover {
  background: #66835c;
}

/* Masquer le message WooCommerce par défaut et le bouton retour boutique */
.woocommerce-cart.ikn-cart-empty-page .cart-empty,
.woocommerce-cart.ikn-cart-empty-page .woocommerce-info,
.woocommerce-cart.ikn-cart-empty-page .return-to-shop {
  display: none !important;
}

@media (max-width: 768px) {
  .ikn-cart-empty__hero {
    padding: 36px 20px 32px;
  }

  .ikn-cart-empty__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ikn-cart-empty__btn {
    width: 100%;
  }

  .ikn-cart-empty__products-grid {
    grid-template-columns: 1fr;
  }
}
