@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --fd: var(--mgk-font);
  --fs: var(--mgk-font);

  /* Brand Colors */
  --g: #165DFF;
  --g-h: #0E3B81;
  --g-d: #0A2A5C;
  --g-t: #EEF2FF;
  --g-t2: #F5F8FF;
  --ink: #191817;
  --ink-2: #54524D;
  --ink-3: #8A8780;
  --line: rgba(25, 24, 23, 0.13);
  --line-2: rgba(25, 24, 23, 0.06);
  --line-d: rgba(25, 24, 23, 0.22);
  --red: #D0342C;
  --red-t: #FCEBE9;
  --amb: #D9962A;
  --amb-t: #FCF2DE;
  --green: #15774A;
  --green-t: #E7F1E9;
  --paper: #FFFFFF;
  --wash: #FAF9F7;
  --warm: #FCF2DE;
  --r: 8px;
  --r-b: 8px;
  --r-s: 5px;
  --wrap: 1600px;
  /* 24px, not 28 — matches .mgk-header__logo/.mgk-header__brand's own real
     left inset (measured via getBoundingClientRect: 24px) so the banner/
     breadcrumb/grid below line up with the header's logo above them.
     Scoped safely: --gut is declared and consumed only in this file. */
  --gut: 24px;
  --e: cubic-bezier(0.25, 0.8, 0.35, 1);
  --t1: 150ms;
  --t2: 260ms;
}

/* Base Scope */
.dealpage {
  background: var(--wash);
  min-height: 100vh;
  font-family: var(--fs);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 60px;
}

.dealpage *,
.dealpage *::before,
.dealpage *::after {
  box-sizing: border-box;
}

.dealpage .wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* Overrides the base .dealpage .wrap's 1600px cap — #dealgrid (Filters +
   grid) must track .dband's own width exactly (that one has no max-width at
   all, just the same var(--gut) side margin), or the two visibly diverge on
   any viewport past ~1656px (1600 + 2×28 gut). Scoped to .wrap.pg alone so
   .dband-in/.dband-cta (the OTHER two .wrap consumers on this page, both
   still meant to cap/center at 1600px in the no-photo default hero) are
   untouched. */
.dealpage .wrap.pg {
  max-width: none;
  padding-top: 24px;
  padding-bottom: 40px;
}

/* Typography Helpers */
.dealpage .num {
  font-variant-numeric: tabular-nums;
}

.dealpage .mut {
  color: var(--ink-3);
}

.dealpage .eb {
  font-size: 11.5px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 1.35px;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 4px;
}

/* Breadcrumb — now sits above .dband (was inside .wrap.pg, below it), so it
   needs its own top spacing away from the site header; .crumb's own
   margin-bottom collapses with .dband's margin-top for the gap below. */
.dealpage .fd-crumb-wrap {
  padding-top: 24px;
}

.dealpage .crumb {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dealpage .crumb a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t1);
}

.dealpage .crumb a:hover {
  color: var(--g);
}

.dealpage .crumb span {
  color: var(--ink);
  font-weight: 600;
}

/* Filters sidebar + deals main column (.fd-layout) — replaces the old
   horizontal .fd-tabs category strip. Category becomes one of four sidebar
   groups (Category/Discount/Certification/Availability); every control is a
   plain <a> to a toggled ?cat[]=/?off=/?cert[]=/?low= URL, same server-round-
   trip pattern the Sort pill already used — no client-side filtering, so a
   match on a page the shopper isn't currently viewing is never silently
   missed (see mgk_sale_deals()'s $mgk_heavy_filter path). */
.fd-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--gut);
  align-items: start;
  margin: 12px 0 24px;
}

.fd-layout--full {
  display: block;
}

.fd-side {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-b);
  padding: 20px;
  box-sizing: border-box;
  position: sticky;
  top: 24px;
}

.fd-side__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
}

.fd-side__head h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.fd-side__clear {
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--g);
  text-decoration: none;
}

.fd-side__clear:hover {
  text-decoration: underline;
}

.fd-side .fgroup {
  border-top: 1px solid var(--line-2);
  padding-top: 14px;
  margin-top: 14px;
}

.fd-side .fgroup:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.fd-side .fgroup__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.fd-side .fitem-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fd-side .fitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  text-decoration: none;
}

