/*
Theme Name: RIZA Store
Theme URI: https://rizastore.shop
Author: RIZA Team
Description: ثيم متجر أزياء RIZA - عربي RTL احترافي
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: riza-store
Tags: woocommerce, rtl-language, e-commerce, fashion
*/

/* ================================================================
   RIZA STORE — DESIGN SYSTEM v2
   ================================================================ */

/* ── Variables ────────────────────────────────────────────────── */
:root {
  --c-black:var(--bgc-chrome);
  --c-white:var(--bgc-card);
  --c-beige:var(--bgc-warm);
  --c-beige2:  #EDE8DF;
  --c-grey:var(--bgc-card);
  --c-grey2:   #E2E2E2;
  --c-text:var(--bgc-chrome);
  --c-muted:var(--bgc-mut);
  --c-red:#e53935;
  --c-gold:#bccf68;
  /* 🎨 عائلة «الذهبي» بقيم بارجيلو الليموني — ثيم ريزا الأحدث بيستعمل المتغيّرات دي بدل الألوان المكتوبة (نقل 2026-10-16) */
  --c-gold-light:#cfdd8a;
  --c-gold-dark:#9fb44a;
  --c-gold-2:#bccf68;
  --c-gold-rgb:188,207,104;
  --c-gold-2-rgb:188,207,104;
  --shadow-sm:0 2px 10px rgba(0,0,0,0.07);
  --shadow-md:0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:0 12px 40px rgba(0,0,0,0.18);
  --radius:12px;
  --radius-sm:8px;
  --radius-btn:25px;
  --font:'Tajawal', sans-serif;
  --header-h:72px;
  --transition:.28s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html {
  scroll-behavior:smooth;
  overflow-x:hidden;
  max-width:100vw;
  /* belt-and-suspenders: scroll-position normalization for RTL on Android */
}
body {
  font-family:var(--font);
  direction:rtl;
  text-align:right;
  background:var(--c-white);
  color:var(--c-text);
  font-size:15px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  max-width:100vw;
  width:100%;
  position:relative;
}
a { color:inherit; text-decoration:none; }
img { max-width:100%; height:auto; display:block; }
ul { list-style:none; }
button { cursor:pointer; font-family:var(--font); }

/* ── RIZA Logo ────────────────────────────────────────────────── */
.riza-logo-link {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-decoration:none;
  line-height:1;
  gap:3px;
}
.riza-logo-text {
  font-family:'Tajawal', sans-serif;
  font-size:28px;
  font-weight:900;
  font-style:normal;
  letter-spacing:5px;
  color:var(--c-white);
  text-transform:uppercase;
  display:block;
  line-height:1;
}
.riza-logo-sub {
  font-size:8px;
  font-weight:400;
  letter-spacing:4px;
  color:rgba(255,255,255,.38);
  display:block;
  text-transform:uppercase;
  text-align:right;
}
/* Badge hidden helper */
.hidden { display:none !important; }

/* ── Container ────────────────────────────────────────────────── */
.riza-container {
  max-width:1300px;
  width:100%;
  margin:0 auto;
  padding:0 24px;
  box-sizing:border-box;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  background:var(--c-black);
  position:sticky;
  top:0;
  z-index:999;
  height:var(--header-h);
  transition:box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow:0 4px 24px rgba(0,0,0,.5); }

.header-inner {
  height:var(--header-h);
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  align-items:center;
  gap:20px;
}

/* Brand */
.header-brand a {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:1px;
  line-height:1;
}
.header-brand .brand-ar {
  font-size:11px;
  font-weight:400;
  color:rgba(255,255,255,.5);
  letter-spacing:2px;
}
.header-brand .brand-en {
  font-size:26px;
  font-weight:900;
  color:var(--c-white);
  letter-spacing:6px;
  text-transform:uppercase;
}
.header-brand img.custom-logo {
  height:44px;
  width:auto;
}

/* Search */
.header-search form {
  display:flex;
  align-items:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);
  border-radius:50px;
  overflow:hidden;
  transition:background var(--transition), border-color var(--transition);
}
.header-search form:focus-within {
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.35);
}
.header-search input[type="search"] {
  background:transparent;
  border:none;
  outline:none;
  color:var(--c-white);
  font-family:var(--font);
  font-size:13px;
  padding:10px 18px;
  flex:1;
  direction:rtl;
  min-width:0;
}
.header-search input::placeholder { color:rgba(255,255,255,.45); }
.header-search button {
  background:transparent;
  border:none;
  color:rgba(255,255,255,.6);
  padding:0 16px;
  font-size:14px;
  transition:color var(--transition);
}
.header-search button:hover { color:var(--c-white); }

/* Categories Nav — .header-cats IS the <nav> element */
.header-cats > ul {
  display:flex;
  gap:0;
  align-items:center;
  list-style:none;
  margin:0; padding:0;
}
.header-cats > ul > li { position:relative; }
.header-cats > ul > li > a {
  color:rgba(255,255,255,.82);
  font-size:13px;
  font-weight:500;
  padding:7px 14px;
  border-radius:50px;
  white-space:nowrap;
  display:block;
  transition:all var(--transition);
}
.header-cats > ul > li > a:hover,
.header-cats > ul > li.current-menu-item > a {
  color:var(--c-white);
  background:rgba(255,255,255,.12);
}

/* Mega dropdown */
.mega-dropdown {
  display:none;
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  background:var(--bgc-card);
  border-radius:14px;
  box-shadow:0 12px 40px rgba(0,0,0,.18);
  min-width:200px;
  padding:10px 0;
  z-index:999;
  border:1px solid rgba(0,0,0,.06);
  overflow:hidden;
}
.mega-dropdown li a {
  display:block;
  padding:10px 20px;
  font-size:13px;
  font-weight:500;
  color:var(--bgc-ink) !important;
  border-radius:0;
  transition:background var(--transition);
  white-space:nowrap;
}
.mega-dropdown li a:hover { background:var(--bgc-soft); color:var(--bgc-ink) !important; }
.mega-dropdown li:first-child a { font-weight:700; border-bottom:1px solid var(--bgc-line); margin-bottom:4px; }
.has-mega-menu:hover .mega-dropdown { display:block; }

