/* Chef's Recommendations Animations */
.chef-reco .section-header {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.chef-reco.is-visible .section-header {
  opacity: 1;
  transform: translateY(0);
}

.chef-reco .carousel__item {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.chef-reco.is-visible .carousel__item:nth-child(1) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: translateY(0);
}

.chef-reco.is-visible .carousel__item:nth-child(2) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}

.chef-reco.is-visible .carousel__item:nth-child(3) {
  transition-delay: 0.3s;
  opacity: 1;
  transform: translateY(0);
}

.chef-reco.is-visible .carousel__item:nth-child(4) {
  transition-delay: 0.4s;
  opacity: 1;
  transform: translateY(0);
}

.chef-reco.is-visible .carousel__item:nth-child(5) {
  transition-delay: 0.5s;
  opacity: 1;
  transform: translateY(0);
}

.chef-reco.is-visible .carousel__item:nth-child(6) {
  transition-delay: 0.6s;
  opacity: 1;
  transform: translateY(0);
}

.chef-reco .card__media img {
  transition: transform 0.4s ease;
}

.chef-reco .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 80px -50px rgba(185, 160, 126, 0.6);
}

.chef-reco .card:hover .card__media img {
  transform: scale(1.05);
}

.chef-reco .card {
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.chef-reco .card__price {
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.chef-reco .card:hover .card__price {
  color: var(--accent-2);
  text-shadow: 0 0 20px rgba(217, 195, 163, 0.4);
}

.chef-reco .card:hover {
  border-color: rgba(185, 160, 126, 0.4);
}

.chef-reco .btn--ghost:hover {
  box-shadow: 0 0 0 1px rgba(23, 122, 67, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .chef-reco .section-header,
  .chef-reco .carousel__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .chef-reco .card,
  .chef-reco .card__media img,
  .chef-reco .card__price {
    transition: none;
  }
}

/* Chef's recommendation carousel controls */
.carousel-shell {
  position: relative;
}

.chef-reco .carousel {
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  cursor: grab;
}

.chef-reco .carousel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

.chef-reco .carousel.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.chef-reco .carousel.is-dragging .card {
  pointer-events: none;
}

.chef-reco .carousel__item {
  scroll-snap-stop: always;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.carousel-progress {
  flex: 1;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(245, 243, 239, 0.12);
}

.carousel-progress span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(185, 160, 126, 0.35);
  transition: width 220ms var(--ease);
}

.carousel-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-arrow,
.carousel-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  background: rgba(245, 243, 239, 0.04);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease),
    background 220ms var(--ease), color 220ms var(--ease);
}

.carousel-pause {
  width: 38px;
  height: 38px;
  color: var(--muted);
}

.carousel-arrow:hover,
.carousel-pause:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: rgba(185, 160, 126, 0.12);
  color: var(--accent-2);
}

.carousel-arrow:focus-visible,
.carousel-pause:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.carousel-shell.is-static .carousel-controls {
  display: none;
}

@media (max-width: 680px) {
  .carousel-controls {
    gap: 0.8rem;
  }
  .carousel-arrow {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chef-reco .carousel {
    scroll-behavior: auto;
  }
  .carousel-pause {
    display: none;
  }
  .carousel-progress span,
  .carousel-arrow,
  .carousel-pause {
    transition: none;
  }
}

.page-home .chef-reco {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  border-top: 1px solid rgba(185, 160, 126, 0.16);
  border-bottom: 1px solid rgba(185, 160, 126, 0.16);
  background:
    radial-gradient(circle at 12% 18%, rgba(23, 122, 67, 0.2), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(185, 160, 126, 0.18), transparent 32%),
    linear-gradient(135deg, #111827 0%, #0b1220 58%, #131a27 100%);
}

.page-home .chef-reco::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(217, 195, 163, 0.28) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  opacity: 0.16;
  pointer-events: none;
}

.page-home .chef-reco .section-header {
  align-items: flex-end;
  gap: 2rem;
}

.page-home .chef-reco .chef-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-2);
  font-weight: 700;
}

.page-home .chef-reco .chef-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--btn-green);
  box-shadow: 0 0 0 6px rgba(23, 122, 67, 0.18);
  animation: chefPulse 2s ease-in-out infinite;
}

@keyframes chefPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(23, 122, 67, 0.18); }
  50% { box-shadow: 0 0 0 11px rgba(23, 122, 67, 0); }
}

