/*
  Salla National Day storefront skin
  Paste this file in Salla's custom CSS editor.
  The companion JavaScript adds body classes and the full-screen homepage hero.
*/

:root {
  --nd-green: #006c35;
  --nd-green-deep: #03472b;
  --nd-green-soft: #e8f4ee;
  --nd-gold: #c9a45c;
  --nd-gold-soft: #f6ead2;
  --nd-ink: #17120d;
  --nd-ink-soft: #413629;
  --nd-ivory: #fff9ee;
  --nd-white: #ffffff;
  --nd-clay: #9a653d;
  --nd-rosewood: #432517;
  --nd-border: rgba(23, 18, 13, 0.12);
  --nd-shadow: 0 18px 44px rgba(23, 18, 13, 0.12);
  --nd-shadow-strong: 0 26px 66px rgba(3, 71, 43, 0.2);
  --nd-radius: 8px;
  --nd-header-height: 84px;
}

html {
  scroll-behavior: smooth;
}

body.nd-theme,
body.nd-theme * {
  letter-spacing: 0 !important;
}

body.nd-theme {
  color: var(--nd-ink);
  background:
    linear-gradient(180deg, var(--nd-ivory) 0%, #ffffff 44%, #f7fbf8 100%);
  accent-color: var(--nd-green);
}

body.nd-theme::selection {
  color: #ffffff;
  background: var(--nd-green);
}

body.nd-theme a {
  transition: color 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

body.nd-theme a:hover {
  color: var(--nd-green);
}

body.nd-theme :focus-visible {
  outline: 3px solid rgba(201, 164, 92, 0.55);
  outline-offset: 3px;
}

body.nd-theme .container,
body.nd-theme .s-container,
body.nd-theme .main-container {
  max-width: 1240px;
}

body.nd-theme.nd-has-hero {
  padding-top: 0 !important;
}

body.nd-theme.nd-has-hero main,
body.nd-theme.nd-has-hero #app,
body.nd-theme.nd-has-hero .app-content,
body.nd-theme.nd-has-hero .main-content {
  overflow: visible;
}

body.nd-theme .nd-source-hero-hidden {
  display: none !important;
}

/* Full-screen static hero */
body.nd-theme .nd-hero {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 620px;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  isolation: isolate;
  background: #f2dfbf;
}

body.nd-theme .nd-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--nd-hero-position, center center);
}

body.nd-theme .nd-hero__shade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 24%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(23, 18, 13, 0) 0%, rgba(23, 18, 13, 0.22) 100%);
}

body.nd-theme .nd-hero__scroll {
  position: absolute;
  inset-inline: 0;
  bottom: 18px;
  z-index: 2;
  width: 34px;
  height: 54px;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(3, 71, 43, 0.18);
  backdrop-filter: blur(12px);
}

body.nd-theme .nd-hero__scroll::before {
  content: "";
  position: absolute;
  top: 12px;
  inset-inline: 0;
  width: 7px;
  height: 7px;
  margin-inline: auto;
  border-radius: 999px;
  background: #ffffff;
  animation: nd-scroll-dot 1.8s ease-in-out infinite;
}

@keyframes nd-scroll-dot {
  0%, 100% {
    opacity: 0.42;
    transform: translateY(0);
  }

  45% {
    opacity: 1;
    transform: translateY(18px);
  }
}

/* Header polish */
body.nd-theme :is(header, .store-header, .salla-theme-header, .site-header, .main-header) {
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    backdrop-filter 220ms ease;
}

body.nd-theme.nd-has-hero :is(.store-header, .salla-theme-header, .site-header, .main-header) {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(23, 18, 13, 0.06);
}

body.nd-theme.nd-has-hero:not(.nd-scrolled) :is(.store-header, .salla-theme-header, .site-header, .main-header) {
  background: rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

body.nd-theme :is(.top-navbar, .main-nav-container, .navbar, .s-header-top) {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 108, 53, 0.12);
}