.fd-side .fitem__box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--line-d);
  background: var(--paper);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.fd-side .fitem__box svg {
  opacity: 0;
  color: #FFFFFF;
}

.fd-side .fitem.is-on .fitem__box {
  background: var(--g);
  border-color: var(--g);
}

.fd-side .fitem.is-on .fitem__box svg {
  opacity: 1;
}

.fd-side .fitem__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
}

.fd-side .fitem__n {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}

.fd-side .fitem:hover .fitem__label {
  color: var(--g);
}

.fd-side .cert {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fd-side .cert__btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.fd-side .cert__btn:hover {
  border-color: var(--line-d);
  color: var(--ink);
}

.fd-side .cert__btn.is-on {
  background: var(--g);
  border-color: var(--g);
  color: #FFFFFF;
}

.fd-side .switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
  text-decoration: none;
}

.fd-side .switch__t {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: var(--line-2);
  position: relative;
  transition: background var(--t1);
  flex: 0 0 auto;
}

.fd-side .switch__t::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: left var(--t1);
}

.fd-side .switch.is-on .switch__t {
  background: var(--g);
}

.fd-side .switch.is-on .switch__t::after {
  left: 19px;
}

/* ==========================================================================
   1. MALL FLASH SALE HERO BAND (.dband) — 176px Height
   ========================================================================== */
.dband {
  /* Text-color tokens, redefined wholesale by .dband--photo below instead of
     each element having its own light/photo color pair — a new text element
     added later only needs color:var(--dband-fg...), no second override
     rule to remember. */
  --dband-fg: var(--ink);
  --dband-fg-2: var(--ink-2);
  --dband-accent: var(--g);

  position: relative;
  overflow: hidden;
  margin-top: 38px;
  height: 176px;
  min-height: 176px;
  max-height: 176px;
  background: var(--g-t);
  border-top: 1px solid rgba(22, 93, 255, 0.14);
  border-bottom: 1px solid rgba(22, 93, 255, 0.14);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 0 20px;
}

/* Active Sale Campaign's banner image, shown behind the band when a
   merchant has uploaded one (mgk_sale_active_campaign_banner()) — absent
   entirely otherwise, so a campaign with no banner keeps the flat --g-t
   gradient exactly as before. */
.dband__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.dband__scrim {
  position: absolute;
  inset: 0;
  /* Text sits across the FULL width of the band (lockup+title on the left,
     countdown on the right) unlike a left-confined hero panel, so the scrim
     stays dark at both ends and only eases up slightly in the empty middle
     gap, rather than fading left-to-right. */
  background: linear-gradient(90deg,
    rgba(6, 25, 55, .82) 0%,
    rgba(6, 25, 55, .70) 55%,
    rgba(6, 25, 55, .78) 100%);
  z-index: 1;
}

.dband .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
  box-sizing: border-box;
}

.dband-in {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 64px;
}

.dband-lock {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}

.dband-mall {
  background: var(--g);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 6px;
}

.dband-lock b {
  font-size: 22px;
  font-weight: 800;
  color: var(--g);
  letter-spacing: -0.01em;
}

.dband-lock em {
  font-style: normal;
  font-size: 20px;
  font-weight: 500;
  color: var(--g);
}

.dband-m {
  flex: 1;
  min-width: 280px;
}

/* .dband-m .dband-eyebrow (not bare .dband-eyebrow): the eyebrow is also a
   <p> inside .dband-m, same as the subtitle below it — a bare class selector
   (0,0,1,0) loses to .dband-m p's class+type selector (0,0,1,1), so font-
   size/margin/color here were silently overridden by the subtitle's rule. */
.dband-m .dband-eyebrow {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dband-accent);
}

.dband-m h1 {
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--dband-fg);
  margin: 0;
}

.dband-m h1 b {
  color: var(--dband-accent);
}

.dband-m p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--dband-fg-2);
}

.dband-r {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: auto;
}

.dband-lbl {
  font-size: 8.5px;
  font-weight: 800;
  color: var(--dband-accent);
  letter-spacing: 0.08em;
  text-align: right;
  line-height: 1.25;
  width: 34px;
}

