:root {
  --deal-bg: #071027;
  --deal-panel: rgba(20, 37, 79, .5);
  --deal-blue: #5d8fff;
  --deal-blue-bright: #759eff;
  --deal-text: #f7f8ff;
  --deal-muted: #a4acd0;
  --deal-line: rgba(255, 255, 255, .1);
}

* { box-sizing: border-box; }

body.deals-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(145deg,#071027 0%,#102a67 55%,#18377a 100%);
  color: var(--deal-text);
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.deals-page a { color: inherit; text-decoration: none; }
.deals-page svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.deals-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 34px auto 0;
  color: var(--deal-muted);
}
.deals-pagination a {
  min-width: 108px;
  padding: 11px 18px;
  border: 1px solid rgba(117,158,255,.3);
  border-radius: 12px;
  background: rgba(20,37,79,.64);
  color: var(--deal-text);
  text-align: center;
  font-weight: 700;
}
.deals-pagination a:hover { border-color: var(--deal-blue-bright); box-shadow: 0 0 22px rgba(93,143,255,.18); }
.deals-pagination a.disabled { pointer-events: none; opacity: .42; }

.deals-skip {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #071027 !important;
  transform: translateY(-150%);
}
.deals-skip:focus { transform: translateY(0); }

.deals-currency-rain {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom,transparent,#000 9%,#000 91%,transparent);
  mask-image: linear-gradient(to bottom,transparent,#000 9%,#000 91%,transparent);
}
.deal-currency {
  position: absolute;
  top: -15vh;
  left: var(--left);
  color: rgba(255,255,255,var(--opacity));
  font-family: "Plus Jakarta Sans",sans-serif;
  font-size: var(--size);
  font-weight: 700;
  will-change: transform;
  animation: deal-currency-fall var(--duration) linear infinite;
  animation-delay: var(--delay);
}
@keyframes deal-currency-fall {
  from { transform: translate3d(0,-18vh,0) rotate(var(--rotation)); }
  to { transform: translate3d(var(--drift),125vh,0) rotate(calc(var(--rotation) + 320deg)); }
}
.deals-ambient {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 17% 24%,rgba(20,93,230,.26),transparent 31%),
    radial-gradient(circle at 82% 65%,rgba(67,89,196,.18),transparent 35%);
}

.deals-page .home-nav { background: rgba(3,8,29,.8); }
.deals-page .primary-links a.active { position: relative; }
.deals-page .primary-links a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -28px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--deal-blue-bright);
  box-shadow: 0 0 12px rgba(117,158,255,.55);
}

.deals-main {
  position: relative;
  z-index: 1;
  width: min(100%,1280px);
  min-height: calc(100vh - 188px);
  margin: 0 auto;
  padding: 42px 32px 84px;
}

.deal-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--deal-line);
  border-radius: 16px;
  background: rgba(10,24,58,.68);
  box-shadow: 0 30px 80px rgba(1,5,20,.34),inset 0 1px 0 rgba(255,255,255,.04);
  isolation: isolate;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.deal-hero-image,
.deal-hero-placeholder {
  position: absolute;
  z-index: -3;
  inset: 0 0 0 42%;
  width: 58%;
  height: 100%;
}
.deal-hero-image { display: block; object-fit: cover; object-position: center; filter: saturate(.75) contrast(1.08); opacity: .66; }
.deal-hero-placeholder { display: grid; place-items: center; background: radial-gradient(circle at center,rgba(93,143,255,.3),transparent 58%),#0e1b41; color: rgba(117,158,255,.48); }
.deal-hero-placeholder svg { width: 110px; height: 110px; }
.deal-hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg,#09152f 0%,rgba(9,21,47,.98) 38%,rgba(9,21,47,.7) 59%,rgba(9,21,47,.16) 100%),
    linear-gradient(0deg,rgba(4,10,27,.54),transparent 55%);
}
[dir="rtl"] .deal-hero-image,
[dir="rtl"] .deal-hero-placeholder { inset: 0 42% 0 0; }
[dir="rtl"] .deal-hero-shade { transform: scaleX(-1); }

