/* ==========================================================================
   Offers section — coupon / ticket cards
   ========================================================================== */

   :root {
    --offer-card-w: 613px;
    --offer-card-h: 350px;
    --offer-gap: 20px;
    --offer-blue: #1d4ed8;
    --offer-gold: #fab72a;
    --offer-cutout: #f7f8fb;
    --offer-panel-split: 37.031%;
    --offer-media-w: 62.969%;
    --offer-row-w: calc(var(--offer-card-w) * 3 + var(--offer-gap) * 2);
  }
  
  .offer-ticket-svg {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
  }
  
  .offers {
    background: #ffffff;
    padding: 52px 0;
    width: 100%;
  }
  
  .offers .container-fluid {
    display: flex;
    justify-content: center;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0;
  }
  
  .offers-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: var(--offer-gap);
    width: var(--offer-row-w);
    max-width: 100%;
    height: var(--offer-card-h);
    margin: 0 auto;
  }
  
  .offers-slider {
    width: 100%;
  }
  
  .offers-track-wrap {
    width: 100%;
  }
  
  .offers__nav-row,
  .offers__nav {
    display: none;
  }
  
  /* ----------------------------- Ticket card ------------------------------ */
  
  .offer-ticket {
    position: relative;
    width: var(--offer-card-w);
    height: var(--offer-card-h);
    flex: none;
    filter: drop-shadow(0 4px 16px rgba(15, 33, 66, .13));
  }
  
  .offer-ticket__inner {
    position: relative;
    display: grid;
    grid-template-columns: var(--offer-panel-split) 1fr;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    clip-path: url(#offerTicketClip);
    background: var(--offer-blue);
  }
  
  /* Shared SVG layers */
  .offer-ticket__shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
  }
  
  .offer-ticket__shape--blue    { z-index: 2; }
  .offer-ticket__shape--divider { z-index: 5; }
  
  /* Scalloped stamp edges */
  .offer-ticket__edges {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
  }
  
  .offer-edge {
    position: absolute;
    pointer-events: none;
  }
  
  .offer-edge--left,
  .offer-edge--right {
    top: 16px;
    bottom: 16px;
    width: 12px;
    background: radial-gradient(circle, var(--offer-cutout) 5px, transparent 5.5px);
    background-size: 12px 14px;
    background-repeat: repeat-y;
  }
  
  .offer-edge--left  { left: -6px; }
  .offer-edge--right { right: -6px; }
  
  /* Left blue content panel */
  .offer-ticket__panel {
    position: relative;
    z-index: 3;
    grid-column: 1;
    grid-row: 1;
    background: transparent;
    padding: 32px 20px 32px 34px;
    color: #fff;
    overflow: visible;
    display: flex;
    min-height: 0;
  }
  
  .offer-ticket__media {
    position: absolute;
    inset: -1px;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0e2240;
    clip-path: url(#offerMediaClip);
  }
  
  .offer-ticket__media img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: var(--offer-panel-split);
    width: var(--offer-media-w);
    height: 100%;
    min-width: 0;
    min-height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    display: block;
  }
  
  .offer-ticket__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    height: 100%;
  }
  
  /* ---- Typography — matches Figma exactly ---- */
  
  .offer-from {
    font-family: 'Gilroy-SemiBold', var(--display, sans-serif);
    font-size: 14px;
    font-weight: 400;               /* weight is in the face name */
    font-style: normal;
    color: #FAB72A;
    margin: 0 0 2px;
    line-height: 1.2;
  }
  
  .offer-price {
    font-family: 'Gilroy-ExtraBoldItalic', var(--display, sans-serif);
    font-weight: 400;               /* weight baked into face name */
    font-style: normal;             /* italic baked into face name */
    font-size: 38px;
    line-height: 48px;
    letter-spacing: 0;
    color: var(--offer-gold);
    margin: 0 0 6px;
  }
  
  .offer-title {
    font-family: 'Gilroy-ExtraBoldItalic', var(--display, sans-serif);
    font-weight: 400;
    font-style: normal;
    font-size: 27px;
    line-height: 37px;
    letter-spacing: 0;
    color: #fff;
    margin: 0 0 6px;
    max-width: 220px;
  }
  
  .offer-cond {
    font-family: 'Gilroy-SemiBold', var(--font, sans-serif);
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0;
    color: #fff;
    margin: 0 0 16px;
  }
  
  /* CTA */
  .offer-claim {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    align-self: flex-start;
    padding: 11px 14px 11px 16px;
    background: var(--offer-gold);
    color: #00274e;
    border-radius: 999px;
    font-family: var(--display, sans-serif);
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    max-width: 100%;
    white-space: nowrap;
  }
  
  .offer-claim:hover {
    background: #e8920a;
    transform: translateY(-1px);
  }
  
  .offer-claim__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22e838;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
  }
  
  .offer-claim__label { line-height: 1; }
  
  .offer-claim__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #00274e;
    background: transparent;
    color: #00274e;
    flex-shrink: 0;
  }
  
  .offer-claim__arrow svg {
    width: 14px;
    height: 14px;
  }
  
  /* ========================= LARGE DESKTOP ≥ 1880px ========================= */
  
  @media (min-width: 1880px) {
    .offers-grid {
      width: var(--offer-row-w);
      max-width: var(--offer-row-w);
      height: var(--offer-card-h);
    }
  
    .offer-ticket {
      width: var(--offer-card-w);
      height: var(--offer-card-h);
    }
  }
  
  /* ========================= DESKTOP 1025–1879px ========================= */
  
  @media (max-width: 1879px) and (min-width: 1025px) {
    .offers-grid {
      width: 100%;
      max-width: 100%;
      height: auto;
      padding: 0 16px;
      box-sizing: border-box;
      gap: clamp(12px, 1vw, 18px);
      align-items: stretch;
    }
  
    .offer-ticket {
      flex: 1 1 0;
      width: calc((100% - (clamp(12px, 1vw, 18px) * 2)) / 3);
      min-width: 0;
      max-width: none;
      height: auto;
      aspect-ratio: 613 / 350;
    }
  
    .offer-ticket__inner {
      height: 100%;
      min-height: 100%;
    }
  
    .offer-ticket__panel {
      padding:
        clamp(16px, 1.5vw, 30px)
        clamp(12px, 1vw, 18px)
        clamp(16px, 1.5vw, 28px)
        clamp(18px, 1.7vw, 30px);
    }
  
    .offer-ticket__content {
      width: 100%;
      min-height: 0;
      height: 100%;
    }
  
    .offer-from {
      font-size: clamp(11px, .72vw, 14px);
      margin-bottom: 2px;
    }
  
    /* Figma base: 38px — scale proportionally to card width */
    .offer-price {
      font-size: clamp(1.25rem, 2.1vw, 2.375rem);   /* ~20px → 38px */
      line-height: 1.263;                             /* keeps 48/38 ratio */
      margin-bottom: 4px;
    }
  
    /* Figma base: 27px */
    .offer-title {
      font-size: clamp(.9rem, 1.5vw, 1.6875rem);    /* ~14px → 27px */
      line-height: 1.37;                              /* keeps 37/27 ratio */
      max-width: 100%;
      margin-bottom: 4px;
    }
  
    /* Figma base: 18px */
    .offer-cond {
      font-size: clamp(.65rem, .95vw, 1.125rem);     /* ~10px → 18px */
      line-height: 1.556;                             /* keeps 28/18 ratio */
      margin: 0 0 10px;
      max-width: 95%;
    }
  
    .offer-claim {
      margin-top: auto;
      padding: 8px 10px 8px 12px;
      font-size: clamp(.65rem, .8vw, .9rem);
      gap: 8px;
      max-width: 100%;
      white-space: nowrap;
    }
  
    .offer-claim__arrow {
      width: 22px;
      height: 22px;
    }
  
    .offer-claim__arrow svg {
      width: 12px;
      height: 12px;
    }
  }
  
  /* ========================= TABLET 681–1024px ========================= */
  
  @media (min-width: 681px) and (max-width: 1024px) {
    .offers-slider {
      width: 100%;
      max-width: none;
      margin: 0 auto;
    }
  
    .offers-track-wrap {
      overflow: hidden;
      width: 100%;
    }
  
    .offers-grid {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: stretch;
      gap: var(--offer-gap);
      width: 100%;
      max-width: 100%;
      height: auto;
      margin: 0;
      padding: 0 20px;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      scroll-padding: 0;
      scroll-behavior: smooth;
      overscroll-behavior-x: contain;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      box-sizing: border-box;
    }
  
    .offers-grid::-webkit-scrollbar { display: none; }
  
    .offers-grid::after {
      content: '';
      flex: 0 0 1px;
      width: 1px;
      min-width: 1px;
      height: 1px;
      pointer-events: none;
      scroll-snap-align: none;
    }
  
    .offer-ticket {
      --offer-slide-w: clamp(280px, 72vw, 500px);
      flex: 0 0 var(--offer-slide-w);
      width: var(--offer-slide-w);
      min-width: var(--offer-slide-w);
      max-width: var(--offer-slide-w);
      box-sizing: border-box;
      height: auto;
      aspect-ratio: 613 / 350;
      scroll-snap-align: start;
      scroll-snap-stop: always;
    }
  
    .offer-ticket__inner {
      min-height: 100%;
      height: 100%;
    }
  
    .offer-ticket__panel {
      padding: 14px 12px 14px 18px;
    }

    .offer-ticket__content {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
      min-height: 0;
      height: 100%;
    }

    .offer-from {
      font-size: clamp(10px, 1.1vw, 13px);
      flex-shrink: 0;
    }

    /* Scale type to panel width so Claim stays inside the ticket */
    .offer-price {
      font-size: clamp(1rem, 2.6vw, 1.5rem);
      line-height: 1.15;
      margin-bottom: 2px;
      flex-shrink: 0;
    }

    .offer-title {
      font-size: clamp(0.72rem, 1.85vw, 1.05rem);
      line-height: 1.22;
      max-width: 100%;
      margin-bottom: 2px;
      overflow-wrap: break-word;
      flex-shrink: 1;
      min-height: 0;
    }

    .offer-cond {
      font-size: clamp(0.6rem, 1.25vw, 0.8125rem);
      line-height: 1.25;
      margin: 0 0 6px;
      flex-shrink: 0;
    }

    .offer-claim {
      margin-top: auto;
      flex-shrink: 0;
      align-self: flex-start;
      padding: 7px 10px 7px 11px;
      font-size: clamp(0.65rem, 1vw, 0.8125rem);
      gap: 6px;
    }
  
    .offer-claim__arrow {
      width: 22px;
      height: 22px;
    }
  
    .offer-claim__arrow svg {
      width: 12px;
      height: 12px;
    }
  
    .offers__nav-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 24px;
      margin: 24px auto 0;
      padding: 0;
    }
  
    .offers__nav {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      margin: 0;
      padding: 0;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      transition: opacity .15s ease, transform .15s ease;
    }
  
    .offers__nav:disabled {
      opacity: 0.35;
      cursor: default;
    }
  
    .offers__nav-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      border-radius: 50%;
    }
  
    .offers__nav-icon svg {
      width: 20px;
      height: 20px;
    }
  
    .offers__nav--prev .offers__nav-icon {
      background: rgba(120, 130, 145, 0.55);
      color: #fff;
    }
  
    .offers__nav--next .offers__nav-icon {
      background: #fab72a;
      color: #00274e;
    }
  
    .offers__nav--next .offers__nav-icon svg {
      stroke-width: 2.6;
    }
  }
  
  /* ========================= MOBILE ≤ 680px ========================= */
  
  @media (max-width: 680px) {
    .offers {
      padding: 40px 0 48px;
    }
  
    .offers .container-fluid {
      padding: 0 16px;
    }
  
    .offers-slider {
      width: 100%;
      max-width: 430px;
      margin: 0 auto;
    }
  
    .offers-track-wrap {
      overflow: hidden;
      width: 100%;
    }
  
    .offers-grid {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: stretch;
      gap: 16px;
      width: 100%;
      max-width: 100%;
      height: auto;
      margin: 0;
      padding: 0;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      scroll-padding: 0;
      scroll-behavior: smooth;
      overscroll-behavior-x: contain;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
  
    .offers-grid::-webkit-scrollbar { display: none; }
  
    .offers-grid::after {
      content: '';
      flex: 0 0 1px;
      width: 1px;
      min-width: 1px;
      height: 1px;
      pointer-events: none;
      scroll-snap-align: none;
    }
  
    .offer-ticket {
      --offer-slide-w: min(100%, 360px);
      flex: 0 0 var(--offer-slide-w);
      width: var(--offer-slide-w);
      min-width: var(--offer-slide-w);
      max-width: var(--offer-slide-w);
      box-sizing: border-box;
      height: auto;
      aspect-ratio: 613 / 350;
      margin: 0;
      scroll-snap-align: start;
      scroll-snap-stop: always;
    }
  
    .offer-ticket__inner {
      min-height: 100%;
      height: 100%;
    }
  
    .offer-ticket__panel {
      padding: 18px 14px 18px 20px;
    }
  
    /* Mobile: card ≈ 360px wide → panel ≈ 37% = ~133px */
    .offer-price {
      font-size: clamp(1.3rem, 6.5vw, 2rem);
      line-height: 1.263;
      margin-bottom: 4px;
    }
  
    .offer-title {
      font-size: clamp(.88rem, 4.2vw, 1.5rem);
      line-height: 1.37;
      max-width: none;
      margin-bottom: 3px;
    }
  
    .offer-cond {
      font-size: clamp(.65rem, 2.6vw, 1rem);
      line-height: 1.556;
      margin: 0 0 12px;
    }
  
    .offer-claim {
      padding: 8px 10px 8px 12px;
      font-size: .82rem;
      gap: 8px;
    }
  
    .offer-claim__arrow {
      width: 22px;
      height: 22px;
    }
  
    .offer-claim__arrow svg {
      width: 12px;
      height: 12px;
    }
  
    .offers__nav-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 24px;
      margin: 24px auto 0;
      padding: 0;
    }
  
    .offers__nav {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      margin: 0;
      padding: 0;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      transition: opacity .15s ease, transform .15s ease;
    }
  
    .offers__nav:disabled {
      opacity: 0.35;
      cursor: default;
    }
  
    .offers__nav-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      border-radius: 50%;
    }
  
    .offers__nav-icon svg {
      width: 18px;
      height: 18px;
    }
  
    .offers__nav--prev .offers__nav-icon {
      background: rgba(120, 130, 145, 0.55);
      color: #fff;
    }
  
    .offers__nav--next .offers__nav-icon {
      background: #fab72a;
      color: #00274e;
    }
  
    .offers__nav--next .offers__nav-icon svg {
      stroke-width: 2.6;
    }
  }
  
  /* ========================= EXTRA SMALL ≤ 420px ========================= */
  
  @media (max-width: 420px) {
    .offers .container-fluid {
      padding: 0 12px;
    }
  
    .offers-grid {
      gap: 14px;
    }
  
    .offer-ticket {
      --offer-slide-w: 100%;
    }
  
    .offer-ticket__panel {
      padding: 14px 10px 14px 14px;
    }
  
    .offer-from {
      font-size: .65rem;
    }
  
    .offer-price {
      font-size: clamp(1.1rem, 7vw, 1.6rem);
      line-height: 1.263;
      margin-bottom: 3px;
    }
  
    .offer-title {
      font-size: clamp(.72rem, 3.8vw, 1.1rem);
      line-height: 1.37;
      margin-bottom: 3px;
    }
  
    .offer-cond {
      font-size: clamp(.58rem, 2.4vw, .85rem);
      line-height: 1.556;
      margin: 0 0 10px;
      max-width: 96%;
    }
  
    .offer-claim {
      padding: 6px 8px 6px 10px;
      font-size: .68rem;
      gap: 6px;
    }
  
    .offer-claim__dot {
      width: 9px;
      height: 9px;
    }
  
    .offer-claim__arrow {
      width: 18px;
      height: 18px;
      border-width: 1.5px;
    }
  
    .offer-claim__arrow svg {
      width: 10px;
      height: 10px;
    }
  }
  
  /* ========================= 320px SAFETY ≤ 360px ========================= */
  
  @media (max-width: 360px) {
    .offer-ticket {
      aspect-ratio: 613 / 390;
    }
  
    .offer-ticket__panel {
      padding: 12px 8px 12px 12px;
    }
  
    .offer-from {
      font-size: .6rem;
      margin-bottom: 1px;
    }
  
    .offer-price {
      font-size: 1rem;
      line-height: 1.263;
      margin-bottom: 2px;
    }
  
    .offer-title {
      font-size: .62rem;
      line-height: 1.37;
      margin-bottom: 2px;
    }
  
    .offer-cond {
      font-size: .5rem;
      line-height: 1.4;
      margin: 0 0 8px;
      max-width: 98%;
    }
  
    .offer-claim {
      padding: 5px 7px 5px 8px;
      font-size: .58rem;
      gap: 5px;
      border-radius: 999px;
    }
  
    .offer-claim__dot {
      width: 8px;
      height: 8px;
    }
  
    .offer-claim__arrow {
      width: 16px;
      height: 16px;
    }
  
    .offer-claim__arrow svg {
      width: 8px;
      height: 8px;
    }
  }

/* === Mobile offer-card fix (2026-08-02) ==================================
   The fixed ticket aspect-ratio made short cards; the longer "$150 Off —
   When Clearing Your Blocked Drains" title overflowed and the Claim button
   got clipped by .offer-ticket__inner overflow:hidden. Let the card height be
   driven by its content on mobile — the media + blue shape are absolutely
   pinned (inset), so they still fill whatever height the card becomes. */
@media (max-width: 1024px) {
  .offer-ticket        { height: auto !important; aspect-ratio: auto !important; min-height: 200px; }
  .offer-ticket__inner { height: auto !important; min-height: 200px; }
  .offer-ticket__content { height: auto !important; }
  .offer-ticket__panel { padding-top: 24px; padding-bottom: 24px; }
}