body.nd-theme.nd-has-hero:not(.nd-scrolled) :is(.top-navbar, .main-nav-container, .navbar, .s-header-top) {
  background: transparent;
}

body.nd-theme :is(.navbar-brand img, .store-header img[alt*="logo" i], .store-header .logo img) {
  max-height: 58px;
  transition: transform 200ms ease, filter 200ms ease;
}

body.nd-theme :is(.navbar-brand img, .store-header img[alt*="logo" i], .store-header .logo img):hover {
  transform: translateY(-1px) scale(1.02);
}

body.nd-theme :is(.main-menu, .main-nav, .header-menu, nav) a {
  font-weight: 700;
}

body.nd-theme :is(.main-menu, .main-nav, .header-menu, nav) a:hover {
  color: var(--nd-green);
}

body.nd-theme :is(.s-search-input, input[type="search"], .search-input) {
  min-height: 44px;
  border: 1px solid rgba(0, 108, 53, 0.15) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 10px 26px rgba(23, 18, 13, 0.06);
}

/* Injected perks row */
body.nd-theme .nd-perks-wrap {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  background:
    linear-gradient(135deg, rgba(255, 249, 238, 0.96), rgba(255, 255, 255, 0.98)),
    linear-gradient(90deg, rgba(0, 108, 53, 0.1), rgba(201, 164, 92, 0.16));
  border-block: 1px solid rgba(0, 108, 53, 0.12);
}

body.nd-theme .nd-perks {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.nd-theme .nd-perk {
  min-height: 116px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(0, 108, 53, 0.14);
  border-radius: var(--nd-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(23, 18, 13, 0.06);
}

body.nd-theme .nd-perk__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--nd-green);
  background: var(--nd-green-soft);
}

body.nd-theme .nd-perk__icon svg {
  width: 25px;
  height: 25px;
}

body.nd-theme .nd-perk__title {
  margin: 0 0 5px;
  color: var(--nd-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

body.nd-theme .nd-perk__text {
  margin: 0;
  color: var(--nd-ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

/* Moving image strip */
body.nd-theme .nd-motion-band {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(3, 71, 43, 0.96), rgba(0, 108, 53, 0.96) 54%, rgba(67, 37, 23, 0.98));
}

body.nd-theme .nd-motion-band__intro {
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(26px, 4vw, 48px) clamp(18px, 3vw, 30px) 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

body.nd-theme .nd-motion-band__kicker {
  margin: 0 0 8px;
  color: var(--nd-gold-soft);
  font-size: 13px;
  font-weight: 800;
}

body.nd-theme .nd-motion-band__title {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 42px);
  font-weight: 900;
  line-height: 1.18;
}

body.nd-theme .nd-motion-band__text {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.8;
}

body.nd-theme .nd-motion-band__viewport {
  padding-block: 20px clamp(30px, 5vw, 58px);
  overflow: hidden;
}

body.nd-theme .nd-motion-band__track {
  display: flex;
  width: max-content;
  gap: 16px;
  padding-inline: 16px;
  animation: nd-marquee 42s linear infinite;
}

body.nd-theme .nd-motion-band:hover .nd-motion-band__track {
  animation-play-state: paused;
}

body.nd-theme .nd-motion-card {
  position: relative;
  flex: 0 0 clamp(190px, 22vw, 310px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--nd-radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.22);
}

body.nd-theme .nd-motion-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  animation: nd-subtle-zoom 8s ease-in-out infinite alternate;
}

body.nd-theme .nd-motion-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 56%, rgba(0, 0, 0, 0.26) 100%),
    linear-gradient(90deg, rgba(201, 164, 92, 0.14), rgba(255, 255, 255, 0));
}

@keyframes nd-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(50%);
  }
}

@keyframes nd-subtle-zoom {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.09);
  }
}