.deal-hero-copy {
  width: min(63%,720px);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 54px;
}
[dir="rtl"] .deal-hero-copy { align-items: flex-start; }
.deal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 6px 11px;
  border: 1px solid rgba(93,143,255,.32);
  border-radius: 999px;
  background: rgba(0,84,199,.18);
  color: var(--deal-blue-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
}
.deal-kicker svg { width: 15px; height: 15px; }
.deal-category { margin-bottom: 8px; color: var(--deal-blue-bright); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.deal-hero h1 {
  max-width: 700px;
  margin: 0;
  color: #fff;
  font-family: "Plus Jakarta Sans",Inter,sans-serif;
  font-size: clamp(38px,4.3vw,58px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -.05em;
  text-shadow: 0 8px 28px rgba(0,0,0,.3);
}
[dir="rtl"] .deal-hero h1 { font-family: "Noto Kufi Arabic",Tahoma,sans-serif; font-size: clamp(34px,4vw,52px); line-height: 1.35; letter-spacing: -.035em; }
.deal-hero-copy > p { max-width: 620px; margin: 18px 0 28px; color: #bac3e1; font-size: 16px; line-height: 1.7; }
.deal-price-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 18px; margin-bottom: 26px; }
.deal-old-price,.deal-new-price { display: flex; flex-direction: column; gap: 5px; }
.deal-price-row small { color: var(--deal-muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.deal-old-price del { color: #8f99bc; font-family: Inter,sans-serif; font-size: 18px; line-height: 1; text-decoration-color: rgba(251,81,81,.82); text-decoration-thickness: 2px; }
.deal-new-price strong { color: #fff; font-family: Inter,sans-serif; font-size: 29px; line-height: 1; }
.deal-saving { padding: 6px 11px; border: 1px solid rgba(93,143,255,.42); border-radius: 999px; background: rgba(0,84,199,.55); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 0 18px rgba(0,84,199,.34); }
.deal-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 9px;
  background: #0862db;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0,84,199,.34);
  font-size: 13px;
  font-weight: 700;
  transition: background .2s,box-shadow .2s,transform .2s;
}
.deal-primary-action:hover,
.deal-primary-action:focus-visible { background: var(--deal-blue); box-shadow: 0 10px 30px rgba(0,84,199,.48); outline: none; transform: translateY(-2px); }
.deal-primary-action svg { width: 17px; height: 17px; }

.deals-empty {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 24px;
  border: 1px dashed rgba(117,158,255,.3);
  border-radius: 16px;
  background: rgba(12,27,62,.62);
  text-align: center;
  backdrop-filter: blur(15px);
}
.deals-empty > svg { width: 66px; height: 66px; color: var(--deal-blue-bright); }
.deals-empty h1 { margin: 22px 0 10px; font: 700 clamp(29px,4vw,43px)/1.2 "Plus Jakarta Sans",sans-serif; }
.deals-empty p { max-width: 620px; margin: 0; color: var(--deal-muted); }
.deals-empty a { margin-top: 26px; padding: 11px 17px; border: 1px solid rgba(117,158,255,.35); border-radius: 8px; color: var(--deal-blue-bright); font-weight: 700; }

.more-deals { padding-top: 78px; }
.deals-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.deals-heading > div > span { color: var(--deal-blue-bright); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.deals-heading h2 { margin: 6px 0 0; font: 700 28px/1.25 "Plus Jakarta Sans",sans-serif; letter-spacing: -.035em; }
.deals-heading > p { max-width: 510px; margin: 0; color: var(--deal-muted); text-align: end; }
.deals-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.deal-card { overflow: hidden; border: 1px solid var(--deal-line); border-radius: 14px; background: rgba(10,23,55,.68); box-shadow: 0 15px 45px rgba(0,0,0,.16); transition: border-color .24s,box-shadow .24s,transform .24s; }
.deal-card:hover { border-color: rgba(117,158,255,.55); box-shadow: 0 18px 50px rgba(0,36,116,.28); transform: translateY(-4px); }
.deal-card > a { display: block; }
.deal-card-image { position: relative; height: 220px; overflow: hidden; background: #0d1733; }
.deal-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: .78; transition: opacity .25s,transform .55s; }
.deal-card:hover img { opacity: .92; transform: scale(1.05); }
.deal-card-image.empty { display: grid; place-items: center; color: rgba(117,158,255,.46); }
.deal-card-image.empty > svg { width: 55px; height: 55px; }
.deal-card-image > span { position: absolute; top: 15px; right: 15px; padding: 6px 10px; border: 1px solid rgba(117,158,255,.4); border-radius: 999px; background: rgba(0,84,199,.84); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 0 18px rgba(0,84,199,.35); }
[dir="rtl"] .deal-card-image > span { right: auto; left: 15px; }
.deal-card-copy { padding: 22px; }
.deal-card-copy small { display: block; color: var(--deal-blue-bright); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.deal-card-copy h3 { min-height: 52px; margin: 8px 0 20px; color: #fff; font: 700 18px/1.45 "Plus Jakarta Sans",sans-serif; }
[dir="rtl"] .deal-card-copy h3 { font-family: "Noto Kufi Arabic",Tahoma,sans-serif; }
.deal-card-prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.deal-card-prices del { color: #8f99bc; font-size: 13px; text-decoration-color: rgba(251,81,81,.75); }
.deal-card-prices strong { color: #fff; font-size: 18px; }
.deal-card-retailers { display: block; margin-top: 8px; color: var(--deal-muted); font-size: 12px; }

.deals-footer {
  position: relative;
  z-index: 2;
  min-height: 112px;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 30px max(32px,calc((100vw - 1216px)/2));
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(3,8,29,.76);
  color: var(--deal-muted);
  backdrop-filter: blur(18px);
}
.deals-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; font-size: 13px; }
.deals-footer nav a:hover { color: #fff; }
.deals-footer p { margin: 0; font-size: 12px; white-space: nowrap; }

@media (max-width:900px) {
  .deal-hero-copy { width: 75%; padding: 42px; }
  .deal-hero-image,.deal-hero-placeholder { inset-inline-start: 33%; width: 67%; }
  .deals-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .deals-footer { display: flex; flex-direction: column; text-align: center; }
}
@media (max-width:680px) {
  .deals-page .primary-links a.active::after { display: none; }
  .deals-main { padding: 24px 16px 60px; }
  .deal-hero { min-height: 560px; }
  .deal-hero-image,.deal-hero-placeholder { inset: 0; width: 100%; height: 52%; }
  [dir="rtl"] .deal-hero-image,[dir="rtl"] .deal-hero-placeholder { inset: 0; }
  .deal-hero-shade,.deal-hero-shade[aria-hidden="true"] { background: linear-gradient(0deg,#09152f 0%,rgba(9,21,47,.98) 57%,rgba(9,21,47,.18) 100%); transform: none; }
  .deal-hero-copy { width: 100%; min-height: 560px; justify-content: flex-end; padding: 28px 24px; }
  .deal-hero h1 { font-size: 32px; }
  [dir="rtl"] .deal-hero h1 { font-size: 30px; }
  .deal-hero-copy > p { margin: 12px 0 20px; font-size: 14px; }
  .deal-price-row { margin-bottom: 20px; }
  .deals-heading { display: block; }
  .deals-heading > p { margin-top: 12px; text-align: start; }
  .deals-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion:reduce) {
  .deal-currency { animation-play-state: paused; }
  .deal-card,.deal-card img,.deal-primary-action { transition: none; }
}
