/* TAPAS ENTERPRISE — Products overview (te-products-) */
.page-products-te {
  --te-products-gold: #f5b800;
  --te-products-orange: #e87a1e;
  --te-products-brown: #3d2814;
  --te-products-beige: #f7f3ed;
  --te-products-gradient: linear-gradient(105deg, #3d2814 0%, #c45e0a 55%, #e87a1e 100%);
  --te-products-heading-gradient: linear-gradient(120deg, #3d2814 0%, #c45e0a 45%, #e87a1e 100%);
}

.page-products-te .te-products-main {
  overflow-x: hidden;
}

.page-products-te [id] {
  scroll-margin-top: calc(var(--header-h, 116px) + 24px);
}

.te-products-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.te-products-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.te-products-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--te-products-orange);
  margin-bottom: 0.75rem;
}

.te-products-label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--te-products-gold), var(--te-products-orange));
  margin-right: 0.6rem;
  vertical-align: middle;
}

.te-products-title {
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--te-products-brown);
  margin-bottom: 1rem;
}

.te-products-title .te-products-accent {
  background: var(--te-products-heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.te-products-desc {
  font-size: 1.02rem;
  color: rgba(61, 40, 20, 0.72);
  line-height: 1.8;
  max-width: 56ch;
}

.te-products-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--te-products-gold), transparent);
  border-radius: 2px;
  margin-top: 1.25rem;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.te-products-line.is-visible {
  transform: scaleX(1);
}

.te-products-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* Banner */
.te-products-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(380px, 52vh, 520px);
  padding: calc(var(--header-h, 116px) + 2rem) 0 2.5rem;
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.te-products-banner__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.te-products-banner__fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #141820 0%, #2a2118 40%, #1a2830 100%);
}

.te-products-banner__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.te-products-banner.is-no-video .te-products-banner__video {
  display: none;
}

.te-products-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 18, 22, 0.55) 0%, rgba(26, 20, 16, 0.88) 100%);
}

.te-products-banner__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.te-products-banner__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.2em 0.28em;
  margin: 0 0 1.25rem;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.te-products-banner__title-line {
  color: #fff;
}

.te-products-banner__title-accent {
  color: var(--te-products-gold);
}

.te-products-banner__desc {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(247, 243, 237, 0.88);
  max-width: 42rem;
}

.te-products-banner__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  font-size: 0.88rem;
  color: rgba(247, 243, 237, 0.75);
}

.te-products-banner__crumb a {
  color: rgba(247, 243, 237, 0.85);
  transition: color 0.25s;
}

.te-products-banner__crumb a:hover {
  color: var(--te-products-gold);
}

.te-products-banner__crumb-sep {
  color: var(--te-products-gold);
}

/* Intro + grid */
.te-products-intro {
  background: #fff;
}

.te-products-intro__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.te-products-intro__head .te-products-desc {
  margin: 0 auto;
}

.te-products-intro__head .te-products-line {
  margin: 1.25rem auto 0;
  transform-origin: center;
}

/* Trust stats strip */
.te-products-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  max-width: 920px;
  margin: 0 auto;
}

.te-products-stat {
  padding: clamp(1rem, 2vw, 1.35rem) clamp(0.85rem, 1.5vw, 1.15rem);
  text-align: center;
  background: linear-gradient(165deg, #fff 0%, var(--te-products-beige) 100%);
  border: 1px solid rgba(92, 61, 30, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(42, 33, 24, 0.05);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}

.te-products-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 122, 30, 0.22);
  box-shadow: 0 14px 32px rgba(42, 33, 24, 0.1);
}

.te-products-stat strong {
  display: block;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: var(--te-products-heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.35rem;
}

.te-products-stat span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(61, 40, 20, 0.62);
}

.te-products-grid-wrap {
  position: relative;
  background: var(--te-products-beige);
}

.te-products-grid-section__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(245, 184, 0, 0.07), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 100%, rgba(232, 122, 30, 0.06), transparent 50%);
  pointer-events: none;
}

.te-products-grid-section .container {
  position: relative;
  z-index: 1;
}

.te-products-grid__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.te-products-grid__head .te-products-desc {
  margin: 0 auto;
}

.te-products-grid__head .te-products-line {
  margin: 1.25rem auto 0;
  transform-origin: center;
}