/* Fallback moving text strip if product images are not ready */
body.nd-theme .nd-word-strip {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  border-block: 1px solid rgba(201, 164, 92, 0.32);
  color: #ffffff;
  background: var(--nd-green-deep);
}

body.nd-theme .nd-word-strip__track {
  display: flex;
  width: max-content;
  gap: 10px;
  padding: 12px 10px;
  animation: nd-marquee 34s linear infinite;
}

body.nd-theme .nd-word-strip__item {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
}

/* Section rhythm */
body.nd-theme main > section:not(.nd-hero):not(.nd-motion-band):not(.nd-perks-wrap):not(.nd-word-strip),
body.nd-theme .home-section,
body.nd-theme .s-block {
  position: relative;
}

body.nd-theme .nd-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

body.nd-theme .nd-reveal.nd-visible {
  opacity: 1;
  transform: translateY(0);
}

body.nd-theme :is(.s-block__title, .s-products-list-title, .section-title, .title, h2):not(.nd-motion-band__title) {
  color: var(--nd-ink);
}

body.nd-theme :is(.s-block__title, .s-products-list-title, .section-title, .home-section h2) {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

body.nd-theme :is(.s-block__title, .s-products-list-title, .section-title, .home-section h2)::after {
  content: "";
  width: 46px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nd-green), var(--nd-gold));
}

