/*
Theme Name: Rawaat Al-Naseem
Theme URI: https://rawaatalnaseem.store
Author: Rawaat Al-Naseem
Author URI: https://rawaatalnaseem.store
Description: Rawaa Beauty — متجر عناية بالبشرة طبيعية وعضوية، أنثوي راقٍ، عربي RTL كامل.
Version: 2.0.4
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rawaat-alnaseem
Tags: woocommerce, rtl, e-commerce, custom-colors, beauty
*/

/* ============================================================
   1. CSS Custom Properties — Rawaa Beauty Design System
   ============================================================ */
:root {
  /* Brand palette */
  --c-cream:     #FFFBFA;   /* خلفية الصفحة */
  --c-blush:     #FBE9EA;   /* خلفية أقسام ناعمة */
  --c-rose:      #F2CFD0;   /* وردي العلامة */
  --c-peach:     #F8D7CF;   /* خوخي — تدرّجات */
  --c-rose-deep: #D98A93;   /* تمييز: روابط/شارات/هوفر */
  --c-price-deep:#8F4E59;   /* سعر بطاقات المنتجات — زهري غامق */
  --c-ink:       #2A2422;   /* عناوين + أزرار رئيسية */
  --c-text:      #4A4240;   /* نص الجسم */
  --c-muted:     #9B8C8A;   /* نص ثانوي/حدود */
  --c-white:     #FFFFFF;

  /* Shape */
  --radius:    22px;
  --radius-sm: 14px;

  /* Shadows */
  --shadow:    0 14px 40px rgba(217,138,147,.16);
  --shadow-sm: 0 6px 18px rgba(42,36,34,.06);

  /* Layout */
  --maxw: 1200px;
  --section-py: 80px;

  /* Typography */
  --font-body: 'Tajawal', sans-serif;
  --font-deco: 'Great Vibes', cursive;

  /* Legacy aliases — backward compat for WooCommerce modules */
  --rn-beige:         var(--c-rose);
  --rn-beige-light:   var(--c-blush);
  --rn-beige-soft:    var(--c-peach);
  --rn-beige-hover:   var(--c-rose-deep);
  --rn-cream:         var(--c-cream);
  --rn-cream-border:  var(--c-rose);
  --rn-cream-bg:      var(--c-blush);
  --rn-blue:          var(--c-rose-deep);
  --rn-pink-dark:     var(--c-rose-deep);
  --rn-text-dark:     var(--c-text);
  --rn-text-black:    var(--c-ink);
  --rn-text-muted:    var(--c-muted);
  --rn-success:       #2e7d32;
  --rn-success-bg:    #e8f5e9;
  --rn-success-border:#c8e6c9;
  --rn-danger:        #e53935;
  --rn-red:           #ff0000;
  --rn-white:         var(--c-white);
  --rn-border-light:  var(--c-rose);
  --rn-price-light:   var(--c-rose-deep);
  --rn-radius-xs:     4px;
  --rn-radius-sm:     8px;
  --rn-radius-md:     15px;
  --rn-radius-input:  18px;
  --rn-radius-lg:     20px;
  --rn-radius-xl:     25px;
  --rn-radius-card:   var(--radius);
}

/* ============================================================
   2. Base / Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-cream);
  direction: rtl;
  overflow-x: hidden;
}

html, body, #page, .site, #content, .site-content, main#content {
  width: 100%;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--c-ink);
  margin: 0 0 .5em;
  line-height: 1.3;
  letter-spacing: .01em;
}

p  { margin: 0 0 1em; }
a  { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   3. Layout Utilities
   ============================================================ */
.rb-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.rb-section {
  padding-block: var(--section-py);
}

/* ============================================================
   4. Buttons
   ============================================================ */
.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 34px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 2px solid transparent;
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease, border-color .28s ease, color .28s ease;
  cursor: pointer;
  text-decoration: none;
}