/* Actions */
.header-actions {
  display:flex;
  align-items:center;
  gap:6px;
}
.hdr-btn {
  position:relative;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,.85);
  border-radius:50%;
  transition:all var(--transition);
  border:none;
  background:transparent;
  font-size:16px;
}
.hdr-btn:hover {
  color:var(--c-white);
  background:rgba(255,255,255,.1);
}
.hdr-btn .badge {
  position:absolute;
  top:4px;
  left:4px;
  min-width:16px;
  height:16px;
  padding:0 4px;
  background:var(--c-red);
  color:#fff;
  font-size:9px;
  font-weight:700;
  border-radius:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

/* Hamburger */
.hdr-hamburger { display:none; flex-direction:column; gap:5px; }
.hdr-hamburger span {
  display:block;
  width:22px;
  height:2px;
  background:var(--c-white);
  border-radius:2px;
  transition:all var(--transition);
}

/* Mobile Nav */
.mobile-overlay {
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:1100;
  backdrop-filter:blur(2px);
}
.mobile-overlay.open { display:block; }
.mobile-drawer {
  position:fixed;
  top:0;
  right:-300px;
  width:300px;
  height:100%;
  background:var(--c-white);
  z-index:1200;
  transition:right var(--transition);
  display:flex;
  flex-direction:column;
  overflow-y:auto;
}
.mobile-drawer.open { right:0; }
.mobile-drawer-head {
  background:var(--c-black);
  padding:20px 20px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.mobile-drawer-head .brand-en { font-size:22px; font-weight:900; letter-spacing:5px; color:var(--c-white); }
.mobile-close {
  background:transparent;
  border:none;
  color:rgba(255,255,255,.7);
  font-size:20px;
}
.mobile-search {
  padding:14px 16px;
  border-bottom:1px solid var(--c-grey2);
}
.mobile-search form {
  display:flex;
  background:var(--c-grey);
  border-radius:50px;
  overflow:hidden;
}
.mobile-search input {
  flex:1;
  background:transparent;
  border:none;
  outline:none;
  padding:9px 14px;
  font-family:var(--font);
  font-size:13px;
  direction:rtl;
}
.mobile-search button {
  background:var(--c-black);
  border:none;
  color:#fff;
  padding:0 14px;
  font-size:13px;
}
.mobile-nav ul { padding:8px 0; }
.mobile-nav ul li a {
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px 20px;
  font-size:14px;
  font-weight:500;
  color:var(--c-text);
  border-bottom:1px solid var(--bgc-line2);
  transition:background var(--transition);
}
.mobile-nav ul li a:hover { background:var(--c-grey); }
.mobile-nav ul li a i { width:18px; color:var(--c-muted); font-size:15px; }
.mobile-actions {
  margin-top:auto;
  padding:16px;
  display:flex;
  gap:10px;
  border-top:1px solid var(--c-grey2);
}
.mobile-actions a {
  flex:1;
  text-align:center;
  padding:10px;
  border-radius:var(--radius-btn);
  font-size:13px;
  font-weight:600;
}
.mobile-actions .btn-login { border:1px solid var(--c-black); color:var(--c-black); }
.mobile-actions .btn-register { background:var(--c-black); color:var(--c-white); }

/* ================================================================
   PROMO BAR
   ================================================================ */
.promo-bar {
  background:var(--c-beige2);
  border-bottom:1px solid var(--c-grey2);
  overflow:hidden;
  padding:9px 0;
}
.promo-track {
  display:flex;
  gap:0;
  animation:scrollRTL 30s linear infinite;
  white-space:nowrap;
}
.promo-track span {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0 30px;
  font-size:12.5px;
  font-weight:500;
  color:var(--c-text);
}
.promo-track span::after {
  content:'✦';
  opacity:.35;
  font-size:10px;
}
@keyframes scrollRTL {
  from { transform:translateX(0); }
  to   { transform:translateX(-50%); }
}
.promo-bar:hover .promo-track { animation-play-state:paused; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce .cart .button, .woocommerce .checkout-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-family:var(--font) !important;
  font-size:13px !important;
  font-weight:600 !important;
  padding:11px 28px !important;
  border-radius:var(--radius-btn) !important;
  border:2px solid transparent !important;
  transition:all var(--transition) !important;
  cursor:pointer;
  line-height:1 !important;
  white-space:nowrap;
}
.btn-dark, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce .cart .button, .woocommerce .checkout-button {
  background:var(--c-black) !important;
  color:var(--c-white) !important;
  border-color:var(--c-black) !important;
}
.btn-dark:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce .cart .button:hover {
  background:transparent !important;
  color:var(--c-black) !important;
}
.btn-outline { background:transparent; color:var(--c-black); border:2px solid var(--c-black); }
.btn-outline:hover { background:var(--c-black); color:var(--c-white); }
.btn-white { background:var(--c-white) !important; color:var(--c-black) !important; border-color:var(--c-white) !important; }
.btn-white:hover { background:transparent !important; color:var(--c-white) !important; }
.btn-sm { padding:8px 20px !important; font-size:12px !important; }

/* ================================================================
   SECTION LAYOUT
   ================================================================ */
.riza-section { padding:56px 0; overflow-x:hidden; }
.riza-section--grey  { background:var(--c-grey); }
.riza-section--beige { background:var(--c-beige); }
.riza-section--dark  { background:var(--c-black); }

.section-head {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom:28px;
  gap:12px;
}
.section-head h2 {
  font-size:21px;
  font-weight:800;
  color:var(--c-black);
  position:relative;
  padding-right:14px;
}
.section-head h2::before {
  content:'';
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  width:4px;
  height:20px;
  background:var(--c-black);
  border-radius:2px;
}
.riza-section--dark .section-head h2 { color:var(--c-white); }
.riza-section--dark .section-head h2::before { background:#bccf68; }
.section-head a.view-all {
  font-size:12px;
  font-weight:500;
  color:var(--c-muted);
  border-bottom:1px solid var(--c-grey2);
  transition:all var(--transition);
  padding-bottom:1px;
}
.section-head a.view-all:hover { color:var(--c-black); border-bottom-color:var(--c-black); }

/* ================================================================
   SLIDER CONTROLS
   ================================================================ */
.slider-wrap { position:relative; }

.slider-arrows {
  display:flex;
  gap:8px;
}
.slider-arrow {
  width:36px;
  height:36px;
  border-radius:50%;
  border:1.5px solid var(--c-grey2);
  background:var(--c-white);
  color:var(--c-text);
  font-size:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all var(--transition);
  flex-shrink:0;
}
.slider-arrow:hover { background:var(--c-black); color:var(--c-white); border-color:var(--c-black); }
.slider-arrow:disabled { opacity:.3; pointer-events:none; }
.riza-section--dark .slider-arrow {
  border-color:rgba(255,255,255,.2);
  background:rgba(255,255,255,.08);
  color:var(--c-white);
}
.riza-section--dark .slider-arrow:hover { background:var(--c-white); color:var(--c-black); }

/* Scroll track */
.scroll-track {
  display:flex;
  gap:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  padding-bottom:6px;
}
.scroll-track::-webkit-scrollbar { height:3px; }
.scroll-track::-webkit-scrollbar-track { background:var(--c-grey2); border-radius:2px; }
.scroll-track::-webkit-scrollbar-thumb { background:var(--c-black); border-radius:2px; }

/* ================================================================
   HERO BANNER
   ================================================================ */
.hero-section {
  background:var(--c-black);
  position:relative;
  overflow:hidden;
}
.hero-img-wrap {
  position:relative;
  width:100%;
  /* Height follows the banner's real proportions (standard 2200×940).
     → full design always visible edge-to-edge on ANY width, never cropped,
       never letterboxed on a correctly-sized banner. */
  aspect-ratio: 2200 / 940;
  background:var(--c-black);
}
.hero-img-wrap img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
}
.hero-img-wrap::after { display:none; }
/* Hero slider */
.hero-slides {
  position:absolute;
  inset:0;
  z-index:0;
}
.hero-slide {
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity 1.2s ease-in-out;
  will-change:opacity;
}
.hero-slide.active { opacity:1; }
.hero-slide img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
}
/* Slider dots — frosted pill container, bottom-right */
.hero-dots {
  position:absolute;
  bottom:20px;
  right:24px;
  z-index:10;
  display:flex;
  gap:4px;
  align-items:center;
  background:rgba(0,0,0,.28);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  padding:6px 8px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.1);
}
.hero-dot {
  width:16px;
  height:2px;
  border-radius:2px;
  background:rgba(255,255,255,.35);
  cursor:pointer;
  border:none;
  padding:0;
  transition:all .45s ease;
  flex-shrink:0;
}
.hero-dot.active {
  background:#bccf68;
  width:30px;
}
/* Hero content — anchored to bottom-right */
.hero-content {
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  align-items:flex-end;
  direction:rtl;
  padding-bottom:58px;
}
/* Single column */
.hero-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  align-items:flex-end;
  width:100%;
  padding:0;
}
/* Text side — constrained width, stays right (RTL) */
.hero-text-side {
  max-width:560px;
  transition:opacity .55s ease, transform .55s ease;
}
/* Image-only slide: only text fades — gradient + dots stay identical */
.hero-img-wrap.slide-no-text .hero-text-side {
  opacity:0;
  pointer-events:none;
  user-select:none;
  transform:translateY(6px);
}

