/*
Theme Name: GT SCENT
Theme URI: https://gtscent.com
Author: Provision Studio
Author URI: https://provisionstudio.net
Description: Premium Arabic RTL WooCommerce theme for GT SCENT — شركة التجارة الذهبية. Autonomous fragrance diffusers for homes, offices, hotels, and cars.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Private
Text Domain: gtscent
Tags: rtl-language, e-commerce, dark, arabic, woocommerce
*/

/* ============================================================
   DESIGN SYSTEM — CSS VARIABLES
============================================================ */
:root {
  /* Light Mode */
  --bg:        #F8F6F2;
  --surface:   #FFFFFF;
  --surface2:  #F0EDE7;
  --text:      #1A1A1A;
  --text2:     #666666;
  --gold:      #C8A96A;
  --gold2:     #A8843E;
  --gold-rgb:  200, 169, 106;
  --green:     #2E7D32;
  --red:       #C62828;
  --border:    rgba(0,0,0,0.08);
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
  --nav-bg:    rgba(248,246,242,0.95);
  --overlay:   rgba(248,246,242,0.6);
  --gradient-gold: linear-gradient(135deg, #C8A96A 0%, #A8843E 50%, #C8A96A 100%);
  --header-h: 108px;
  --nav-h: 70px;
  --radius: 12px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] {
  --bg:        #0F1115;
  --surface:   #1E222A;
  --surface2:  #252A34;
  --text:      #FFFFFF;
  --text2:     #A0A0A0;
  --gold:      #D4AF37;
  --gold2:     #B8960C;
  --gold-rgb:  212, 175, 55;
  --green:     #4CAF50;
  --red:       #EF5350;
  --border:    rgba(255,255,255,0.06);
  --shadow:    0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
  --nav-bg:    rgba(15,17,21,0.97);
  --overlay:   rgba(15,17,21,0.6);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  direction: rtl;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { color: var(--text2); }

/* ============================================================
   LAYOUT
============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(var(--gold-rgb), 0.12);
  color: var(--gold);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid rgba(var(--gold-rgb), 0.2);
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text2); max-width: 540px; margin: 0 auto; }

.gold-text { color: var(--gold); }
.gold-line {
  display: inline-block;
  width: 48px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
  vertical-align: middle;
  margin: 0 8px;
}

/* ============================================================
   GRID SYSTEMS
============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #fff;
  box-shadow: 0 4px 20px rgba(var(--gold-rgb), 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--gold-rgb), 0.5);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: #fff;
}

.btn-ghost {
  color: var(--text);
  padding: 10px 20px;
}
.btn-ghost:hover { color: var(--gold); }

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   CARDS
============================================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   FORM ELEMENTS
============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  transition: border-color var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.12);
}
.form-control::placeholder { color: var(--text2); }

input[type="email"].form-control,
input[type="tel"].form-control,
input[type="password"].form-control {
  direction: ltr;
  text-align: right;
}

/* ============================================================
   BADGE / TAG
============================================================ */
.badge-new, .badge-sale, .badge-hot, .badge-out-of-stock {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-new          { background: var(--green); color: #fff; }
.badge-sale         { background: var(--green); color: #fff; }
.badge-out-of-stock { background: var(--red);   color: #fff; }
.badge-hot          { background: var(--gold);  color: #fff; }

/* ============================================================
   STARS
============================================================ */
.stars { color: #F5A623; display: flex; gap: 2px; }
.stars .fa-star { font-size: 0.85rem; }
.stars .fa-star-half-stroke { font-size: 0.85rem; }

/* ============================================================
   TOAST NOTIFICATIONS
============================================================ */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toast {
  background: var(--surface);
  color: var(--text);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  animation: toastIn 0.3s ease;
  border-right: 4px solid var(--gold);
}
.toast.success { border-right-color: var(--green); }
.toast.error   { border-right-color: var(--red); }
.toast i       { color: var(--gold); }
.toast.success i { color: var(--green); }
.toast.error i   { color: var(--red); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   REVEAL ANIMATIONS
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   BREADCRUMBS
============================================================ */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumb a { color: var(--text2); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--gold); font-weight: 600; }

/* ============================================================
   PAGINATION
============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.page-num, .page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: all var(--transition);
  background: var(--surface);
  color: var(--text2);
  border: 1px solid var(--border);
}
.page-num:hover { border-color: var(--gold); color: var(--gold); }
.page-num.active { background: var(--gradient-gold); color: #fff; border-color: transparent; }

/* ============================================================
   LOADER SCREEN
============================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.5s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
.loader-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.loader-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-gold);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}
.loader-name {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--gold);
}
.loader-bar-wrap {
  width: 200px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-gold);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ============================================================
   PROMO BANNER
============================================================ */
#promo-banner {
  background: var(--gradient-gold);
  color: #fff;
  text-align: center;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  z-index: 100;
}
#promo-banner a { color: #fff; text-decoration: underline; }
#promo-close {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
}
#promo-close:hover { opacity: 1; }

/* ============================================================
   NAVIGATION
============================================================ */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}
.nav-logo-text {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--gold);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); background: rgba(var(--gold-rgb),0.08); }
.nav-links a i { font-size: 0.9rem; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-action-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1rem;
  background: var(--surface2);
  transition: all var(--transition);
  position: relative;
}
.nav-action-btn:hover { background: rgba(var(--gold-rgb),0.12); color: var(--gold); }
.cart-count {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 20px;
  height: 20px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
#theme-toggle i { transition: transform 0.4s ease; }

#hamburger { display: none; }
.hamburger-icon span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger-icon span:not(:last-child) { margin-bottom: 5px; }

/* Mobile Menu */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  overflow-y: auto;
}
#mobile-menu.open { display: flex; }
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.mobile-menu-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-menu-links a:hover { color: var(--gold); }

/* Search Overlay */
#search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(12px);
  z-index: 1100;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
#search-overlay.open { display: flex; }
.search-box {
  width: 100%;
  max-width: 600px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.search-box-inner {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 4px 16px;
}
.search-box-inner input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: var(--text);
  padding: 12px 0;
  direction: rtl;
}
.search-box-inner i { color: var(--gold); font-size: 1.1rem; }

/* ============================================================
   FOOTER
============================================================ */
#main-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-icon {
  width: 52px;
  height: 52px;
  background: var(--gradient-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.footer-brand-name {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  color: var(--text2);
  font-size: 0.95rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover { color: var(--gold); }
.footer-links a i { width: 16px; color: var(--gold); opacity: 0.7; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.social-btn:hover { background: var(--gold); color: #fff; }

.footer-payment {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.payment-badge {
  background: var(--surface2);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
}
.payment-badge i { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text2);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--gold); }

/* ============================================================
   WHATSAPP FLOAT
============================================================ */
#wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 500;
  animation: waPulse 2s infinite;
  transition: transform var(--transition);
}
#wa-float:hover { transform: scale(1.1); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 40px rgba(37,211,102,0.7), 0 0 0 12px rgba(37,211,102,0.1); }
}

/* ============================================================
   CURSOR GLOW (Desktop)
============================================================ */
#cursor-glow {
  display: none;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gold-rgb),0.06) 0%, transparent 70%);
  position: fixed;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h, 108px));
  display: flex;
  align-items: center;
  overflow: hidden;
}
#smoke-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(var(--gold-rgb),0.08) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(var(--gold-rgb),0.1);
  border: 1px solid rgba(var(--gold-rgb),0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text2);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--gold);
  display: block;
}
.hero-stat-label { font-size: 0.85rem; color: var(--text2); }
.hero-visual {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 38%;
  max-width: 480px;
  animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 20px)); }
}
.hero-visual-inner {
  background: var(--gradient-gold);
  border-radius: 40% 60% 50% 50% / 40% 50% 60% 50%;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  font-size: 5rem;
  color: rgba(255,255,255,0.9);
}

/* ============================================================
   FEATURES STRIP
============================================================ */
.features-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.features-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
}
.feature-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: rgba(var(--gold-rgb),0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
}
.feature-text strong { display: block; font-weight: 700; margin-bottom: 2px; }
.feature-text span { font-size: 0.85rem; color: var(--text2); }