/* Primary: dark ink — high contrast elegance */
.rb-btn-primary {
  background: var(--c-ink);
  color: var(--c-white);
  border-color: var(--c-ink);
}
.rb-btn-primary:hover {
  background: var(--c-rose-deep);
  border-color: var(--c-rose-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(217,138,147,.35);
}

/* Secondary: outlined rose */
.rb-btn-secondary {
  background: transparent;
  color: var(--c-rose-deep);
  border-color: var(--c-rose-deep);
}
.rb-btn-secondary:hover {
  background: var(--c-rose-deep);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* WhatsApp green */
.rb-btn-wa {
  background: #25D366;
  color: var(--c-white);
  border-color: #25D366;
}
.rb-btn-wa:hover {
  background: #128C7E;
  border-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.3);
}

/* ============================================================
   5. Header
   ============================================================ */
.rb-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 9000;
  transition: background .35s ease, box-shadow .35s ease;
  background: transparent;
}

.rb-header.is-scrolled {
  background: rgba(255,251,250,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(217,138,147,.13);
}

.rb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 28px;
}

/* Logo */
.rb-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.rb-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}
.rb-logo-text {
  font-family: var(--font-deco);
  font-size: 28px;
  color: var(--c-rose-deep);
  transition: color .25s;
}

/* Transparent header: white text + logo */
.rb-header:not(.is-scrolled) .rb-logo-text {
  color: var(--c-white);
  text-shadow: 0 1px 8px rgba(42,36,34,.35);
}
.rb-header:not(.is-scrolled) .rb-logo img {
  /* Keep the real logo colours visible over the hero from the first paint. */
  filter: none;
}

/* Primary Nav */
.rb-nav ul.menu {
  display: flex;
  gap: 4px;
  align-items: center;
}

.rb-nav ul.menu a {
  display: block;
  padding: 8px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-ink);
  border-radius: 50px;
  transition: background .22s, color .22s;
  white-space: nowrap;
}

.rb-nav ul.menu a:hover,
.rb-nav ul.menu .current-menu-item > a {
  background: var(--c-blush);
  color: var(--c-rose-deep);
}

/* Transparent state: white nav text */
.rb-header:not(.is-scrolled) .rb-nav ul.menu a {
  color: var(--c-white);
  text-shadow: 0 1px 4px rgba(42,36,34,.3);
}
.rb-header:not(.is-scrolled) .rb-nav ul.menu a:hover {
  background: rgba(255,255,255,.18);
  color: var(--c-white);
  text-shadow: none;
}

/* ── Header icons (search + cart) ── */
.rb-header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rb-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--c-ink);
  transition: background .22s, color .22s;
}
.rb-search-toggle:hover {
  background: var(--c-blush);
  color: var(--c-rose-deep);
}
.rb-header:not(.is-scrolled) .rb-search-toggle { color: var(--c-white); }
.rb-header:not(.is-scrolled) .rb-search-toggle:hover { background: rgba(255,255,255,.18); color: var(--c-white); }

/* Cart button wrapper */
.rb-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--c-ink);
  padding: 5px 12px 5px 8px;
  border-radius: 50px;
  background: var(--c-blush);
  border: 1px solid var(--c-rose);
  transition: background .22s, border-color .22s, box-shadow .22s;
}
.rb-cart-btn:hover {
  background: var(--c-rose);
  border-color: var(--c-rose-deep);
  box-shadow: var(--shadow-sm);
}
.rb-header:not(.is-scrolled) .rb-cart-btn {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.3);
  color: var(--c-white);
  backdrop-filter: blur(6px);
}
.rb-header:not(.is-scrolled) .rb-cart-btn:hover {
  background: rgba(255,255,255,.25);
}

.rb-cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Count badge */
.rb-cart-count-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  background: var(--c-rose-deep);
  color: var(--c-white);
  min-width: 19px;
  height: 19px;
  border-radius: 50px;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 4px;
  border: 2px solid var(--c-white);
  box-sizing: border-box;
}
.rb-cart-count-badge:empty,
.rb-cart-count-badge[data-count="0"] { display: none; }