.dband-clock {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dband-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.dband-cell b {
  min-width: 42px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid #B3CBFF;
  border-radius: 7px;
  color: var(--g);
  font-size: 15px;
  font-weight: 800;
}

.dband-cell.solid b {
  background: var(--g);
  border-color: var(--g);
  color: #FFFFFF;
}

.dband-cell em {
  font-style: normal;
  font-size: 7px;
  font-weight: 800;
  color: var(--g);
  letter-spacing: 0.06em;
}

.dband-col {
  color: var(--dband-accent);
  font-weight: 800;
  font-size: 15px;
  margin-top: -10px;
}

.dband-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 40px;
}

.dband-btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--g);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: background var(--t1);
}

.dband-btn:hover {
  background: var(--g-h);
  color: #FFFFFF;
}

.dband-save {
  font-size: 12.5px;
  color: var(--ink-2);
}

.dband-save b {
  color: var(--ink);
}

/* Full hero-on-photo variant — only applied when a campaign banner is
   actually rendered ($fd_banner non-empty in flashdeal.php); the no-banner
   case never gets this class and keeps the original compact band (markup,
   colors, layout) completely untouched. Reusing the theme's own --r-b/--gut
   tokens rather than inventing new numbers. */
/* .dband.dband--photo (not just .dband--photo) so this beats the bare
   .dband rule the ≤640px media query sets further down the file at equal
   otherwise-tied specificity — without it, mobile would silently fall back
   to the no-photo 176px band height. */
.dband.dband--photo {
  --dband-fg: #FFFFFF;
  --dband-fg-2: rgba(255, 255, 255, 0.85);
  --dband-accent: #FFFFFF;

  height: auto;
  min-height: 320px;
  max-height: none;
  margin: 38px var(--gut) 0;
  border-radius: 12px;
  padding: 40px 0;
  /* Base .dband uses justify-content:space-between to push .dband-in and
     .dband-cta to opposite ends — with .dband-cta hidden in this variant,
     only one child is left and it was piling up at the top instead of
     centering in the taller 320px box. */
  justify-content: center;
}

/* Mockup has no lockup badge and no CTA row inside the hero — markup stays
   (still used by the no-photo band), just hidden for this variant. */
.dband--photo .dband-lock,
.dband--photo .dband-cta {
  display: none;
}

.dband--photo .dband-in {
  flex-direction: column;
  max-width: 660px;
  height: auto;
  gap: 10px;
  /* .dband .wrap (shared by every .wrap inside .dband) sets margin:0 auto —
     harmless when this box was full-width, but centers it now that
     max-width:660px actually constrains it. Must re-zero here. */
  margin: 0;
}

.dband--photo .dband-r {
  margin-left: 0;
}

/* "Sale Hero" Elementor control has no typography feature (background+padding
   only), so this can't collide with a merchant override the way clock_num/
   clock_unit theoretically could. */
.dband--photo .dband-m h1 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
}

.dband--photo .dband-cell b {
  min-width: 48px;
  height: 42px;
  border-radius: 10px;
  font-size: 19px;
  background: var(--red);
  border-color: var(--red);
  color: #FFFFFF;
}

.dband--photo .dband-cell.solid b {
  background: var(--red);
  border-color: var(--red);
}

.dband--photo .dband-cell em {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   2. SECTION HEADINGS (.sh)
   ========================================================================== */
.sh {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 32px 0 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.sh h2 {
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 800 !important;
  color: var(--mgk-text);
  margin: 0;
}

.sh p {
  font-size: 13px;
  color: var(--ink-2);
  margin: 4px 0 0;
}

.sh-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--g);
  text-decoration: none;
  transition: color var(--t1);
  white-space: nowrap;
}

.sh-link:hover {
  color: var(--g-h);
  text-decoration: underline;
}

/* Sort dropdown in section heading */
.sh .mgk-sale__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.sh .mgk-sale__sort-label {
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
}

.sh .mgk-sale__sort-select {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  height: 38px;
  line-height: 20px;
  border: 1px solid var(--line-d);
  color: var(--ink);
  background-color: var(--paper);
  border-radius: 999px;
  padding: 0 36px 0 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191817' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px;
  transition: border-color var(--t1);
}

.sh .mgk-sale__sort-select:hover,
.sh .mgk-sale__sort-select:focus {
  border-color: var(--g);
  outline: none;
}

/* ==========================================================================
   3. PRODUCT DEALS GRID (.grid.g4) & CANONICAL CARDS (.mgk-prod)
   ========================================================================== */