/* ============================================================
   CATEGORIES
============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.category-card:hover .category-icon { background: var(--gold); color: #fff; }
.category-card-span2 { grid-column: span 2; }
@media (max-width: 768px) { .category-card-span2 { grid-column: span 1; } }
.category-visual {
  height: 200px;
  background: linear-gradient(135deg, var(--surface2) 0%, rgba(var(--gold-rgb),0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--gold);
  position: relative;
  overflow: hidden;
}
.category-body { padding: 20px; }
.category-icon {
  width: 44px;
  height: 44px;
  background: rgba(var(--gold-rgb),0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 12px;
  transition: all var(--transition);
}
.category-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.category-body p { font-size: 0.9rem; color: var(--text2); }

/* ============================================================
   PRODUCT CARD
============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface2);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image img { transform: scale(1.07); }
.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface2) 0%, rgba(var(--gold-rgb),0.08) 100%);
  font-size: 3.5rem;
  color: var(--gold);
}
.product-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-wishlist {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
}
.product-wishlist:hover, .product-wishlist.active { color: #E53935; }
.product-quick-view {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(var(--gold-rgb),0.9);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: transform var(--transition);
  cursor: pointer;
}
.product-card:hover .product-quick-view { transform: translateY(0); }
.product-info { padding: 16px; }
.product-category-tag { font-size: 0.8rem; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.product-name { font-weight: 700; margin-bottom: 8px; font-size: 1.05rem; }
.product-name a { color: var(--text); transition: color var(--transition); }
.product-name a:hover { color: var(--gold); }
.product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.product-rating span { font-size: 0.85rem; color: var(--text2); }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: 'Tajawal', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--gold); }
.product-price del { font-size: 0.85rem; color: var(--text2); font-weight: 400; font-family: 'Cairo', sans-serif; }
.add-to-cart-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--gradient-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.add-to-cart-btn:hover { transform: scale(1.1); }

/* ============================================================
   COUNTER SECTION
============================================================ */
.counters-section {
  background: var(--gradient-gold);
  padding: 64px 0;
}
.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.counter-item { color: #fff; }
.counter-num {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  display: block;
}
.counter-label { font-size: 0.95rem; opacity: 0.9; }

/* ============================================================
   BLOG CARD
============================================================ */
.blog-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-image {
  aspect-ratio: 16/9;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gold);
}
.blog-body { padding: 20px; }
.blog-meta { display: flex; gap: 16px; font-size: 0.83rem; color: var(--text2); margin-bottom: 12px; }
.blog-meta i { color: var(--gold); margin-left: 4px; }
.blog-title a { color: var(--text); font-weight: 700; transition: color var(--transition); }
.blog-title a:hover { color: var(--gold); }
.blog-excerpt { font-size: 0.9rem; color: var(--text2); margin: 10px 0 16px; }
.blog-read-more { color: var(--gold); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }

/* ============================================================
   TESTIMONIALS
============================================================ */
.testimonials-section { background: var(--bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-quote {
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.4;
}
.testimonial-text { font-size: 0.95rem; color: var(--text2); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.testimonial-name { font-weight: 700; display: block; font-size: 0.95rem; }
.testimonial-company { font-size: 0.83rem; color: var(--gold); }

/* Partners */
.partners-section { padding: 48px 0; }
.partners-title { text-align: center; color: var(--text2); font-size: 0.9rem; margin-bottom: 24px; }
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.partner-pill {
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--text2);
  font-weight: 600;
  transition: all var(--transition);
}
.partner-pill:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   TRUST BAR
============================================================ */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-bar-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text2);
}
.trust-item i { color: var(--gold); font-size: 1.1rem; }

/* ============================================================
   NEWSLETTER
============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(var(--gold-rgb),0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
  text-align: center;
}
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 28px auto 0;
  gap: 12px;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  direction: ltr;
  text-align: right;
}
.newsletter-form input:focus { outline: none; border-color: var(--gold); }

/* ============================================================
   WHATSAPP CTA
============================================================ */
.wa-cta {
  background: linear-gradient(135deg, #1a3c27 0%, #25D366 100%);
  padding: 64px 0;
  text-align: center;
  color: #fff;
}
.wa-cta h2 { color: #fff; margin-bottom: 12px; }
.wa-cta p { color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.wa-cta .btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #25D366;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
  transition: all var(--transition);
}
.wa-cta .btn-wa:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }

/* ============================================================
   SHOP PAGE
============================================================ */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
.shop-sidebar {
  position: sticky;
  top: var(--header-h, 108px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
}
.shop-sidebar h3 { font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sidebar-section { margin-bottom: 28px; }
.sidebar-section h4 { font-size: 0.95rem; margin-bottom: 14px; color: var(--text); }
.sidebar-filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text2);
}
.sidebar-filter-item input[type="checkbox"] { accent-color: var(--gold); }
.price-range-inputs { display: flex; gap: 10px; }
.price-range-inputs input {
  flex: 1;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  text-align: center;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.shop-results { font-size: 0.9rem; color: var(--text2); }
.shop-sort select {
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
}
.shop-view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.view-btn.active { background: var(--gold); color: #fff; border-color: transparent; }

/* ============================================================
   SINGLE PRODUCT
============================================================ */
.product-single-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.product-gallery { position: sticky; top: var(--header-h, 108px); }
.product-main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--gold);
  margin-bottom: 16px;
  cursor: zoom-in;
  position: relative;
}
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbnails { display: flex; gap: 12px; }
.product-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.4rem;
}
.product-thumb.active { border-color: var(--gold); }

.product-info-area { }
.product-category-link { color: var(--gold); font-size: 0.9rem; font-weight: 600; }
.product-title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 12px 0; }
.product-subtitle { color: var(--text2); margin-bottom: 16px; }
.product-price-area { margin: 20px 0; }
.product-price-main { font-family: 'Tajawal', sans-serif; font-weight: 800; font-size: 2.2rem; color: var(--gold); }
.product-price-old { font-size: 1rem; color: var(--text2); text-decoration: line-through; margin-right: 8px; }
.product-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.product-variants { margin-bottom: 24px; }
.product-variants h4 { font-size: 0.95rem; margin-bottom: 12px; }
.variant-options { display: flex; gap: 10px; flex-wrap: wrap; }
.variant-btn {
  padding: 8px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
  background: var(--surface);
}
.variant-btn.active, .variant-btn:hover { border-color: var(--gold); color: var(--gold); }
.product-qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-btn {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 1rem;
  transition: background var(--transition);
}
.qty-btn:hover { background: rgba(var(--gold-rgb),0.1); }
.qty-input {
  width: 56px;
  height: 44px;
  text-align: center;
  border: none;
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.product-action-btns { display: flex; gap: 12px; margin-bottom: 24px; }
.product-action-btns .btn-primary { flex: 1; }
.wishlist-btn-large {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
}
.wishlist-btn-large:hover, .wishlist-btn-large.active { color: #E53935; border-color: #E53935; }

.product-metas { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.product-meta-item { display: flex; gap: 8px; }
.product-meta-item strong { color: var(--text); min-width: 90px; }
.product-meta-item span { color: var(--text2); }

/* Product Tabs */
.product-tabs { margin-top: 64px; }
.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
}
.tab-btn {
  padding: 12px 24px;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text2);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Specs Table */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(even) td { background: var(--surface2); }
.specs-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.specs-table td:first-child { font-weight: 600; color: var(--text); width: 40%; }
.specs-table td:last-child { color: var(--text2); }

/* Mobile Sticky CTA */
#mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  z-index: 100;
  gap: 12px;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.mobile-sticky-price { font-family: 'Tajawal', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--gold); }
.mobile-sticky-price small { font-size: 0.75rem; font-family: 'Cairo', sans-serif; color: var(--text2); display: block; font-weight: 400; }
#mobile-sticky-cta .btn-primary { flex: 1; }

/* ============================================================
   CART PAGE
============================================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.cart-items {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto; /* ✅ كان 90px — اتعدل يتوافق مع الصورة */
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-item-img {
  width: 100px;   /* ✅ كان 200px — مش منطقي مع column بـ 90px */
  height: 100px;  /* ✅ كان 200px */
  border-radius: var(--radius);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold);
  overflow: hidden;
  flex-shrink: 0; /* ✅ إضافة — يمنع الانكماش */
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-name {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 1rem; /* ✅ إضافة — تحديد واضح */
  line-height: 1.4;
}

.cart-item-category {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.cart-item-price {
  font-weight: 700;
  color: var(--text2);
  font-size: 0.9rem;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 100px; /* ✅ إضافة — يمنع تقطع الأرقام */
}

.cart-item-total {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--gold);
  white-space: nowrap; /* ✅ إضافة — يمنع كسر السطر في الأسعار */
}

.cart-remove {
  color: var(--text2);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
  padding: 0;
}

.cart-remove:hover { color: var(--red); }

.coupon-row {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.coupon-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  text-align: right; /* ✅ إضافة — RTL */
  direction: rtl;    /* ✅ إضافة */
}

.coupon-input:focus {
  outline: none;
  border-color: var(--gold);
}

.order-summary {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  position: sticky;
  top: var(--header-h, 108px);
}

.order-summary h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.95rem;
  gap: 12px; /* ✅ إضافة — مسافة بين اللليبل والقيمة */
}