.hero-text-side .eyebrow {
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:clamp(13px, 1.05vw, 15px);
  font-weight:800;
  letter-spacing:2px;
  color:var(--c-black);
  background:#bccf68;
  padding:9px 24px;
  border-radius:50px;
  margin-bottom:18px;
  width:fit-content;
  box-shadow:0 4px 20px rgba(188,207,104,.45);
}
.hero-text-side h1 {
  font-size:clamp(34px, 4.5vw, 66px);
  font-weight:900;
  color:var(--c-white);
  line-height:1.12;
  margin-bottom:16px;
  text-shadow:0 3px 18px rgba(0,0,0,.5);
}
.hero-text-side p {
  font-size:clamp(14px, 1.4vw, 17px);
  color:rgba(255,255,255,.82);
  margin-bottom:30px;
  max-width:400px;
  line-height:1.8;
}
.hero-actions {
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:24px;
}
/* Hero CTAs — larger & clearly visible over the banner image (web/tablet) */
.hero-actions .btn {
  font-size:clamp(14px, 1.15vw, 16px) !important;
  font-weight:800 !important;
  padding:15px 34px !important;
  border-radius:50px !important;
  box-shadow:0 10px 28px rgba(0,0,0,.30) !important;
}
.hero-btn-ghost {
  background:rgba(255,255,255,.12) !important;
  color:#fff !important;
  border-color:rgba(255,255,255,.3) !important;
}
.hero-btn-ghost:hover {
  background:rgba(255,255,255,.25) !important;
}
.hero-collections {
  display:flex;
  gap:8px;
  flex-wrap:nowrap;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding-bottom:4px;
  max-width:100%;
  mask-image:linear-gradient(to left, transparent 0%, black 60px);
  -webkit-mask-image:linear-gradient(to left, transparent 0%, black 60px);
}
.hero-collections::-webkit-scrollbar { display:none; }
.hero-col-pill {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:6px 14px;
  border-radius:50px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2);
  color:rgba(255,255,255,.85);
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
  flex-shrink:0;
  transition:all var(--transition);
  backdrop-filter:blur(6px);
}
.hero-col-pill:hover {
  background:rgba(188,207,104,.25);
  border-color:rgba(188,207,104,.6);
  color:var(--bgc-grn);
  text-decoration:none;
}
.hero-col-pill i { font-size:10px; opacity:.7; }

/* Left column: stats */
.hero-stats-side {
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:flex-start; /* left side in RTL grid */
}
.hero-stat-card {
  display:flex;
  align-items:center;
  gap:14px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);
  border-radius:14px;
  padding:14px 20px;
  backdrop-filter:blur(10px);
  direction:rtl;
  min-width:220px;
  transition:background var(--transition);
}
.hero-stat-card:hover { background:rgba(255,255,255,.14); }
.hero-stat-card > i {
  font-size:22px;
  color:var(--bgc-grn);
  flex-shrink:0;
  width:28px;
  text-align:center;
}
.hero-stat-card > div {
  display:flex;
  flex-direction:column;
  gap:2px;
}
.hero-stat-card .stat-num {
  font-size:18px;
  font-weight:800;
  color:var(--c-white);
  line-height:1;
}
.hero-stat-card .stat-lbl {
  font-size:12px;
  color:rgba(255,255,255,.55);
  line-height:1;
}
/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns:1fr; }
  .hero-stats-side { display:none; }
  .hero-text-side h1 { font-size:clamp(24px,4.5vw,40px); margin-bottom:10px; }
  .hero-text-side p { font-size:13px; margin-bottom:16px; }
  .hero-text-side .eyebrow { margin-bottom:12px; font-size:12px; padding:7px 18px; }
  .hero-actions .btn { padding:12px 24px !important; font-size:13.5px !important; }
  /* shorter banner at tablet width → keep overlay tight to the bottom */
  .hero-content { padding-bottom:26px; align-items:flex-end; }
}

/* Fallback gradient (when no image) */
.hero-img-wrap.no-img {
  background:linear-gradient(135deg, var(--bgc-chrome) 0%, var(--bgc-chrome2) 50%, var(--bgc-chrome2) 100%);
}
.hero-img-wrap.no-img::before {
  content:'RIZA';
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:180px;
  font-weight:900;
  letter-spacing:30px;
  color:rgba(255,255,255,.04);
  pointer-events:none;
}

/* ================================================================
   CATEGORIES SLIDER
   ================================================================ */
.cat-track .scroll-track { gap:14px; }

.cat-card {
  flex:0 0 160px;
  scroll-snap-align:start;
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  aspect-ratio:3/4;
  background:var(--c-grey);
  transition:transform var(--transition), box-shadow var(--transition);
}
.cat-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); }
.cat-card img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.cat-card:hover img { transform:scale(1.06); }
.cat-card-label {
  position:absolute;
  bottom:0;
  inset-inline:0;
  padding:32px 10px 12px;
  background:linear-gradient(to top, rgba(0,0,0,.72), transparent);
  color:var(--c-white);
  font-size:14px;
  font-weight:700;
  text-align:center;
}
.cat-card-count {
  display:block;
  font-size:11px;
  font-weight:400;
  opacity:.7;
  margin-top:2px;
}