.grid {
  display: grid;
  gap: 20px;
}

/* Sidebar filters (Discount/Certification/Availability) can legitimately
   intersect to zero — unlike the old category-only tabs, which never
   pointed at an empty set (mgk_sale_tabs_for_ids() only creates a tab for a
   category that already has at least one product). */
.fd-empty {
  padding: 48px 24px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-b);
}

.fd-empty b {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 6px;
}

.fd-empty p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

/* 256px/16px match .mgk-products/.mgk-shop/.mgk-seasoncamp's card floor+gap
   (mgk-retail.css) so cards are the same size site-wide. Note this page's own
   .wrap container still caps at --wrap (1600px, ~30 lines up) unlike those
   full-bleed sections, so columns can still diverge from them above ~1600px
   viewport width — that cap is a separate, larger layout decision, not
   changed here. */
/* UNDO POINT (2026-09-07, grid5-hover-unify): restore
   `grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));` in place
   of the repeat(5, 1fr) line below to revert. auto-fill made the column
   count depend on viewport width instead of being fixed, which is why
   Sale (5), Seasonal (6) and Category (4) each showed a different count
   despite nobody intending a difference -- fixed 5 matches the shared
   .mgk-grid--5 utility now also in effect on Seasonal. The responsive
   breakpoints below (max-width: ...) that further reduce .grid.g4's
   column count on narrower screens are untouched. */
.grid.g4 {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: 100%;
}

.mgk-sale__deal-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* align-self:stretch overrides .mgk-prod's own align-self:start (mgk-retail.css,
   added for grid-row alignment elsewhere) — here .mgk-prod is a flex CHILD of
   the column-flex .mgk-sale__deal-wrap, not a direct grid item, so that start
   value shrank it to its own content width instead of filling the wrap's
   (grid-track-sized) width. */
.mgk-sale__deal-wrap .mgk-prod {
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  background: var(--paper);

  border-radius: var(--r);
  transition: transform var(--t2) var(--e), border-color var(--t1), box-shadow var(--t2);
}


/* Remove faint grey borders from sale progress in cards */
.mgk-sale__progress {
  border-top: none !important;
  border-bottom: none !important;
  padding: 4px 0 6px !important;
}

/* Media / Image */
.pc-img {
  position: relative;
  height: 154px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-s);
  overflow: hidden;
  margin-bottom: 10px;
  background: #F8F7F4;
}

.pc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t2) var(--e);
}

.pc:hover .pc-img img {
  transform: scale(1.05);
}

/* Wishlist Heart Button */
.wish {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all var(--t1);
}

.wish:hover {
  background: #FFFFFF;
  color: var(--red);
  transform: scale(1.1);
}

/* Badges Stack */
.bgs {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.chip-g { background: var(--green-t); color: var(--green); }
.chip-a { background: var(--amb-t); color: var(--amb); }
.chip-r { background: var(--red-t); color: var(--red); }

/* Details */
.pc-cat {
  font-size: 11.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.pc h3 {
  font-family: var(--fs);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.32;
  margin: 4px 0 6px;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.64em;
}

.pc h3 a {
  color: var(--ink);
  text-decoration: none;
}

.pc h3 a:hover {
  color: var(--g);
}

/* Stars */
.stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--amb);
  font-size: 11.5px;
  margin-bottom: 6px;
}

.stars svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.stars .count {
  color: var(--ink-3);
  margin-left: 4px;
}

.pc-by {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.pc-by b {
  color: var(--g);
  font-weight: 600;
}

/* Burn Meter */
.burn {
  margin-bottom: 12px;
}

.burn-r {
  width: 100%;
  height: 5px;
  background: var(--line-2);
  border-radius: 999px;
  overflow: hidden;
}

.burn-f {
  height: 100%;
  background: var(--green);
  border-radius: 999px;
  transition: width 0.4s var(--e);
}

.burn.hot .burn-f {
  background: var(--red);
}

.burn-t {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  margin-top: 4px;
}

.burn-t span {
  color: var(--ink-3);
}

.burn-t b {
  color: var(--ink-2);
}

/* Footer / Price & Add CTA */
.pc-ft {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}

.pz {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.pz.sale {
  color: var(--red);
}

.s {
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: line-through;
  font-weight: 400;
}

.ex {
  font-size: 10.5px;
  color: var(--ink-3);
  display: block;
}

/* Add Button */
.add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r-b);
  border: 1px solid var(--line-d);
  background: var(--paper);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t1);
  white-space: nowrap;
}

