/**
 * Charcuterie Recipes Module - Frontend Styles
 * Design moderne et responsive
 */

/* ═══════════════════════════════════════════════════════════════════════ */
/* VARIABLES & COLORS */
/* ═══════════════════════════════════════════════════════════════════════ */
:root {
  --recipe-primary: #e74c3c;
  --recipe-secondary: #2c3e50;
  --recipe-success: #27ae60;
  --recipe-warning: #e67e22;
  --recipe-info: #3498db;
  --recipe-light: #ecf0f1;
  --recipe-dark: #34495e;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* LISTE DES RECETTES */
/* ═══════════════════════════════════════════════════════════════════════ */
.recipes-page {
  padding: 30px 0;
}

.recipes-filters-section {
  margin-bottom: 40px;
  padding: 25px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.recipes-filters-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.recipes-search-bar {
  position: relative;
  margin-bottom: 0;
}

.recipes-search-bar .input-group {
  display: flex;
  width: 100%;
}

.recipes-search-bar .input-group-addon {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipes-search-bar .input-group-addon .material-icons {
  color: #666;
  font-size: 20px;
}

.recipes-search-bar .form-control {
  border-left: none;
  border-right: none;
  border: 1px solid #ddd;
  border-left: none;
  padding: 10px 15px;
  flex: 1;
}

.recipes-search-bar .input-group-btn {
  margin-left: 0;
}

.recipes-search-bar .input-group-btn .btn {
  border-radius: 0 4px 4px 0;
  border-left: none;
  padding: 10px 20px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}

.recipes-sort {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.recipes-sort-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.recipes-sort-inline label {
  margin-bottom: 0;
  font-weight: 500;
  color: #333;
  font-size: 14px;
  white-space: nowrap;
}

.recipes-sort-inline select {
  margin-top: 0;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  flex: 1;
  min-width: 150px;
  height: auto;
  min-height: 45px;
}

.filters-panel-content {
  margin-top: 15px;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-checkbox {
  display: inline-block;
  cursor: pointer;
}

.tag-checkbox input[type="checkbox"] {
  display: none;
}

.tag-label {
  display: inline-block;
  padding: 6px 12px;
  background: #ecf0f1;
  border: 1px solid #bdc3c7;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.3s;
}

.tag-checkbox input[type="checkbox"]:checked + .tag-label {
  background: var(--recipe-primary);
  color: #fff;
  border-color: var(--recipe-primary);
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* GRILLE DES RECETTES */
/* ═══════════════════════════════════════════════════════════════════════ */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .recipes-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* CARD RECETTE */
/* ═══════════════════════════════════════════════════════════════════════ */
.recipe-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.recipe-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.recipe-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.recipe-card-image {
  position: relative;
  padding-top: 66.67%; /* Ratio 3:2 */
  overflow: hidden;
  background: #ecf0f1;
}

.recipe-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-card-image img {
  transform: scale(1.1);
}

.recipe-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
}

.recipe-category-badge i {
  font-size: 16px;
}

.recipe-card-image {
  position: relative;
}

.recipe-card-image-link {
  display: block;
  text-decoration: none;
}

.recipe-favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10;
  padding: 0;
}

.recipe-favorite-btn:hover {
  transform: scale(1.1);
  background: #fff;
}

.recipe-favorite-btn.active {
  background: var(--recipe-primary, #d32f2f);
  color: #fff;
}

.recipe-favorite-btn i {
  font-size: 20px;
}

.recipe-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recipe-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
}

.recipe-card-title a {
  color: var(--recipe-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.recipe-card-title a:hover {
  color: var(--recipe-primary);
}

.recipe-card-description {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 15px;
  flex: 1;
}

.recipe-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 0;
  border-top: 1px solid #ecf0f1;
}

.recipe-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #7f8c8d;
}

.recipe-meta-item i {
  font-size: 18px;
  color: var(--recipe-primary);
}

.recipe-card-rating {
  margin-bottom: 10px;
  font-size: 14px;
}

.recipe-card-rating .material-icons {
  font-size: 16px;
  color: #ffc107;
}

.recipe-card-rating .star-filled {
  color: #ffc107;
}

.recipe-card-rating .star-empty {
  color: #ddd;
}

.recipe-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.recipe-tag {
  font-size: 11px;
  padding: 4px 8px;
  background: #ecf0f1;
  border-radius: 12px;
  color: #7f8c8d;
}

.recipe-tag-more {
  font-size: 11px;
  padding: 4px 8px;
  background: #3498db;
  color: #fff;
  border-radius: 12px;
}

.recipe-card-footer {
  padding: 15px 20px;
  border-top: 1px solid #ecf0f1;
  display: none; /* Masqué temporairement */
}

.recipe-card-footer .btn {
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* DÉTAIL RECETTE */
/* ═══════════════════════════════════════════════════════════════════════ */
.recipe-detail-page {
  padding: 30px 0;
}

.recipe-hero-section {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.recipe-images-slider {
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  position: relative;
}

.recipe-slider-main {
  width: 100%;
  position: relative;
}

/* Fallback si Slick n'est pas chargé */
.recipe-slider-main:not(.slick-initialized) .recipe-slide {
  display: block;
  width: 100%;
}

.recipe-slider-main:not(.slick-initialized) .recipe-slide:not(:first-child) {
  display: none;
}

.recipe-slider-main .slick-slide {
  width: 100%;
}

.recipe-slider-main .slick-slide > div {
  width: 100%;
}

.recipe-slider-main img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.recipe-slide {
  width: 100%;
  display: block;
}

.recipe-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.recipe-slider-thumbs {
  margin-top: 20px;
  width: 100%; /* S'assurer que le conteneur a une largeur */
  position: relative;
  /* Slick Slider gère le display, ne pas utiliser flex ici */
}

/* Fallback si Slick n'est pas chargé */
.recipe-slider-thumbs:not(.slick-initialized) {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.recipe-slider-thumbs:not(.slick-initialized) .recipe-thumb {
  flex: 0 0 calc(25% - 10px);
  min-width: 120px;
}

.recipe-slider-thumbs .slick-list {
  margin: 0 -6px; /* Espacement entre les slides */
  width: 100%;
  overflow: hidden;
}

.recipe-slider-thumbs .slick-track {
  display: flex;
  align-items: stretch;
}

.recipe-slider-thumbs .slick-slide {
  padding: 0 6px; /* Espacement entre les slides */
  box-sizing: border-box; /* Inclure le padding dans le calcul */
  height: auto;
}

.recipe-slider-thumbs .slick-slide > div {
  width: 100%;
  height: 100%;
}

.recipe-thumb {
  width: 100%;
  min-width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid #e0e0e0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: block; /* Pour que l'image remplisse */
  box-sizing: border-box; /* Inclure le border dans le calcul */
  position: relative;
}

.recipe-thumb:hover {
  border-color: var(--recipe-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.recipe-thumb.slick-current {
  border-color: var(--recipe-primary);
  box-shadow: 0 4px 16px rgba(0,175,240,0.3);
}

.recipe-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .recipe-thumb {
    min-width: 90px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .recipe-thumb {
    min-width: 80px;
    height: 70px;
  }
}

.recipe-category-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ecf0f1;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 15px;
}

.recipe-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--recipe-secondary);
  margin-bottom: 15px;
}

.recipe-description-short {
  font-size: 16px;
  color: #7f8c8d;
  margin-bottom: 25px;
  line-height: 1.6;
}

.recipe-meta-main {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.recipe-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meta-icon {
  width: 48px;
  height: 48px;
  background: var(--recipe-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.meta-icon i {
  font-size: 24px;
}

.meta-content {
  flex: 1;
}

.meta-label {
  display: block;
  font-size: 12px;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--recipe-secondary);
}

.recipe-rating-favorite {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.recipe-rating-display {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stars-display {
  display: flex;
  gap: 2px;
}

.stars-display .star {
  cursor: pointer;
  font-size: 24px;
  color: #ddd;
  transition: color 0.2s;
}

.stars-display .star.filled {
  color: #ffc107;
}

.stars-display .star:hover {
  color: #ffc107;
}

.btn-favorite {
  display: block;
  max-width: 260px;
  background: #f8f9fa !important;
  color: var(--recipe-dark)!important;
}

.btn-favorite.active {
  background: var(--recipe-primary);
  color: #fff;
  border-color: var(--recipe-primary);
}

.recipe-social-share {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.recipe-social-share h5 {
  margin-bottom: 15px;
  font-size: 14px;
  text-transform: uppercase;
  color: #7f8c8d;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-facebook { background: #3b5998!important; color: #fff; border-color: #3b5998!important; }
.btn-pinterest { background: #bd081c!important; color: #fff; border-color: #bd081c!important; }
.btn-twitter { background: #1da1f2!important; color: #fff; border-color: #1da1f2!important; }

.recipe-views {
  padding: 0 20px;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* INGRÉDIENTS */
/* ═══════════════════════════════════════════════════════════════════════ */
.recipe-ingredients-panel {
  position: sticky;
  top: 20px;
}

.servings-calculator {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.servings-calculator .input-group .form-control {
  text-align: center;
}

.servings-calculator .servings-label {
  font-weight: 600;
  font-size: 16px;
  color: var(--recipe-dark);
}

.servings-calculator .servings-input-group {
  max-width: 150px;
}

.servings-calculator .servings-unit {
  font-weight: 500;
  font-size: 16px;
  color: var(--recipe-dark);
}

.ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ingredient-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px;
  border-bottom: 1px solid #ecf0f1;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.ingredient-item:hover {
  background: #f8f9fa;
}

.ingredient-item:last-child {
  border-bottom: none;
}

.ingredient-item.optional {
  opacity: 0.7;
}

.ingredient-item.checked {
  opacity: 0.5;
  text-decoration: line-through;
}

.ingredient-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ingredient-quantity {
  font-weight: 700;
  color: var(--recipe-primary);
}

.ingredient-name {
  font-weight: 600;
}

/* Actions des ingrédients (panier + check) */
.ingredient-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ingredient-add-to-cart-form {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.ingredient-product-link {
  color: var(--recipe-info);
  background: transparent;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  font-size: 18px;
}

.ingredient-product-link:hover {
  background: rgba(52, 152, 219, 0.1);
  color: var(--recipe-primary);
  transform: scale(1.1);
}

.ingredient-product-link i.material-icons {
  vertical-align: middle;
  font-size: 18px;
}

/* Bouton désactivé (pas de stock) */
.ingredient-product-link.disabled,
.ingredient-product-link:disabled {
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
}

.ingredient-product-link.disabled:hover,
.ingredient-product-link:disabled:hover {
  background: transparent;
  color: #ccc;
  transform: none;
}

.ingredient-add-to-cart-form.out-of-stock {
  opacity: 0.6;
}

.ingredient-add-to-cart-form.out-of-stock .ingredient-product-link {
  position: relative;
}

.ingredient-add-to-cart-form.out-of-stock .ingredient-product-link::after {
  content: '⚠';
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff9800;
  color: white;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Bouton check des ingrédients */
.ingredient-check-btn {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 50%;
  color: #95a5a6;
}

.ingredient-check-btn:hover {
  background: rgba(46, 204, 113, 0.1);
  color: var(--recipe-success);
  transform: scale(1.1);
}

.ingredient-check-btn i.material-icons {
  font-size: 24px;
}

.ingredient-item.checked .ingredient-check-btn {
  color: var(--recipe-success);
}

.ingredient-item.checked .ingredient-check-btn i.material-icons {
  content: "check_circle";
}

.add-all-to-cart {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #ecf0f1;
}

.total-price {
  margin-top: 10px;
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* ÉTAPES DE PRÉPARATION */
/* ═══════════════════════════════════════════════════════════════════════ */
.steps-list {
  margin-top: 20px;
}

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.step-number {
  flex-shrink: 0;
}

.step-circle {
  width: 48px;
  height: 48px;
  background: var(--recipe-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.step-content {
  flex: 1;
}

.step-instruction {
  flex: 1;
  font-size: 16px;
  line-height: 1.7;
  color: var(--recipe-dark);
}

/* Actions des étapes (bouton check) */
.step-actions {
  flex-shrink: 0;
  margin-left: auto;
}

.step-check-btn {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 50%;
  color: #95a5a6;
}

.step-check-btn:hover {
  background: rgba(46, 204, 113, 0.1);
  color: var(--recipe-success);
  transform: scale(1.1);
}

.step-check-btn i.material-icons {
  font-size: 28px;
}

.step-item.checked {
  opacity: 0.6;
  background: #f8f9fa;
}

.step-item.checked .step-instruction {
  text-decoration: line-through;
}

.step-item.checked .step-check-btn {
  color: var(--recipe-success);
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* COMMENTAIRES */
/* ═══════════════════════════════════════════════════════════════════════ */
.recipe-comments-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid #ecf0f1;
}

.comment-item {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 15px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.comment-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--recipe-dark);
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* PAGINATION */
/* ═══════════════════════════════════════════════════════════════════════ */
.recipes-pagination {
  margin-top: 40px;
  text-align: center;
  padding: 20px 0;
}

.recipes-pagination .pagination {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.recipes-pagination .pagination > li {
  display: inline-block;
  margin: 0;
}

.recipes-pagination .pagination > li > a,
.recipes-pagination .pagination > li > span {
  display: inline-block;
  padding: 8px 12px;
  margin: 0;
  line-height: 1.5;
  color: #333;
  text-decoration: none;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  min-width: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.recipes-pagination .pagination > li > a:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
  color: #333;
}

.recipes-pagination .pagination > li.active > span {
  background-color: var(--recipe-primary, #d32f2f);
  color: #fff;
  border-color: var(--recipe-primary, #d32f2f);
  font-weight: 600;
}

.recipes-pagination .pagination > li.disabled > span {
  color: #6c757d;
  background-color: #f8f9fa;
  border-color: #dee2e6;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* RESPONSIVE */
/* ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .recipes-filters-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .recipes-search-bar {
    margin-bottom: 15px;
  }
  
  .recipes-sort {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .recipes-filters-section {
    padding: 15px;
  }
  
  .recipes-search-bar .input-group-btn .btn {
    padding: 10px 15px;
    font-size: 12px;
  }
  
  .recipes-pagination .pagination {
    gap: 3px;
  }
  
  .recipes-pagination .pagination > li > a,
  .recipes-pagination .pagination > li > span {
    padding: 6px 10px;
    min-width: 35px;
    font-size: 14px;
  }
  
  .recipe-title {
    font-size: 24px;
  }

  .recipe-meta-grid {
    grid-template-columns: 1fr;
  }

  .recipe-ingredients-panel {
    position: relative;
    top: 0;
  }

  .step-item {
    flex-direction: column;
    gap: 15px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* PRINT STYLES */
/* ═══════════════════════════════════════════════════════════════════════ */
@media print {
  .recipe-social-share,
  .recipe-rating-favorite,
  .comment-form-panel,
  .recipe-similar-section {
    display: none !important;
  }

  .recipe-ingredients-panel {
    page-break-before: avoid;
  }

  .step-item {
    page-break-inside: avoid;
  }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* PRODUITS LIÉS */
/* ═══════════════════════════════════════════════════════════════════════ */
.recipe-linked-products-section {
  margin: 50px 0;
  padding: 40px 30px;
  background: #f8f9fa;
  border-radius: 8px;
}

.recipe-linked-products-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--recipe-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.recipe-linked-products-section h2 .material-icons {
  font-size: 30px;
  color: var(--recipe-primary);
}

.recipe-linked-products-section .section-description {
  font-size: 15px;
  color: #6c757d;
  margin-bottom: 30px;
}

/* Cards produits */
.recipe-linked-products-section .product-miniature {
  margin-bottom: 20px;
}

.recipe-linked-products-section .thumbnail-container {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.recipe-linked-products-section .thumbnail-container:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--recipe-primary);
}

/* Image produit */
.recipe-linked-products-section .thumbnail-top {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

.recipe-linked-products-section .product-thumbnail {
  display: block;
  position: relative;
  padding-top: 100%;
}

.recipe-linked-products-section .product-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recipe-linked-products-section .thumbnail-container:hover .product-thumbnail img {
  transform: scale(1.05);
}

/* Informations produit */
.recipe-linked-products-section .product-description {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recipe-linked-products-section .product-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  min-height: 35px;
  line-height: 1.3;
}

.recipe-linked-products-section .product-title a {
  color: var(--recipe-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.recipe-linked-products-section .product-title a:hover {
  color: var(--recipe-primary);
}

.recipe-linked-products-section .product-description-short {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Prix */
.recipe-linked-products-section .product-price-and-shipping {
  margin-bottom: 15px;
}

.recipe-linked-products-section .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--recipe-primary);
}

.recipe-linked-products-section .regular-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  margin-right: 8px;
  display: inline-block;
}

/* Actions produit */
.recipe-linked-products-section .product-actions {
  margin-top: auto;
}

.recipe-linked-products-section .product-quantity-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.recipe-linked-products-section .qty {
  flex: 0 0 auto;
  width: 80px;
}

.recipe-linked-products-section .qty input {
  width: 100%;
  height: 40px;
  text-align: center;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 14px;
}

.recipe-linked-products-section .add {
  flex: 1;
  min-width: 0;
}

.recipe-linked-products-section .add-to-cart {
  width: 100%;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.recipe-linked-products-section .add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.recipe-linked-products-section .add-to-cart .material-icons {
  font-size: 18px;
}

/* Responsive */
@media (max-width: 991px) {
  .recipe-linked-products-section .product-title {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .recipe-linked-products-section {
    padding: 25px 15px;
  }

  .recipe-linked-products-section h2 {
    font-size: 20px;
  }

  .recipe-linked-products-section .section-description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .recipe-linked-products-section .product-description {
    padding: 12px;
  }

  .recipe-linked-products-section .product-title {
    font-size: 13px;
  }

  .recipe-linked-products-section .price {
    font-size: 18px;
  }
}