/* ================================================================
   PRODUCT CARDS — BASE
   ================================================================ */
.product-card {
  position:relative;
  background:var(--c-white);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); }

/* ── 2026-09-17: تخفيف كلفة الرسم على الموبايل ─────────────────────────────
   القياس قبل التعديل (آيفون محاكى · معالج ÷٤ · ١.٦ ميجابت):
     الرئيسية = ١٤,٠٤٦ عقدة DOM · ٤٩٥ كارت منتج · **تخطيط 4.3ث + أنماط 1.3ث**
     وأول رسم (FCP) **4.6ث** — والزائر متوسط جلسته ١٧ ثانية.
   `content-visibility:auto` بتخلّي المتصفّح **يتخطّى تخطيط ورسم محتوى الكروت
   اللي برّه الشاشة** لحد ما الزائر يقرب منها. مافيش تغيير في الماركب ولا في
   عدد المنتجات ولا في الروابط ⇒ **صفر أثر على السيو** (العناصر موجودة في
   الـDOM وفي الـHTML زي ما هي).
   🪤🔑 `contain-intrinsic-size` إلزامية: من غيرها الكارت المتخطّى ارتفاعه
   صفر فيتهزّ شريط التمرير. و`auto` بتخلّي المتصفّح يفتكر المقاس الحقيقي
   بعد أول رسم بدل ما يفضل على التقدير (الكارت المقيس: 200×440).
   🔙 الرجوع: امسح البلوك ده وارفع `RIZA_VERSION`. */
.product-card {
  content-visibility:auto;
  contain-intrinsic-size:auto 440px;
}
.pcard {                      /* كروت صفحات الأقسام (products-grid) */
  content-visibility: auto;
  contain-intrinsic-size:auto 400px;
}

.product-card-img {
  position:relative;
  aspect-ratio:3 / 4;
  overflow:hidden;
  background:var(--bgc-card);
}
.product-card-img img {
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
  transition:transform .5s ease;
  padding:4px;
}
.product-card:hover .product-card-img img { transform:scale(1.06); }

.product-card-badge {
  position:absolute;
  top:10px;
  left:10px;
  background:var(--c-red);
  color:#fff;
  font-size:10px;
  font-weight:700;
  padding:3px 9px;
  border-radius:50px;
}
.product-card-badge.new { background:var(--c-black); }

.product-card-wish {
  position:absolute;
  top:10px;
  right:10px;
  width:32px;
  height:32px;
  background:var(--bgc-card);
  border:none;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  color:var(--c-muted);
  transition:all var(--transition);
  box-shadow:0 1px 6px rgba(0,0,0,.1);
}
.product-card-wish:hover, .product-card-wish.active { color:var(--c-red); background:var(--bgc-card); }

.product-card-body { padding:11px 12px 14px; }
.product-card-name {
  font-size:13.5px;
  font-weight:500;
  color:var(--c-text);
  line-height:1.4;
  margin-bottom:5px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product-card-price {
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:10px;
}
.price-now { font-size:16px; font-weight:800; color:var(--bgc-ink); }
.price-was { font-size:12px; color:var(--bgc-mut); text-decoration:line-through; opacity:0.85; }
/* WooCommerce get_price_html() del/ins inside cards */
.product-card-price del, .feat-card-price del, .pcard-price del { font-size:12px; color:var(--bgc-mut); font-weight:400; opacity:0.85; }
.product-card-price ins, .feat-card-price ins, .pcard-price ins { text-decoration:none; font-size:16px; font-weight:800; color:var(--bgc-ink); }

.product-card-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.product-card-rating {
  display:flex;
  align-items:center;
  gap:4px;
  font-size:12px;
  color:var(--c-muted);
}
.product-card-rating .stars { color:var(--bgc-grn); font-size:11px; }

/* Add to cart inside card */
.product-card .btn-cart {
  flex:1;
  padding:8px 12px !important;
  font-size:12px !important;
  text-align:center;
}

/* WooCommerce loop override */
.woocommerce ul.products {
  display:grid !important;
  grid-template-columns:repeat(4, 1fr) !important;
  gap:18px !important;
  float:none !important;
  margin:0 !important;
}
.woocommerce ul.products li.product {
  border-radius:var(--radius) !important;
  overflow:hidden !important;
  box-shadow:var(--shadow-sm) !important;
  background:var(--c-white) !important;
  border:none !important;
  transition:transform var(--transition), box-shadow var(--transition) !important;
  margin:0 !important;
  float:none !important;
}
.woocommerce ul.products li.product:hover { transform:translateY(-5px) !important; box-shadow:var(--shadow-md) !important; }
.woocommerce ul.products li.product a img { aspect-ratio:3/4 !important; object-fit:cover !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size:13.5px !important; font-weight:500 !important; padding:10px 12px 4px !important; }
.woocommerce ul.products li.product .price { padding:0 12px 8px !important; font-weight:700 !important; direction:rtl !important; display:block !important; }
.woocommerce ul.products li.product .button { width:calc(100% - 24px) !important; margin:0 12px 12px !important; font-size:12px !important; padding:8px 14px !important; display:block !important; text-align:center !important; }
.woocommerce span.onsale { background:var(--c-red) !important; font-size:10px !important; font-weight:700 !important; border-radius:50px !important; right:auto !important; left:10px !important; }

/* ================================================================
   NEW ARRIVALS SLIDER (أفقي عريض)
   ================================================================ */
.new-arrivals-track .scroll-track { gap:16px; }
.new-arrival-card {
  flex:0 0 220px;
  scroll-snap-align:start;
}

/* ================================================================
   FEATURED STRIPS (بانرات ثانوية)
   ================================================================ */
.featured-strips {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}
.strip-card {
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  aspect-ratio:4/5;
  background:var(--c-grey);
  display:block;
}
.strip-card img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.strip-card:hover img { transform:scale(1.05); }
.strip-card-overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:22px 18px;
  direction:rtl;
}
.strip-card-overlay .tag {
  font-size:10px;
  font-weight:600;
  letter-spacing:2px;
  color:var(--bgc-grn);
  text-transform:uppercase;
  margin-bottom:6px;
}
.strip-card-overlay h3 {
  color:var(--c-white);
  font-size:19px;
  font-weight:800;
  margin-bottom:14px;
  line-height:1.25;
}
.strip-card-overlay .btn-sm {
  align-self:flex-start;
}

/* ================================================================
   FEATURED PRODUCTS GRID — منتجات مختارة بعناية
   ================================================================ */
.featured-products-grid {
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
}
@media (max-width: 1024px) { .featured-products-grid { grid-template-columns:repeat(3, 1fr); } }
@media (max-width: 700px)  { .featured-products-grid { grid-template-columns:repeat(2, 1fr); gap:12px; } }

.feat-card {
  background:var(--c-white);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:transform var(--transition), box-shadow var(--transition);
  display:flex;
  flex-direction:column;
}
.feat-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); }