.summary-row span:first-child { color: var(--text2); }

.summary-row span:last-child {
  white-space: nowrap; /* ✅ إضافة — يمنع كسر الأسعار */
  font-family: 'Tajawal', sans-serif;
}

.summary-row.total {
  font-weight: 800;
  font-size: 1.15rem;
  padding-top: 14px;
  border-top: 2px solid var(--border);
}

.summary-row.total span:last-child { color: var(--gold); }

.order-benefits {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--text2);
}

.order-benefit i { color: var(--green); }

/* ✅ إضافة جديدة — رابط العودة للسلة */
.return-to-cart,
.return-to-shop a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text2);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.return-to-cart::before,
.return-to-shop a::before {
  content: "←"; /* ✅ سهم RTL صح */
}

.return-to-cart:hover,
.return-to-shop a:hover { color: var(--gold); }

/* ✅ Responsive */
@media (max-width: 768px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static; /* ✅ على الموبايل بيوقف الـ sticky */
  }

  .cart-item {
    grid-template-columns: 80px 1fr; /* ✅ على الموبايل الـ actions تنزل تحت */
    grid-template-rows: auto auto;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ============================================================
   CHECKOUT — Visual Fixes (Override)
============================================================ */

/* ① إخفاء عنوان "Checkout" الإنجليزي */
.woocommerce-checkout h1,
.woocommerce-checkout h1.entry-title,
.woocommerce-checkout h1.page-title,
.wp-block-woocommerce-checkout ~ h1,
.post-type-page .entry-title,
h1.entry-title[class] {
    display: none !important;
}

/* ② خيارات الدفع — إصلاح التقطيع والاتجاه */
label.wc-block-components-radio-control__option {
    display: flex !important;
    flex-direction: row-reverse !important;   /* radio يمين، نص يسار */
    justify-content: flex-start !important;   /* كل حاجة تبدأ من اليمين */
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;             /* مش بيتقطع */
}

.wc-block-components-radio-control__option-layout {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: right !important;
    padding: 0 !important;
}

.wc-block-components-payment-method-label,
.wc-block-components-payment-method-label__visually-hidden,
.wc-block-components-radio-control__label {
    font-size: 0.95rem !important;
    color: var(--text) !important;
    white-space: nowrap !important;
    overflow: visible !important;
    display: block !important;
    text-align: right !important;
    direction: rtl !important;
}

/* ③ ظهور Billing form — إجبار عرض الحقول */
.wc-block-components-address-address-wrapper {
    display: block !important;
}
.wc-block-components-address-card-wrapper {
    display: none !important;
}
.wc-block-components-address-form-wrapper {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}
.wc-block-components-address-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    direction: rtl !important;
    width: 100% !important;
}

/* حقول عرض كامل */
.wc-block-components-address-form__first_name,
.wc-block-components-address-form__last_name {
    grid-column: span 1 !important;
}
.wc-block-components-address-form__address_1,
.wc-block-components-address-form__city,
.wc-block-components-address-form__country,
.wc-block-components-address-form__address_2-toggle,
#contact {
    grid-column: 1 / -1 !important;
}

/* ④ سهم "العودة إلى السلة" — اتجاه RTL */
a.wc-block-components-checkout-return-to-cart-button svg {
    transform: scaleX(-1) !important;
}
a.wc-block-components-checkout-return-to-cart-button {
    flex-direction: row-reverse !important;
    color: var(--text2) !important;
    font-size: 0.85rem !important;
}
a.wc-block-components-checkout-return-to-cart-button:hover {
    color: var(--gold) !important;
}

/* ⑤ عنوان الصفحة العربي بديل (اختياري) */
.wc-block-components-sidebar-layout.wc-block-checkout::before {
    content: "إتمام الطلب";
    display: block;
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--text);
    text-align: right;
    direction: rtl;
    margin-bottom: 32px;
    grid-column: 1 / -1;
    width: 100%;
}

/* ⑥ التأكد من عدم تعارض الـ float القديمة */
.woocommerce-checkout form.checkout,
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
    float: none !important;
    width: 100% !important;
}

/* ============================================================
   ABOUT PAGE
============================================================ */
.about-hero {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(var(--gold-rgb),0.05) 100%);
}
.about-story { max-width: 800px; margin: 0 auto; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  text-align: center;
}
.value-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-gold);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  margin: 0 auto 16px;
}
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
}
.service-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: rgba(var(--gold-rgb),0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
}

/* ============================================================
   CONTACT PAGE
============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
}
.branch-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.branch-card h4 { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.branch-card h4 i { color: var(--gold); }
.branch-info-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; font-size: 0.9rem; color: var(--text2); }
.branch-info-row i { color: var(--gold); margin-top: 3px; width: 16px; }
.map-placeholder {
  height: 200px;
  background: var(--surface2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  color: var(--text2);
  font-size: 0.9rem;
  gap: 8px;
}

/* ============================================================
   AUTH PAGES
============================================================ */
.auth-page {
  min-height: calc(100svh - var(--header-h, 108px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header i { font-size: 2.5rem; color: var(--gold); margin-bottom: 12px; display: block; }
.social-login { display: flex; gap: 12px; margin-bottom: 24px; }
.social-login-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface2);
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.social-login-btn:hover { border-color: var(--gold); color: var(--gold); }
.auth-divider { text-align: center; position: relative; margin: 20px 0; color: var(--text2); font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--border);
}
.auth-divider::before { right: 0; }
.auth-divider::after { left: 0; }

/* ============================================================
   404 PAGE
============================================================ */
.notfound-page {
  text-align: center;
  padding: 100px 24px;
  min-height: calc(100svh - var(--header-h, 108px));
  display: flex;
  align-items: center;
  justify-content: center;
}
.notfound-page h1 { font-size: 8rem; color: var(--gold); opacity: 0.3; line-height: 1; margin-bottom: 16px; }
.notfound-page h2 { font-size: 1.8rem; margin-bottom: 12px; }
.notfound-page p { color: var(--text2); margin-bottom: 32px; }

/* ============================================================
   SINGLE POST (Blog)
============================================================ */
.post-hero { background: var(--surface2); padding: 64px 0; }
.post-content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.post-content { background: var(--surface); border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--border); }
.post-content h2, .post-content h3 { margin: 28px 0 12px; }
.post-content p { margin-bottom: 16px; }
.post-content img { border-radius: var(--radius); margin: 20px 0; }
.post-sidebar { position: sticky; top: var(--header-h, 108px); }
.post-sidebar-card { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); margin-bottom: 24px; }
.post-sidebar-card h4 { margin-bottom: 16px; font-size: 1rem; }

/* ============================================================
   SEARCH RESULTS
============================================================ */
.search-hero { padding: 48px 0; background: var(--surface2); text-align: center; }
.search-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .product-single-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .post-content-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}