/* Price pill */
.rb-cart-total-pill {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink);
  white-space: nowrap;
  letter-spacing: .01em;
}
.rb-header:not(.is-scrolled) .rb-cart-total-pill { color: var(--c-white); }

/* ── Search Overlay ── */
.rb-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42,36,34,.72);
  backdrop-filter: blur(8px);
  z-index: 9500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.rb-search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.rb-search-overlay-inner {
  width: 100%;
  max-width: 680px;
  padding-inline: 20px;
}

.rb-search-form {
  display: flex;
  align-items: center;
  background: var(--c-white);
  border-radius: 50px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 20px 60px rgba(42,36,34,.22);
  gap: 6px;
}

.rb-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--c-ink);
  direction: rtl;
  min-width: 0;
  padding: 8px 4px;
}
.rb-search-input::placeholder { color: var(--c-muted); }

.rb-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--c-ink);
  color: var(--c-white);
  flex-shrink: 0;
  transition: background .22s;
}
.rb-search-submit:hover { background: var(--c-rose-deep); }

.rb-search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--c-blush);
  color: var(--c-ink);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  transition: background .22s, color .22s;
}
.rb-search-close:hover { background: var(--c-rose); color: var(--c-rose-deep); }

/* ── Hamburger toggle ── */
.rb-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 9100;
}
.rb-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
.rb-header:not(.is-scrolled) .rb-menu-toggle span {
  background: var(--c-white);
}
.rb-menu-toggle.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.rb-menu-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.rb-menu-toggle.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── Header 3-group wrappers ── */
/* Desktop: start wrapper is invisible (hamburger already hidden) */
.rb-header-start {
  display: none;
}
/* Center and end are flex containers that align their children */
.rb-header-center,
.rb-header-end {
  display: flex;
  align-items: center;
}

/* ── Mobile overlay + slide menu ── */
.rb-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42,36,34,.5);
  z-index: 8998;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.rb-mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rb-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 88vw);
  height: 100%;
  background: var(--c-cream);
  z-index: 9001;
  transition: right .38s cubic-bezier(.22,1,.36,1);
  padding: 88px 28px 48px;
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(42,36,34,.18);
}
.rb-mobile-menu.is-open { right: 0; }

.rb-mobile-menu ul.menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rb-mobile-menu ul.menu a {
  display: block;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 600;
  color: var(--c-ink);
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--c-rose);
  transition: background .22s, color .22s;
}
.rb-mobile-menu ul.menu a:hover {
  background: var(--c-blush);
  color: var(--c-rose-deep);
}

/* ============================================================
   6. Hero — Static single image
   ============================================================ */
.rb-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  max-height: 820px;
  overflow: hidden;
}

/* Static variant (no Swiper) */
.rb-hero-static {
  position: relative;
  width: 100%;
  height: 100%;
}

.rb-hero-static img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Dark overlay for text legibility */
.rb-hero-static::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(42,36,34,.55) 0%,
    rgba(42,36,34,.2) 60%,
    rgba(42,36,34,.04) 100%
  );
  pointer-events: none;
}

.rb-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-inline: 28px;
  padding-block: 80px;
  text-align: center;
  gap: 14px;
}