/* Product cards */
body.nd-theme :is(.s-product-card-entry, .product-entry, .product-card) {
  overflow: hidden;
  border: 1px solid rgba(0, 108, 53, 0.12) !important;
  border-radius: var(--nd-radius) !important;
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(23, 18, 13, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

body.nd-theme :is(.s-product-card-entry, .product-entry, .product-card):hover {
  transform: translateY(-6px);
  border-color: rgba(201, 164, 92, 0.42) !important;
  box-shadow: var(--nd-shadow-strong);
}

body.nd-theme :is(.s-product-card-image, .product-card__image, .product-entry__image) {
  overflow: hidden;
  background:
    linear-gradient(145deg, #f8efe0, #ffffff 48%, #edf6f1);
}

body.nd-theme :is(.s-product-card-image img, .product-card__image img, .product-entry__image img) {
  width: 100%;
  transition: transform 450ms ease, filter 450ms ease;
}

body.nd-theme :is(.s-product-card-entry, .product-entry, .product-card):hover :is(.s-product-card-image img, .product-card__image img, .product-entry__image img) {
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.03);
}

body.nd-theme :is(.s-product-card-content, .product-card__content, .product-entry__content) {
  padding: 16px !important;
}

body.nd-theme :is(.s-product-card-content-title, .product-card__title, .product-title, .product-entry__title) {
  color: var(--nd-ink) !important;
  font-weight: 800 !important;
  line-height: 1.65 !important;
}

body.nd-theme :is(.s-product-card-price, .product-price, .price) {
  color: var(--nd-green) !important;
  font-weight: 900 !important;
}

body.nd-theme :is(.s-product-card-sale-price, .sale-price, .discount-price) {
  color: var(--nd-rosewood) !important;
}

body.nd-theme :is(.s-product-card-vertical-buttons button, .s-product-card-wishlist-btn, .wishlist, .quick-view) {
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 8px 22px rgba(23, 18, 13, 0.1);
}

body.nd-theme :is(.s-product-card-vertical-buttons button, .s-product-card-wishlist-btn, .wishlist, .quick-view):hover {
  color: #ffffff !important;
  background: var(--nd-green) !important;
}

/* Buttons and interactive controls */
body.nd-theme :is(.s-button-primary, .btn-primary, .button-primary, button[type="submit"], .add-to-cart, .s-add-to-cart-button) {
  min-height: 44px;
  border: 0 !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  background:
    linear-gradient(135deg, var(--nd-green), var(--nd-green-deep)) !important;
  box-shadow: 0 14px 30px rgba(0, 108, 53, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

body.nd-theme :is(.s-button-primary, .btn-primary, .button-primary, button[type="submit"], .add-to-cart, .s-add-to-cart-button):hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 18px 36px rgba(0, 108, 53, 0.3);
}

body.nd-theme :is(.s-button-outline, .btn-outline, .button-outline) {
  border: 1px solid rgba(0, 108, 53, 0.32) !important;
  border-radius: 6px !important;
  color: var(--nd-green) !important;
  background: rgba(255, 255, 255, 0.84) !important;
}

body.nd-theme :is(.s-button-outline, .btn-outline, .button-outline):hover {
  color: #ffffff !important;
  background: var(--nd-green) !important;
}

/* Categories and banners */
body.nd-theme :is(.s-categories-grid a, .category-card, .category-item, .banner-entry, .s-block--banners a) {
  overflow: hidden;
  border-radius: var(--nd-radius) !important;
  border: 1px solid rgba(201, 164, 92, 0.28);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(23, 18, 13, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

body.nd-theme :is(.s-categories-grid a, .category-card, .category-item, .banner-entry, .s-block--banners a):hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(23, 18, 13, 0.12);
}

body.nd-theme :is(.s-categories-grid img, .category-card img, .category-item img, .banner-entry img, .s-block--banners img) {
  transition: transform 420ms ease, filter 420ms ease;
}

body.nd-theme :is(.s-categories-grid a, .category-card, .category-item, .banner-entry, .s-block--banners a):hover img {
  transform: scale(1.035);
  filter: saturate(1.06);
}

/* Product page */
body.nd-theme :is(.product-single, .product-page, .s-product-page) {
  background:
    linear-gradient(180deg, rgba(255, 249, 238, 0.9), rgba(255, 255, 255, 1));
}

body.nd-theme :is(.product-single__gallery, .s-product-single-image, .product-gallery) {
  border-radius: var(--nd-radius);
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(23, 18, 13, 0.08);
}

body.nd-theme :is(.product-single__info, .product-info, .s-product-single-content) {
  border: 1px solid rgba(0, 108, 53, 0.1);
  border-radius: var(--nd-radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(23, 18, 13, 0.06);
}

body.nd-theme :is(.product-single__title, .product-title, h1) {
  color: var(--nd-ink);
}

body.nd-theme :is(.s-quantity-input-container, .quantity, input[type="number"]) {
  border-color: rgba(0, 108, 53, 0.18) !important;
  border-radius: 6px !important;
}

/* Cart and forms */
body.nd-theme :is(.s-cart-summary, .cart-summary, .checkout-card, .s-payment-method, .s-shipping-method, .form-card) {
  border: 1px solid rgba(0, 108, 53, 0.12) !important;
  border-radius: var(--nd-radius) !important;
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(23, 18, 13, 0.06);
}

body.nd-theme :is(input, textarea, select) {
  border-color: rgba(0, 108, 53, 0.16) !important;
  border-radius: 6px !important;
}

body.nd-theme :is(input, textarea, select):focus {
  border-color: var(--nd-green) !important;
  box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.1) !important;
}

/* Floating coupon */
body.nd-theme .nd-floating-offer {
  position: fixed;
  inset-inline-start: 18px;
  bottom: 18px;
  z-index: 90;
  width: min(292px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid rgba(201, 164, 92, 0.34);
  border-radius: var(--nd-radius);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(3, 71, 43, 0.96), rgba(67, 37, 23, 0.96));
  box-shadow: 0 22px 48px rgba(23, 18, 13, 0.24);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
}

body.nd-theme.nd-scrolled .nd-floating-offer {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.nd-theme .nd-floating-offer__title {
  margin: 0 0 4px;
  color: var(--nd-gold-soft);
  font-size: 12px;
  font-weight: 900;
}

body.nd-theme .nd-floating-offer__text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.65;
}

body.nd-theme .nd-floating-offer__code {
  width: 100%;
  min-height: 40px;
  border: 1px dashed rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
  cursor: pointer;
}

/* Footer */
body.nd-theme :is(.store-footer, footer, .site-footer) {
  color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(135deg, #11140f, #173221 58%, #2b1b12) !important;
  border-top: 4px solid var(--nd-green);
}

body.nd-theme :is(.store-footer, footer, .site-footer) a {
  color: rgba(255, 255, 255, 0.84);
}

body.nd-theme :is(.store-footer, footer, .site-footer) a:hover {
  color: var(--nd-gold-soft);
}

body.nd-theme :is(.store-footer h3, .store-footer h4, footer h3, footer h4, .site-footer h3, .site-footer h4) {
  color: #ffffff;
}

/* Salla web components parts, when exposed */
body.nd-theme salla-add-product-button::part(button),
body.nd-theme salla-button::part(button) {
  border-radius: 6px;
  background: var(--nd-green);
}

@media (max-width: 1024px) {
  body.nd-theme .nd-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.nd-theme .nd-motion-band__intro {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  :root {
    --nd-header-height: 68px;
  }

  body.nd-theme .nd-hero {
    min-height: 100svh;
  }

  body.nd-theme .nd-hero__image {
    object-position: var(--nd-hero-mobile-position, center center);
  }

  body.nd-theme .nd-perks {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  body.nd-theme .nd-perk {
    min-height: 92px;
    padding: 14px;
  }

  body.nd-theme .nd-motion-card {
    flex-basis: min(68vw, 260px);
  }

  body.nd-theme .nd-floating-offer {
    inset-inline: 12px;
    bottom: 12px;
    width: auto;
  }
}

@media (max-width: 480px) {
  body.nd-theme .nd-perk {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  body.nd-theme .nd-perk__icon {
    width: 40px;
    height: 40px;
  }

  body.nd-theme .nd-motion-band__title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.nd-theme *,
  body.nd-theme *::before,
  body.nd-theme *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}


/* National Day full-bleed corrections */
body.nd-theme {
  margin: 0 !important;
}

body.nd-theme > .nd-hero,
body.nd-theme > .nd-perks-wrap,
body.nd-theme > .nd-motion-band,
body.nd-theme > .nd-word-strip {
  margin-inline: 0 !important;
}

body.nd-theme > .nd-hero {
  left: 0 !important;
  right: 0 !important;
}

/* National Day mobile readable hero */
@media (max-width: 768px) {
  body.nd-theme .nd-hero {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(72px, 14svh, 126px) 0 0 !important;
    background-color: #ead8bb;
  }

  body.nd-theme .nd-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--nd-hero-bg);
    background-size: cover;
    background-position: center center;
    filter: blur(16px) saturate(0.95) contrast(0.94);
    transform: scale(1.12);
    opacity: 0.72;
  }

  body.nd-theme .nd-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(255, 249, 238, 0.16), rgba(23, 18, 13, 0.18)),
      radial-gradient(circle at 50% 32%, rgba(255, 249, 238, 0.42), rgba(255, 249, 238, 0) 58%);
  }

  body.nd-theme .nd-hero__image {
    position: relative;
    inset: auto;
    z-index: 1;
    width: min(156vw, 640px);
    max-width: none;
    height: auto;
    max-height: 92svh;
    object-fit: contain;
    object-position: center center;
    box-shadow: 0 22px 52px rgba(23, 18, 13, 0.2);
  }

  body.nd-theme .nd-hero__shade {
    z-index: 2;
    height: 26%;
  }

  body.nd-theme .nd-hero__scroll {
    z-index: 3;
  }
}

/* Jamliyah identity refinement — National Day draft */
:root {
  --jamliyah-gold: #f9e19f;
  --jamliyah-gold-deep: #d3bb79;
  --jamliyah-beige: #f3eee6;
  --jamliyah-ink: #231f1e;
  --jamliyah-black: #0e0f0f;
}

/* Keep every active selling price in the National Day green. */
body.nd-theme :is(
  .s-product-card-price,
  .s-product-card-price h4,
  .s-product-card-sale-price h4,
  .product-price,
  .sale-price,
  .discount-price,
  .price--sale,
  .price-after,
  .s-product-price,
  .product-details__price
) {
  color: var(--nd-green) !important;
}

/* The crossed-out original price stays quiet and never appears red. */
body.nd-theme .s-product-card-sale-price > span {
  color: #6f746f !important;
}

body.nd-theme .s-product-card-sale-price :is(h4, span) .sicon-sar,
body.nd-theme .s-product-card-price .sicon-sar {
  color: inherit !important;
}

/* Motion banner restyled with Jamliyah's published beige, gold and ink palette. */
body.nd-theme .nd-motion-band {
  position: relative;
  isolation: isolate;
  color: var(--jamliyah-ink);
  border-block: 1px solid rgba(211, 187, 121, 0.62);
  background:
    radial-gradient(circle at 12% 0%, rgba(249, 225, 159, 0.88), transparent 34%),
    radial-gradient(circle at 88% 100%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(135deg, var(--jamliyah-beige) 0%, #fffaf0 52%, #e8d7aa 100%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.84),
    inset 0 -1px rgba(35, 31, 30, 0.06);
}

body.nd-theme .nd-motion-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgba(35, 31, 30, 0.035) 48% 49%, transparent 49% 100%);
  background-size: 54px 54px;
}

body.nd-theme .nd-motion-band__kicker {
  color: var(--nd-green);
}

body.nd-theme .nd-motion-band__title {
  color: var(--jamliyah-ink);
}

body.nd-theme .nd-motion-band__text {
  color: rgba(35, 31, 30, 0.72);
}

body.nd-theme .nd-motion-card {
  border: 1px solid rgba(211, 187, 121, 0.72);
  border-radius: 14px;
  background: #fffaf0;
  box-shadow: 0 22px 52px rgba(35, 31, 30, 0.16);
}

body.nd-theme .nd-motion-card::after {
  background:
    linear-gradient(180deg, transparent 60%, rgba(14, 15, 15, 0.2) 100%),
    linear-gradient(105deg, rgba(249, 225, 159, 0.2), transparent 42%);
}

/* Jamliyah interaction refinements — approved draft */
body.nd-theme .nd-hero {
  height: clamp(440px, calc(100svh - 152px), 900px);
  min-height: 0;
}

/* Linked motion cards */
body.nd-theme .nd-motion-card__link {
  width: 100%;
  height: 100%;
  display: block;
  color: inherit;
  cursor: pointer;
}

body.nd-theme .nd-motion-card__link:focus-visible {
  outline: 3px solid var(--nd-green);
  outline-offset: -5px;
}

/* Offer countdown */
body.nd-theme .nd-countdown {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 2px auto 0;
  padding: 0 clamp(18px, 3vw, 30px) 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

body.nd-theme .nd-countdown__label {
  margin: 0;
  color: var(--jamliyah-ink);
  font-size: 14px;
  font-weight: 800;
}

body.nd-theme .nd-countdown__units {
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 76px));
  gap: 8px;
}

body.nd-theme .nd-countdown__unit {
  min-height: 62px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(211, 187, 121, 0.72);
  border-radius: 10px;
  color: var(--jamliyah-ink);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 24px rgba(35, 31, 30, 0.07);
}

body.nd-theme .nd-countdown__unit strong {
  color: var(--nd-green);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

body.nd-theme .nd-countdown__unit span {
  margin-top: 5px;
  color: rgba(35, 31, 30, 0.68);
  font-size: 11px;
  font-weight: 700;
}

/* Floating coupon can be minimized to avoid covering mobile content. */
body.nd-theme .nd-floating-offer {
  padding-top: 38px;
}

body.nd-theme .nd-floating-offer__toggle {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

body.nd-theme .nd-floating-offer--minimized {
  width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
}

body.nd-theme .nd-floating-offer--minimized > :not(.nd-floating-offer__toggle) {
  display: none !important;
}

body.nd-theme .nd-floating-offer--minimized .nd-floating-offer__toggle {
  position: static;
  width: 100%;
  height: 48px;
  border: 0;
  background: transparent;
}

@media (max-width: 768px) {
  body.nd-theme .nd-hero {
    height: calc(100svh - 148px);
    min-height: 300px;
    max-height: 780px;
    padding-top: clamp(46px, 8svh, 74px) !important;
  }

  body.nd-theme .nd-hero__image {
    max-height: calc(100svh - 112px);
  }

  body.nd-theme .nd-countdown {
    padding-inline: 16px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  body.nd-theme .nd-countdown__units {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.nd-theme .nd-countdown__unit {
    min-height: 56px;
  }
}

/* Jamliyah mobile hero fit and entry splash */
@media (max-width: 768px) {
  body.nd-theme .nd-hero {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    overflow: hidden;
    background: var(--jamliyah-beige, #f3eee6) !important;
  }

  body.nd-theme .nd-hero::before,
  body.nd-theme .nd-hero::after,
  body.nd-theme .nd-hero__shade,
  body.nd-theme .nd-hero__scroll {
    display: none !important;
  }

  body.nd-theme .nd-hero__image {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center center !important;
    box-shadow: none !important;
    transform: none !important;
  }
}

body.nd-splash-lock {
  overflow: hidden !important;
}

/* Prevent the storefront from flashing before the entry splash mounts */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147482999;
  pointer-events: auto;
  background:
    radial-gradient(circle at 22% 16%, rgba(249, 225, 159, 0.76), transparent 34%),
    radial-gradient(circle at 82% 82%, rgba(0, 108, 53, 0.12), transparent 38%),
    #f3eee6;
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 220ms ease;
  animation: nd-splash-boot-failsafe 600ms 6500ms forwards;
}

html.nd-splash-booted::before {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.nd-theme .nd-entry-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  color: var(--jamliyah-ink, #231f1e);
  background:
    radial-gradient(circle at 22% 16%, rgba(249, 225, 159, 0.76), transparent 34%),
    radial-gradient(circle at 82% 82%, rgba(0, 108, 53, 0.12), transparent 38%),
    rgba(243, 238, 230, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms ease, visibility 420ms ease;
}

body.nd-theme .nd-entry-splash::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgba(35, 31, 30, 0.05) 48% 49%, transparent 49% 100%);
  background-size: 64px 64px;
  animation: nd-splash-drift 8s linear infinite;
}

body.nd-theme .nd-entry-splash--visible {
  opacity: 1;
  visibility: visible;
}

body.nd-theme .nd-entry-splash--leaving {
  opacity: 0;
  visibility: hidden;
}

body.nd-theme .nd-entry-splash__content {
  position: relative;
  z-index: 1;
  width: min(820px, 92vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  grid-template-areas: "english divider brand";
  align-items: center;
  gap: clamp(22px, 5vw, 58px);
  direction: ltr;
}

body.nd-theme .nd-entry-splash__brand {
  grid-area: brand;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
  direction: rtl;
  text-align: center;
  transform: translateX(clamp(8px, 2vw, 24px));
}

body.nd-theme .nd-entry-splash__english {
  grid-area: english;
  min-width: 0;
  display: grid;
  place-items: center;
  direction: ltr;
}

body.nd-theme .nd-entry-splash__divider {
  grid-area: divider;
  position: relative;
  width: 1px;
  height: min(190px, 32vh);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(172, 145, 79, 0.34);
  transform: scaleY(0);
  transform-origin: center;
  animation: nd-splash-divider-in 720ms 260ms cubic-bezier(.2,.8,.2,1) forwards;
}

body.nd-theme .nd-entry-splash__divider::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -46%;
  height: 46%;
  background: linear-gradient(180deg, transparent, var(--nd-green, #006c35), transparent);
  animation: nd-splash-divider-flow 1.6s 900ms ease-in-out infinite;
}

body.nd-theme .nd-entry-splash__logo {
  width: min(176px, 36vw);
  max-height: 105px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(35, 31, 30, 0.12));
  animation: nd-splash-logo 800ms 120ms cubic-bezier(.2,.8,.2,1) both;
}

body.nd-theme .nd-entry-splash__signature {
  margin: 0;
  color: var(--jamliyah-ink, #231f1e);
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  animation: nd-splash-signature 820ms 240ms cubic-bezier(.2,.8,.2,1) both;
}

body.nd-theme .nd-entry-splash__tagline {
  margin: 0;
  color: rgba(35, 31, 30, 0.7);
  font-size: 14px;
  font-weight: 700;
  animation: nd-splash-signature 820ms 360ms cubic-bezier(.2,.8,.2,1) both;
}

body.nd-theme .nd-entry-splash__signature-svg {
  width: min(360px, 38vw);
  max-width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 8px 14px rgba(35, 31, 30, 0.08));
}

body.nd-theme .nd-entry-splash__ink,
body.nd-theme .nd-entry-splash__ink-fill {
  font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
  font-size: 88px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -3px !important;
  text-anchor: middle;
}

body.nd-theme .nd-entry-splash__ink {
  fill: transparent;
  stroke: #2c221d;
  stroke-width: 1.35px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 980;
  stroke-dashoffset: 980;
  animation: nd-splash-write 2.25s 420ms cubic-bezier(.45,.05,.25,1) forwards;
}

body.nd-theme .nd-entry-splash__ink-fill {
  fill: #2c221d;
  opacity: 0;
  animation: nd-splash-ink-fill 520ms 2.25s ease forwards;
}

body.nd-theme .nd-entry-splash__flourish {
  fill: none;
  stroke: var(--nd-green, #006c35);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.88;
  animation: nd-splash-flourish 780ms 2.15s ease-out forwards;
}

@keyframes nd-splash-logo {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes nd-splash-signature {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes nd-splash-divider-in {
  to { transform: scaleY(1); }
}

@keyframes nd-splash-divider-flow {
  from { transform: translateY(0); }
  to { transform: translateY(318%); }
}

@keyframes nd-splash-write {
  to { stroke-dashoffset: 0; }
}

@keyframes nd-splash-ink-fill {
  to { opacity: 1; }
}

@keyframes nd-splash-flourish {
  to { stroke-dashoffset: 0; }
}

@keyframes nd-splash-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(64px, 0, 0); }
}

@keyframes nd-splash-boot-failsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (max-width: 520px) {
  body.nd-theme .nd-entry-splash {
    padding: 18px;
  }

  body.nd-theme .nd-entry-splash__content {
    width: min(354px, 94vw);
    grid-template-columns: minmax(0, 0.95fr) 1px minmax(0, 1.05fr);
    gap: 14px;
  }

  body.nd-theme .nd-entry-splash__brand {
    gap: 9px;
    transform: translateX(7px);
  }

  body.nd-theme .nd-entry-splash__logo {
    width: min(126px, 34vw);
    max-height: 82px;
  }

  body.nd-theme .nd-entry-splash__signature {
    font-size: clamp(31px, 9vw, 40px);
  }

  body.nd-theme .nd-entry-splash__tagline {
    font-size: 12px;
  }

  body.nd-theme .nd-entry-splash__divider {
    height: 150px;
  }

  body.nd-theme .nd-entry-splash__signature-svg {
    width: min(168px, 40vw);
  }

  body.nd-theme .nd-entry-splash__ink,
  body.nd-theme .nd-entry-splash__ink-fill {
    font-size: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.nd-theme .nd-entry-splash *,
  body.nd-theme .nd-entry-splash::before {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
  }
}