@media (max-width: 1400px) {
  .nav-links { display: none; }
  #hamburger { display: flex; }
  .hero-visual { display: none; }
  .hero { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .values-grid, .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .cart-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .cart-layout .order-summary { order: -1; }
  .checkout-layout { grid-template-columns: 1fr; }
  .product-single-grid { grid-template-columns: 1fr; }
  #mobile-sticky-cta { display: flex; }
  .social-login { flex-direction: column; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .auth-card { padding: 24px; }
  .contact-form-card { padding: 24px; }
}
/* ══ Checkout Page — النسخة النظيفة ══════════════════════════════ */

/* ── عنوان الصفحة ──────────────────────────────────────────────── */
.woocommerce-checkout .entry-title,
.woocommerce-checkout h1.page-title {
    display: none !important;
}

/* ── الـ wrapper الرئيسي ────────────────────────────────────────── */
.woocommerce-checkout .woocommerce {
    direction: rtl;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ── Grid Layout ────────────────────────────────────────────────── */
.woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: 1fr 400px !important;
    grid-template-areas:
        "customer  summary-title"
        "customer  summary"
        "payment   summary" !important;
    gap: 32px !important;
    align-items: start !important;
    float: none !important;
}

.woocommerce-checkout #customer_details {
    grid-area: customer !important;
    float: none !important;
    width: 100% !important;
}

.woocommerce-checkout #order_review_heading {
    grid-area: summary-title !important;
    margin: 0 !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    font-size: 20px !important;
    font-family: var(--font-ar);
    direction: rtl;
    text-align: right;
}

.woocommerce-checkout #order_review {
    grid-area: summary !important;
    float: none !important;
    width: 100% !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    position: sticky !important;
    top: 100px !important;
}

.woocommerce-checkout #payment {
    grid-area: payment !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    direction: rtl !important;
}

/* ── col-1 و col-2 داخل customer_details ───────────────────────── */
.woocommerce-checkout .col2-set {
    display: block !important;
    float: none !important;
    width: 100% !important;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── عناوين السيكشنز ────────────────────────────────────────────── */
.woocommerce-checkout h3 {
    font-size: 17px !important;
    color: #fff !important;
    margin: 24px 0 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    direction: rtl !important;
    font-family: var(--font-ar);
}

/* ── الـ Form Rows ──────────────────────────────────────────────── */
.woocommerce-checkout .form-row {
    margin-bottom: 16px !important;
    padding: 0 !important;
}

.woocommerce-checkout .form-row label {
    color: rgba(255,255,255,0.7) !important;
    font-size: 14px !important;
    margin-bottom: 6px !important;
    display: block !important;
}

/* first + last جنب بعض */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: calc(50% - 8px) !important;
    display: inline-block !important;
    float: none !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout .form-row-first {
    margin-left: 16px !important;
}

.woocommerce-checkout .form-row-last {
    margin-left: 0 !important;
}

/* ── الـ Inputs ─────────────────────────────────────────────────── */
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 12px !important;
    color: #fff !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    direction: rtl !important;
    text-align: right !important;
    min-width: 0 !important;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus {
    border-color: rgba(201,168,76,0.6) !important;
    outline: none !important;
    background: rgba(255,255,255,0.08) !important;
}

/* ── جدول ملخص الطلب ────────────────────────────────────────────── */
.woocommerce-checkout table.shop_table {
    width: 100% !important;
    direction: rtl !important;
    border-collapse: collapse !important;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    padding: 12px 4px !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    color: #fff !important;
    text-align: right !important;
    font-size: 14px !important;
}

.woocommerce-checkout table.shop_table tfoot .order-total td,
.woocommerce-checkout table.shop_table tfoot .order-total th {
    color: var(--gold, #C9A84C) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border-bottom: none !important;
}

/* ── خيارات الدفع ───────────────────────────────────────────────── */
.woocommerce-checkout #payment ul.payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px !important;
    background: none !important;
    border: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    display: flex !important;
    align-items: center !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    direction: rtl !important;
    text-align: right !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    color: #fff !important;
    font-size: 15px !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.woocommerce-checkout #payment .payment_box {
    background: rgba(255,255,255,0.04) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    color: rgba(255,255,255,0.6) !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    border: none !important;
}

/* ── زر تأكيد الطلب ─────────────────────────────────────────────── */
#place_order {
    width: 100% !important;
    background: var(--gold, #C9A84C) !important;
    color: #111 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    margin-top: 16px !important;
    transition: background 0.25s !important;
    font-family: var(--font-ar);
}

#place_order:hover {
    background: #b8963e !important;
}

/* ── موبايل ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "customer"
            "payment"
            "summary-title"
            "summary" !important;
    }

    .woocommerce-checkout #order_review {
        position: static !important;
        width: 100% !important;
    }

    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100% !important;
        display: block !important;
        margin-left: 0 !important;
    }
}
/* ============================================================
   TESTIMONIALS — Logo + Sector + Country
   أضيف في آخر قسم TESTIMONIALS في style.css
============================================================ */

/* رأس الكارد: شعار يسار + بادج القطاع يمين */
.testimonial-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* شعار العميل — صغير ومتناسق مع الكارد */
.testimonial-logo {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px !important;
    opacity: 0.65;
    filter: grayscale(20%);
    transition: opacity var(--transition), filter var(--transition);
    display: block;
}
.testimonial-card:hover .testimonial-logo {
    opacity: 1;
    filter: grayscale(0%);
}

/* بادج القطاع */
.testimonial-sector {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(var(--gold-rgb), 0.1);
    color: var(--gold);
    border: 1px solid rgba(var(--gold-rgb), 0.2);
    white-space: nowrap;
}

/* الدولة — تحت اسم العميل */
.testimonial-country {
    font-size: 0.8rem;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
/* ============================================================
   WOOCOMMERCE PAGINATION — GT SCENT STYLE
============================================================ */

.woocommerce nav.woocommerce-pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
    direction: ltr;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
    margin: 0;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    border: 1px solid #3a3a3a !important;
    background: #2a2a2a !important;
    color: #aaaaaa !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: background 0.2s, border-color 0.2s, color 0.2s !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: #333333 !important;
    border-color: #C8A96A !important;
    color: #C8A96A !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #C8A96A !important;
    border-color: #C8A96A !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
    cursor: default !important;
}

.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce nav.woocommerce-pagination ul li a.next {
    font-size: 18px !important;
    color: #888888 !important;
}

.woocommerce nav.woocommerce-pagination ul li a.prev:hover,
.woocommerce nav.woocommerce-pagination ul li a.next:hover {
    color: #C8A96A !important;
    border-color: #C8A96A !important;
    background: #333333 !important;
}
/* ============================================================
   COMMENTS SECTION — GT SCENT STYLE
============================================================ */

/* الـ wrapper الرئيسي */
.comments-area {
    max-width: 860px;
    margin: 64px auto 0;
    padding: 0 24px;
    direction: rtl;
}

/* عنوان التعليقات */
.comments-title,
.comment-reply-title {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    color: var(--text) !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid var(--gold) !important;
    display: inline-block !important;
    text-align: right !important;
}

/* كارد كل تعليق */
.comment-body {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 24px !important;
    margin-bottom: 20px !important;
    transition: box-shadow var(--transition) !important;
}
.comment-body:hover {
    box-shadow: var(--shadow) !important;
}

/* أفاتار */
.comment-author .avatar {
    border-radius: 50% !important;
    border: 2px solid var(--gold) !important;
    width: 48px !important;
    height: 48px !important;
}

/* اسم صاحب التعليق */
.comment-author .fn {
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: var(--gold) !important;
}
.comment-author .fn a {
    color: var(--gold) !important;
    text-decoration: none !important;
}

/* تاريخ التعليق */
.comment-metadata a,
.comment-metadata time {
    font-size: 0.8rem !important;
    color: var(--text2) !important;
    text-decoration: none !important;
}
.comment-metadata a:hover {
    color: var(--gold) !important;
}

/* نص التعليق */
.comment-content p {
    color: var(--text2) !important;
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
    margin-top: 12px !important;
}