.feat-card-img {
  position:relative;
  aspect-ratio:3 / 4;
  overflow:hidden;
  background:var(--bgc-card);
}
.feat-card-img img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  transition:transform .5s ease;
}
.feat-card:hover .feat-card-img img { transform:scale(1.06); }

.feat-badge {
  position:absolute;
  top:10px;
  left:10px;
  font-size:10px;
  font-weight:700;
  padding:4px 10px;
  border-radius:50px;
  color:#fff;
}
.feat-badge.sale { background:var(--c-red); }
.feat-badge.new  { background:var(--c-black); }

.feat-card-body {
  padding:12px 13px 15px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
}
.feat-card-rating {
  display:flex;
  align-items:center;
  gap:4px;
  font-size:11px;
  color:var(--c-muted);
}
.feat-card-rating i { color:var(--bgc-grn); font-size:10px; }
.feat-card-name {
  font-size:13.5px;
  font-weight:600;
  color:var(--c-text);
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.feat-card-name:hover { color:var(--c-black); }
.feat-card-price {
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:auto;
}
.feat-card-body .woocommerce a.button,
.feat-card-body .woocommerce button.button {
  width:100% !important;
  margin-top:8px !important;
}

/* ================================================================
   BEST SELLERS — Card style مختلف (landscape card)
   ================================================================ */
.bestseller-track .scroll-track { gap:16px; }
.bestseller-card {
  flex:0 0 260px;
  scroll-snap-align:start;
  background:var(--c-white);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  display:flex;
  flex-direction:column;
  transition:transform var(--transition), box-shadow var(--transition);
}
.bestseller-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); }
.bestseller-img {
  position:relative;
  aspect-ratio:1 / 1;
  overflow:hidden;
  background:var(--c-grey);
}
.bestseller-img img { width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.bestseller-card:hover .bestseller-img img { transform:scale(1.06); }
.bestseller-rank {
  position:absolute;
  top:10px;
  right:10px;
  width:28px;
  height:28px;
  background:var(--c-black);
  color:var(--c-white);
  border-radius:50%;
  font-size:12px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
}
.bestseller-rank.rank-1 { background:#bccf68; }
.bestseller-rank.rank-2 { background:var(--bgc-chrome); }
.bestseller-rank.rank-3 { background:var(--bgc-warmink); }
.bestseller-body { padding:12px 14px 14px; flex:1; display:flex; flex-direction:column; }
.bestseller-name { font-size:14px; font-weight:600; margin-bottom:6px; line-height:1.4; }
.bestseller-price { font-size:16px; font-weight:800; color:var(--bgc-ink); margin-bottom:10px; }
.bestseller-price .was { font-size:12px; font-weight:400; color:var(--bgc-mut); text-decoration:line-through; opacity:0.85; margin-right:6px; }
.bestseller-price del { font-size:12px; font-weight:400; color:var(--bgc-mut); opacity:0.85; }
.bestseller-price ins { text-decoration:none; font-size:16px; font-weight:800; color:var(--bgc-ink); }
.bestseller-body .btn { margin-top:auto; width:100%; justify-content:center; }

/* ================================================================
   TOP RATED — Dark style مميز
   ================================================================ */
.toprated-track .scroll-track { gap:20px; }
.toprated-card {
  flex:0 0 200px;
  scroll-snap-align:start;
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  aspect-ratio:2/3;
  background:var(--bgc-chrome);
  transition:transform var(--transition);
}
.toprated-card:hover { transform:translateY(-5px); }
.toprated-card img { width:100%; height:100%; object-fit:cover; opacity:.85; transition:opacity .3s, transform .5s; }
.toprated-card:hover img { opacity:.95; transform:scale(1.04); }
.toprated-overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,0) 55%);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:14px;
  direction:rtl;
}
.toprated-stars { color:var(--bgc-grn); font-size:12px; margin-bottom:5px; }
.toprated-name {
  color:var(--c-white);
  font-size:13px;
  font-weight:600;
  margin-bottom:4px;
  line-height:1.35;
}
.toprated-price { font-size:14px; font-weight:700; margin-bottom:10px; }
.toprated-price del { font-size:12px; color:var(--bgc-mut); font-weight:400; opacity:0.85; }
.toprated-price ins { text-decoration:none; color:var(--bgc-ink); font-size:14px; font-weight:700; }
.toprated-price .woocommerce-Price-amount { color:var(--bgc-ink); }
.toprated-overlay .btn {
  font-size:11px !important;
  padding:7px 16px !important;
  background:rgba(255,255,255,.15) !important;
  color:var(--c-white) !important;
  border-color:rgba(255,255,255,.3) !important;
  backdrop-filter:blur(4px);
}
.toprated-overlay .btn:hover { background:var(--c-white) !important; color:var(--c-black) !important; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background:var(--c-black);
  color:rgba(255,255,255,.65);
  direction:rtl;
  padding-top:56px;
}
.footer-grid {
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1.2fr;
  gap:40px;
  padding-bottom:44px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.footer-brand-name {
  font-size:26px;
  font-weight:900;
  letter-spacing:6px;
  color:var(--c-white);
  display:block;
  margin-bottom:6px;
}
.footer-brand-sub {
  font-size:11px;
  color:rgba(255,255,255,.58);
  letter-spacing:1px;
  display:block;
  margin-bottom:16px;
}
.footer-brand-desc { font-size:13px; line-height:1.75; margin-bottom:20px; }
.footer-social { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px; }
.footer-social a {
  width:36px; height:36px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  color:rgba(255,255,255,.6);
  transition:all var(--transition);
}
.footer-social a:hover { border-color:var(--c-white); color:var(--c-white); background:rgba(255,255,255,.08); }

.app-badges { display:flex; gap:8px; flex-direction:column; }
.app-badge {
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 14px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius-sm);
  color:var(--c-white);
  transition:all var(--transition);
  direction:ltr;
}
.app-badge:hover { border-color:rgba(255,255,255,.5); background:rgba(255,255,255,.05); }
.app-badge--soon { opacity:.55; cursor:default; pointer-events:none; }
.app-badge i { font-size:22px; }
.app-badge-text { display:flex; flex-direction:column; line-height:1.2; }
.app-badge-text small { font-size:9px; color:rgba(255,255,255,.5); }
.app-badge-text span { font-size:14px; font-weight:700; }