.add:hover {
  background: var(--g);
  border-color: var(--g);
  color: #FFFFFF;
}

.add:active {
  transform: scale(0.97);
}

.add.added {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: #FFFFFF !important;
}

.add.dis {
  opacity: 0.5;
  pointer-events: none;
  background: var(--wash);
}

/* ==========================================================================
   4. RECENTLY ENDED SECTION (.ended)
   ========================================================================== */
.ended {
  margin-top: 48px;
  padding-top: 12px;
}

.ended .pc {
  opacity: 0.85;
}

.ended .pc:hover {
  opacity: 1;
}

/* ==========================================================================
   5. SEASONAL COLLECTIONS TILES (.coll)
   ========================================================================== */
.coll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

/* Height comes from the seasonal artwork's own shape, not a picked number: at
   220px tall against this grid's width the frame was flatter than the banner,
   so object-fit:cover had to scale the image up and crop ~11% off each side
   (the "UP TO x% OFF" corner). Consuming the shared ratio makes the frame the
   same shape as the image, so nothing is cropped and nothing is letterboxed.
   Undo: restore mgk-flashdeal.css.bak-20260828-season-banner-ratio. */
.coll {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: var(--mgk-season-banner-ratio);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink);
  text-decoration: none;
  transition: transform var(--t2) var(--e), box-shadow var(--t2);
}

.coll:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -12px rgba(25, 24, 23, 0.35);
}

/* Scoped through .coll-grid (0-2-1) on purpose: Elementor ships
   `.elementor img { height: auto }` at 0-1-1, which outranks a bare
   `.coll > img` and silently collapsed this to the image's own intrinsic
   height instead of filling the card — same collision already documented
   and fixed for .mgk-hero .mgk-hero__banner in mgk-retail.css.
   Undo: restore mgk-flashdeal.css.bak-20260828-coll-img-elementor-height. */
.coll-grid .coll > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--e);
}

.coll:hover > img {
  transform: scale(1.06);
}

.coll::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 20, 12, 0.9) 0%, rgba(12, 20, 12, 0.45) 45%, rgba(12, 20, 12, 0.05) 80%);
}

.coll-c {
  position: relative;
  z-index: 2;
  padding: 20px;
  color: #FFFFFF;
}

.coll-c b {
  display: block;
  font-family: var(--fd);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.coll-c em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

.coll-l {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 1px;
}

/* Spinner */
.fd-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top-color: currentColor;
  animation: fdSpin 0.6s linear infinite;
}

@keyframes fdSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   5. PAGINATION (.fd-pagination) — Clean & Borderless
   ========================================================================== */
.fd-pagination {
  margin: 36px 0 20px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.fd-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fd-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: var(--r-s);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: all var(--t1);
  box-sizing: border-box;
}

.fd-pagination a.page-numbers:hover {
  background: var(--paper-2);
  color: var(--g);
}

.fd-pagination .page-numbers.current {
  background: var(--g);
  color: #FFFFFF;
  font-weight: 700;
}

.fd-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  color: var(--ink-3);
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .grid.g4 {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .grid.g4 {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
  }
  .coll-grid {
    grid-template-columns: 1fr;
  }
  .dband-in {
    gap: 16px;
  }
  .fd-layout {
    grid-template-columns: 1fr;
  }
  .fd-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .dealpage .wrap.pg {
    padding-top: 16px;
  }
  .dband {
    height: auto;
    min-height: 176px;
    max-height: none;
    padding: 16px 0;
  }
  .dband-in {
    padding: 0 var(--gut);
    height: auto;
    flex-wrap: wrap;
    gap: 12px;
  }
  .dband-lock b {
    font-size: 18px;
  }
  .dband-lock em {
    font-size: 16px;
  }
  .dband-cta {
    padding: 10px var(--gut) 0;
    height: auto;
    flex-wrap: wrap;
  }
  .grid.g4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .pc {
    padding: 8px;
  }
  .pc-img {
    height: 120px;
  }
  .pc h3 {
    font-size: 12.5px;
  }
  .add {
    height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }
}
