/* GTT Featured Products & Articles v1.3.2: mobile-only layout. */
@media (max-width: 767px) {
  .lfp-25303018-wrapper { padding: 28px 0 40px; gap: 28px; overflow: hidden; }
  .lfp-25303018-products-block { margin-bottom: 34px; position: relative; }
  .lfp-25303018-header { margin: 0 16px 18px; padding-bottom: 12px; gap: 8px; align-items: center; }
  .lfp-25303018-title { font-family: Outfit,sans-serif; font-size: clamp(19px,5.5vw,24px); font-weight: 600; line-height: 1.2; color:#233746; }
  .lfp-25303018-view-all { flex-shrink: 0; text-align: right; max-width: 44%; font-size: 10px; letter-spacing: .25px; color:#578a2a; line-height: 1.3; }
  .lfp-25303018-products-grid {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 11%;
    padding: 4px 11% 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    align-items: stretch;
  }
  .lfp-25303018-products-grid::-webkit-scrollbar { display:none; }
  .lfp-25303018-product-card { flex: 0 0 78%; scroll-snap-align: center; border-radius: 12px; min-width: 0; box-shadow: 0 2px 8px rgba(35,55,70,.06); }
  .lfp-25303018-product-image-wrapper { aspect-ratio: 1.36 / 1; }
  .lfp-25303018-product-details { padding: 13px 14px 16px; }
  .lfp-25303018-product-name { font-family:Outfit,sans-serif; font-size:14px; line-height:1.4; min-height: 2.8em; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; color:#233746; }
  .lfp-25303018-product-price { margin: 4px 0 0; font-size:15px; font-weight:600; color:#233746; }
  .lfp-25303018-product-rating { padding-top:8px; margin-top:8px; }
  .lfp-25303018-wishlist-btn { pointer-events:none; }
  .gtt-fp-carousel-controls { display: flex; justify-content: space-between; pointer-events:none; position:absolute; z-index: 5; top: calc(50% - 12px); left: 2px; right: 2px; transform:translateY(-50%); }
  .gtt-fp-arrow { pointer-events:auto; height: 42px; width:42px; border-radius:50%; display:grid; place-items:center; padding:0; background:#fff; color:#233746; border:1px solid #e2e9de; box-shadow:0 3px 12px rgba(35,55,70,.15); font-size:30px; line-height:1; cursor:pointer; }
  .gtt-fp-arrow:disabled { opacity:.35; cursor:default; }
  .gtt-fp-arrow:focus-visible { outline:3px solid #83b745; outline-offset:2px; }
  .lfp-25303018-posts-block { padding: 0 16px; }
  .lfp-25303018-posts-block .lfp-25303018-header { margin:0 0 18px; }
  .lfp-25303018-posts-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:20px 12px; }
  .lfp-25303018-post-card { min-width:0; }
  .lfp-25303018-post-image { aspect-ratio: 4/3; margin-bottom:10px; border-radius:8px; }
  .lfp-25303018-post-image img { width:100%; height:100%; object-fit:cover; }
  .lfp-25303018-post-date { font-size:10px; letter-spacing:.2px; margin-bottom:5px; }
  .lfp-25303018-post-title { font-family:Outfit,sans-serif; font-size:14px; line-height:1.4; font-weight:600; color:#233746; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
  .lfp-25303018-post-excerpt { display:none; }
  .lfp-25303018-read-more { margin-top:5px; font-size:10px; letter-spacing:.3px; color:#578a2a; }
}
@media (min-width: 768px) { .gtt-fp-carousel-controls { display:none; } }
@media (prefers-reduced-motion: reduce) { .lfp-25303018-products-grid { scroll-behavior:auto; } }

/* v1.3.2: wider focal card, balanced edge previews and controls anchored to card boundaries. */
@media(max-width:767px){
 .lfp-25303018-products-grid {gap:12px; padding-inline:8%; scroll-padding-inline:8%;}
 .lfp-25303018-product-card {flex-basis:84%; scroll-snap-align:center;}
 .lfp-25303018-product-image-wrapper {aspect-ratio:1.48/1;}
 .lfp-25303018-product-name {font-size:15px;line-height:1.42;min-height:2.84em;}
 .lfp-25303018-products-block { --gtt-arrow-inset: max(2px, calc(8% - 21px)); }
 .gtt-fp-carousel-controls {left:var(--gtt-arrow-inset);right:var(--gtt-arrow-inset);top:50%;}
 .lfp-25303018-posts-grid {gap:16px 12px;align-items:stretch;}
 .lfp-25303018-post-card {min-width:0;}
 .lfp-25303018-post-image {aspect-ratio: 5/4;}
 .lfp-25303018-post-content {padding-inline:0;}
 .lfp-25303018-post-title {font-size:13px;line-height:1.4;max-width:100%;overflow-wrap:anywhere;}
 .lfp-25303018-read-more {display:inline-block;min-height:24px;}
}
@media(max-width:359px){.lfp-25303018-product-card{flex-basis:86%;}.lfp-25303018-products-grid{padding-inline:7%;scroll-padding-inline:7%;}.lfp-25303018-post-title{font-size:12px;}}

/* v1.3.2: compact guide intro and editorial article rows, mobile only. */
.gtt-fp-mobile-guide-intro, .gtt-fp-post-category, .gtt-fp-mobile-posts-heading { display: none; }
@media (max-width:767px) {
  .lfp-25303018-products-block { margin-bottom: 24px; }
  .gtt-fp-mobile-guide-intro {
    display: flex; flex-direction: column; align-items: flex-start;
    margin: 0 16px 26px; padding: 20px 22px;
    background: #F0F6EB; border-radius: 12px;
    font-family: Outfit, sans-serif; color: #233746;
  }
  .gtt-fp-guide-eyebrow {font-size: 11px; line-height: 1.4; letter-spacing: .35px; text-transform: uppercase; font-weight: 600; color:#578A2A; margin-bottom: 7px;}
  .gtt-fp-guide-title {font-family:Outfit,sans-serif; font-size: 20px; line-height:1.25; font-weight:600; margin:0 0 8px; color:#233746;}
  .gtt-fp-guide-description {font-size:13px;line-height:1.55;margin:0 0 10px;color:#61717D;}
  .gtt-fp-guide-link {font-size:13px;line-height:1.5;font-weight:600;color:#578A2A;text-decoration:none;min-height:36px;display:inline-flex;align-items:center;gap:6px;}
  .gtt-fp-guide-link:focus-visible {outline:3px solid #83B745;outline-offset:3px;}
  .gtt-fp-original-posts-heading {display:none;}
  .gtt-fp-mobile-posts-heading {display:block;}
  .lfp-25303018-posts-block {background:#F7F8F7; margin:0 12px; padding:20px 12px 22px; border-radius:14px;}
  .lfp-25303018-posts-block .lfp-25303018-header {margin:0 0 14px;padding-bottom:10px;}
  .lfp-25303018-posts-grid {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;}
  .lfp-25303018-post-card {display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;align-items:center;height:auto;min-height:100px;padding:8px;border-radius:12px;background:#fff;}
  .lfp-25303018-post-image {aspect-ratio:1/1; width:88px; height:88px; border-radius:10px; margin:0;}
  .lfp-25303018-post-content {min-width:0;align-self:center;padding:0;}
  .lfp-25303018-post-date {display:none;}
  .gtt-fp-post-category {display:block;font-size:10px;line-height:1.4;font-weight:600;letter-spacing:.2px;color:#578A2A;text-transform:uppercase;margin-bottom:4px;}
  .lfp-25303018-post-title {font-size:13px;line-height:1.35;font-weight:600;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0;}
  .lfp-25303018-read-more {display:inline-flex;align-items:center;min-height:28px;font-size:11px;letter-spacing:0;text-transform:none;margin:3px 0 0;color:#61717D;}
}
@media (max-width:359px) {
  .lfp-25303018-post-card {grid-template-columns:72px minmax(0,1fr);gap:9px;}
  .lfp-25303018-post-image {width:72px;height:72px;}
  .gtt-fp-guide-title {font-size:18px;}
}


/* v1.3.3: make each completed guide row a full-card tap target on mobile.
   Uses the existing Read More anchor, not an additional/nested link.
   Placeholder (#) destinations remain non-expanded until content is configured. */
@media (max-width: 767px) {
  .lfp-25303018-post-card { position: relative; }
  .lfp-25303018-read-more[href]:not([href="#"]):not([href=""])::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }
  .lfp-25303018-post-card:focus-within {
    outline: 3px solid #83B745;
    outline-offset: 2px;
  }
  .lfp-25303018-read-more:focus-visible { outline: none; }
  .lfp-25303018-post-date:empty { display: none; }
}
@media (max-width: 767px) and (hover: hover) {
  .lfp-25303018-post-card:hover { box-shadow: 0 3px 12px rgba(35, 55, 70, .09); }
}

/* v1.3.4: Match GTT Homepage Featured Reviews v1.0.3 on phones.
   Keep all desktop/tablet product styles, carousel swipe and guide cards intact. */
.gtt-fp-carousel-viewport { position: relative; min-width: 0; }
.gtt-fp-product-badge,
.gtt-fp-product-score,
.gtt-fp-product-best-for,
.gtt-fp-mobile-price { display: none; }
.gtt-fp-carousel-status {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
@media (max-width: 767px) {
  .lfp-25303018-products-block {
    --gtt-fp-card-inset: 30px;
    --gtt-fp-card-peek: 22px;
    --gtt-fp-card-gap: 12px;
    --gtt-fp-arrow-size: 44px;
  }
  /* Full-width viewport track, 329px card at a 393px mobile viewport.
     The next card peeks 22px beyond the first, matching homepage geometry. */
  .lfp-25303018-products-grid {
    gap: var(--gtt-fp-card-gap);
    padding: 4px calc(var(--gtt-fp-card-peek) + var(--gtt-fp-card-gap)) 12px var(--gtt-fp-card-inset);
    scroll-padding-left: var(--gtt-fp-card-inset);
    scroll-padding-right: calc(var(--gtt-fp-card-peek) + var(--gtt-fp-card-gap));
    scroll-snap-type: x mandatory;
  }
  .lfp-25303018-product-card {
    flex: 0 0 100%; /* flex basis is relative to the track content box (viewport minus padding) */
    display: block;
    border: 1px solid #DDE4E8;
    border-radius: 6px;
    box-shadow: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .lfp-25303018-card-link {
    display: grid;
    grid-template-columns: minmax(0, min(112px, 35%)) minmax(0, 1fr);
    grid-template-rows: auto;
    width: 100%;
    min-width: 0;
    min-height: 174px;
    align-items: stretch;
    color: inherit;
  }
  .lfp-25303018-product-image-wrapper {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: auto;
    min-height: 142px;
    aspect-ratio: auto;
    overflow: hidden;
    border: 0;
    background: #fff;
    border-radius: 5px 0 0 5px;
  }
  .lfp-25303018-product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    padding: 25px 5px 8px;
  }
  .lfp-25303018-wishlist-btn { display: none; }
  .gtt-fp-product-badge {
    display: inline-block;
    position: absolute;
    z-index: 2;
    top: 7px;
    left: 6px;
    max-width: calc(100% - 12px);
    padding: 2px 4px;
    border-radius: 3px;
    background: #83B745;
    color: #233746;
    font: 600 11px/1.3 Outfit, sans-serif;
    overflow-wrap: anywhere;
  }
  .lfp-25303018-product-details {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 12px 11px 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .lfp-25303018-product-name {
    font: 600 15px/1.26 Outfit, sans-serif;
    color: #233746;
    margin: 0 0 5px;
    min-height: 0;
    display: block;
    overflow: visible;
    overflow-wrap: anywhere;
  }
  .gtt-fp-product-score {
    display: block;
    margin: 0 0 5px;
    color: #61717D;
    font: 400 14px/1.35 Outfit, sans-serif;
  }
  .gtt-fp-product-score strong { color: #507B25; font-weight: 600; }
  .gtt-fp-product-best-for {
    display: block;
    margin: 0;
    font: 400 14px/1.35 Outfit, sans-serif;
    color: #61717D;
  }
  .lfp-25303018-product-price,
  .lfp-25303018-product-rating { display: none; }
  .gtt-fp-mobile-price {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 7px;
    color: #507B25;
    font: 600 14px/1.4 Outfit, sans-serif;
  }
  .gtt-fp-mobile-price svg { flex: 0 0 auto; }
  .lfp-25303018-card-link:hover .gtt-fp-mobile-price,
  .lfp-25303018-card-link:focus-visible .gtt-fp-mobile-price { color: #233746; }
  .lfp-25303018-card-link:focus-visible { outline: 3px solid #83B745; outline-offset: -3px; }
  /* Exactly the same overlapping arrow style and card-edge geometry as homepage. */
  .gtt-fp-carousel-controls {
    top: 50%;
    left: calc(var(--gtt-fp-card-inset) - var(--gtt-fp-arrow-size) / 2);
    right: calc(var(--gtt-fp-card-peek) + var(--gtt-fp-card-gap) - var(--gtt-fp-arrow-size) / 2);
    transform: translateY(-50%);
    justify-content: space-between;
  }
  .gtt-fp-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--gtt-fp-arrow-size);
    height: var(--gtt-fp-arrow-size);
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    color: #83B745;
    background: #fff;
    border: 1px solid #83B745;
    border-radius: 50%;
    box-shadow: 0 2px 9px rgba(35,55,70,.12);
    font-size: inherit;
    line-height: normal;
    appearance: none;
  }
  .gtt-fp-arrow svg { display: block; width: 17px; height: 17px; stroke: currentColor; }
  .gtt-fp-arrow:disabled { opacity: .35; box-shadow: none; cursor: default; }
  .gtt-fp-arrow:not(:disabled):hover { color: #233746; background: #f1f5eb; }
  .gtt-fp-arrow:focus-visible { outline: 3px solid #feb51c; outline-offset: 2px; }
}
@media (max-width: 359px) {
  .lfp-25303018-products-block { --gtt-fp-card-inset: 24px; --gtt-fp-card-peek: 14px; --gtt-fp-card-gap: 9px; }
  .lfp-25303018-card-link { grid-template-columns: minmax(0, min(92px, 33%)) minmax(0, 1fr); }
  .lfp-25303018-product-name { font-size: 13px; }
  .gtt-fp-product-score, .gtt-fp-product-best-for, .gtt-fp-mobile-price { font-size: 12px; }
}

/* v1.3.5 — final mobile polish: hide unavailable end-of-track controls
 * and tighten vertical section rhythm. Desktop and tablet are unchanged. */
@media (max-width: 767px) {
  /* Retain the arrow positions; do not leave an inactive, faint-looking button. */
  .gtt-fp-carousel-viewport .gtt-fp-arrow:disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: none;
  }
  /* Reduce excess whitespace while preserving 44px touch targets. */
  .lfp-25303018-wrapper { padding-top: 18px; padding-bottom: 28px; }
  .lfp-25303018-products-block { margin-bottom: 16px; }
  .lfp-25303018-products-block > .lfp-25303018-header { margin-bottom: 12px; }
  .lfp-25303018-products-grid { padding-bottom: 8px; }
  .gtt-fp-mobile-guide-intro { margin-bottom: 20px; }
}

/* v1.3.8: Category sections at every breakpoint. Desktop/laptop/tablet use
 * the existing Featured Products grid/card style; phones retain the original
 * swipeable carousel, inset heading dividers, and overlapping arrows. */
.gtt-fp-category-rows {
  display: grid;
  min-width: 0;
  gap: 36px;
  margin: 0 0 48px;
}
.gtt-fp-category-row {
  min-width: 0;
  margin: 0;
  scroll-margin-top: 90px;
}
.gtt-fp-category-row .lfp-25303018-header { margin-bottom: 24px; }
.gtt-fp-category-row .lfp-25303018-products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
}
.gtt-fp-category-empty {
  margin: 0 0 16px;
  padding: 18px 20px;
  border: 1px solid #E0E8DE;
  background: #F9FBF6;
  border-radius: 8px;
  font: 400 15px/1.45 Outfit, sans-serif;
  color: #61717D;
}
.gtt-fp-category-row .lfp-25303018-card-link { text-decoration: none; }
.gtt-fp-category-row .lfp-25303018-product-image-wrapper { background: #fff; }
/* Missing price data should still leave a clear action on wider screens.
 * Priced cards continue to use the unchanged desktop product-price label. */
@media (min-width: 768px) {
  .gtt-fp-category-row .gtt-fp-unpriced-cta {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    color: #507B25;
    font: 600 14px/1.4 Outfit, sans-serif;
  }
  .gtt-fp-category-row .gtt-fp-unpriced-cta svg { flex: 0 0 auto; }
  .gtt-fp-category-row .lfp-25303018-card-link:focus-visible {
    outline: 3px solid #83B745;
    outline-offset: -3px;
  }
}
@media (min-width: 1025px) and (max-width: 1365px) {
  .gtt-fp-category-row .lfp-25303018-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .gtt-fp-category-rows { gap: 30px; margin-bottom: 36px; }
  .gtt-fp-category-row .lfp-25303018-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .gtt-fp-category-row .lfp-25303018-header { margin-bottom: 18px; }
}
@media (max-width: 767px) {
  /* v1.3.8: Keep the product/category/article header dividers within their
   * existing inset header boxes, not at viewport width. The logo strip is
   * rendered by its own widget and remains full bleed. */
  .lfp-25303018-wrapper.gtt-travel-solar-page { overflow: visible; }
  .gtt-travel-solar-page .lfp-25303018-header {
    position: relative;
    border-bottom: 1px solid #DDE4E8;
  }
  .gtt-fp-category-rows { gap: 12px; margin: 0 0 18px; }
  .gtt-fp-category-row { scroll-margin-top: 78px; }
  .gtt-fp-category-row .lfp-25303018-header { margin-bottom: 12px; }
  .gtt-fp-category-empty {
    margin: 0 16px 12px;
    padding: 14px 16px;
    font-size: 13px;
  }
  .gtt-fp-category-row .lfp-25303018-products-grid {
    /* Mobile's flex track remains the same as Featured Products. */
    grid-template-columns: none;
    padding-bottom: 8px;
  }
  .gtt-fp-category-row .gtt-fp-carousel-viewport { position: relative; }
}

/* v1.3.9: Category "VIEW ALL" links share the Featured Products heading style
 * at every breakpoint. Long names wrap without causing mobile overflow. */
.gtt-fp-category-row .lfp-25303018-header .gtt-fp-category-view-all {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0 4px;
  min-width: 0;
  overflow-wrap: normal;
  white-space: normal;
}
.gtt-fp-category-row .gtt-fp-category-view-all:focus-visible {
  outline: 3px solid #83B745;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .gtt-fp-category-row .lfp-25303018-title { min-width: 0; }
  .gtt-fp-category-row .lfp-25303018-header .gtt-fp-category-view-all {
    flex: 0 1 auto;
    max-width: 50%;
    font-size: 10px;
    line-height: 1.3;
    text-align: right;
  }
}