.footer-col h4 {
  font-size:13px;
  font-weight:700;
  letter-spacing:1px;
  color:var(--c-white);
  text-transform:uppercase;
  margin-bottom:18px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-col ul li { margin-bottom:9px; }
.footer-col ul li a { font-size:13px; transition:color var(--transition); }
.footer-col ul li a:hover { color:var(--c-white); }

.footer-newsletter form { display:flex; flex-direction:column; gap:8px; }
.footer-newsletter input {
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.15);
  border-radius:var(--radius-sm);
  padding:10px 14px;
  color:var(--c-white);
  font-family:var(--font);
  font-size:13px;
  direction:rtl;
  outline:none;
  transition:border-color var(--transition);
}
.footer-newsletter input::placeholder { color:rgba(255,255,255,.35); }
.footer-newsletter input:focus { border-color:rgba(255,255,255,.4); }
.footer-newsletter button {
  background:var(--c-white);
  color:var(--c-black);
  border:none;
  border-radius:var(--radius-sm);
  padding:10px;
  font-family:var(--font);
  font-size:13px;
  font-weight:700;
  transition:all var(--transition);
}
.footer-newsletter button:hover { background:var(--c-beige2); }

.footer-bottom {
  padding:18px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
  color:rgba(255,255,255,.58);
  flex-wrap:wrap;
}

/* ================================================================
   SINGLE PRODUCT
   ================================================================ */
.woocommerce div.product { direction:rtl; }
.woocommerce div.product .product_title { font-size:24px !important; font-weight:800 !important; text-align:right !important; }
.woocommerce div.product p.price { color:var(--c-text) !important; font-size:22px !important; font-weight:700 !important; direction:rtl !important; }
.woocommerce div.product .woocommerce-product-gallery { float:right !important; margin-left:3em !important; margin-right:0 !important; }
.woocommerce div.product div.summary { float:left !important; }

/* ================================================================
   FORMS
   ================================================================ */
input, textarea, select {
  font-family:var(--font);
  direction:rtl;
  text-align:right;
  border:1.5px solid var(--c-grey2);
  border-radius:var(--radius-sm);
  padding:10px 14px;
  font-size:14px;
  background:var(--c-white);
  transition:border-color var(--transition);
}
input:focus, textarea:focus, select:focus { outline:none; border-color:var(--c-black); }
label { font-weight:500; font-size:13px; display:block; margin-bottom:5px; }

/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-top {
  position:fixed;
  bottom:96px;
  left:31px;
  width:42px;
  height:42px;
  background:var(--c-black);
  color:var(--c-white);
  border:none;
  border-radius:50%;
  font-size:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transform:translateY(8px);
  transition:opacity var(--transition), transform var(--transition);
  z-index:900;
  box-shadow:var(--shadow-md);
}
.back-top.show { opacity:1; transform:translateY(0); }
.back-top:hover { background:var(--bgc-chrome); }
/* back-top responsive (above WhatsApp float) */
@media (max-width: 480px) { .back-top { bottom:80px; left:20px; } }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .woocommerce ul.products { grid-template-columns:repeat(3, 1fr) !important; }
  .featured-strips { grid-template-columns:repeat(2, 1fr); }
  .featured-strips .strip-card:last-child { grid-column:1 / -1; aspect-ratio:16/7; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:28px; }
}

@media (max-width: 768px) {
  :root { --header-h:62px; }
  .header-inner { grid-template-columns:auto auto; }
  .header-search, .header-cats { display:none; }
  .hdr-hamburger { display:flex; }
  .woocommerce ul.products { grid-template-columns:repeat(2, 1fr) !important; gap:12px !important; }
  .featured-strips { grid-template-columns:1fr; }
  .featured-strips .strip-card:last-child { grid-column:auto; aspect-ratio:4/5; }
  .cat-card { flex:0 0 130px; }
  .new-arrival-card { flex:0 0 170px; }
  .bestseller-card { flex:0 0 210px; }
  .toprated-card { flex:0 0 160px; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .footer-bottom { flex-direction:column; text-align:center; }
  /* Hero on mobile: keep the SAME aspect-ratio box (full-width, whole design
     visible, no black bands). The banner image is self-contained → hide the
     theme text/buttons overlay so it never covers the design. */
  .hero-content { display:none !important; }
}

@media (max-width: 480px) {
  .cat-card { flex:0 0 120px; }
  .new-arrival-card { flex:0 0 150px; }
  .bestseller-card { flex:0 0 190px; }
  .toprated-card { flex:0 0 145px; }
}

/* ── Shop grid improvements ── */
.shop-grid {
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
}
@media (max-width: 1100px) { .shop-grid { grid-template-columns:repeat(3, 1fr); } }
@media (max-width: 768px)  { .shop-grid { grid-template-columns:repeat(2, 1fr); gap:10px; } }

/* Shop card — smaller, cleaner */
.shop-grid .product-card { box-shadow:none; border:1px solid var(--bgc-line); }
.shop-grid .product-card:hover { box-shadow:0 4px 20px rgba(0,0,0,.1); border-color:transparent; }
.shop-grid .product-card-name { font-size:13px; line-height:1.4; -webkit-line-clamp:2; display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; }
.shop-grid .product-card-body { padding:10px 12px 12px; }

/* List view */
.shop-grid.list-view { grid-template-columns:1fr !important; }
.shop-grid.list-view .product-card { display:grid; grid-template-columns:120px 1fr; border-radius:10px; }
.shop-grid.list-view .product-card-img { aspect-ratio:1; border-radius:10px 0 0 10px; }
.shop-grid.list-view .product-card-body { padding:16px 18px; display:flex; flex-direction:column; justify-content:center; }

/* Hero responsive — aspect-ratio box handles all widths; overlay stays hidden
   on small screens (rule in the max-width:768px block above). */

/* Mega menu hidden on mobile (uses drawer instead) */
@media (max-width: 768px) {
  .mega-dropdown { display:none !important; }
}

/* ================================================================
   FOOTER — Developer Credit (WhatsApp link)
   ================================================================ */
.footer-dev-credit {
  background:var(--bgc-chrome);
  padding:12px 0;
  text-align:center;
}
.footer-dev-credit .riza-container {
  display:flex;
  align-items:center;
  justify-content:center;
}
.footer-dev-wa-link {
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:rgba(255,255,255,.58);
  font-size:11.5px;
  font-weight:500;
  transition:color .3s;
  letter-spacing:.3px;
}
.footer-dev-wa-link:hover { color:rgba(255,255,255,.85); }
.footer-dev-sep {
  display:inline-block;
  width:3px; height:3px;
  background:rgba(255,255,255,.15);
  border-radius:50%;
  flex-shrink:0;
}
.footer-dev-wa-icon {
  font-size:16px;
  color:#25D366;
  transition:transform .3s, color .3s;
  flex-shrink:0;
}
.footer-dev-wa-link:hover .footer-dev-wa-icon {
  transform:scale(1.25);
  color:var(--bgc-mut);
}

/* ================================================================
   GLOBAL RESPONSIVE — Extra mobile polish
   ================================================================ */

/* Container padding tightens on small screens */
@media (max-width: 480px) {
  .riza-container { padding-right:14px; padding-left:14px; }
}

/* Page hero (طلباتي / من نحن / etc.) */
.page-hero { padding:36px 0 28px; }
.page-hero-inner h1 { font-size:26px; }
@media (max-width: 480px) {
  .page-hero { padding:24px 0 18px; }
  .page-hero-inner h1 { font-size:22px; }
  .page-hero-inner p { font-size:13px; }
}

/* App download section on mobile */
@media (max-width: 768px) {
  .app-download-section .riza-container { flex-direction:column; align-items:center; text-align:center; }
  .app-badges { flex-direction:row; flex-wrap:wrap; justify-content:center; }
}

/* ── App Download Section ─────────────────────────────────────── */
.riza-app-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}
.riza-app-text { direction:rtl; }
.riza-app-mockup { text-align:center; position:relative; overflow:hidden; }