.rb-hero-copy {
  width: min(92%, 520px);
  padding: 16px 24px 15px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 22px;
  background: rgba(42,36,34,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(42,36,34,.14);
}

.rb-hero-title {
  margin: 0;
  color: var(--c-white);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(42,36,34,.30);
  text-wrap: balance;
}

.rb-hero-subtitle {
  margin: 5px 0 0;
  color: rgba(255,255,255,.94);
  font-size: clamp(.92rem, 1.6vw, 1.08rem);
  font-weight: 500;
  letter-spacing: .01em;
  text-shadow: 0 1px 8px rgba(42,36,34,.26);
}

/* Browse button in hero */
.rb-hero-scroll-btn {
  font-size: 16px;
  padding: 14px 42px;
  background: var(--c-white);
  color: var(--c-ink);
  border-color: var(--c-white);
}
.rb-hero-scroll-btn:hover {
  background: var(--c-rose-deep);
  border-color: var(--c-rose-deep);
  color: var(--c-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(42,36,34,.22);
}

/* ============================================================
   7. Brand / Feature Cards Section
   ============================================================ */
.rb-brand {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.78) 0, rgba(255,255,255,0) 27%),
    linear-gradient(180deg, var(--c-blush) 0%, #FFF7F6 100%);
  padding-block: clamp(58px, 8vw, 96px);
}

.rb-brand::before,
.rb-brand::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.rb-brand::before {
  width: 260px;
  height: 260px;
  top: -135px;
  right: -95px;
  background: rgba(217,138,147,.12);
}

.rb-brand::after {
  width: 210px;
  height: 210px;
  bottom: -120px;
  left: -75px;
  background: rgba(248,215,207,.34);
}

.rb-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin-inline: auto;
  text-align: center;
}

.rb-brand-title {
  max-width: 820px;
  margin: 0 auto clamp(34px, 5vw, 54px);
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-ink);
  text-wrap: balance;
}

.rb-feature-marquee {
  position: relative;
  width: 100%;
}

.rb-feature-track {
  width: 100%;
}

.rb-feature-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
}

/* The second copy is used only for the seamless mobile marquee. */
.rb-feature-cards[aria-hidden="true"] {
  display: none;
}

.rb-feature-card {
  position: relative;
  isolation: isolate;
  min-height: 185px;
  padding: 28px 18px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,248,247,.84));
  border: 1px solid rgba(217,138,147,.24);
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(166,94,106,.11);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.rb-feature-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 95px;
  height: 95px;
  top: -38px;
  left: -28px;
  border-radius: 50%;
  background: rgba(242,207,208,.35);
}

.rb-feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(217,138,147,.48);
  box-shadow: 0 22px 46px rgba(166,94,106,.18);
}

.rb-feature-icon {
  position: relative;
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 26px;
  color: #8F4E59;
  background: linear-gradient(145deg, #F8DEDF 0%, #E8AAB2 100%);
  box-shadow:
    0 12px 24px rgba(166,94,106,.18),
    inset 0 1px 0 rgba(255,255,255,.72);
  transform: rotate(-2deg);
}

.rb-feature-icon::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 21px;
}

.rb-feature-icon svg {
  position: relative;
  z-index: 1;
  width: 35px;
  height: 35px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rb-feature-icon img {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
}

.rb-feature-text {
  margin: 0;
  color: var(--c-ink);
  font-size: clamp(.98rem, 1.5vw, 1.12rem);
  font-weight: 700;
  line-height: 1.45;
}

/* ============================================================
   8. Stats Badge
   ============================================================ */
.rb-stats {
  padding-block: 60px;
  background: var(--c-cream);
}

.rb-stats-inner {
  display: flex;
  justify-content: center;
}

.rb-stats-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 170px;
  background: linear-gradient(145deg, var(--c-rose), var(--c-peach));
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform .3s ease;
}
.rb-stats-badge:hover { transform: scale(1.04); }

.rb-stats-number {
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1;
  margin-bottom: 2px;
}
.rb-stats-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  text-align: center;
  padding-inline: 20px;
  line-height: 1.35;
}

/* ============================================================
   9. Products Section
   ============================================================ */
.rb-products {
  padding-block: var(--section-py);
  background: var(--c-cream);
}

.rb-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.rb-section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0;
}
.rb-section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-rose-deep), var(--c-peach));
  border-radius: 2px;
  margin: 14px auto 0;
}

.rb-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── Product Card ── */
.rb-product-card {
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.rb-product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.rb-product-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--c-blush);
}
.rb-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .42s ease;
}
.rb-product-card:hover .rb-product-img img {
  transform: scale(1.07);
}

