/**
 * Noureldeing — Design tokens from Design.html
 * Colors: emerald, dark-green, gold, mint, cream, ink, muted, line
 */

:root {
  --nd-emerald: #0D5C46;
  --nd-dark-green: #084033;
  --nd-white: #FFFFFF;
  --nd-light-green: #2BA86E;
  --nd-mint: #E6F4EF;
  --nd-gold: #D4AF37;
  --nd-ink: #1B2420;
  --nd-cream: #F4EEE3;
  --nd-muted: #6b7a73;
  --nd-line: #e1e9e4;
  --nd-dark-bg: #04241b;
  --nd-container: 1200px;
  --nd-container-width: var(--nd-container);
  --nd-font-primary: 'Noto Kufi Arabic', sans-serif;
  --nd-font-body: var(--nd-font-primary);
  --nd-font-heading: var(--nd-font-primary);
  --nd-font-accent: var(--nd-font-primary);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--nd-font-primary);
  color: var(--nd-ink);
  background: var(--nd-white);
  line-height: 1.8;
}

button,
input,
select,
textarea {
  font-family: var(--nd-font-primary);
}

a {
  color: var(--nd-emerald);
  text-decoration: none;
}

a:hover {
  color: var(--nd-dark-green);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block-start: 0;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--nd-mint);
  clip: auto !important;
  clip-path: none;
  color: var(--nd-ink);
  display: block;
  font-size: 0.875rem;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}

.wrap,
.noureldeing-container {
  width: 100%;
  max-width: var(--nd-container-width, var(--nd-container));
  margin-inline: auto;
  padding: var(--nd-container-padding, 10px);
  box-sizing: border-box;
}

.site-header {
  border-bottom: 1px solid var(--nd-line);
  background: var(--nd-white);
}

/* WooCommerce store notice — Design.html .top-strip */
.woocommerce-store-notice.demo_store,
p.woocommerce-store-notice.demo_store {
  position: relative !important;
  inset: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 7px 40px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: var(--nd-dark-green);
  color: var(--nd-white);
  font-size: 11.5px;
  font-family: var(--nd-font-heading);
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.6;
  text-align: center;
  z-index: auto;
}

.woocommerce-store-notice.demo_store b,
.woocommerce-store-notice.demo_store strong,
p.woocommerce-store-notice.demo_store b,
p.woocommerce-store-notice.demo_store strong {
  color: var(--nd-gold);
  font-weight: 700;
}

.woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--nd-gold);
  font-size: 0 !important;
  line-height: 0;
  text-decoration: none;
  opacity: 0.9;
  overflow: hidden;
}

.woocommerce-store-notice.demo_store .noureldeing-dismiss-icon,
.woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link::after {
  content: "×";
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--nd-gold);
}

.woocommerce-store-notice.demo_store .noureldeing-dismiss-icon {
  display: block;
}

.woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link:not(:has(.noureldeing-dismiss-icon))::after {
  display: block;
}

.woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link:has(.noureldeing-dismiss-icon)::after {
  content: none;
  display: none;
}

.woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link:hover {
  opacity: 1;
  color: var(--nd-white);
}

[dir="rtl"] .woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link {
  left: auto;
  right: 8px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  gap: 20px;
}

.site-title {
  font-family: var(--nd-font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--nd-dark-green);
}

.primary-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-navigation a {
  font-family: var(--nd-font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: #33423c;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
  color: var(--nd-emerald);
}

.site-footer {
  background: linear-gradient(160deg, var(--nd-dark-green), var(--nd-dark-bg));
  color: var(--nd-white);
  padding: 60px 0 0;
  margin-top: auto;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
  color: var(--nd-gold);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-widget-title {
  font-family: var(--nd-font-heading);
  color: var(--nd-gold);
  font-size: 0.8125rem;
  margin: 0 0 16px;
}

.site-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.entry-header h1,
.page-title {
  font-family: var(--nd-font-heading);
  color: var(--nd-dark-green);
}

.btn,
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button {
  font-family: var(--nd-font-heading);
  font-weight: 700;
  border-radius: 4px;
}

.woocommerce a.button:not(.noureldeing-pcard__add),
.woocommerce button.button.alt {
  background-color: var(--nd-dark-green) !important;
  color: var(--nd-white) !important;
}

.woocommerce a.button:not(.noureldeing-pcard__add):hover,
.woocommerce button.button.alt:hover {
  background-color: var(--nd-emerald) !important;
}

.woocommerce .price,
.woocommerce ul.products li.product .price {
  color: var(--nd-emerald);
  font-family: var(--nd-font-heading);
}

.woocommerce span.onsale {
  background-color: var(--nd-dark-green);
  color: var(--nd-gold);
}

.noureldeing-shop {
  padding-block: 0;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
}

.no-results .page-title {
  margin-bottom: 12px;
}

/* Elementor & WooCommerce — primary font */
.woocommerce,
.woocommerce-page,
.elementor,
.elementor-widget-wrap,
.elementor-widget-text-editor,
.elementor-widget-heading .elementor-heading-title,
.elementor-button,
.elementor-nav-menu a {
  font-family: var(--nd-font-primary);
}

/* Elementor compatibility */
/* WooCommerce — keep container width on shop archives (not full-width like Elementor pages). */
body.noureldeing-woocommerce .noureldeing-woo-content.noureldeing-container {
  max-width: var(--nd-container-width, var(--nd-container));
  margin-inline: auto;
  padding: var(--nd-container-padding, 10px);
  width: 100%;
  box-sizing: border-box;
}

.elementor-page .site-content {
  padding: 0;
}

.elementor-page .site-main,
.elementor-page .noureldeing-container {
  max-width: none;
  width: auto;
  margin-inline: 0;
  padding: 0;
}

.elementor-page .entry-content {
  max-width: none;
}

.elementor-default .site-header,
.elementor-default .site-footer {
  /* Theme Builder may replace these */
}

body.noureldeing-theme-location-edit .elementor-theme-builder-content-area {
  display: none !important;
}

body.noureldeing-elementor-edit .site {
  min-height: 0;
}

body.noureldeing-elementor-edit .site-content {
  flex: 0 1 auto;
}

body.noureldeing-elementor-edit .elementor-location-header {
  flex-shrink: 0;
}

/* Product gallery video (ACF: product-video) */
.noureldeing-product-gallery__video-wrap {
  position: relative;
  width: 100%;
  background: #000;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.noureldeing-product-gallery__video-player {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.noureldeing-product-gallery__embed {
  position: relative;
  width: 100%;
  height: 100%;
}

.noureldeing-product-gallery__embed iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  display: block;
}

.woocommerce-product-gallery__image.noureldeing-product-gallery__video {
  cursor: default;
}

.woocommerce-product-gallery__image.noureldeing-product-gallery__video .zoomImg {
  display: none !important;
}

.flex-control-thumbs .noureldeing-product-gallery__video-thumb img {
  object-fit: cover;
}

.noureldeing-has-product-video .woocommerce-product-gallery__trigger {
  /* Lightbox remains for images; video slide has no zoom target. */
}

/* RTL */
.noureldeing-rtl {
  direction: rtl;
  text-align: right;
}

.noureldeing-ltr {
  direction: ltr;
  text-align: left;
}

@media (max-width: 768px) {
  .primary-navigation ul {
    flex-direction: column;
    gap: 12px;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