/* زر Reply */
.reply .comment-reply-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 18px !important;
    border-radius: var(--radius) !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all var(--transition) !important;
    margin-top: 12px !important;
    background: transparent !important;
}
.reply .comment-reply-link:hover {
    background: var(--gold) !important;
    color: #1a1a1a !important;
}

/* التعليقات الداخلية (replies) */
.children {
    margin-right: 40px !important;
    margin-top: 16px !important;
    border-right: 2px solid rgba(200, 169, 106, 0.25) !important;
    padding-right: 20px !important;
}

/* ── فورم التعليق ─────────────────────────── */

/* كارد الفورم */
#respond {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 32px !important;
    margin-top: 40px !important;
}

/* إخفاء "Logged in as" و "Leave a Reply" الافتراضيين وإعادة تنسيقهم */
#respond .logged-in-as {
    font-size: 0.85rem !important;
    color: var(--text2) !important;
    margin-bottom: 20px !important;
    text-align: right !important;
    direction: rtl !important;
}
#respond .logged-in-as a {
    color: var(--gold) !important;
}

/* الـ labels */
#respond label {
    display: block !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    margin-bottom: 8px !important;
    text-align: right !important;
}

/* الـ inputs والـ textarea */
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    color: var(--text) !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 0.95rem !important;
    padding: 12px 16px !important;
    direction: rtl !important;
    transition: border-color var(--transition) !important;
    margin-bottom: 16px !important;
}
#respond input:focus,
#respond textarea:focus {
    outline: none !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.12) !important;
}

#respond textarea {
    min-height: 140px !important;
    resize: vertical !important;
}

/* زر Post Comment */
#respond input[type="submit"],
#respond .submit {
    background: var(--gradient-gold) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius) !important;
    padding: 14px 36px !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all var(--transition) !important;
    box-shadow: 0 4px 20px rgba(200, 169, 106, 0.35) !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}
#respond input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 32px rgba(200, 169, 106, 0.5) !important;
}

/* إخفاء الـ * Required notice القبيح */
#respond .comment-notes {
    font-size: 0.82rem !important;
    color: var(--text2) !important;
    margin-bottom: 20px !important;
    text-align: right !important;
}
/* ============================================================
   SINGLE POST HERO — Fix Title Font Size
============================================================ */

.post-hero h1,
.post-hero .entry-title,
h1.entry-title {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem) !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;
}
/* ============================================================
   SINGLE POST CONTENT — Typography & Formatting
============================================================ */

.post-content,
.entry-content {
    font-size: 1rem !important;
    line-height: 1.9 !important;
    color: var(--text2) !important;
}

/* العناوين داخل المقال */
.post-content h2,
.entry-content h2 {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--text) !important;
    margin: 40px 0 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid var(--gold) !important;
    display: inline-block !important;
}

.post-content h3,
.entry-content h3 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    margin: 28px 0 10px !important;
}

.post-content h4,
.entry-content h4 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--gold) !important;
    margin: 20px 0 8px !important;
}

/* الفقرات */
.post-content p,
.entry-content p {
    font-size: 0.97rem !important;
    line-height: 1.95 !important;
    color: var(--text2) !important;
    margin-bottom: 18px !important;
}

/* القوائم */
.post-content ul,
.post-content ol,
.entry-content ul,
.entry-content ol {
    padding-right: 20px !important;
    margin-bottom: 20px !important;
}

.post-content li,
.entry-content li {
    font-size: 0.95rem !important;
    line-height: 1.85 !important;
    color: var(--text2) !important;
    margin-bottom: 8px !important;
    padding-right: 8px !important;
}

/* النص البولد داخل المقال */
.post-content strong,
.entry-content strong {
    color: var(--text) !important;
    font-weight: 700 !important;
}

/* الاقتباسات */
.post-content blockquote,
.entry-content blockquote {
    border-right: 4px solid var(--gold) !important;
    border-left: none !important;
    background: var(--surface2) !important;
    border-radius: var(--radius) !important;
    padding: 20px 24px !important;
    margin: 28px 0 !important;
    font-size: 1rem !important;
    color: var(--text) !important;
    font-style: italic !important;
}

/* الكود */
.post-content code,
.entry-content code {
    background: var(--surface2) !important;
    color: var(--gold) !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-size: 0.88rem !important;
}

/* ============================================================
   BLOG CARDS — Title Font Size Fix
============================================================ */

.blog-card .blog-title,
.blog-card .blog-title a,
article.post .entry-title,
article.post .entry-title a,
.posts-grid .entry-title,
.posts-grid .entry-title a {
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    color: var(--text) !important;
}

.blog-card .blog-title a:hover,
article.post .entry-title a:hover {
    color: var(--gold) !important;
}
/* ============================================================
   BLOG CARDS — Equal Height Fix
============================================================ */

/* الـ grid يخلي الكاردات نفس الارتفاع */
.blog-grid,
.posts-grid,
.wp-block-query ul,
ul.posts-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    align-items: stretch !important;
    gap: 24px !important;
}