.rb-product-info {
  padding: 16px 20px 20px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.rb-product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 12px;
  line-height: 1.5;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rb-product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.rb-price-current {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-price-deep);
  line-height: 1.25;
}

.rb-price-old {
  font-size: 13px;
  font-weight: 400;
  color: var(--c-muted);
  text-decoration: line-through;
}

/* Product-card prices use the dark rose from the brand palette everywhere. */
.rb-product-card .rb-price-current,
.rb-product-card .rb-product-price > .woocommerce-Price-amount,
.rb-product-card .rb-product-price ins,
.rb-product-card .rb-product-price ins .woocommerce-Price-amount,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins .woocommerce-Price-amount,
.woocommerce ul.products li.product .price > .woocommerce-Price-amount {
  color: var(--c-price-deep) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.25;
}

.rb-product-card .rb-price-old,
.rb-product-card .rb-price-old .woocommerce-Price-amount,
.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price del .woocommerce-Price-amount {
  color: var(--c-muted) !important;
}

/* Sale labels shown over product images. The homepage uses .rb-sale-badge
   with the word “تخفيض”; .rb-price-badge remains for other catalog templates. */
.rb-sale-badge,
.rb-price-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 11px;
  border: 1px solid rgba(217,138,147,.22);
  border-radius: 8px;
  background: rgba(255,244,246,.94);
  box-shadow: 0 5px 14px rgba(112,70,76,.10);
  color: var(--c-rose-deep);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Out-of-stock badge on product images (homepage + shop). */
.rb-stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid rgba(76, 64, 66, .16);
  border-radius: 8px;
  background: rgba(48, 42, 43, .92);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* Add to cart button on product cards */
.rb-btn-add-to-cart {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--c-ink);
  color: var(--c-white);
  border: none;
  border-radius: 50px;
  text-align: center;
  cursor: pointer;
  transition: background .25s, transform .22s, box-shadow .22s;
}
.rb-btn-add-to-cart:hover,
.rb-btn-add-to-cart.added {
  background: var(--c-rose-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217,138,147,.3);
}
.rb-btn-add-to-cart.loading {
  opacity: .6;
  cursor: wait;
}

/* Global disabled state so it also works on the homepage (shop.css isn't loaded there). */
.rb-btn-add-to-cart.rb-btn-out-of-stock {
  background: var(--c-blush);
  color: var(--c-muted);
  border: 1px solid var(--c-rose);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}
.rb-btn-add-to-cart.rb-btn-out-of-stock:hover {
  background: var(--c-blush);
  color: var(--c-muted);
  box-shadow: none;
  transform: none;
}

/* Product image link */
.rb-product-img-link { display: block; flex: 0 0 auto; }

/* Hidden field (forced country) */
.rn-hidden-field { display: none !important; }

/* No products message */
.rb-no-products {
  text-align: center;
  color: var(--c-muted);
  font-size: 15px;
  padding: 40px 0;
}

/* Browse More button row */
.rb-browse-more {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 8px;
}

/* ============================================================
   10. Promo Banner
   ============================================================ */
.rb-promo {
  padding-block: 40px;
}

.rb-promo-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  line-height: 0;
}
.rb-promo-img-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .55s ease;
}
.rb-promo-img-wrap:hover img { transform: scale(1.03); }

/* ============================================================
   11. Footer
   ============================================================ */
.rb-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(255,255,255,.34) 0, rgba(255,255,255,0) 32%),
    linear-gradient(135deg, #E8AAB2 0%, var(--c-rose-deep) 100%);
  color: var(--c-ink);
  padding-block: 64px 32px;
  margin-top: 40px;
}

.rb-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px 48px;
  margin-bottom: 52px;
}