/* ── Trust Bar ────────────────────────────────────────────────── */
.riza-trust-bar {
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1px;
  background:rgba(255,255,255,.08);
  border-radius:14px;
  overflow:hidden;
}

/* ── All Products Grid ────────────────────────────────────────── */
.riza-all-products-grid {
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
}
@media (max-width: 1024px) { .riza-all-products-grid { grid-template-columns:repeat(3, 1fr); } }

/* ── Category Block (section ⑧) ──────────────────────────────── */
.riza-catblock-grid {
  display:grid;
  grid-template-columns:200px 1fr;
  gap:20px;
  align-items:stretch;
}
.riza-catblock-img { min-height:340px; }

/* ── Mobile: collapse all homepage grids ─────────────────────── */
@media (max-width: 768px) {
  /* App download: single column, hide mockup */
  .riza-app-grid { grid-template-columns:1fr; gap:24px; }
  .riza-app-mockup { display:none; }

  /* Trust bar: 2×2 */
  .riza-trust-bar { grid-template-columns:repeat(2, 1fr); }

  /* All products: 2 col */
  .riza-all-products-grid { grid-template-columns:repeat(2, 1fr); gap:12px; }

  /* Category block: stack vertically */
  .riza-catblock-grid {
    display:flex;
    flex-direction:column;
    gap:16px;
  }
  .riza-catblock-img { min-height:200px; }
}

/* Footer bottom wraps cleanly */
@media (max-width: 480px) {
  .footer-bottom .riza-container { gap:8px; }
  .footer-bottom span { font-size:11px; }
}

/* App badge on very small screens */
@media (max-width: 360px) {
  .app-badge { padding:8px 14px; }
  .app-badge-text span { font-size:13px; }
}

/* ================================================================
   GUEST ORDER TRACKING — تتبع طلبك tab styles
   ================================================================ */
.rco-track-form { display:flex; flex-direction:column; gap:16px; }
.rco-track-msg {
  padding:12px 16px;
  border-radius:10px;
  font-size:14px;
  font-family:'Tajawal', sans-serif;
  display:flex; align-items:center; gap:8px;
}
.rco-track-msg--ok    { background:var(--bgc-card); color:var(--bgc-mut); border:1px solid var(--bgc-line); }
.rco-track-msg--error { background:var(--bgc-warm); color:var(--bgc-ink); border:1px solid var(--bgc-line); }
.rco-track-hint {
  margin-top:12px;
  padding:12px 16px;
  background:var(--bgc-warm);
  border:1px dashed #bccf6844;
  border-radius:10px;
  font-size:13px;
  color:var(--bgc-mut);
  display:flex; align-items:flex-start; gap:8px;
  font-family:'Tajawal', sans-serif;
  line-height:1.5;
}
.rco-track-hint i { color:#bccf68; margin-top:2px; flex-shrink:0; }

/* 3-tab auth layout — slightly narrower tab text */
.rco-auth-tabs .rco-auth-tab { font-size:13px; padding:10px 12px; }
@media (max-width: 480px) {
  .rco-auth-tabs .rco-auth-tab { font-size:11px; padding:10px 8px; }
  .rco-auth-tabs .rco-auth-tab i { display:none; }
}

/* ================================================================
   GOOGLE LOGIN — Sign In with Google button on /my-account/
   ================================================================ */
.riza-google-login-wrap {
  margin-top:20px;
}
.riza-or-divider {
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--bgc-mut);
  font-size:13px;
  font-family:'Tajawal', sans-serif;
  margin-bottom:16px;
}
.riza-or-divider::before,
.riza-or-divider::after {
  content:'';
  flex:1;
  height:1px;
  background:var(--bgc-warm2);
}
/* Center the GIS-rendered iframe button */
.riza-google-btn-wrap {
  display:flex;
  justify-content:center;
}
.riza-google-btn-wrap > div,
.riza-google-btn-wrap iframe {
  max-width:100% !important;
}
/* Status messages */
.riza-g-status {
  margin-top:12px;
  text-align:center;
  font-size:14px;
  font-family:'Tajawal', sans-serif;
}
.riza-g-loading { color:var(--bgc-mut); }
.riza-g-ok      { color:var(--bgc-mut); }
.riza-g-err     { color:var(--bgc-ink); }

/* ================================================================
   PUSH NOTIFICATIONS — Bell + Popup + Notifications Page
   ================================================================ */

/* ── Hide WN Bell plugin (belt-and-suspenders — PHP also hides it) ── */
.wnbell-sticky-btn,
.wnbell-floating-container,
.wnbell-widget { display:none !important; }

/* ── Floating bell button ── */
.riza-notif-bell {
  position:fixed;
  bottom:28px;
  left:24px;
  width:52px;
  height:52px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--bgc-chrome) 0%, var(--bgc-chrome2) 100%);
  color:var(--bgc-grn);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  text-decoration:none;
  box-shadow:0 4px 20px rgba(0,0,0,0.35), 0 0 0 2px rgba(188,207,104,0.25);
  z-index:9900;
  transition:transform .22s ease, box-shadow .22s ease;
}
.riza-notif-bell:hover {
  transform:scale(1.1) translateY(-2px);
  box-shadow:0 8px 28px rgba(0,0,0,0.4), 0 0 0 3px rgba(188,207,104,0.4);
  color:var(--bgc-grn);
  text-decoration:none;
}
/* Bell shake animation on new notification */
@keyframes riza-bell-shake {
  0%,100% { transform:rotate(0); }
  15%      { transform:rotate(18deg); }
  30%      { transform:rotate(-16deg); }
  45%      { transform:rotate(12deg); }
  60%      { transform:rotate(-10deg); }
  75%      { transform:rotate(6deg); }
}
.riza-notif-bell.riza-bell--shake i { animation:riza-bell-shake .55s ease; }

/* Badge */
.riza-bell-badge {
  position:absolute;
  top:4px;
  right:4px;
  min-width:18px;
  height:18px;
  padding:0 4px;
  border-radius:9px;
  background:var(--bgc-warmink);
  color:#fff;
  font-size:10px;
  font-weight:700;
  font-family:'Tajawal', sans-serif;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid var(--bgc-ink);
  line-height:1;
}