.page-home .chef-reco h2 {
  max-width: 900px;
  margin-top: 0.9rem;
  color: #fbf8f1;
  font-size: clamp(2.5rem, 5.4vw, 4.8rem);
  line-height: 1.02;
}

.page-home .chef-reco .lead {
  max-width: 680px;
  color: #cbd5e1;
}

.page-home .chef-reco .chef-live {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  color: #94a3b8;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-home .chef-reco .chef-live__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--btn-green);
  box-shadow: 0 0 12px rgba(23, 122, 67, 0.9);
}

.page-home .chef-reco .chef-header__link {
  flex: 0 0 auto;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--accent);
  white-space: nowrap;
}

.page-home .chef-reco .carousel-shell {
  margin-top: 2.5rem;
}

.page-home .chef-reco .carousel {
  counter-reset: chef;
  gap: 1.25rem;
  padding: 0.4rem 0.2rem 1.2rem;
  scroll-padding-left: 0.2rem;
}

.page-home .chef-reco .carousel__item {
  counter-increment: chef;
  width: min(310px, 80vw);
}

.page-home .chef-reco .carousel__item.is-signature {
  width: min(620px, 88vw);
}

.page-home .chef-reco .card {
  position: relative;
  border: 1px solid rgba(185, 160, 126, 0.2);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  box-shadow: 0 32px 70px -52px rgba(0, 0, 0, 0.95);
}

.page-home .chef-reco .card__media {
  aspect-ratio: 4 / 3;
}

.page-home .chef-reco .card__media::after {
  content: counter(chef, decimal-leading-zero);
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 34px;
  padding: 0 0.6rem;
  border: 1px solid rgba(217, 195, 163, 0.42);
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.78);
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.page-home .chef-reco .carousel__item.is-signature .card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 430px;
}

.page-home .chef-reco .carousel__item.is-signature .card__media {
  height: 100%;
  aspect-ratio: auto;
}

