/* ==========================================================================
   BLOCK HP-4 — Shop Products
   Files: block-hp-4-shop-products.php | block-hp-4-shop-products.css
   ========================================================================== */

/* ── Section shell ──────────────────────────────────────────────────────── */
.taula-shop {
  background: #ffffff;
  padding: 100px 100px 80px;
}

/* ── Text header ────────────────────────────────────────────────────────── */
.taula-shop__header {
  text-align: center;
  margin-bottom: 60px;
}

.taula-shop__sub {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  margin: 0 0 12px;
}

.taula-shop__headline {
  font-family: var(--font-heading); /* Staatliches */
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  color: #000;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.taula-shop__body-copy {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── 2-column card grid ─────────────────────────────────────────────────── */
.taula-shop__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

/* ── Product card ───────────────────────────────────────────────────────── */
.taula-shop__card {
  border: 1px solid #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Image — fixed pixel height so text area can grow freely */
.taula-shop__card-img-wrap {
  flex: 0 0 500px;
  overflow: hidden;
}

.taula-shop__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.taula-shop__card:hover .taula-shop__card-img {
  transform: scale(1.03);
}

/* Text — grows to fit content */
.taula-shop__card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 24px 20px;
  border-top: 1px solid #000;
}

.taula-shop__card-info {
  flex: 1;
  min-height: 0;
}

.taula-shop__card-name {
  font-family: var(--font-heading); /* Staatliches */
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  color: #000;
  margin: 0 0 12px; /* doubled from 6px */
  text-transform: uppercase;
}

.taula-shop__card-specs {
  font-family: var(--font-heading); /* Staatliches */
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: #000;
  margin: 0 0 0;
}

/* Centred-dot separator — generous breathing room around each · */
.taula-shop__sep {
  padding: 0 8px;
}

.taula-shop__card-body {
  font-family: var(--font-body); /* Geist Regular */
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #000;
  margin: 14px 0 0;
}

.taula-shop__card-price {
  font-family: var(--font-heading); /* Staatliches — matches spec line */
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: #000;
  margin: 28px 0 0; /* doubled from 14px — gap above price matches body-copy top margin × 2 */
}

/* ── Card action buttons ────────────────────────────────────────────────── */
.taula-shop__card-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-shrink: 0;
}

.taula-shop__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 9px 12px;
  font-family: 'Staatliches', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

/* Learn More — outlined */
.taula-shop__btn--learn {
  background: #ffffff;
  color: #000;
  border: 1px solid #000;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.25s ease;
}

.taula-shop__btn--learn:hover {
  text-decoration-color: currentColor;
}

/* Suppress WooCommerce "View Cart" link injected after AJAX add-to-cart */
.taula-shop__card-actions a.added_to_cart {
  display: none;
}

/* Add to Cart — filled */
.taula-shop__btn--cart {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}

.taula-shop__btn--cart:hover {
  background: #ffffff;
  color: #000;
}

/* ── Below-grid CTA ─────────────────────────────────────────────────────── */
.taula-shop__cta-wrap {
  text-align: center;
}

.taula-shop__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  font-family: var(--font-heading); /* Staatliches */
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  border: 1px solid #000;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.taula-shop__cta:hover {
  background: #000;
  color: #fff;
}

/* ── CSS-driven language switching ─────────────────────────────────────── */
.taula-shop__lang {
  display: none;
}

html[data-taula-lang="CA"] .taula-shop__lang[data-lang="CA"],
html[data-taula-lang="ES"] .taula-shop__lang[data-lang="ES"],
html[data-taula-lang="EN"] .taula-shop__lang[data-lang="EN"] {
  display: inline;
}

/* H3 blocks need block display */
.taula-shop__h3-block {
  display: none;
}

html[data-taula-lang="CA"] .taula-shop__h3-block[data-lang="CA"],
html[data-taula-lang="ES"] .taula-shop__h3-block[data-lang="ES"],
html[data-taula-lang="EN"] .taula-shop__h3-block[data-lang="EN"] {
  display: block;
}

/* Fallbacks */
html:not([data-taula-lang]) .taula-shop__lang[data-lang="EN"],
html[data-taula-lang=""] .taula-shop__lang[data-lang="EN"] {
  display: inline;
}

html:not([data-taula-lang]) .taula-shop__h3-block[data-lang="EN"],
html[data-taula-lang=""] .taula-shop__h3-block[data-lang="EN"] {
  display: block;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .taula-shop {
    padding: 80px 25px 60px;
  }

  .taula-shop__grid {
    grid-template-columns: 1fr;
  }

  .taula-shop__card {
    height: auto;
    min-height: 560px;
  }

  .taula-shop__headline {
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  .taula-shop {
    padding: 60px 20px 48px;
  }

  .taula-shop__headline {
    font-size: 32px;
  }

  .taula-shop__card {
    min-height: 480px;
  }

  .taula-shop__card-text {
    padding: 16px;
  }

  .taula-shop__cta {
    font-size: 20px;
    padding: 12px 28px;
  }
}