/* ── Foreground notification popup ── */
.riza-push-popup {
  position:fixed;
  bottom:90px;
  left:20px;
  width:340px;
  max-width:calc(100vw - 40px);
  background:var(--bgc-chrome);
  border:1px solid rgba(188,207,104,0.3);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(188,207,104,0.1);
  z-index:9999;
  opacity:0;
  transform:translateY(20px) scale(.96);
  transition:opacity .32s ease, transform .32s cubic-bezier(.34,1.56,.64,1);
  direction:rtl;
}
.riza-push-popup--in {
  opacity:1;
  transform:translateY(0) scale(1);
}
.riza-push-popup--out {
  opacity:0;
  transform:translateY(10px) scale(.96);
  transition:opacity .35s ease, transform .35s ease;
}

/* Gold progress bar animates across the top */
.riza-push-popup-progress {
  height:3px;
  background:linear-gradient(90deg, #bccf68, #dded93);
  animation:riza-popup-progress 6s linear forwards;
  transform-origin:right;
}
@keyframes riza-popup-progress {
  from { transform:scaleX(1); }
  to   { transform:scaleX(0); }
}

.riza-push-popup-inner {
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 14px 14px 16px;
}
.riza-push-popup-icon {
  width:44px;
  height:44px;
  border-radius:10px;
  object-fit:cover;
  flex-shrink:0;
  border:1px solid rgba(188,207,104,0.2);
}
.riza-push-popup-icon--default {
  width:44px;
  height:44px;
  border-radius:10px;
  background:rgba(188,207,104,0.12);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#bccf68;
  font-size:20px;
  flex-shrink:0;
}
.riza-push-popup-text { flex:1; min-width:0; }
.riza-push-popup-title {
  font-family:'Tajawal', sans-serif;
  font-size:14px;
  font-weight:700;
  color:#bccf68;
  margin-bottom:4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.riza-push-popup-msg {
  font-family:'Tajawal', sans-serif;
  font-size:13px;
  color:var(--bgc-mut);
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.riza-push-popup-close {
  background:none;
  border:none;
  color:var(--bgc-ink);
  font-size:18px;
  line-height:1;
  padding:2px 4px;
  cursor:pointer;
  flex-shrink:0;
  transition:color .18s;
  margin-top:-2px;
}
.riza-push-popup-close:hover { color:#bccf68; }

/* ── Notifications page (inside My Account) ── */
.riza-notifs-page {
  max-width:680px;
}
.riza-notifs-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:24px;
  padding-bottom:16px;
  border-bottom:2px solid var(--bgc-line);
}
.riza-notifs-header h2 {
  font-family:'Tajawal', sans-serif;
  font-size:22px;
  font-weight:700;
  color:var(--bgc-ink);
  margin:0;
  display:flex;
  align-items:center;
  gap:10px;
}
.riza-notifs-header h2 i { color:#bccf68; }
.riza-notifs-count {
  font-size:13px;
  color:var(--bgc-mut);
  font-family:'Tajawal', sans-serif;
  background:var(--bgc-soft);
  padding:4px 12px;
  border-radius:20px;
}

/* Empty state */
.riza-notifs-empty {
  text-align:center;
  padding:60px 20px;
  color:var(--bgc-mut);
}
.riza-notifs-empty-icon {
  width:80px;
  height:80px;
  margin:0 auto 20px;
  background:var(--bgc-warm);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
  color:#bccf68;
}
.riza-notifs-empty h3 {
  font-family:'Tajawal', sans-serif;
  font-size:18px;
  font-weight:700;
  color:var(--bgc-ink);
  margin-bottom:8px;
}
.riza-notifs-empty p {
  font-family:'Tajawal', sans-serif;
  font-size:14px;
  margin-bottom:24px;
}
.riza-notifs-shop-btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--bgc-chrome);
  color:#bccf68;
  padding:11px 28px;
  border-radius:25px;
  font-family:'Tajawal', sans-serif;
  font-size:15px;
  font-weight:600;
  text-decoration:none;
  transition:background .2s;
}
.riza-notifs-shop-btn:hover { background:#bccf68; color:#fff; text-decoration:none; }

/* Notifications list */
.riza-notifs-list {
  display:flex;
  flex-direction:column;
  gap:0;
  border:1px solid var(--bgc-line);
  border-radius:14px;
  overflow:hidden;
}
.riza-notif-item {
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 18px;
  background:var(--bgc-card);
  border-bottom:1px solid var(--bgc-line);
  transition:background .18s;
}
.riza-notif-item:last-child { border-bottom:none; }
.riza-notif-item:hover { background:var(--bgc-warm); }
.riza-notif-item--unread { background:var(--bgc-warm); }
.riza-notif-item--unread:hover { background:var(--bgc-warm); }

.riza-notif-icon {
  width:44px;
  height:44px;
  border-radius:12px;
  background:linear-gradient(135deg, var(--bgc-chrome) 0%, var(--bgc-chrome2) 100%);
  color:var(--bgc-grn);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  flex-shrink:0;
}
.riza-notif-body { flex:1; min-width:0; }
.riza-notif-title {
  font-family:'Tajawal', sans-serif;
  font-size:14px;
  font-weight:700;
  color:var(--bgc-ink);
  margin-bottom:3px;
}
.riza-notif-msg {
  font-family:'Tajawal', sans-serif;
  font-size:13px;
  color:var(--bgc-ink);
  line-height:1.5;
  margin-bottom:4px;
}
.riza-notif-time {
  font-family:'Tajawal', sans-serif;
  font-size:11px;
  color:var(--bgc-mut);
  display:flex;
  align-items:center;
  gap:4px;
}
.riza-notif-link {
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--bgc-soft);
  color:var(--bgc-mut);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  text-decoration:none;
  flex-shrink:0;
  transition:background .18s, color .18s;
}
.riza-notif-link:hover { background:#bccf68; color:#fff; text-decoration:none; }

/* Unread dot */
.riza-notif-item--unread .riza-notif-title::before {
  content:'';
  display:inline-block;
  width:7px;
  height:7px;
  background:#bccf68;
  border-radius:50%;
  margin-left:8px;
  vertical-align:middle;
}

/* ── Notifications quick-link card badge ── */
.acct-quick-card .acct-quick-badge {
  background:var(--bgc-warmink);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .riza-notif-bell { left:16px; bottom:20px; width:46px; height:46px; font-size:18px; }
  .riza-push-popup { bottom:80px; left:12px; width:calc(100vw - 24px); }
  .riza-notifs-page { max-width:100%; }
}

/* ── لوجو بارجيلو (صورة بدل النص) — 2026-09-07 ─────────────── */
.riza-logo-link{display:flex;align-items:center}
.riza-logo-img{height:42px;width:auto;display:block}
.riza-logo-img--sm{height:30px}
@media(max-width:768px){.riza-logo-img{height:34px}.riza-logo-img--sm{height:26px}}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* لوجو الفوتر (صورة بدل النص) — 2026-09-08 */
.riza-foot-logo-img{height:46px;width:auto;display:block;margin-bottom:6px}
@media(max-width:768px){.riza-foot-logo-img{height:38px;margin-inline:auto}}