.rb-footer-logo-img {
  max-width: 160px;
  height: auto;
  margin-bottom: 14px;
  background: transparent;
  object-fit: contain;
  display: block;
}
.rb-footer-logo-text {
  font-family: var(--font-deco);
  font-size: 30px;
  color: var(--c-rose);
  display: block;
  margin-bottom: 12px;
  line-height: 1.2;
}
.rb-footer-tagline {
  font-size: 13.5px;
  color: rgba(42,36,34,.78);
  line-height: 1.7;
  margin: 0;
}

.rb-footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(42,36,34,.20);
}

.rb-footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.rb-footer-links a {
  font-size: 14px;
  color: rgba(42,36,34,.84);
  transition: color .22s, transform .22s;
}
.rb-footer-links a:hover { color: var(--c-ink); transform: translateX(-3px); }

.rb-footer-phone {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
  font-variant-numeric: tabular-nums;
  letter-spacing: .025em;
  white-space: nowrap;
}

/* Social icons */
.rb-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.rb-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(42,36,34,.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
  transition: background .25s, border-color .25s, color .25s, transform .25s;
  flex-shrink: 0;
}
.rb-social-link:hover {
  background: var(--c-white);
  border-color: var(--c-white);
  color: var(--c-rose-deep);
  transform: translateY(-3px);
}
.rb-social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  display: block;
}

/* Footer bottom bar */
.rb-footer-bottom {
  border-top: 1px solid rgba(42,36,34,.18);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.rb-footer-copy {
  font-size: 13px;
  color: rgba(42,36,34,.72);
  margin: 0;
}

/* ============================================================
   12. WhatsApp Floating Button
   ============================================================ */
.rb-wa-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.42);
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
}
.rb-wa-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 14px 36px rgba(37,211,102,.52);
}
.rb-wa-float svg {
  width: 30px;
  height: 30px;
  fill: var(--c-white);
  display: block;
}
/* Pulse ring */
.rb-wa-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: rb-wa-pulse 2.6s ease-out infinite;
  z-index: -1;
}
@keyframes rb-wa-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.55); opacity: 0;   }
  100% { transform: scale(1.55); opacity: 0;   }
}

/* ============================================================
   13. Inner Pages
   ============================================================ */
.rb-page-wrap {
  padding-block: 120px 80px;
  min-height: 60vh;
}
.rb-page-header {
  text-align: center;
  margin-bottom: 40px;
}
.rb-page-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}


.rb-page-content {
  max-width: 880px;
  margin-inline: auto;
}

.rb-policy-content {
  padding: clamp(22px, 4vw, 42px);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(217,138,147,.24);
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(166,94,106,.10);
}

.rb-policy-home-link {
  margin: 0 0 22px;
}

.rb-policy-home-link a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--c-rose-deep);
  font-size: 14px;
  font-weight: 700;
}

.rb-policy-home-link a::before {
  content: '←';
  font-size: 16px;
}

.rb-policy-content h2,
.rb-policy-content h3 {
  color: var(--c-ink);
  line-height: 1.45;
}

.rb-policy-content h2 {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.rb-policy-content h3 {
  margin: 28px 0 12px;
  font-size: 1.15rem;
}

.rb-policy-content p,
.rb-policy-content li {
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.95;
}

.rb-policy-content ul {
  margin: 0;
  padding-right: 22px;
}

.rb-policy-content li + li {
  margin-top: 8px;
}

.rb-policy-note {
  margin: 28px 0 0;
  padding: 16px 18px;
  background: rgba(242,207,208,.32);
  border-right: 4px solid var(--c-rose-deep);
  border-radius: 14px;
}

.rb-faq-list {
  display: grid;
  gap: 14px;
}

.rb-faq-item {
  overflow: hidden;
  background: var(--c-white);
  border: 1px solid rgba(217,138,147,.28);
  border-radius: 18px;
}

.rb-faq-item summary {
  position: relative;
  padding: 18px 52px 18px 18px;
  color: var(--c-ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.rb-faq-item summary::-webkit-details-marker {
  display: none;
}

.rb-faq-item summary::before,
.rb-faq-item summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  width: 15px;
  height: 2px;
  background: var(--c-rose-deep);
  transform: translateY(-50%);
  transition: transform .2s ease;
}

.rb-faq-item summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.rb-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
}

.rb-faq-item p {
  margin: 0;
  padding: 0 18px 20px;
  color: var(--c-text);
}

.rb-404-wrap {
  text-align: center;
  padding-block: 140px 100px;
}
.rb-404-number {
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 700;
  color: var(--c-rose);
  line-height: 1;
  margin-bottom: 16px;
}
.rb-404-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.rb-404-text {
  color: var(--c-muted);
  margin-bottom: 32px;
}

/* Continuous mobile feature marquee. Two identical groups make the loop seamless. */
@keyframes rb-feature-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .rb-feature-track {
    animation-play-state: paused !important;
  }
}