/* كل كارد يملأ الارتفاع كامل */
.blog-card,
article.post {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* الصورة نفس الارتفاع في كل الكاردات */
.blog-card .blog-image,
article.post .post-thumbnail {
    aspect-ratio: 16/10 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.blog-card .blog-image img,
article.post .post-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* الـ body يملأ المساحة المتبقية */
.blog-card .blog-body,
article.post .entry-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* "اقرأ المزيد" يتثبت في الأسفل دايماً */
.blog-card .blog-read-more,
article.post .read-more {
    margin-top: auto !important;
    padding-top: 16px !important;
}

/* موبايل */
@media (max-width: 768px) {
    .blog-grid,
    .posts-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .blog-grid,
    .posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
/* ============================================================
   CART PAGE — Final Fix (Based on Real HTML)
============================================================ */

/* الـ wrapper */
.wp-block-woocommerce-cart {
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

/* الـ layout الرئيسي — sidebar layout */
.wc-block-components-sidebar-layout.wc-block-cart {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 360px !important;
    gap: 32px !important;
    align-items: start !important;
    direction: rtl !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* عمود المنتجات */
.wc-block-components-main.wc-block-cart__main {
    min-width: 0 !important;
    width: 100% !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* عمود الملخص */
.wc-block-components-sidebar.wc-block-cart__sidebar {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    direction: rtl !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* كارد الملخص */
.wp-block-woocommerce-cart-order-summary-block {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* عنوان Cart Totals */
.wc-block-cart__totals-title {
    font-family: 'Tajawal', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--text) !important;
    padding-bottom: 14px !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid var(--border) !important;
    direction: rtl !important;
    text-align: right !important;
}

/* ── جدول المنتجات ────────────────────────── */

table.wc-block-cart-items {
    width: 100% !important;
    border-collapse: collapse !important;
    direction: rtl !important;
}

/* header الجدول */
.wc-block-cart-items__header {
    background: var(--surface2) !important;
    direction: rtl !important;
}
.wc-block-cart-items__header th {
    padding: 14px 16px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: var(--text2) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 1px solid var(--border) !important;
    text-align: right !important;
}

/* صفوف المنتجات */
.wc-block-cart-items__row {
    border-bottom: 1px solid var(--border) !important;
    direction: rtl !important;
}
.wc-block-cart-items__row td {
    padding: 20px 16px !important;
    vertical-align: middle !important;
}

/* صورة المنتج */
td.wc-block-cart-item__image img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 1px solid var(--border) !important;
    display: block !important;
}

/* اسم المنتج */
a.wc-block-components-product-name {
    font-weight: 700 !important;
    font-size: 0.98rem !important;
    color: var(--text) !important;
    text-decoration: none !important;
    display: block !important;
    margin-bottom: 6px !important;
    transition: color 0.3s !important;
}
a.wc-block-components-product-name:hover {
    color: var(--gold) !important;
}

/* السعر الفردي */
.wc-block-cart-item__prices .wc-block-formatted-money-amount {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: var(--gold) !important;
}

/* الوصف */
.wc-block-components-product-metadata__description p {
    font-size: 0.82rem !important;
    color: var(--text2) !important;
    line-height: 1.6 !important;
    margin: 6px 0 !important;
}

/* الكمية */
.wc-block-components-quantity-selector {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: var(--bg) !important;
    margin-top: 10px !important;
    direction: ltr !important;
}
.wc-block-components-quantity-selector__input {
    width: 44px !important;
    height: 36px !important;
    text-align: center !important;
    border: none !important;
    border-inline: 1px solid var(--border) !important;
    background: var(--surface) !important;
    color: var(--text) !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    -moz-appearance: textfield !important;
}
.wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
.wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
}
.wc-block-components-quantity-selector__button {
    width: 36px !important;
    height: 36px !important;
    background: var(--surface2) !important;
    border: none !important;
    color: var(--text) !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.wc-block-components-quantity-selector__button:hover:not(:disabled) {
    background: rgba(200,169,106,0.15) !important;
    color: var(--gold) !important;
}
.wc-block-components-quantity-selector__button:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

/* زر الحذف */
button.wc-block-cart-item__remove-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 8px !important;
    margin-right: 8px !important;
    background: none !important;
    border: none !important;
    color: var(--text2) !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    transition: color 0.3s !important;
    padding: 0 !important;
}
button.wc-block-cart-item__remove-link:hover {
    color: #C62828 !important;
}
button.wc-block-cart-item__remove-link svg {
    width: 16px !important;
    height: 16px !important;
}

/* إجمالي كل منتج */
td.wc-block-cart-item__total {
    text-align: left !important;
}
.wc-block-cart-item__total .wc-block-formatted-money-amount {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    color: var(--gold) !important;
}

/* ── ملخص الطلب ───────────────────────────── */

/* كوبون */
.wc-block-components-panel__button {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: none !important;
    border: none !important;
    color: var(--gold) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    font-family: 'Cairo', sans-serif !important;
    cursor: pointer !important;
    padding: 12px 0 !important;
    direction: rtl !important;
    width: 100% !important;
    text-align: right !important;
}
.wc-block-components-panel__button svg {
    color: var(--gold) !important;
    fill: var(--gold) !important;
}

/* الإجمالي */
.wc-block-components-totals-wrapper {
    border-top: 1px solid var(--border) !important;
    padding-top: 16px !important;
    margin-top: 8px !important;
}
.wc-block-components-totals-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    direction: rtl !important;
}
.wc-block-components-totals-item__label {
    color: var(--text2) !important;
    font-size: 0.95rem !important;
}

/* Estimated Total */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-weight: 800 !important;
    font-size: 1rem !important;
    color: var(--text) !important;
}
.wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.3rem !important;
    color: var(--gold) !important;
}

/* ── زر Proceed to Checkout ───────────────── */

.wc-block-cart__submit {
    width: 100% !important;
    box-sizing: border-box !important;
}
.wc-block-cart__submit-container {
    width: 100% !important;
}
a.wc-block-cart__submit-button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: linear-gradient(135deg, #C8A96A 0%, #A8843E 50%, #C8A96A 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 15px 24px !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(200,169,106,0.35) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}
a.wc-block-cart__submit-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 32px rgba(200,169,106,0.5) !important;
    color: #fff !important;
}
.wc-block-components-button__text {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
}

/* ── موبايل ───────────────────────────────── */
@media (max-width: 768px) {
    .wc-block-components-sidebar-layout.wc-block-cart {
        grid-template-columns: 1fr !important;
    }
    .wc-block-cart-items__header {
        display: none !important;
    }
    .wc-block-cart-items__row td {
        display: block !important;
        padding: 10px 16px !important;
    }
}
/* ============================================================
   CHECKOUT BLOCKS — Final Fix (Based on Real HTML)
============================================================ */

/* الـ layout الرئيسي */
.wc-block-components-sidebar-layout.wc-block-checkout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 380px !important;
    gap: 32px !important;
    align-items: start !important;
    direction: rtl !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* عمود الفورم */
.wc-block-components-main.wc-block-checkout__main {
    min-width: 0 !important;
    width: 100% !important;
}

/* عمود الملخص */
.wc-block-components-sidebar.wc-block-checkout__sidebar {
    min-width: 0 !important;
    width: 100% !important;
    direction: rtl !important;
    position: sticky !important;
    top: 100px !important;
}

/* ── الـ fieldsets (steps) ────────────────── */
fieldset.wc-block-components-checkout-step {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
    direction: rtl !important;
    width: 100% !important;
}

/* عناوين الـ steps */
.wc-block-components-checkout-step__title {
    font-family: 'Tajawal', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--text) !important;
    padding-bottom: 14px !important;
    margin-bottom: 18px !important;
    border-bottom: 2px solid var(--gold) !important;
    display: block !important;
    text-align: right !important;
}

/* ── الـ inputs ───────────────────────────── */
.wc-block-components-text-input {
    position: relative !important;
    margin-bottom: 16px !important;
}

.wc-block-components-text-input input,
.wc-blocks-components-select__select,
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"] {
    width: 100% !important;
    box-sizing: border-box !important;
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    color: var(--text) !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 0.95rem !important;
    padding: 14px 16px 6px !important;
    direction: rtl !important;
    transition: border-color 0.3s !important;
    appearance: none !important;
}

.wc-block-components-text-input input:focus,
.wc-blocks-components-select__select:focus {
    outline: none !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(200,169,106,0.12) !important;
}

/* الـ labels داخل الـ inputs (floating) */
.wc-block-components-text-input label,
.wc-blocks-components-select__label {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--text2) !important;
    display: block !important;
    text-align: right !important;
    margin-bottom: 6px !important;
}

/* الـ select wrapper */
.wc-blocks-components-select__container {
    position: relative !important;
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    margin-bottom: 16px !important;
    direction: rtl !important;
}
.wc-blocks-components-select__select {
    background: transparent !important;
    border: none !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    color: var(--text) !important;
    width: 100% !important;
}
.wc-blocks-components-select__select:focus {
    box-shadow: none !important;
    border: none !important;
}
.wc-blocks-components-select__expand {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--text2) !important;
    pointer-events: none !important;
}

/* + Add apartment toggle */
.wc-block-components-address-form__address_2-toggle {
    color: var(--gold) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: block !important;
    margin-bottom: 12px !important;
    direction: rtl !important;
}

/* ── خيارات الدفع ─────────────────────────── */
.wc-block-components-radio-control-accordion-option {
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    overflow: hidden !important;
    transition: border-color 0.3s !important;
}
.wc-block-components-radio-control-accordion-option--checked-option-highlighted {
    border-color: var(--gold) !important;
    background: rgba(200,169,106,0.05) !important;
}

label.wc-block-components-radio-control__option {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    cursor: pointer !important;
    direction: rtl !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
    margin: 0 !important;
}

.wc-block-components-radio-control__input {
    accent-color: var(--gold) !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}

.wc-block-components-payment-method-label {
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: var(--text) !important;
}

.wc-block-components-radio-control-accordion-content {
    padding: 0 16px 14px !important;
    font-size: 0.82rem !important;
    color: var(--text2) !important;
    line-height: 1.7 !important;
    direction: rtl !important;
    border-top: 1px solid var(--border) !important;
}

/* ── ملاحظة الطلب ─────────────────────────── */
.wc-block-checkout__add-note {
    direction: rtl !important;
}
.wc-block-components-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    direction: rtl !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
}
.wc-block-components-checkbox__input {
    accent-color: var(--gold) !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}
.wc-block-components-checkbox__label {
    font-size: 0.9rem !important;
    color: var(--text2) !important;
}

/* ── Terms ────────────────────────────────── */
.wc-block-checkout__terms {
    font-size: 0.82rem !important;
    color: var(--text2) !important;
    direction: rtl !important;
    text-align: right !important;
    padding: 16px 0 !important;
    border-top: 1px solid var(--border) !important;
}
.wc-block-checkout__terms a {
    color: var(--gold) !important;
}

/* ── أزرار الـ actions ────────────────────── */
.wc-block-checkout__actions_row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    direction: rtl !important;
    flex-wrap: wrap !important;
}