.page-home .chef-reco .carousel__item.is-signature .card__body {
  justify-content: center;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.page-home .chef-reco .chef-signature {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(217, 195, 163, 0.5);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: var(--accent-2);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.page-home .chef-reco .chef-category {
  color: var(--accent-2);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.page-home .chef-reco .card__header {
  align-items: center;
}

.page-home .chef-reco .card__header h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.page-home .chef-reco .carousel__item.is-signature .card__header h3 {
  font-size: 2rem;
}

.page-home .chef-reco .card__price {
  color: var(--accent-2);
  font-size: 1.35rem;
}

.page-home .chef-reco .dish-note {
  color: #fbbf24;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-home .chef-reco .card__body > p:not(.dish-note) {
  color: #cbd5e1;
  font-size: 0.92rem;
}

.page-home .chef-reco .btn--ghost {
  align-self: flex-start;
  margin-top: auto;
}

.page-home .chef-reco .btn--ghost i {
  margin-left: 0.35rem;
}

.page-home .chef-reco .carousel-controls {
  margin-top: 1.6rem;
}

.page-home .chef-reco .carousel-progress {
  background: rgba(226, 232, 240, 0.14);
}

@media (max-width: 900px) {
  .page-home .chef-reco .section-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-home .chef-reco .carousel__item.is-signature {
    width: min(430px, 86vw);
  }
  .page-home .chef-reco .carousel__item.is-signature .card {
    display: flex;
    min-height: 0;
  }
  .page-home .chef-reco .carousel__item.is-signature .card__media {
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .page-home .chef-reco .carousel__item.is-signature .card__header h3 {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .chef-reco .chef-eyebrow::before {
    animation: none;
  }
}

.page-home .chef-reco .chef-eyebrow,
.page-home .chef-reco .chef-category,
.page-home .chef-reco .card__price {
  color: #ffd9a0;
}

.page-home .chef-reco h2 {
  color: #fffaf2;
}

.page-home .chef-reco .lead,
.page-home .chef-reco .chef-live,
.page-home .chef-reco .card__body > p:not(.dish-note) {
  color: #e8eef7;
}

.page-home .chef-reco .dish-note {
  color: #ffd166;
}

.page-home .chef-reco .tag {
  color: #f8fafc;
  border-color: rgba(248, 250, 252, 0.36);
}

.page-home .chef-reco ::placeholder {
  color: #dbe4f0;
  opacity: 1;
}

.page-home .chef-reco .card__media {
  background: linear-gradient(135deg, #263449, #111a2b);
}

.page-home .chef-reco .chef-grid .carousel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

.page-home .chef-reco .chef-grid .carousel__item,
.page-home .chef-reco .chef-grid .carousel__item.is-signature {
  width: auto;
}

.page-home .chef-reco .chef-grid .carousel__item.is-signature {
  grid-column: 1 / -1;
}

.page-home .chef-reco .chef-grid .card,
.page-home .chef-reco .chef-grid .carousel__item.is-signature .card {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.15fr);
  min-height: 250px;
}

.page-home .chef-reco .chef-grid .carousel__item.is-signature .card {
  min-height: 320px;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.25fr);
}

.page-home .chef-reco .chef-grid .card__media,
.page-home .chef-reco .chef-grid .carousel__item.is-signature .card__media {
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
}

.page-home .chef-reco .chef-grid .card__body {
  justify-content: flex-start;
  gap: 0.7rem;
  padding: clamp(1.25rem, 2.4vw, 1.8rem);
}

.page-home .chef-reco .chef-grid .chef-specs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-home .chef-reco .chef-grid .card__price {
  margin-top: 0;
  font-size: 1.25rem;
}

.page-home .chef-reco .chef-grid .card__header h3 {
  overflow-wrap: anywhere;
  font-size: 1.35rem;
  line-height: 1.25;
}

.page-home .chef-reco .chef-grid .carousel__item.is-signature .card__header h3 {
  font-size: 2rem;
}

.page-home .chef-reco .chef-grid .card__body > p:not(.dish-note) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

@media (max-width: 900px) {
  .page-home .chef-reco .chef-grid .carousel {
    grid-template-columns: 1fr;
  }
  .page-home .chef-reco .chef-grid .carousel__item.is-signature {
    grid-column: auto;
  }
  .page-home .chef-reco .chef-grid .carousel__item.is-signature .card {
    min-height: 250px;
    grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.15fr);
  }
}

@media (max-width: 560px) {
  .page-home .chef-reco .chef-grid .card,
  .page-home .chef-reco .chef-grid .carousel__item.is-signature .card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .page-home .chef-reco .chef-grid .card__media,
  .page-home .chef-reco .chef-grid .carousel__item.is-signature .card__media {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .page-home .chef-reco .chef-grid .card__body {
    padding: 1.35rem;
  }
  .page-home .chef-reco .chef-grid .carousel__item.is-signature .card__header h3 {
    font-size: 1.55rem;
  }
}

.page-home .chef-reco .chef-grid .card,
.page-home .chef-reco .chef-grid .carousel__item.is-signature .card {
  color: #ffffff;
  border-color: rgba(248, 250, 252, 0.24);
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 0 32px 70px -48px rgba(0, 0, 0, 0.85);
}

.page-home .chef-reco .chef-grid .card__media {
  background: linear-gradient(135deg, #263449, #111a2b);
}

.page-home .chef-reco .chef-grid .card__media::after {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(20, 28, 36, 0.86);
  color: #ffffff;
}

.page-home .chef-reco .chef-grid .chef-signature {
  border-color: #145439;
  background: #1b6b4a;
  color: #ffffff;
}

.page-home .chef-reco .chef-grid .card__header h3,
.page-home .chef-reco .chef-grid .chef-category,
.page-home .chef-reco .chef-grid .card__price,
.page-home .chef-reco .chef-grid .dish-note,
.page-home .chef-reco .chef-grid .chef-card__description,
.page-home .chef-reco .chef-grid .chef-card__highlights,
.page-home .chef-reco .chef-grid .card__tags,
.page-home .chef-reco .chef-grid .tag {
  color: #ffffff;
}

.page-home .chef-reco .chef-grid .chef-card__description {
  display: block;
  overflow: visible;
  font-size: 0.92rem;
  line-height: 1.6;
  -webkit-line-clamp: unset;
}

.page-home .chef-reco .chef-grid .chef-card__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  list-style: none;
}

.page-home .chef-reco .chef-grid .chef-card__highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.page-home .chef-reco .chef-grid .chef-card__highlights i {
  color: #ffffff;
}

.page-home .chef-reco .chef-grid .tag {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}