/* ============================================================
   14. Responsive
   ============================================================ */

/* Large tablet */
@media (max-width: 1100px) {
  .rb-products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .rb-footer-grid   { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* Tablet */
@media (max-width: 768px) {
  :root { --section-py: 56px; }

  /* Show hamburger, hide desktop nav */
  .rb-nav           { display: none !important; }
  .rb-menu-toggle   { display: flex; }
  .rb-mobile-nav    { display: block; }

  /* ── Mobile header: 3-group layout ──
     RTL order: [☰ start/right] [logo center] [🔍🛒 end/left]
     flex:1 on start+end guarantees true centering of the logo.
  */
  .rb-header-inner {
    padding-inline: 16px;
  }

  /* Start group (☰): shown, pushed to RTL start (right) */
  .rb-header-start {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-start; /* RTL start = right edge */
    order: -1;                   /* renders first = rightmost in RTL */
  }

  /* Center group (logo): sits between two equal flex:1 columns → truly centered */
  .rb-header-center {
    justify-content: center;
  }

  /* End group (icons): mirror of start, pushed to RTL end (left) */
  .rb-header-end {
    flex: 1;
    justify-content: flex-end; /* RTL end = left edge */
  }

  /* Hero on tablet */
  .rb-hero-content { padding-inline: 28px; padding-block: 60px; }

  .rb-products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Mobile feature cards: seamless, continuously moving strip.
     Only the track moves; the title and section remain fixed. */
  .rb-feature-marquee {
    width: calc(100% + 48px);
    margin-inline: -24px;
    overflow: hidden;
    direction: ltr;
    contain: paint;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
  }

  .rb-feature-track {
    display: flex;
    align-items: stretch;
    width: max-content;
    direction: ltr;
    will-change: transform;
    animation: rb-feature-marquee 18s linear infinite;
  }

  .rb-feature-cards,
  .rb-feature-cards[aria-hidden="true"] {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row-reverse;
    grid-template-columns: none;
    gap: 12px;
    margin: 0;
    padding: 8px 12px 18px 0;
    direction: ltr;
  }

  .rb-feature-card {
    flex: 0 0 clamp(150px, 42vw, 190px);
    direction: rtl;
  }

  .rb-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .rb-promo-img-wrap img { height: 200px; }

  /* Search overlay */
  .rb-search-overlay { padding-top: 80px; }
}

/* Mobile */
@media (max-width: 520px) {
  .rb-container { padding-inline: 16px; }

  /* Shorter mobile hero while keeping the face centred and the CTA visible. */
  .rb-hero {
    height: 500px;
    height: clamp(430px, 58svh, 500px);
    min-height: 430px;
    max-height: 500px;
  }
  .rb-hero-static img { object-position: center 18%; }
  .rb-hero-content {
    padding: 0 18px 28px;
    gap: 10px;
  }
  .rb-hero-copy {
    width: min(88%, 300px);
    padding: 11px 16px 10px;
    border-radius: 17px;
    background: rgba(42,36,34,.16);
  }
  .rb-hero-title {
    font-size: 1.24rem;
    line-height: 1.38;
  }
  .rb-hero-subtitle {
    margin-top: 3px;
    font-size: .82rem;
  }
  .rb-hero-scroll-btn {
    min-height: 40px;
    padding: 9px 24px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: 0 7px 20px rgba(42,36,34,.15);
  }

  .rb-products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .rb-brand-title { margin-bottom: 30px; font-size: 1.55rem; }
  .rb-feature-marquee { width: calc(100% + 32px); margin-inline: -16px; }
  .rb-feature-cards { gap: 12px; }
  .rb-feature-card { min-height: 152px; padding: 20px 10px 18px; gap: 13px; border-radius: 20px; }
  .rb-feature-icon { width: 72px; height: 72px; border-radius: 22px; }
  .rb-feature-icon::before { border-radius: 18px; }
  .rb-feature-icon svg { width: 30px; height: 30px; }
  .rb-feature-icon img { width: 46px; height: 46px; }
  .rb-feature-text { font-size: .92rem; }

  .rb-product-info  { padding: 12px 12px 14px; }
  .rb-product-name  { font-size: 12.5px; min-height: auto; }
  .rb-sale-badge, .rb-price-badge { top: 9px; right: 9px; min-height: 23px; padding: 4px 9px; font-size: 10px; }
  .rb-price-current { font-size: 17px; }
  .rb-btn-add-to-cart { font-size: 12px; padding: 9px 12px; }

  .rb-footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .rb-wa-float { bottom: 20px; left: 20px; width: 52px; height: 52px; }

  /* Hide price pill on very small header */
  .rb-cart-total-pill { display: none; }
}

/* Very small */
@media (max-width: 360px) {
  .rb-products-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Hero — Desktop: full-width cover image, face-safe crop
   ≥769px only — mobile stays exactly as-is
   ============================================================ */
@media (min-width: 769px) {
  /* Fixed viewport height — wide enough to show face without tight zoom */
  .rb-hero {
    height: 82vh;
    min-height: 560px;
    max-height: 900px;
    overflow: hidden;
    background: var(--c-blush);
  }

  /* Fill the hero container */
  .rb-hero-static {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
  }

  /* Cover full width; anchor 28% from top keeps face centered in frame */
  .rb-hero-static img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    display: block;
  }

  /* Restore subtle overlay so button text stays readable */
  .rb-hero-static::after {
    display: block;
    background: linear-gradient(
      to top,
      rgba(42,36,34,.45) 0%,
      rgba(42,36,34,.10) 45%,
      rgba(42,36,34,.00) 100%
    );
  }

  /* Button overlaid at bottom-center */
  .rb-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0 28px 44px;
  }
}


/* ============================================================
   v1.2.1 — Larger feature images and stronger product-card prices
   ============================================================ */
.rb-product-card .rb-price-current,
.rb-product-card .rb-product-price > .woocommerce-Price-amount,
.rb-product-card .rb-product-price ins,
.rb-product-card .rb-product-price ins .woocommerce-Price-amount,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins .woocommerce-Price-amount,
.woocommerce ul.products li.product .price > .woocommerce-Price-amount {
  color: var(--c-price-deep) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.25;
}

.rb-feature-icon img {
  width: 54px;
  height: 54px;
}

@media (max-width: 520px) {
  .rb-product-card .rb-price-current,
  .rb-product-card .rb-product-price > .woocommerce-Price-amount,
  .rb-product-card .rb-product-price ins,
  .rb-product-card .rb-product-price ins .woocommerce-Price-amount,
  .woocommerce ul.products li.product .price,
  .woocommerce ul.products li.product .price ins,
  .woocommerce ul.products li.product .price ins .woocommerce-Price-amount,
  .woocommerce ul.products li.product .price > .woocommerce-Price-amount {
    font-size: 18px !important;
  }

  .rb-feature-icon img {
    width: 46px;
    height: 46px;
  }
}