/* Ported from where-to-buy/index.html - 2 <style> block(s), in document order.
   Cascade order is preserved: a later block in the source is a later rule
   here, which is what several of these rely on to override the shared
   layer. */

/* Page-specific: Where to Buy */

    /* Hero mirrors About page: pure black, orange H1, straight overlapping tiles */
    .wtb-hero {
      padding-top: 178px;
      padding-bottom: 138px;
      background: var(--ink);
    }
    /* NeeDoh branding-pattern overlay — cover + center, 7% opacity */
    .wtb-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: url('../images/branding-patterns/needoh-branding-pattern-2.svg');
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center left;
      opacity: 0.07;
      pointer-events: none;
      z-index: 0;
    }
    /* Ink sweep — fades the pattern away toward the hero text on the left */
    .wtb-hero::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to right,
        var(--ink) 0%,
        var(--ink) 32%,
        rgba(35,31,32,0) 62%
      );
      pointer-events: none;
      z-index: 1;
    }
    .wtb-hero .lede { max-width: 42ch; }
    .wtb-hero h1.display { color: var(--brand-orange); }

    @keyframes wtb-hero-in {
      0%   { opacity: 0; transform: translateY(18px); }
      100% { opacity: 1; transform: translateY(0); }
    }
    .wtb-hero .hero-split-text > * {
      animation: wtb-hero-in 700ms cubic-bezier(.2,.7,.2,1) both;
    }
    .wtb-hero .hero-split-text > *:nth-child(1) { animation-delay:  60ms; }
    .wtb-hero .hero-split-text > *:nth-child(2) { animation-delay: 160ms; }
    .wtb-hero .hero-split-text > *:nth-child(3) { animation-delay: 280ms; }
    .wtb-hero .hero-split-text > *:nth-child(4) { animation-delay: 380ms; }
    .wtb-hero .hero-split-text > *:nth-child(5) { animation-delay: 480ms; }
    @media (prefers-reduced-motion: reduce) {
      .wtb-hero .hero-split-text > * { animation: none; }
    }

    /* Straightened tile stack — two overlapping tiles, JS parallax on top */
    .wtb-hero .tile-stack { min-height: 440px; }
    .wtb-hero .tile-stack .tile.stack-a {
      top: -32px; right: 0; width: 64%; z-index: 2;
      transform: translateY(0);
      will-change: transform;
    }
    .wtb-hero .tile-stack .tile.stack-b {
      bottom: -32px; left: 0; width: 64%; z-index: 3;
      transform: translateY(0);
      will-change: transform;
    }
    .wtb-hero .tile-stack .tile.stack-c { display: none; }
    /* Mobile: pull the two tiles into a diagonal overlap so they don't read as
       two separate stacked squares. Container height shrinks so tile heights
       (aspect-ratio 1/1) meet in the middle. */
    @media (max-width: 640px) {
      .wtb-hero .tile-stack { min-height: 320px; }
      .wtb-hero .tile-stack .tile.stack-a {
        top: 0; right: 0; width: 68%;
      }
      .wtb-hero .tile-stack .tile.stack-b {
        bottom: 0; left: 0; width: 68%;
      }
    }

    /* Two-column entry: Buy Direct + Find A Retailer */
    .buy-split {
      display: grid;
      grid-template-columns: 1.05fr 1fr;
      gap: 24px;
      margin-top: 8px;
    }
    @media (max-width: 900px) { .buy-split { grid-template-columns: 1fr; } }
    .buy-card {
      border-radius: 32px;
      padding: 44px;
      display: flex;
      flex-direction: column;
      gap: 18px;
      position: relative;
      overflow: hidden;
      min-height: 380px;
    }
    .buy-card.buy-direct {
      background: var(--brand-blue);
      color: #fff;
    }
    .buy-card.buy-direct h3 { color: #fff; }
    .buy-card.buy-direct p  { color: rgba(255,255,255,0.95); }
    .buy-card.buy-direct .btn { background: var(--ink); color: var(--accent); align-self: flex-start; margin-top: auto; }
    .buy-card.buy-direct .btn:hover { background: #fff; color: var(--accent); }
    .buy-card.buy-retail {
      background: var(--ink);
      color: #fff;
    }
    .buy-card.buy-retail h3 { color: #fff; }
    .buy-card.buy-retail p  { color: rgba(255,255,255,0.85); }
    .buy-card.buy-retail .btn { background: var(--accent); color: #fff; align-self: flex-start; margin-top: auto; }
    .buy-card.buy-retail .btn:hover { background: #fff; color: var(--accent); }

    .buy-card h3 {
      font-family: var(--font-display);
      font-weight: 400;
      font-size: clamp(26px, 3vw, 40px);
      line-height: 1.1;
      margin: 0;
    }

    /* Image placeholder — bleeds to top / left / right edges of the buy-card */
    .buy-card-image {
      aspect-ratio: 5 / 3;
      background: rgba(255,255,255,0.14);
      overflow: hidden;
      display: block;
      margin: -44px -44px 24px;
      position: relative;
    }
    .buy-card-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
    }

    /* ZIP search */
    .zip-search {
      display: flex;
      gap: 12px;
      max-width: 560px;
      margin: 28px 0 40px;
    }
    .zip-search input {
      flex: 1;
      padding: 18px 22px;
      border: 2px solid var(--ink);
      border-radius: var(--radius-pill);
      background: var(--paper);
      color: var(--ink);
      font-size: 16px;
      font-family: var(--font-body);
      transition: box-shadow 180ms;
    }
    .zip-search input:focus { outline: none; box-shadow: 0 0 0 3px rgba(35,31,32,0.18); }
    .zip-search .btn { flex-shrink: 0; }
    @media (max-width: 640px) {
      .zip-search { flex-direction: column; }
      .zip-search .btn { width: 100%; justify-content: center; }
    }

    /* Retailer tiles */
    .retailer-tiles {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 28px;
    }
    @media (max-width: 720px) { .retailer-tiles { grid-template-columns: 1fr; } }
    .retailer-tile {
      border-radius: 28px;
      padding: 32px;
      background: var(--paper);
      color: var(--ink);
      text-decoration: none;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 200px;
      transition: transform 260ms cubic-bezier(.4,0,.2,1), box-shadow 260ms;
      position: relative;
      overflow: hidden;
    }
    .retailer-tile:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -16px rgba(35,31,32,0.28); }
    .retailer-tile.target  { background: #cc0000; color: #fff; }
    .retailer-tile.walmart { background: #0071ce; color: #fff; }
    .retailer-tile.amazon  { background: var(--ink); color: #fff; }
    .retailer-tile .rt-label {
      font-family: var(--font-display);
      font-size: 30px;
      line-height: 1;
    }
    .retailer-tile .rt-cta {
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .retailer-tile .rt-cta svg { transition: transform 220ms ease; }
    .retailer-tile:hover .rt-cta svg { transform: translateX(4px); }

    .retailer-note {
      background: var(--cream-2);
      border-radius: 20px;
      padding: 20px 24px;
      color: var(--ink-soft);
      font-size: 14.5px;
      line-height: 1.55;
      margin-top: 24px;
    }
    .retailer-note strong { color: var(--ink); font-weight: 600; }

    /* ---------- AUTHORIZED DEALER DIRECTORY (migrated from home page) ---------- */
    .dealer-dir-filters {
      display: grid;
      grid-template-columns: 1fr 1fr 1.5fr;
      gap: 14px;
      max-width: 880px;
      margin: 0 auto 28px;
    }
    .dealer-dir-filters select,
    .dealer-dir-filters input {
      padding: 16px 20px;
      background: var(--paper);
      border: 2px solid var(--ink);
      border-radius: var(--radius-pill);
      font-size: 15px;
      font-family: var(--font-body);
      color: var(--ink);
      outline: none;
      transition: box-shadow 180ms;
      min-width: 0;
    }
    .dealer-dir-filters select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      padding-right: 44px;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 L 6 6.5 L 11 1.5' fill='none' stroke='%23231f20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
      background-repeat: no-repeat;
      background-position: right 20px center;
    }
    .dealer-dir-filters select:focus,
    .dealer-dir-filters input:focus {
      box-shadow: 0 0 0 3px rgba(35,31,32,0.18);
    }
    @media (max-width: 720px) {
      .dealer-dir-filters { grid-template-columns: 1fr; }
    }

    .dealer-dir-meta {
      max-width: 880px;
      margin: 0 auto 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      font-size: 13.5px;
      color: var(--ink-mute);
      flex-wrap: wrap;
    }

    .dealer-dir-results {
      max-width: 880px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }
    @media (max-width: 720px) {
      .dealer-dir-results { grid-template-columns: 1fr; }
    }
    .dealer-dir-row {
      background: var(--paper);
      border: 1.5px solid rgba(35,31,32,0.08);
      border-radius: 14px;
      padding: 16px 18px;
      transition: transform 180ms, box-shadow 180ms, border-color 180ms;
    }
    .dealer-dir-row:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 24px -16px rgba(35,31,32,0.3);
      border-color: var(--accent);
    }
    .dealer-dir-row .name {
      font-family: var(--font-display);
      font-size: 17px;
      line-height: 1.2;
      color: var(--ink);
      margin-bottom: 4px;
    }
    .dealer-dir-row .loc {
      font-size: 13px;
      color: var(--ink-mute);
      line-height: 1.4;
    }
    .dealer-dir-empty {
      grid-column: 1 / -1;
      text-align: center;
      padding: 40px 24px;
      background: var(--paper);
      border: 1px dashed rgba(35,31,32,0.18);
      border-radius: 18px;
      color: var(--ink-soft);
      font-size: 15px;
    }
    .dealer-dir-loadmore {
      grid-column: 1 / -1;
      display: flex;
      justify-content: center;
      margin-top: 10px;
    }
    .dealer-dir-notes {
      max-width: 880px;
      margin: 56px auto 0;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
    }
    @media (max-width: 720px) {
      .dealer-dir-notes { grid-template-columns: 1fr; }
    }
    .dealer-dir-note {
      background: var(--paper);
      border: 1px dashed rgba(35,31,32,0.2);
      border-radius: 16px;
      padding: 20px 22px;
      font-size: 14px;
      line-height: 1.55;
      color: var(--ink-soft);
    }
    .dealer-dir-note strong {
      display: block;
      font-family: var(--font-display);
      font-weight: 400;
      font-size: 17px;
      color: var(--ink);
      margin-bottom: 4px;
    }
    .dealer-dir-note a {
      color: var(--ink);
      text-decoration: none;
      border-bottom: 1.5px solid var(--accent);
      padding-bottom: 1px;
      font-weight: 600;
    }
    .dealer-dir-note a:hover { color: var(--accent); }

    /* Spot A Real One — black band, orange heading, stacked white check cards */
    .spot-real-band {
      background: var(--ink);
      color: #fff;
      position: relative;
      overflow: hidden;
    }
    .spot-real-band .eyebrow { color: rgba(255,255,255,0.65); }
    .spot-real-band h2 { color: var(--brand-orange); }
    .spot-real-band .spot-real-grid > div:first-child > p { color: rgba(255,255,255,0.88); }

    .spot-real-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 56px;
      align-items: center;
    }
    @media (max-width: 900px) { .spot-real-grid { grid-template-columns: 1fr; gap: 40px; } }

    .spot-check-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .spot-check {
      background: var(--brand-orange);
      color: #fff;
      border-radius: 20px;
      padding: 22px 26px;
    }
    .spot-check strong {
      display: block;
      font-family: var(--font-display);
      font-weight: 400;
      font-size: 22px;
      color: #fff;
      margin-bottom: 6px;
    }
    .spot-check p { font-size: 14.5px; line-height: 1.55; margin: 0; color: rgba(255,255,255,0.9); }

    /* Ported from home page — Avoid counterfeits band */
    #counterfeit-warning .cf-secondary-link {
      font-family: var(--font-body);
      font-size: 15px;
      font-weight: 600;
      color: var(--ink);
      text-decoration: none;
      border-bottom: 1px solid rgba(35,31,32,0.35);
      padding-bottom: 2px;
      transition: color 200ms, border-color 200ms;
    }
    #counterfeit-warning .cf-secondary-link:hover {
      color: var(--accent);
      border-bottom-color: var(--accent);
    }

    .international-tile {
      background: var(--brand-purple);
      color: #fff;
      border-radius: 32px;
      padding: 40px;
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 32px;
      align-items: center;
      position: relative;
      overflow: hidden;
    }
    .international-tile h3 { color: #fff; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); margin: 0 0 12px; }
    .international-tile p { color: rgba(255,255,255,0.9); margin: 0; }
    .international-tile .globe {
      width: 180px; height: 180px;
      border-radius: 50%;
      background: rgba(255,255,255,0.14);
      border: 3px dashed rgba(255,255,255,0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-display);
      font-size: 36px;
      justify-self: end;
    }
    @media (max-width: 720px) {
      .international-tile { grid-template-columns: 1fr; text-align: center; }
      .international-tile .globe { justify-self: center; width: 130px; height: 130px; font-size: 26px; }
    }

    .closing-band {
      background: var(--ink);
      color: #fff;
      text-align: center;
    }
    .closing-band h2 { color: #fff; }
    .closing-band p  { color: rgba(255,255,255,0.82); max-width: 46ch; margin: 0 auto 24px; }
    .closing-band .script-pop {
      color: var(--accent);
      font-family: var(--font-script);
      font-size: 28px;
      display: block;
      margin-bottom: 8px;
    }

@media (max-width: 880px) {
          #counterfeit-warning .counterfeit-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
        }