/**
 * 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: 1180px;
  --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;
}

.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 {
  max-width: var(--nd-container);
  margin-inline: auto;
  padding-inline: 28px;
}

.site-header {
  border-bottom: 1px solid var(--nd-line);
  background: var(--nd-white);
}

.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,
.woocommerce button.button.alt {
  background-color: var(--nd-dark-green) !important;
  color: var(--nd-white) !important;
}

.woocommerce a.button: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: 40px;
}

.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 */
.elementor-page .site-content {
  padding: 0;
}

.elementor-default .site-header,
.elementor-default .site-footer {
  /* Theme Builder may replace these */
}

/* 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;
  }
}
