/* ================================================================
   SHAWIR · National Day offers (WATAN, then SAR 96 instead of 250)
   Temporary campaign. Everything here is gated by the `nd-live`
   class that national-day.js puts on <html> while an offer is on
   show; it also hides the other offers' [data-offer] blocks.
   To retire it: delete this file, national-day.js and the
   "NATIONAL DAY 96" blocks in index.html + en/index.html.
================================================================ */

:root { --nd-bar-h: 44px; }

.nd-bar, .nd-offer { display: none; }
.nd-live .nd-offer { display: block; }
.nd-live.nd-bar-on .nd-bar { display: flex; }

/* ============ Top announcement bar ============ */
.nd-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: var(--nd-bar-h);
  align-items: center; justify-content: center;
  padding-inline: 46px;
  background: linear-gradient(90deg, var(--brand-900) 0%, var(--brand) 50%, var(--brand-900) 100%);
  border-bottom: 1px solid rgba(204,171,125,0.4);
  color: var(--cream);
}
.nd-bar-link {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 0; height: 100%;
  font-size: 13.5px; font-weight: 600;
}
.nd-bar-tag {
  flex-shrink: 0;
  padding: 3px 11px; border-radius: 999px;
  background: var(--sand); color: var(--brand-900);
  font-size: 11.5px; font-weight: 800; line-height: 1.5;
}
.nd-bar-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-bar-text b { color: var(--sand); font-weight: 800; }
.nd-bar-text s { color: rgba(247,241,230,0.65); text-decoration-color: #e5534b; text-decoration-thickness: 2px; }
.nd-bar-more {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--sand); font-weight: 800;
  transition: gap .25s var(--ease);
}
.nd-bar-link:hover .nd-bar-more { gap: 10px; }
.nd-bar-close {
  position: absolute; top: 50%; inset-inline-end: 10px;
  transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--cream); opacity: 0.65; font-size: 14px;
  transition: opacity .2s, background .2s;
}
.nd-bar-close:hover { opacity: 1; background: rgba(247,241,230,0.12); }

/* Make room for the bar above the floating navbar */
.navbar { transition: padding .3s var(--ease), box-shadow .3s, background .3s, top .3s var(--ease); }
.nd-live.nd-bar-on .navbar { top: calc(var(--nd-bar-h) + 10px); }
.nd-live.nd-bar-on .hero { padding-top: calc(150px + var(--nd-bar-h)); }

/* ============ Hero price: 250 struck through → offer price ============ */
.nd-price, .nd-price-when, .nd-when-now { display: none; }
.nd-live .nd-hide-live { display: none; }

.nd-live .hero .price-tag {
  position: relative;
  animation: ndPriceDim .5s var(--ease) 1.35s both;
}
.nd-live .hero .price-tag::after {
  content: ''; position: absolute; top: calc(50% - 1.5px); left: 5px; right: 5px;
  height: 3px; border-radius: 3px;
  background: #b23a2e;
  rotate: -4deg;
  clip-path: inset(0 0 0 100%);
  animation: ndStrike .55s var(--ease) .9s forwards;
}
.nd-live[dir="ltr"] .hero .price-tag::after { clip-path: inset(0 100% 0 0); }
@keyframes ndStrike { to { clip-path: inset(0 0 0 0); } }
@keyframes ndPriceDim { to { opacity: 0.72; box-shadow: none; } }

.nd-live .nd-price {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 4px 0; margin-inline-start: 6px;
  vertical-align: middle; white-space: nowrap;
}
.nd-price-arrow { color: var(--sand-2); font-size: 13px; animation: ndPop .45s var(--ease-spring) 1.5s both; }
.nd-price-now {
  position: relative; overflow: hidden;
  padding: 3px 13px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: var(--cream); font-weight: 800;
  box-shadow: 0 6px 14px -6px rgba(35,67,61,0.6);
  transition: translate .3s var(--ease);
  animation: ndPop .55s var(--ease-spring) 1.65s both;
}
.nd-price-now b { color: var(--sand); font-size: 1.2em; font-weight: 900; line-height: 1; }
.nd-price-now::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.38) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: ndShine 3.8s ease-in-out 2.6s infinite;
}
.nd-price-code {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 2px 11px; border-radius: 8px;
  border: 1.5px dashed var(--sand-2);
  background: rgba(204,171,125,0.14);
  color: var(--brand); font-weight: 800; letter-spacing: 0.1em;
  transition: translate .3s var(--ease), background .3s;
  animation: ndPop .55s var(--ease-spring) 1.85s both;
}
.nd-price-code i { color: var(--sand-2); font-size: 13px; }
.nd-price:hover .nd-price-now, .nd-price:hover .nd-price-code { translate: 0 -2px; }
.nd-price:hover .nd-price-code { background: rgba(204,171,125,0.28); }