/* زر Place Order */
button.wc-block-components-checkout-place-order-button {
    background: linear-gradient(135deg, #C8A96A 0%, #A8843E 50%, #C8A96A 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 36px !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 20px rgba(200,169,106,0.35) !important;
    flex: 1 !important;
}
button.wc-block-components-checkout-place-order-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 32px rgba(200,169,106,0.5) !important;
}
.wc-block-components-checkout-place-order-button__text {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
}

/* زر Return to Cart */
a.wc-block-components-checkout-return-to-cart-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--text2) !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
    white-space: nowrap !important;
}
a.wc-block-components-checkout-return-to-cart-button:hover {
    color: var(--gold) !important;
}

/* ── ملخص الطلب (Sidebar) ─────────────────── */
.wp-block-woocommerce-checkout-order-summary-block {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    direction: rtl !important;
}

/* عنوان Order Summary */
.wc-block-components-checkout-order-summary__title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 14px !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid var(--border) !important;
    cursor: pointer !important;
    direction: rtl !important;
}
.wc-block-components-checkout-order-summary__title-text {
    font-family: 'Tajawal', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--text) !important;
    margin: 0 !important;
}
.wc-block-components-checkout-order-summary__title-price {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    color: var(--gold) !important;
}

/* منتجات الملخص */
.wc-block-components-order-summary-item {
    display: grid !important;
    grid-template-columns: 56px 1fr auto !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--border) !important;
    direction: rtl !important;
}

.wc-block-components-order-summary-item__image {
    position: relative !important;
    width: 56px !important;
}
.wc-block-components-order-summary-item__image img {
    width: 56px !important;
    height: 56px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 1px solid var(--border) !important;
    display: block !important;
}
.wc-block-components-order-summary-item__quantity {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    width: 20px !important;
    height: 20px !important;
    background: var(--gold) !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

h3.wc-block-components-product-name {
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    color: var(--text) !important;
    margin-bottom: 4px !important;
}
.wc-block-components-order-summary-item__individual-prices .wc-block-formatted-money-amount {
    font-size: 0.82rem !important;
    color: var(--text2) !important;
}
.wc-block-components-order-summary-item__total-price .wc-block-formatted-money-amount {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    color: var(--gold) !important;
}

/* كوبون في الملخص */
.wc-block-components-panel__button {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: none !important;
    border: none !important;
    color: var(--gold) !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    font-family: 'Cairo', sans-serif !important;
    cursor: pointer !important;
    padding: 12px 0 !important;
    direction: rtl !important;
    width: 100% !important;
    text-align: right !important;
}

/* Subtotal و Total */
.wc-block-components-totals-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid var(--border) !important;
    direction: rtl !important;
}
.wc-block-components-totals-item__label {
    color: var(--text2) !important;
    font-size: 0.9rem !important;
}
.wc-block-components-totals-item__value .wc-block-formatted-money-amount,
.wc-block-components-totals-item > .wc-block-formatted-money-amount {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: var(--text) !important;
}

/* Total الكلي */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-weight: 800 !important;
    font-size: 1rem !important;
    color: var(--text) !important;
}
.wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    color: var(--gold) !important;
}

/* موبايل */
@media (max-width: 768px) {
    .wc-block-components-sidebar-layout.wc-block-checkout {
        grid-template-columns: 1fr !important;
    }
    .wc-block-components-sidebar.wc-block-checkout__sidebar {
        position: static !important;
        order: -1 !important;
    }
    .wc-block-checkout__actions_row {
        flex-direction: column !important;
    }
    button.wc-block-components-checkout-place-order-button {
        width: 100% !important;
    }
}
/* ============================================================
   CHECKOUT — Layout & Order Summary Fix
============================================================ */

/* الـ wrapper الخارجي */
.woocommerce-checkout .post-content,
.woocommerce-checkout .entry-content {
    padding: 0 !important;
    max-width: 100% !important;
}

/* الـ grid — فورم يمين، ملخص يسار */
.wc-block-components-sidebar-layout.wc-block-checkout {
    grid-template-columns: minmax(0, 1fr) 360px !important;
    gap: 28px !important;
    padding: 0 !important;
}

/* ── Order Summary Sidebar ────────────────── */
.wp-block-woocommerce-checkout-order-summary-block {
    min-width: 0 !important;
    overflow: hidden !important;
}

/* عنوان Order Summary */
.wc-block-components-checkout-order-summary__title {
    flex-wrap: nowrap !important;
    gap: 8px !important;
}
.wc-block-components-checkout-order-summary__title-text {
    font-size: 1rem !important;
    white-space: nowrap !important;
}

/* منتجات الملخص — إصلاح الانكماش */
.wc-block-components-order-summary-item {
    grid-template-columns: 56px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    overflow: hidden !important;
}

/* منع كسر النص في اسم المنتج */
h3.wc-block-components-product-name {
    white-space: normal !important;
    word-break: break-word !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
}

/* الوصف لا يتجاوز العمود */
.wc-block-components-product-metadata__description p {
    white-space: normal !important;
    word-break: break-word !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* السعر الإجمالي للمنتج */
.wc-block-components-order-summary-item__total-price {
    white-space: nowrap !important;
    text-align: left !important;
}

/* ── الفورم — إصلاح الـ inputs ───────────── */

/* الـ form grid — حقلين جنب بعض */
.wc-block-components-address-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}

/* بعض الحقول تاخد العرض كامل */
.wc-block-components-address-form__address_1,
.wc-block-components-address-form__address_2-toggle,
.wc-block-components-address-form__address_2-hidden-input,
.wc-block-components-address-form__country,
.wc-block-components-address-form__email,
#contact {
    grid-column: 1 / -1 !important;
}

/* الـ input داخل text-input */
.wc-block-components-text-input {
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}
.wc-block-components-text-input input {
    padding: 12px 14px !important;
}

/* Select container بدون margin زيادة */
.wc-blocks-components-select__container {
    margin-bottom: 0 !important;
}

/* ── خيارات الدفع — محاذاة ──────────────── */
label.wc-block-components-radio-control__option {
    justify-content: space-between !important;
    flex-direction: row !important;
}
.wc-block-components-radio-control__option-layout {
    flex: 1 !important;
    text-align: right !important;
    padding-right: 10px !important;
}

/* ── أزرار الـ actions ────────────────────── */
.wc-block-checkout__actions_row {
    margin-top: 8px !important;
}
button.wc-block-components-checkout-place-order-button {
    padding: 15px 24px !important;
}

/* ── Subtotal و Total ─────────────────────── */
.wc-block-components-totals-wrapper {
    margin-top: 0 !important;
}

/* موبايل */
@media (max-width: 900px) {
    .wc-block-components-sidebar-layout.wc-block-checkout {
        grid-template-columns: 1fr !important;
    }
    .wc-block-components-sidebar.wc-block-checkout__sidebar {
        position: static !important;
        order: -1 !important;
    }
    .wc-block-components-address-form {
        grid-template-columns: 1fr !important;
    }
    .wc-block-components-address-form > * {
        grid-column: 1 !important;
    }
}
/* ============================================================
   CHECKOUT — Final Polish
============================================================ */

/* إجبار الـ Billing form يظهر دايماً (مش الـ card) */
.wc-block-components-address-address-wrapper .wc-block-components-address-card-wrapper {
    display: none !important;
}
.wc-block-components-address-form-wrapper {
    display: block !important;
}

/* ── Order Summary — عرض أكبر ────────────── */
.wc-block-components-sidebar-layout.wc-block-checkout {
    grid-template-columns: minmax(0, 1fr) 320px !important;
}

.wp-block-woocommerce-checkout-order-summary-block {
    overflow: visible !important;
}

/* منتجات الملخص — layout أفضل */
.wc-block-components-order-summary-item {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    align-items: flex-start !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--border) !important;
    direction: rtl !important;
}

.wc-block-components-order-summary-item__image {
    flex-shrink: 0 !important;
    width: 52px !important;
}
.wc-block-components-order-summary-item__image img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    border: 1px solid var(--border) !important;
}

