/*
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.0
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-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 {
  filter: brightness(0) invert(1);
}

/* 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: 0;
}

/* 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 / About Section
   ============================================================ */
.rb-brand {
  background: var(--c-blush);
  padding-block: var(--section-py);
}

.rb-brand-inner {
  text-align: center;
}

.rb-brand-title {
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 10px;
}

.rb-brand-subtitle {
  font-size: 15px;
  color: var(--c-muted);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.8;
}

.rb-brand-claims {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 28px;
}

.rb-brand-claim {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
}
.rb-brand-claim::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: var(--c-rose-deep);
  color: var(--c-white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.rb-brand-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.rb-brand-pill {
  background: var(--c-rose);
  color: var(--c-ink);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.rb-brand-pill:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  background: var(--c-rose-deep);
  color: var(--c-white);
}

/* ============================================================
   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;
}
.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;
}

.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;
}

.rb-price-current {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-rose-deep);
}

.rb-price-old {
  font-size: 13px;
  font-weight: 400;
  color: var(--c-muted);
  text-decoration: line-through;
}

.rb-price-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--c-rose);
  color: var(--c-ink);
  padding: 2px 10px;
  border-radius: 50px;
}

/* Add to cart button on product cards */
.rb-btn-add-to-cart {
  display: block;
  width: 100%;
  margin-top: 14px;
  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;
}

/* Product image link */
.rb-product-img-link { display: block; }

/* 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 {
  background: var(--c-ink);
  color: var(--c-white);
  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(255,255,255,.55);
  line-height: 1.7;
  margin: 0;
}

.rb-footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.rb-footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.rb-footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color .22s;
}
.rb-footer-links a:hover { color: var(--c-rose); }

/* 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,.07);
  border: 1px solid rgba(255,255,255,.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background .25s, border-color .25s, color .25s, transform .25s;
  flex-shrink: 0;
}
.rb-social-link:hover {
  background: var(--c-rose-deep);
  border-color: var(--c-rose-deep);
  color: var(--c-white);
  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(255,255,255,.09);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.rb-footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,.38);
  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-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;
}

/* ============================================================
   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; }

  .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; }

  .rb-hero { min-height: 460px; max-height: 600px; }
  .rb-hero-content { padding-inline: 20px; padding-block: 48px; }

  .rb-products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rb-product-info  { padding: 12px 12px 14px; }
  .rb-product-name  { font-size: 12.5px; min-height: auto; }
  .rb-price-current { font-size: 14.5px; }
  .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 48px;
  }
}