.nd-live .nd-price-when {
  display: block; margin-top: 10px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  animation: ndFadeUp .6s var(--ease) 2.1s both;
}
.nd-price-when i { color: var(--sand-2); margin-inline-end: 4px; }
.nd-now .nd-when-before { display: none; }
.nd-now .nd-when-now { display: inline; color: var(--brand); font-weight: 800; }

@keyframes ndPop {
  from { opacity: 0; transform: scale(0.6) translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes ndFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes ndShine {
  0%, 55% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* ============ Offer card ============ */
.nd-offer { padding: 56px 0 20px; }
.nd-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 56px; align-items: center;
  padding: 64px 56px 56px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand) 60%, #2d5a4f 100%);
  color: var(--cream);
  box-shadow: var(--shadow-xl);
}
.nd-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 12% 0%, rgba(204,171,125,0.30) 0%, transparent 45%),
    radial-gradient(circle at 95% 100%, rgba(204,171,125,0.16) 0%, transparent 45%);
  pointer-events: none;
}
/* Sadu-style triangle trim along the top edge */
.nd-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px;
  background:
    linear-gradient(135deg, var(--sand) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(225deg, var(--sand) 25%, transparent 25%) 0 0 / 24px 24px;
  opacity: 0.5; pointer-events: none;
}

.nd-body { min-width: 0; }
.nd-body .kicker { background: rgba(247,241,230,0.12); color: var(--sand); }
.nd-body h2 {
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 900; line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.nd-body h2 em { font-style: normal; color: var(--sand); white-space: nowrap; }
.nd-lead { max-width: 540px; font-size: 17px; color: rgba(247,241,230,0.8); }
.nd-lead strong { color: var(--cream); font-weight: 800; }

/* Deal: 96 in a gold pill, 250 struck through (drawn when the card scrolls in) */
.nd-deal { margin-top: 26px; }
.nd-deal-label {
  display: block; margin-bottom: 12px;
  font-size: 18px; font-weight: 700; color: rgba(247,241,230,0.85);
}
.nd-deal-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.nd-deal-now {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 6px 28px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #e6cfa6 0%, var(--sand) 45%, var(--sand-2) 100%);
  color: var(--brand-900);
  font-size: 19px; font-weight: 800; line-height: 1.3;
  box-shadow: 0 16px 32px -16px rgba(204,171,125,0.8);
}
.nd-deal-now b { font-size: 50px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.nd-deal-now::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: ndShine 4.2s ease-in-out 2s infinite;
}
.nd-deal-was { font-size: 18px; font-weight: 700; color: rgba(247,241,230,0.72); }
.nd-was-num {
  position: relative; display: inline-block; margin-inline: 2px;
  font-size: 28px; font-weight: 900; color: var(--cream);
}
.nd-was-num::after {
  content: ''; position: absolute; top: calc(50% - 2px); left: -5px; right: -5px;
  height: 4px; border-radius: 4px;
  background: #e5534b;
  rotate: -10deg;
  clip-path: inset(0 0 0 100%);
}
[dir="ltr"] .nd-was-num::after { clip-path: inset(0 100% 0 0); }
.nd-card.show .nd-was-num::after { animation: ndStrike .6s var(--ease) .8s forwards; }

/* Date + time */
.nd-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.nd-meta li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; padding-inline-end: 20px;
  border-radius: 16px;
  background: rgba(247,241,230,0.08);
  border: 1px solid rgba(247,241,230,0.14);
}
.nd-meta i {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(204,171,125,0.18); color: var(--sand);
  font-size: 15px;
}
.nd-meta small { display: block; font-size: 11.5px; line-height: 1.4; color: rgba(247,241,230,0.6); }
.nd-meta strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.5; }