.te-products-gallery {
  background: linear-gradient(180deg, #fff 0%, #faf7f2 100%);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.te-products-gallery__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

.te-products-gallery__head .te-products-desc {
  margin: 0 auto;
}

.te-products-gallery__head .te-products-line {
  margin: 1.25rem auto 0;
  transform-origin: center;
}

.te-products-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.te-products-gallery__item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(92, 61, 30, 0.08);
  box-shadow: 0 10px 32px rgba(42, 33, 24, 0.07);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}

.te-products-gallery__item:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 122, 30, 0.18);
  box-shadow: 0 20px 44px rgba(42, 33, 24, 0.14);
}

.te-products-gallery__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #6b5344, #3d2814);
}

.te-products-gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.te-products-gallery__item:hover .te-products-gallery__media img {
  transform: scale(1.05);
}

.te-products-gallery__caption {
  padding: 0.75rem 0.9rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--te-products-brown);
  line-height: 1.35;
}

.te-products-gallery__item.is-missing {
  display: none;
}

@media (max-width: 900px) {
  .te-products-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .te-products-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .te-products-gallery__grid {
    grid-template-columns: 1fr;
  }

  .te-products-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .te-products-banner {
    min-height: clamp(300px, 44vh, 400px);
    padding: calc(var(--header-h, 116px) + 1.25rem) 0 2rem;
  }

  .te-products-banner__inner {
    gap: 1.35rem;
    min-height: auto;
  }

  .te-products-banner__title {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .te-products-banner__desc {
    font-size: 0.92rem;
    line-height: 1.65;
    padding: 0 0.25rem;
  }

  .te-products-section {
    padding: clamp(2.25rem, 6vw, 3.25rem) 0;
  }

  .te-products-intro__head,
  .te-products-grid__head,
  .te-products-gallery__head {
    margin-bottom: 1.75rem;
  }

  .te-products-desc {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .page-products-te .product-slide__media {
    height: clamp(140px, 42vw, 180px);
  }

  .page-products-te .product-slide__body {
    padding: 1rem 0.95rem 0.95rem;
  }

  .te-products-cta {
    padding: clamp(2rem, 5vw, 2.75rem) 0;
  }

  .te-products-cta__btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .te-products-btn {
    justify-content: center;
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .te-products-stat {
    padding: 0.95rem 0.75rem;
  }

  .te-products-stat strong {
    font-size: 1.25rem;
  }

  .te-products-stat span {
    font-size: 0.72rem;
  }
}

.te-products-grid-section .products-grid {
  margin-top: 0;
}

.page-products-te .product-slide__inner {
  border-radius: 18px;
  border-color: rgba(92, 61, 30, 0.07);
  box-shadow: 0 10px 32px rgba(42, 33, 24, 0.07);
}

.page-products-te .product-slide:hover .product-slide__inner {
  box-shadow: 0 22px 48px rgba(42, 33, 24, 0.16);
}

@media (max-width: 768px) {
  .page-products-te .product-slide:hover .product-slide__inner {
    box-shadow: 0 10px 32px rgba(42, 33, 24, 0.07);
  }
}

.page-products-te .product-slide__media {
  height: 168px;
}

.page-products-te .product-slide__body {
  padding: 1.2rem 1.15rem 1.15rem;
}

.page-products-te .product-slide__title {
  font-size: 1.02rem;
}

.te-products-empty {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(61, 40, 20, 0.65);
  font-size: 1rem;
}

.te-products-empty.is-visible {
  display: block;
}

.te-products-cta {
  position: relative;
  padding: clamp(2.25rem, 4.5vw, 3rem) 0;
  overflow: hidden;
}

.te-products-cta__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, #3d2814 0%, #b85a0c 52%, #e87a1e 100%);
}

.te-products-cta__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle at 20% 50%, #fff 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.te-products-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.te-products-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 640px;
  margin: 0 auto;
}

.te-products-cta__inner h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

.te-products-cta__inner p {
  margin: 0 0 1.25rem;
  opacity: 0.92;
  line-height: 1.65;
  font-size: 0.95rem;
}

.te-products-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.te-products-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.te-products-btn--primary {
  color: var(--te-products-brown);
  background: #fff;
}

.te-products-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.te-products-btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.te-products-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}

.page-products-te .te-products-footer {
  margin-top: 0;
}

.page-products-te .footer-brand,
.page-products-te .footer-col,
.page-products-te .footer-bottom {
  opacity: 1;
  transform: none;
}

.page-products-te .footer-showcase:not(.is-live) .footer-bottom {
  opacity: 1;
  transform: none;
}

.page-products-te .product-slide.is-highlight .product-slide__inner {
  animation: navHighlightPulse 2.2s ease;
}

a.product-slide__link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.page-home .product-slide__link,
#products .product-slide__link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .te-products-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