.wc-block-components-order-summary-item__description {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

h3.wc-block-components-product-name {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 4px !important;
}

.wc-block-components-product-metadata__description p {
    font-size: 0.75rem !important;
    color: var(--text2) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
}

.wc-block-components-order-summary-item__total-price {
    flex-shrink: 0 !important;
    text-align: left !important;
}
.wc-block-components-order-summary-item__total-price .wc-block-formatted-money-amount {
    font-size: 0.88rem !important;
    white-space: nowrap !important;
}

/* ── Address form grid ────────────────────── */
#billing.wc-block-components-address-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    direction: rtl !important;
}

/* حقول العرض الكامل */
.wc-block-components-address-form__address_1,
.wc-block-components-address-form__address_2-toggle,
.wc-block-components-address-form__country {
    grid-column: 1 / -1 !important;
}

/* حقل الـ email في contact */
#contact.wc-block-components-address-form {
    display: block !important;
}

/* inputs تنسيق موحد */
.wc-block-components-text-input {
    margin-bottom: 0 !important;
}
.wc-block-components-text-input input {
    padding: 13px 14px !important;
    background: var(--surface2) !important;
    border-color: var(--border) !important;
}
.wc-block-components-text-input input:focus {
    background: var(--bg) !important;
    border-color: var(--gold) !important;
}

/* Select */
.wc-blocks-components-select__container {
    background: var(--surface2) !important;
    margin-bottom: 0 !important;
    padding: 8px 14px !important;
}
.wc-blocks-components-select__label {
    font-size: 0.75rem !important;
    margin-bottom: 2px !important;
}
.wc-blocks-components-select__select {
    font-size: 0.9rem !important;
    padding: 4px 0 !important;
}

/* ── خيارات الدفع ─────────────────────────── */
.wc-block-components-radio-control-accordion-option {
    margin-bottom: 8px !important;
}
label.wc-block-components-radio-control__option {
    padding: 12px 14px !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}
.wc-block-components-radio-control__option-layout {
    text-align: right !important;
}
.wc-block-components-radio-control-accordion-content {
    font-size: 0.8rem !important;
    padding: 8px 14px 12px !important;
}

/* ── Place Order button ───────────────────── */
.wc-block-checkout__actions_row {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    direction: rtl !important;
}
button.wc-block-components-checkout-place-order-button {
    flex: 1 !important;
    padding: 14px !important;
}
a.wc-block-components-checkout-return-to-cart-button {
    white-space: nowrap !important;
    font-size: 0.82rem !important;
}

/* ── موبايل ───────────────────────────────── */
@media (max-width: 900px) {
    .wc-block-components-sidebar-layout.wc-block-checkout {
        grid-template-columns: 1fr !important;
    }
    .wc-block-components-sidebar.wc-block-checkout__sidebar {
        position: static !important;
        order: -1 !important;
    }
    #billing.wc-block-components-address-form {
        grid-template-columns: 1fr !important;
    }
    .wc-block-components-address-form__address_1,
    .wc-block-components-address-form__country {
        grid-column: 1 !important;
    }
}
/* ══════════════════════════════════════════════════════════════
   GT SCENT — WooCommerce Blocks Checkout Fix
   الهدف: إصلاح layout صفحة الـ Checkout (Gutenberg Blocks)
   ══════════════════════════════════════════════════════════════ */

/* ── Container الرئيسي ───────────────────────────────────────── */

.wc-block-checkout__main,
.wp-block-woocommerce-checkout {
    direction: rtl !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
}

/* Grid: عمودان — بيانات العميل | ملخص الطلب */
.wc-block-checkout {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 40px !important;
    align-items: start !important;
    direction: rtl !important;
}

/* ── العمود الأيمن: بيانات العميل + الدفع ───────────────────── */

.wc-block-checkout__main {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

/* ── العمود الأيسر: ملخص الطلب (sticky) ─────────────────────── */

.wc-block-checkout__sidebar,
.wc-block-components-sidebar {
    grid-column: 2 !important;
    grid-row: 1 !important;
    position: sticky !important;
    top: 100px !important;
    align-self: start !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 20px !important;
    padding: 28px 24px !important;
}

/* ── عناوين السيكشنز ──────────────────────────────────────────── */

.wc-block-checkout__main .wc-block-components-title,
.wc-block-checkout__main h2 {
    font-size: 18px !important;
    color: #fff !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    margin-bottom: 16px !important;
}

.wc-block-checkout__sidebar .wc-block-components-title,
.wc-block-checkout__sidebar h2 {
    font-size: 20px !important;
    color: #fff !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    margin-bottom: 20px !important;
}

/* ── Input Fields ─────────────────────────────────────────────── */

.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-select select,
.wc-block-checkout .wc-block-components-textarea textarea,
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout input[type="password"],
.wc-block-checkout select {
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 12px !important;
    color: #fff !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    direction: rtl !important;
    transition: border-color 0.2s, background 0.2s !important;
}

.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-select select:focus,
.wc-block-checkout input:focus,
.wc-block-checkout select:focus {
    border-color: rgba(201,168,76,0.55) !important;
    outline: none !important;
    background: rgba(255,255,255,0.07) !important;
    box-shadow: none !important;
}

/* Labels */
.wc-block-checkout .wc-block-components-text-input label,
.wc-block-checkout .wc-block-components-select label,
.wc-block-checkout label {
    color: rgba(255,255,255,0.75) !important;
    font-size: 14px !important;
    margin-bottom: 6px !important;
    display: block !important;
}

/* ── قسم الدفع ────────────────────────────────────────────────── */

.wc-block-checkout .wc-block-components-payment-methods,
.wc-block-checkout .wc-block-checkout__payment-method {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 16px !important;
    padding: 24px !important;
}

.wc-block-checkout .wc-block-components-payment-method-label {
    color: #fff !important;
    font-size: 15px !important;
}

/* ── زر تأكيد الطلب ───────────────────────────────────────────── */

.wc-block-checkout .wc-block-components-checkout-place-order-button,
.wc-block-checkout button.wc-block-components-button.wp-element-button {
    width: 100% !important;
    background: #C9A84C !important;
    color: #111 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    margin-top: 20px !important;
    transition: background 0.25s, transform 0.15s !important;
    letter-spacing: 0.5px !important;
}

.wc-block-checkout .wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout button.wc-block-components-button.wp-element-button:hover {
    background: #b8963e !important;
    transform: translateY(-1px) !important;
}

/* ── ملخص الطلب (Order Summary) ──────────────────────────────── */

.wc-block-order-summary-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    direction: rtl !important;
}

.wc-block-order-summary-item__image img {
    width: 52px !important;
    height: 52px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

.wc-block-order-summary-item__description,
.wc-block-order-summary-item__individual-prices {
    color: #fff !important;
    font-size: 14px !important;
}

/* الإجمالي */
.wc-block-checkout__sidebar .wc-block-components-totals-item--total .wc-block-components-totals-item__label,
.wc-block-checkout__sidebar .wc-block-components-totals-item--total .wc-block-components-totals-item__value {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #C9A84C !important;
}

.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
    color: rgba(255,255,255,0.85) !important;
    font-size: 14px !important;
}

/* ── كوبون الخصم ──────────────────────────────────────────────── */

.wc-block-checkout .wc-block-components-totals-coupon__form,
.wc-block-checkout .wc-block-components-coupon {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
}

/* ── رسائل الخطأ ──────────────────────────────────────────────── */

.wc-block-checkout .wc-block-components-validation-error,
.wc-block-checkout .wc-block-components-notice-banner {
    direction: rtl !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    margin-bottom: 12px !important;
    font-size: 13px !important;
}

/* ── Checkbox (شحن مختلف / الشروط) ───────────────────────────── */

.wc-block-checkout .wc-block-components-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
    color: rgba(255,255,255,0.8) !important;
    font-size: 14px !important;
    margin-bottom: 12px !important;
}

/* ══ Mobile ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .wc-block-checkout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px 16px !important;
    }

    .wc-block-checkout__main  { grid-column: 1 !important; grid-row: 1 !important; }
    .wc-block-checkout__sidebar { 
        grid-column: 1 !important; 
        grid-row: 2 !important; 
        position: static !important; 
    }
}