/* Coupon */
.nd-coupon {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px;
  max-width: 540px;
  padding: 14px; padding-inline-start: 22px;
  border: 2px dashed rgba(204,171,125,0.6);
  border-radius: 18px;
  background: rgba(15,31,28,0.35);
}
.nd-coupon-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: rgba(247,241,230,0.8);
}
.nd-coupon-label i { color: var(--sand); }
.nd-code {
  margin-inline-end: auto;
  font-family: inherit; font-size: 30px; font-weight: 900; line-height: 1.2;
  letter-spacing: 0.2em; color: var(--sand);
}
.nd-copy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px;
  background: var(--sand); color: var(--brand-900);
  font-size: 14px; font-weight: 800; line-height: 1.1; white-space: nowrap;
  transition: all .3s var(--ease);
}
.nd-copy-btn:hover { background: var(--cream); transform: translateY(-2px); }
.nd-copy-btn.copied { background: #2f9e6e; color: var(--white); }

/* Countdown */
.nd-countdown { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin: 22px 0 28px; }
.nd-countdown-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 700; color: rgba(247,241,230,0.85);
}
.nd-countdown-label::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--sand); box-shadow: 0 0 0 4px rgba(204,171,125,0.25);
}
.nd-now .nd-countdown-label::before {
  background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,0.25);
  animation: ndBlink 1.4s ease-in-out infinite;
}
@keyframes ndBlink { 50% { opacity: 0.35; } }
.nd-timer { display: flex; gap: 8px; }
.nd-timer > div {
  min-width: 64px; padding: 10px 8px 8px;
  text-align: center; border-radius: 14px;
  background: rgba(247,241,230,0.08);
  border: 1px solid rgba(247,241,230,0.14);
}
.nd-timer > [hidden] { display: none; }
.nd-timer strong {
  display: block; font-size: 26px; font-weight: 900; line-height: 1.15;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.nd-timer small { display: block; font-size: 11.5px; color: rgba(247,241,230,0.6); }

/* Store buttons on the dark card */
.nd-actions { margin-bottom: 16px; }
.nd-actions .store-btn { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.nd-actions .store-btn--alt { background: transparent; color: var(--cream); border-color: rgba(247,241,230,0.4); }
.nd-actions .store-btn--alt:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.nd-note { font-size: 14.5px; color: rgba(247,241,230,0.7); }

/* Visual */
.nd-visual { position: relative; }
.nd-visual img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(204,171,125,0.4);
  box-shadow: 0 30px 70px -25px rgba(0,0,0,0.6);
}
.nd-badge {
  position: absolute; top: -24px; inset-inline-end: -24px;
  width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 30% 25%, #e8cfa8 0%, var(--sand) 45%, var(--sand-2) 100%);
  color: var(--brand-900);
  box-shadow: 0 16px 34px -10px rgba(0,0,0,0.55), inset 0 0 0 5px rgba(15,31,28,0.10);
  rotate: -10deg;
  animation: floatTag 5s ease-in-out infinite;
}
.nd-badge strong { font-size: 56px; font-weight: 900; line-height: 0.95; letter-spacing: -0.03em; }
.nd-badge small { font-size: 15px; font-weight: 800; line-height: 1.2; }
.nd-visual-tag {
  position: absolute; bottom: 18px; inset-inline-start: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px;
  background: rgba(15,31,28,0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(204,171,125,0.35);
  font-size: 13px; font-weight: 700;
}
.nd-visual-tag i { color: var(--sand); }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .nd-card { gap: 40px; padding: 56px 40px 44px; }
}

@media (max-width: 860px) {
  .nd-live.nd-bar-on .hero { padding-top: calc(130px + var(--nd-bar-h)); }
  .nd-offer { padding: 30px 0 10px; }
  .nd-card { grid-template-columns: 1fr; gap: 34px; padding: 48px 28px 36px; }
  .nd-visual { order: -1; width: 100%; max-width: 440px; margin-inline: auto; }
  .nd-visual img { aspect-ratio: 4 / 3; }
  .nd-badge { width: 104px; height: 104px; top: -20px; inset-inline-end: -10px; }
  .nd-badge strong { font-size: 44px; }
  .nd-badge small { font-size: 13px; }
}

@media (max-width: 560px) {
  .nd-bar { justify-content: flex-start; padding-inline: 14px 44px; }
  .nd-bar-link { gap: 8px; font-size: 12.5px; }
  .nd-bar-tag, .nd-bar-more span, .nd-bar-extra { display: none; }
}

@media (max-width: 480px) {
  .nd-card { padding: 44px 20px 30px; border-radius: var(--radius-lg); }
  .nd-lead { font-size: 16px; }
  .nd-coupon { padding-inline-start: 16px; }
  .nd-code { font-size: 26px; }
  .nd-copy-btn { flex: 1 1 100%; justify-content: center; }
  .nd-deal-label { font-size: 16px; }
  .nd-deal-now { padding: 5px 22px 7px; font-size: 17px; }
  .nd-deal-now b { font-size: 42px; }
  .nd-deal-was { font-size: 16px; }
  .nd-was-num { font-size: 24px; }
  .nd-meta li { flex: 1 1 100%; }
  .nd-timer { width: 100%; }
  .nd-timer > div { flex: 1; min-width: 0; }
  .nd-actions .store-btn { padding: 12px; gap: 8px; }
  .nd-actions .store-btn i { font-size: 22px; }
  .nd-actions .store-btn span strong { font-size: 13.5px; letter-spacing: 0; white-space: nowrap; }
  .nd-badge { width: 86px; height: 86px; top: -26px; inset-inline-end: -8px; }
  .nd-badge strong { font-size: 36px; }
  .nd-badge small { font-size: 12px; }
  .nd-visual-tag { bottom: 10px; inset-inline-start: 10px; padding: 6px 11px; font-size: 12px; }
}

/* styles.css only shortens durations, which makes infinite loops flicker — stop ours outright */
@media (prefers-reduced-motion: reduce) {
  .nd-price-now::after, .nd-deal-now::after, .nd-badge, .nd-now .nd-countdown-label::before { animation: none; }
}
