/* Product tiles use a real link, with basket and directions kept above it. */
#products .product { position: relative; isolation: isolate; }
#products .product-detail-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
#products .product-detail-link:focus-visible::after { outline: 2px solid var(--green); outline-offset: -3px; border-radius: inherit; }
#products .product-detail-link span { margin-inline-start: .22em; color: #516c50; font: 600 .75em 'DM Sans', sans-serif; }
#products .product-detail-link:hover { text-decoration: underline; text-underline-offset: .16em; }
#products .product-body button, #products .pickup-map-link { position: relative; z-index: 2; }

html:lang(en) .tea-page [lang="es"], html:lang(es) .tea-page [lang="en"] { display: none; }
.tea-main { width: min(90%, 1120px); margin: auto; padding: clamp(22px, 4vw, 48px) 0 66px; }
.tea-back { display: inline-block; color: var(--green); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.tea-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 86px); align-items: center; margin-top: 24px; }
.tea-photo { margin: 0; padding: clamp(12px, 3.5vw, 36px); border-radius: 22px; background: var(--tea-tint); }
.tea-photo a { display: grid; justify-items: center; gap: 12px; }
.tea-photo img { display: block; width: 100%; height: clamp(225px, 39vw, 420px); object-fit: contain; }
.tea-image-action { padding: 7px 12px; border-radius: 20px; background: #ffffffcf; color: var(--green); font-size: 12px; font-weight: 700; }
.tea-photo a:hover .tea-image-action { text-decoration: underline; }
.tea-package-photo { margin-top: 12px; padding-top: 10px; border-top: 1px solid #244a3630; text-align: center; }
.tea-photo .tea-package-photo img { width: 100%; max-width: 240px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 49%; border-radius: 9px; }
.tea-package-photo p { margin: 5px 0 0; font-size: 11px; line-height: 1.35; color: var(--green); }
.tea-kicker { color: #46604b; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.tea-intro h1 { margin: 12px 0 16px; color: var(--green); font-size: clamp(34px, 5.1vw, 68px); line-height: 1.06; overflow-wrap: anywhere; }
.tea-lead { margin: 0; max-width: 48ch; font-size: clamp(16px, 2vw, 19px); line-height: 1.65; }
.tea-tastes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0; }
.tea-tastes li { padding: 6px 12px; border-radius: 18px; border: 1px solid #cbd9c8; background: #eef2e9; color: #344e38; font-size: 12px; }
.tea-actions { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.tea-actions .btn { padding: 14px 17px; }
.tea-facts, .tea-methods { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(16px, 4vw, 48px); }
.tea-facts { margin: clamp(30px, 6vw, 72px) 0; }
.tea-facts article { border-top: 1px solid #9fb4a0; padding-top: 17px; }
.tea-facts h2 { margin: 0 0 8px; font-size: clamp(23px, 3vw, 34px); color: var(--green); }
.tea-facts p { margin: 0; }
.tea-brewing { padding: clamp(20px, 5vw, 54px); border-radius: 22px; background: #e6ece1; scroll-margin-top: 18px; }
.tea-brewing h2 { margin: 7px 0 10px; font-size: clamp(32px, 4.5vw, 52px); color: var(--green); }
.tea-brewing > p { margin: 0 0 20px; }
.tea-methods { gap: 14px; }
.tea-method { padding: clamp(16px, 3vw, 29px); background: #fffdf8; border-radius: 15px; }
.tea-method h3 { margin: 0 0 8px; color: var(--green); font-size: clamp(22px, 2.5vw, 28px); }
.tea-method .tea-measure { margin: 0; color: #3f6045; font-size: 13px; font-weight: 700; }
.tea-method ol { margin: 12px 0 0; padding-inline-start: 20px; line-height: 1.6; }
.tea-method li + li { margin-top: 7px; }
.tea-brewing .tea-tip { margin: 18px 0 0; }
.tea-page :focus-visible { outline: 2px solid #46654e; outline-offset: 3px; }
@media (max-width: 700px) {
  .tea-hero, .tea-facts, .tea-methods { grid-template-columns: 1fr; }
  .tea-photo img { height: min(68vw, 360px); }
  .tea-facts { gap: 20px; }
}

/* On landscape tablets, put the story, ingredients, and recipe in one view. */
@media (min-width: 800px) and (orientation: landscape) {

  .tea-main {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    align-items: center;
    gap: 7px clamp(13px, 2.2vw, 28px);
    width: min(95%, 1180px);
    padding: 6px 0 8px;
  }

  .tea-main > .tea-back, .tea-brewing { grid-column: 1 / -1; }

  .tea-hero {
    grid-template-columns: minmax(0, .65fr) minmax(0, 1.55fr);
    gap: clamp(14px, 2vw, 25px);
    margin: 0;
  }

  .tea-photo { padding: 10px; border-radius: 15px; }
  .tea-photo a { gap: 6px; }
  .tea-photo img {
    height: clamp(128px, 24vh, 210px);
    height: clamp(128px, 24svh, 210px);
  }

  .tea-image-action { padding: 5px 8px; font-size: 11px; }
  .tea-intro h1 { margin: 6px 0 8px; font-size: clamp(26px, 3.05vw, 40px); }
  .tea-lead, .tea-facts p, .tea-brewing > p, .tea-method ol {
    font-size: 14px;
    line-height: 1.32;
  }

  .tea-tastes { gap: 5px; margin: 7px 0; }
  .tea-tastes li { padding: 3px 8px; font-size: 11px; }
  .tea-actions { gap: 8px 12px; }
  .tea-actions .btn { padding: 9px 11px; font-size: 11px; }

  .tea-facts { grid-template-columns: 1fr; gap: 7px; margin: 0; }
  .tea-facts article { padding-top: 7px; }
  .tea-facts h2 { margin: 0 0 3px; font-size: clamp(19px, 2.05vw, 26px); }

  .tea-brewing { padding: 8px 13px; border-radius: 16px; }
  .tea-brewing > .tea-kicker { display: none; }
  .tea-brewing h2 { margin: 0 0 3px; font-size: clamp(22px, 2.45vw, 32px); }
  .tea-brewing > p { margin: 0 0 6px; }
  .tea-methods { gap: 10px; }
  .tea-method { padding: 7px 12px; border-radius: 11px; }
  .tea-method h3 { margin: 0 0 3px; font-size: clamp(17px, 2vw, 23px); }
  .tea-method .tea-measure { font-size: 12px; line-height: 1.25; }
  .tea-method ol { margin-top: 4px; line-height: 1.27; }
  .tea-method li + li { margin-top: 2px; }
  .tea-brewing .tea-tip { margin: 6px 0 0; }

  .tea-brewing { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .tea-brewing h2, .tea-brewing > p:not(.tea-tip) { margin: 0; }
  .tea-brewing > p:not(.tea-tip) { font-size: 13px; }
  .tea-methods, .tea-tip { grid-column: 1 / -1; }
  .tea-methods { margin-top: 5px; }
}

.tea-research { font-size: .9em; color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.tea-ingredient-guide { margin-top: 3px; }
.tea-ingredient-guide summary { color: var(--green); cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1.3; }
.tea-ingredient-guide dl { margin: 9px 0 0; padding: 10px 12px; background: #fffdf8; border-radius: 10px; }
.tea-ingredient-guide dt { color: var(--green); font-weight: 700; font-size: 14px; }
.tea-ingredient-guide dd { margin: 2px 0 9px; font-size: 14px; line-height: 1.45; }
.tea-ingredient-guide dd:last-child { margin-bottom: 0; }