/* ============ One Trade — Design System ============ */
:root {
  --primary: #0d9488;
  --primary-dark: #0a7367;
  --primary-light: #14b8a6;
  --accent: #22d3ee;
  --mint: #99f6e4;
  --ink: #031a22;
  --ink-2: #062a33;
  --dark: #0a2540;
  --dark-2: #0f172a;
  --light: #f3f9f8;
  --white: #ffffff;
  --gray: #5b6b7c;
  --gray-light: #e2ebee;
  --gradient: linear-gradient(135deg, #0d9488 0%, #0a4a5c 60%, #0a2540 100%);
  --gradient-2: linear-gradient(120deg, #14b8a6, #22d3ee);
  --gradient-text: linear-gradient(90deg, #0d9488, #22d3ee, #0d9488);
  --shadow-sm: 0 2px 10px rgba(3, 26, 34, 0.06);
  --shadow-md: 0 12px 30px rgba(3, 26, 34, 0.1);
  --shadow-lg: 0 30px 60px -15px rgba(3, 26, 34, 0.28);
  --glow: 0 0 0 1px rgba(20, 184, 166, 0.25), 0 20px 50px -10px rgba(20, 184, 166, 0.45);
  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition: all 0.4s var(--ease);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  font-family: 'Plus Jakarta Sans', 'Cairo', system-ui, sans-serif;
  background: var(--light);
  color: var(--dark-2);
  line-height: 1.7;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: 'Cairo', 'Tajawal', sans-serif; line-height: 1.75; }
img.flag { display: inline-block; width: 1.25em; height: auto; vertical-align: -0.12em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }
/* Plus Jakarta Sans tops out at 800; never fake a 900 (it breaks the spacing). */
body { font-synthesis: none; }
html[lang="en"] .section-title, html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.02em; }
/* Icons are written for RTL (arrow-left = "forward"); mirror them for English. */
[dir="ltr"] .fa-arrow-left, [dir="ltr"] .fa-arrow-right, [dir="ltr"] .fa-chevron-left, [dir="ltr"] .fa-chevron-right { transform: scaleX(-1); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--primary-light); color: #fff; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(13, 148, 136, 0.1); color: var(--primary);
  padding: 7px 18px; border-radius: 50px;
  font-weight: 700; font-size: 14px; margin-bottom: 16px;
  border: 1px solid rgba(13, 148, 136, 0.18);
}
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.3;
  color: var(--dark); margin-bottom: 14px;
}
.section-title .grad, .grad {
  background: var(--gradient-text); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 6s linear infinite;
}
@keyframes gradShift { to { background-position: -200% 0; } }
.section-sub { color: var(--gray); font-size: 17px; max-width: 640px; margin-bottom: 48px; }
.section-header { text-align: center; }
.section-header .section-sub { margin-inline: auto; }
section { position: relative; }

/* ============ Buttons ============ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 50px;
  font-weight: 800; font-size: 15px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s, color 0.35s;
  white-space: nowrap;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg); transition: left 0.7s var(--ease);
}
.btn-primary:hover::after { left: 140%; }
.btn-primary:hover { box-shadow: var(--glow); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-md); }
.btn-light:hover { box-shadow: 0 20px 40px -10px rgba(255, 255, 255, 0.35); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.35); color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.magnetic { transition: transform 0.25s var(--ease), box-shadow 0.35s; }

/* ============ Scroll progress ============ */
.scroll-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 2000; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--gradient-2); transform-origin: right; transform: scaleX(0); }
[dir="ltr"] .scroll-progress span { transform-origin: left; }

/* ============ Top bar ============ */
.top-bar { background: var(--ink); color: rgba(255, 255, 255, 0.75); font-size: 13.5px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar-links { display: flex; gap: 22px; flex-wrap: wrap; }
.top-bar-links a, .top-bar-links span { display: inline-flex; align-items: center; gap: 6px; transition: color 0.3s; }
.top-bar-links a:hover { color: var(--accent); }
.top-bar-social { display: flex; gap: 10px; }
.top-bar-social a {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08); border-radius: 50%; transition: var(--transition);
}
.top-bar-social a:hover { background: var(--primary); transform: translateY(-2px); }

/* ============ Navbar ============ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s, background 0.4s, border-color 0.4s;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .navbar { background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
}
.navbar.scrolled { box-shadow: 0 10px 30px -12px rgba(3, 26, 34, 0.18); border-color: var(--gray-light); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; object-fit: cover; border-radius: 12px; }
.brand-text { font-weight: 900; font-size: 20px; color: var(--dark); }
.brand-text span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; padding: 9px 16px; border-radius: 50px; font-weight: 700; color: var(--dark-2); transition: color 0.3s, background 0.3s; }
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; right: 50%; width: 0; height: 2px;
  background: var(--gradient-2); border-radius: 2px; transition: width 0.35s var(--ease), right 0.35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 40%; right: 30%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 10px 20px; font-size: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; position: relative; z-index: 1003; }
.nav-toggle span { width: 24px; height: 3px; background: var(--dark); border-radius: 3px; }
.cart-toggle { position: relative; overflow: visible; }
.cart-count {
  position: absolute; top: -8px; inset-inline-end: -8px; background: #ef4444; color: #fff;
  font-size: 12px; font-weight: 800; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 50px; display: flex; align-items: center; justify-content: center;
}

/* ============ Hero ============ */
.hero {
  min-height: calc(100vh - 110px);
  display: flex; align-items: center;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(34, 211, 238, 0.22), transparent 60%),
              radial-gradient(900px 600px at 0% 100%, rgba(20, 184, 166, 0.28), transparent 60%),
              linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, #073b45 100%);
  overflow: hidden; color: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 50%, #000 10%, transparent 70%);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 30px; align-items: center; padding-block: 60px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.08); color: var(--mint);
  padding: 8px 18px; border-radius: 50px; font-size: 14px; font-weight: 700;
  margin-bottom: 22px; border: 1px solid rgba(153, 246, 228, 0.25);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
.hero h1 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 900; line-height: 1.22; margin-bottom: 20px; }
.hero h1 .grad { background-image: linear-gradient(90deg, var(--accent), var(--mint), var(--accent)); }
.hero p { color: rgba(255, 255, 255, 0.78); font-size: 18px; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats div {
  padding: 14px 22px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stats strong { display: block; font-size: 26px; font-weight: 900; color: #fff; line-height: 1.2; }
.hero-stats span { color: rgba(255, 255, 255, 0.6); font-size: 13px; }

.hero-stage { position: relative; width: 100%; max-width: 580px; aspect-ratio: 1; margin-inline: auto; perspective: 1000px; }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; transition: opacity 1s var(--ease); }
.hero-stage.webgl-ready canvas { opacity: 1; }
.hero-stage::before {
  content: ''; position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.45), transparent 65%); filter: blur(30px);
}
.hero-fallback {
  position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: cover; border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.1); transition: opacity 0.8s;
  opacity: 0;
}
.hero-stage.webgl-failed .hero-fallback { opacity: 1; }
.hero-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-radius: 16px; color: #fff;
  background: rgba(6, 42, 51, 0.72); border: 1px solid rgba(153, 246, 228, 0.2);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
  animation: bob 6s ease-in-out infinite;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-chip { background: rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.hero-chip .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--gradient-2); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.hero-chip strong { display: block; font-size: 14.5px; }
.hero-chip span { font-size: 12.5px; color: rgba(255, 255, 255, 0.65); }
.hero-chip.c1 { top: 10%; right: -2%; }
.hero-chip.c2 { bottom: 12%; left: -2%; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -14px, 0); } }
.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 20px;
}
.scroll-hint::after {
  content: ''; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--mint); border-radius: 4px; animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ============ Marquee ============ */
.marquee { background: #fff; border-bottom: 1px solid var(--gray-light); overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 10px; color: var(--gray); font-weight: 800; font-size: 15px; white-space: nowrap; }
.marquee-item i { color: var(--primary); font-size: 20px; }
@keyframes marquee { to { transform: translateX(50%); } }
[dir="ltr"] .marquee-track { animation-name: marqueeLtr; }
@keyframes marqueeLtr { to { transform: translateX(-50%); } }

/* ============ 3D tilt ============ */
.tilt {
  position: relative;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.6s var(--ease), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d;
}
.tilt.tilting { --lift: -8px; transition: transform 0.1s linear, box-shadow 0.4s var(--ease); box-shadow: var(--shadow-lg); }
.glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.45), transparent 50%);
  opacity: 0; transition: opacity 0.3s; mix-blend-mode: overlay;
}
.tilt.tilting .glare { opacity: 1; }
.depth-card { perspective: 1000px; }
.service-card, .value-card, .testi-card, .core-value, .contact-info-card { position: relative; }

/* ============ Services ============ */
.services { padding: 110px 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 26px; }
.service-card {
  height: 100%; background: #fff; padding: 36px 28px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-light); overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; background: var(--gradient); opacity: 0;
  transition: opacity 0.5s var(--ease); z-index: 0;
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-icon {
  width: 64px; height: 64px; border-radius: 18px; margin-bottom: 22px;
  background: var(--gradient-2); color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(20, 184, 166, 0.6);
  transition: transform 0.5s var(--ease);
}
.service-card:hover .service-icon { transform: rotate(-10deg) scale(1.1); background: rgba(255, 255, 255, 0.18); }
.service-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; color: var(--dark); transition: color 0.4s; }
.service-card p { color: var(--gray); font-size: 15px; transition: color 0.4s; }
.service-card:hover h3 { color: #fff; }
.service-card:hover p { color: rgba(255, 255, 255, 0.85); }
.service-num { position: absolute !important; top: 18px; inset-inline-end: 22px; font-size: 42px; font-weight: 900; color: rgba(13, 148, 136, 0.08); transition: color 0.4s; }
.service-card:hover .service-num { color: rgba(255, 255, 255, 0.12); }

/* ============ Products ============ */
.products-preview { padding: 110px 0; background: #fff; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 26px; }
.product-card { background: var(--light); border-radius: var(--radius); border: 1px solid var(--gray-light); overflow: hidden; }
.product-img { position: relative; height: 220px; overflow: hidden; background: var(--gray-light); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.product-card:hover .product-img img { transform: scale(1.1); }
.product-badge {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2;
  background: var(--gradient-2); color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 14px; border-radius: 50px; box-shadow: 0 8px 18px -6px rgba(20, 184, 166, 0.7);
}
.product-body { padding: 20px; }
.product-body .cat { color: var(--primary); font-size: 13px; font-weight: 700; display: block; margin-bottom: 4px; }
.product-body h4 { font-size: 17px; font-weight: 800; color: var(--dark); line-height: 1.5; min-height: 51px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.price { font-weight: 900; color: var(--primary-dark); font-size: 18px; }
.add-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease), background 0.3s;
  box-shadow: 0 10px 20px -8px rgba(13, 148, 136, 0.8);
}
.add-btn:hover { transform: rotate(-12deg) scale(1.12); }
.add-btn.added { background: #16a34a; transform: scale(1.15); }

/* skeletons & states */
.skeleton { border-radius: var(--radius); background: linear-gradient(100deg, #e9f1f2 30%, #f7fbfb 50%, #e9f1f2 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; }
.skeleton-card { height: 360px; }
.skeleton-course { height: 440px; }
@keyframes shimmer { to { background-position: -150% 0; } }
.grid-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--gray); }
.grid-state i { font-size: 40px; color: var(--primary-light); margin-bottom: 12px; }

/* ============ Filters ============ */
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; min-height: 44px; }
.filter-btn {
  background: #fff; border: 1.5px solid var(--gray-light);
  padding: 9px 22px; border-radius: 50px; font-weight: 700; font-size: 14px; color: var(--dark-2);
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--primary-light); color: var(--primary); }
.filter-btn.active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: var(--shadow-md); }

/* ============ Courses ============ */
.courses-preview { padding: 110px 0; overflow: hidden; }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.course-card { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.course-media { position: relative; display: block; height: 220px; overflow: hidden; }
.course-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.5s; }
.course-card:hover .course-media img { transform: scale(1.12); filter: brightness(0.6); }
.course-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(3, 26, 34, 0.85)); }
.course-level {
  position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2; color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 6px 16px; border-radius: 50px;
  background: rgba(3, 26, 34, 0.55); border: 1px solid rgba(255, 255, 255, 0.25);
}
.play-badge {
  position: absolute; top: 50%; left: 50%; z-index: 2; transform: translate(-50%, -50%) scale(0.9);
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gradient-2); color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px rgba(34, 211, 238, 0.2); transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.course-card:hover .play-badge { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 0 16px rgba(34, 211, 238, 0.15); }
.course-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.course-duration { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.course-body h4 { font-size: 18px; font-weight: 800; color: var(--dark); margin-bottom: 10px; line-height: 1.45; }
.course-desc { color: var(--gray); font-size: 14px; margin-bottom: 16px; flex: 1; }
.course-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-dark); font-weight: 800; font-size: 14.5px; transition: color 0.3s; }
.course-link i { transition: transform 0.35s var(--ease); }
.course-card:hover .course-link { color: var(--primary); }
.course-card:hover .course-link i { transform: translateX(-6px); }
[dir="ltr"] .course-card:hover .course-link i { transform: scaleX(-1) translateX(-6px); }

/* ============ About preview ============ */
.about-preview { padding: 110px 0; background: #fff; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-media { position: relative; perspective: 1200px; }
.about-frame { position: relative; transform: rotateY(-8deg) rotateX(4deg); transform-style: preserve-3d; transition: transform 0.8s var(--ease); }
.about-media:hover .about-frame { transform: rotateY(0) rotateX(0); }
.about-frame img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.about-frame::before {
  content: ''; position: absolute; inset: -18px 18px 18px -18px; border-radius: var(--radius);
  border: 2px solid rgba(13, 148, 136, 0.35); transform: translateZ(-40px);
}
.about-badge {
  position: absolute; bottom: -24px; inset-inline-start: -18px; transform: translateZ(60px);
  background: #fff; padding: 20px 26px; border-radius: 18px; box-shadow: var(--shadow-lg); text-align: center;
}
.about-badge strong { display: block; font-size: 34px; color: var(--primary); font-weight: 900; line-height: 1.1; }
.about-badge span { font-size: 13px; color: var(--gray); }
.about-list { display: grid; gap: 14px; margin-top: 24px; }
.about-list li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.about-list li i { color: var(--primary); font-size: 20px; }

/* ============ Stats ============ */
.stats-band { background: var(--gradient); padding: 70px 0; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 200px at 20% 0%, rgba(255, 255, 255, 0.15), transparent); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-grid strong { display: block; font-size: clamp(32px, 4vw, 44px); color: #fff; font-weight: 900; }
.stats-grid span { color: rgba(255, 255, 255, 0.75); font-size: 14px; }

/* ============ Testimonials ============ */
.testimonials { padding: 110px 0; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 26px; }
.testi-card { background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-light); overflow: hidden; }
.testi-card .quote { position: absolute; top: 14px; inset-inline-end: 20px; font-size: 54px; color: rgba(13, 148, 136, 0.1); }
.testi-stars { color: #f59e0b; margin-bottom: 14px; font-size: 14px; }
.testi-card p { color: var(--gray); margin-bottom: 20px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(13, 148, 136, 0.2); }
.testi-person strong { display: block; font-size: 14.5px; color: var(--dark); }
.testi-person span { font-size: 12.5px; color: var(--gray); }

/* ============ CTA ============ */
.cta { padding: 90px 0; }
.cta-box {
  position: relative; border-radius: 30px; padding: 70px 40px; text-align: center; overflow: hidden;
  background: linear-gradient(160deg, var(--ink), var(--ink-2)); isolation: isolate;
}
.cta-box::before {
  content: ''; position: absolute; inset: -50%; z-index: -2;
  background: conic-gradient(from 0deg, transparent 0 60%, var(--accent), var(--primary-light), transparent 90%);
  animation: spin 6s linear infinite;
}
.cta-box::after { content: ''; position: absolute; inset: 2px; border-radius: 28px; z-index: -1; background: linear-gradient(160deg, var(--ink), #07404a); }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-box h2 { color: #fff; font-size: clamp(26px, 4vw, 40px); font-weight: 900; margin-bottom: 14px; }
.cta-box p { color: rgba(255, 255, 255, 0.78); margin-bottom: 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ Page header ============ */
.page-header {
  padding: 80px 0 70px; text-align: center; overflow: hidden; color: #fff;
  background: radial-gradient(700px 300px at 80% 0%, rgba(34, 211, 238, 0.25), transparent 60%),
              linear-gradient(160deg, var(--ink), var(--ink-2) 60%, #07404a);
}
.page-header::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}
.page-header .container { position: relative; }
.page-header h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 900; margin-bottom: 10px; }
.breadcrumb { color: rgba(255, 255, 255, 0.7); display: flex; gap: 8px; justify-content: center; font-size: 14px; }
.breadcrumb a:hover { color: var(--accent); }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); background: radial-gradient(circle at 30% 30%, rgba(153, 246, 228, 0.5), rgba(20, 184, 166, 0.05)); pointer-events: none; }
.orb.o1 { width: 180px; height: 180px; top: -40px; right: 8%; }
.orb.o2 { width: 110px; height: 110px; bottom: -30px; left: 12%; }

/* ============ About page ============ */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 24px; }
.value-card { height: 100%; background: #fff; padding: 32px 24px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-light); text-align: center; overflow: hidden; }
.value-card h4 { font-size: 18px; font-weight: 800; color: var(--dark); }
.value-card p { color: var(--gray); font-size: 14.5px; margin-top: 8px; }
.value-icon { width: 60px; height: 60px; margin: 0 auto 18px; background: var(--gradient-2); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; }
.core-value {
  max-width: 820px; margin: 0 auto; text-align: center; padding: 50px 30px; border-radius: 28px;
  background: linear-gradient(160deg, var(--ink), #07404a); color: #fff; overflow: hidden;
}
.core-value .quote-mark { font-size: 60px; color: var(--accent); line-height: 1; }
.core-value h3 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 900; margin: 10px 0; }
.core-value p { color: rgba(255, 255, 255, 0.75); }
.timeline { position: relative; max-width: 720px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; inset-inline-start: 19px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--primary-light), var(--gray-light)); }
.timeline-item { position: relative; padding-inline-start: 60px; margin-bottom: 40px; }
.timeline-item::before { content: ''; position: absolute; inset-inline-start: 12px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.timeline-item strong { display: block; color: var(--primary); font-size: 14px; }
.timeline-item h4 { font-size: 18px; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.timeline-item p { color: var(--gray); font-size: 15px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ============ Contact page ============ */
.contact-wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; }
.contact-wrap > *, .form-group, .form-row > * { min-width: 0; }
.form-group select { min-width: 0; max-width: 100%; }
.contact-info-card { background: linear-gradient(160deg, var(--ink), #07404a); border-radius: var(--radius); padding: 40px 32px; color: #fff; overflow: hidden; }
.contact-info-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.contact-info-card > p { color: rgba(255, 255, 255, 0.78); margin-bottom: 30px; font-size: 15px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-item .ic { width: 44px; height: 44px; background: rgba(255, 255, 255, 0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; color: var(--mint); }
.contact-item strong { display: block; margin-bottom: 2px; font-size: 15px; }
.contact-item span, .contact-item a { color: rgba(255, 255, 255, 0.8); font-size: 14px; display: block; }
.contact-item a:hover { color: var(--accent); }
.contact-social-row { display: flex; gap: 12px; margin-top: 10px; }
.contact-social-row a { width: 42px; height: 42px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.contact-social-row a:hover { background: #fff; color: var(--primary-dark); transform: translateY(-3px); }
.contact-form-card { background: #fff; border-radius: var(--radius); padding: 40px 32px; box-shadow: var(--shadow-md); border: 1px solid var(--gray-light); }
.contact-form-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; color: var(--dark); }
.contact-form-card > p { color: var(--gray); margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 14px; font-weight: 700; color: var(--dark-2); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--gray-light); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px; background: var(--light); color: var(--dark-2); transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ============ Cart drawer ============ */
.cart-overlay { position: fixed; inset: 0; background: rgba(3, 26, 34, 0.55); z-index: 1099; opacity: 0; visibility: hidden; transition: var(--transition); }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; inset-inline-end: 0; width: 100%; max-width: 400px; height: 100vh; height: 100dvh;
  background: #fff; z-index: 1100; box-shadow: 10px 0 40px rgba(0, 0, 0, 0.2);
  transform: translateX(-105%); transition: transform 0.5s var(--ease); display: flex; flex-direction: column;
  /* RTL: slides in from the left (inline end) */
}
.cart-drawer.open { transform: translateX(0); }
[dir="ltr"] .cart-drawer:not(.open) { transform: translateX(105%); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 22px; border-bottom: 1px solid var(--gray-light); }
.cart-head h3 { font-size: 18px; font-weight: 800; }
.cart-close { background: var(--light); width: 38px; height: 38px; border-radius: 50%; font-size: 16px; }
.cart-panel-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--gray-light); }
.cart-line-info strong { display: block; font-size: 14.5px; }
.cart-line-info span { font-size: 13px; color: var(--gray); }
.cart-qty { display: flex; gap: 6px; }
.cart-qty button { width: 30px; height: 30px; border-radius: 8px; background: var(--light); font-weight: 900; font-size: 16px; }
.cart-qty button:hover { background: var(--primary); color: #fff; }
.cart-empty { text-align: center; color: var(--gray); padding: 40px 0; }
.cart-empty i { display: block; font-size: 34px; color: var(--gray-light); margin-bottom: 10px; }
.cart-foot { padding: 22px; border-top: 1px solid var(--gray-light); }
.cart-total { display: flex; justify-content: space-between; font-weight: 900; font-size: 17px; margin-bottom: 16px; }

/* ============ Footer ============ */
footer { position: relative; background: var(--ink); color: rgba(255, 255, 255, 0.68); padding-top: 80px; overflow: hidden; }
.footer-glow { position: absolute; top: -200px; left: 50%; width: 800px; height: 400px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(20, 184, 166, 0.25), transparent); pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-brand img { width: 42px; border-radius: 10px; }
.footer-brand span { color: #fff; font-weight: 900; font-size: 19px; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { transition: color 0.3s, padding 0.3s; font-size: 14.5px; }
.footer-col ul li a:hover { color: var(--accent); padding-inline-start: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; background: rgba(255, 255, 255, 0.07); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.footer-contact li i { color: var(--primary-light); margin-top: 5px; }
.footer-bottom { position: relative; padding: 22px 0; text-align: center; font-size: 13.5px; }

/* ============ Floating buttons ============ */
.wa-widget { position: fixed; bottom: 24px; left: 24px; z-index: 1050; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.wa-widget.right { left: auto; right: 24px; align-items: flex-end; }
.wa-widget.right ~ .to-top { right: auto; left: 24px; }
.wa-float {
  position: relative;
  width: 58px; height: 58px; background: #25d366; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5); animation: waPulse 2.2s infinite;
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-widget.open .wa-float { animation: none; transform: rotate(-8deg); }
.wa-pop {
  width: min(330px, calc(100vw - 48px)); background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px -12px rgba(3, 26, 34, 0.45); transform-origin: bottom left; animation: waPop 0.35s var(--ease);
}
.wa-widget.right .wa-pop { transform-origin: bottom right; }
@keyframes waPop { from { opacity: 0; transform: translateY(12px) scale(0.92); } }
.wa-pop-head { display: flex; align-items: center; gap: 12px; padding: 16px; background: linear-gradient(135deg, #075e54, #128c7e); color: #fff; }
.wa-pop-head img { width: 44px; height: 44px; border-radius: 50%; background: #fff; object-fit: cover; }
.wa-pop-head div { flex: 1; }
.wa-pop-head b { display: block; font-size: 16px; }
.wa-pop-head span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: 0.85; }
.wa-pop-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.wa-pop-close { color: #fff; font-size: 18px; width: 32px; height: 32px; border-radius: 50%; }
.wa-pop-close:hover { background: rgba(255, 255, 255, 0.15); }
.wa-pop-body { padding: 18px 16px; background: #e5ddd5; background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px); background-size: 14px 14px; }
.wa-bubble { position: relative; background: #fff; padding: 12px 14px; border-radius: 0 12px 12px 12px; font-size: 14.5px; line-height: 1.8; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); max-width: 92%; }
.wa-pop-cta { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px; padding: 12px; border-radius: 50px; background: #25d366; color: #fff; font-weight: 800; transition: background 0.3s; }
.wa-pop-cta:hover { background: #1ebe57; }
.max-note { font-size: 13.5px; color: var(--gray); margin: -6px 0 16px; }
.max-note a { color: var(--primary); font-weight: 800; }
.footer-contact li { align-items: flex-start; }
.phone-list { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.phone-list a:hover, .footer-contact a:hover { color: var(--accent); }
.map-wrap { position: relative; }
.map-open { position: absolute; bottom: 14px; inset-inline-end: 14px; background: #fff; color: var(--primary-dark); font-weight: 800; font-size: 14px; padding: 9px 16px; border-radius: 50px; box-shadow: var(--shadow-md); }
.map-open:hover { background: var(--primary); color: #fff; }
.contact-form-card .form-error { background: #fef2f2; color: #b91c1c; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
@media (max-width: 480px) {
  .wa-widget { bottom: 16px; left: 16px; }
  .wa-widget.right { right: 16px; }
}
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 48px; height: 48px; background: var(--gradient); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); box-shadow: var(--shadow-md);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ============ Auth pages ============ */
.auth-section { padding: 80px 0; }
.auth-section > .container { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 520px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--gray-light); padding: 44px 36px; }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head img { width: 60px; margin: 0 auto 16px; border-radius: 16px; }
.auth-head h1 { font-size: 24px; font-weight: 900; color: var(--dark); margin-bottom: 6px; }
.auth-head p { color: var(--gray); font-size: 14.5px; }
.auth-alert { display: none; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.auth-alert.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.auth-alert.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.account-type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.account-type-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.account-type-toggle label { cursor: pointer; border: 1.5px solid var(--gray-light); border-radius: var(--radius-sm); padding: 16px 12px; text-align: center; transition: var(--transition); }
.account-type-toggle label i { display: block; font-size: 22px; color: var(--primary); margin-bottom: 6px; }
.account-type-toggle label span { font-weight: 700; font-size: 14px; }
.account-type-toggle input:checked + label { border-color: var(--primary); background: rgba(13, 148, 136, 0.06); box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1); }
.wholesale-fields { display: grid; gap: 16px; margin-bottom: 18px; padding: 18px; background: var(--light); border-radius: var(--radius-sm); }
.auth-form .form-group { margin-bottom: 16px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--gray); }
.auth-foot a { color: var(--primary); font-weight: 800; }
.account-box { max-width: 640px; width: 100%; margin: 0 auto; }
.acc-header { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.acc-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.acc-header h2 { font-size: 20px; font-weight: 900; color: var(--dark); }
.acc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--gray-light); }
.acc-row span:first-child { color: var(--gray); font-size: 14px; font-weight: 600; }
.acc-row span:last-child { font-weight: 700; font-size: 14.5px; word-break: break-all; }
.acc-status { display: none; align-items: center; padding: 3px 14px; border-radius: 50px; font-size: 12.5px; font-weight: 700; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-none { background: var(--light); color: var(--gray); }
.logout-btn { width: 100%; margin-top: 30px; background: #fee2e2; color: #b91c1c; }
.logout-btn:hover { background: #fecaca; }

/* ============ Product cards: links / sold-out ============ */
.product-img { display: block; }
.product-body h4 a { transition: color 0.3s; }
.product-body h4 a:hover { color: var(--primary); }
.quick-view {
  position: absolute; bottom: 12px; right: 50%; transform: translate(50%, 12px); z-index: 2; opacity: 0;
  background: rgba(3, 26, 34, 0.78); color: #fff; font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 50px;
  transition: opacity 0.35s, transform 0.35s var(--ease); white-space: nowrap;
}
.product-card:hover .quick-view { opacity: 1; transform: translate(50%, 0); }
.product-badge.out { background: #64748b; box-shadow: none; }
.product-card.sold-out .product-img img { filter: grayscale(0.7); opacity: 0.8; }

/* ============ Product details ============ */
.pd-section { padding: 40px 0 70px; }
.pd-crumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--gray); margin-bottom: 26px; }
.pd-crumbs i { font-size: 10px; opacity: 0.6; }
.pd-crumbs a:hover { color: var(--primary); }
.pd-crumbs span { color: var(--dark); font-weight: 700; }
.pd-grid, .pd-skeleton { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 50px; align-items: start; }
.pd-skeleton > .skeleton { aspect-ratio: 1; }
.pd-gallery { position: sticky; top: 100px; }
.pd-main {
  position: relative; aspect-ratio: 1; border-radius: 26px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow-lg); cursor: zoom-in;
}
.pd-main .product-badge { top: 18px; inset-inline-start: 18px; font-size: 13px; padding: 6px 16px; }
.pd-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s var(--ease), opacity 0.18s; }
.pd-img.swap { opacity: 0; }
.pd-main.zooming .pd-img { transform: scale(1.9); }
.pd-zoom-hint {
  position: absolute; bottom: 16px; inset-inline-end: 16px; z-index: 2; font-size: 12.5px; font-weight: 700;
  background: rgba(255, 255, 255, 0.9); color: var(--dark); padding: 6px 12px; border-radius: 50px; transition: opacity 0.3s;
}
.pd-main.zooming .pd-zoom-hint { opacity: 0; }
@media (hover: none) { .pd-zoom-hint { display: none; } .pd-main { cursor: default; } }
.pd-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
.pd-thumb { flex: 0 0 76px; height: 76px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; opacity: 0.65; transition: opacity 0.3s, border-color 0.3s; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.active, .pd-thumb:hover { opacity: 1; border-color: var(--primary); }
.pd-cat { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 800; font-size: 14px; background: rgba(13, 148, 136, 0.08); padding: 5px 14px; border-radius: 50px; }
.pd-info h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; color: var(--dark); line-height: 1.35; margin: 14px 0 8px; }
.pd-brand { color: var(--gray); margin-bottom: 8px; }
.pd-price-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 0; margin-bottom: 18px; border-bottom: 1px solid var(--gray-light); }
.pd-price { font-size: 34px; font-weight: 900; color: var(--primary-dark); }
.pd-stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; padding: 5px 14px; border-radius: 50px; }
.pd-stock.in { background: #dcfce7; color: #166534; }
.pd-stock.out { background: #fee2e2; color: #991b1b; }
.pd-desc { color: var(--dark-2); font-size: 16px; line-height: 2; margin-bottom: 26px; }
.pd-buy { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pd-buy .btn { flex: 1 1 160px; }
.pd-add.done { background: #16a34a; }
.pd-qty { display: flex; align-items: center; border: 1.5px solid var(--gray-light); border-radius: 50px; background: #fff; overflow: hidden; }
.pd-qty button { width: 44px; height: 50px; font-size: 20px; font-weight: 900; color: var(--dark); transition: background 0.2s; }
.pd-qty button:hover { background: var(--light); color: var(--primary); }
.pd-qty input { width: 52px; height: 50px; border: 0; text-align: center; font-family: inherit; font-size: 17px; font-weight: 800; -moz-appearance: textfield; }
.pd-qty input::-webkit-outer-spin-button, .pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-qty input:focus { outline: none; }
.pd-links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; }
.pd-links a, .pd-links button { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--gray); transition: color 0.3s; }
.pd-links a:hover { color: #128c4a; }
.pd-links button:hover { color: var(--primary); }
.pd-perks { display: grid; gap: 12px; background: #fff; border: 1px solid var(--gray-light); border-radius: 18px; padding: 18px; }
.pd-perks li { display: flex; gap: 14px; align-items: center; }
.pd-perks li > i { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: rgba(13, 148, 136, 0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.pd-perks b { display: block; font-size: 14.5px; }
.pd-perks span { font-size: 13px; color: var(--gray); }
.pd-related { padding-top: 60px; }
@media (max-width: 992px) {
  .pd-grid, .pd-skeleton { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .pd-gallery { position: static; max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 480px) {
  .pd-price { font-size: 28px; }
  .pd-buy .pd-qty { flex: 1 1 100%; justify-content: space-between; }
  .pd-qty input { flex: 1; }
}

/* Comfortable touch targets for text links on phones and tablets */
@media (pointer: coarse), (max-width: 820px) {
  .course-link, .pd-links a, .pd-links button, .back-link, .auth-foot a, .pd-rating-line,
  .muted-note a, .max-note a, .review-login a, .product-body h4 a, .course-body h4 a, .pd-meta a {
    display: inline-flex; align-items: center; min-height: 40px;
  }
  .contact-item a { display: flex; align-items: center; min-height: 36px; }
  .back-link { justify-content: center; width: 100%; }
}
@media (max-width: 480px) {
  .contact-info-card, .contact-form-card { padding: 28px 18px; }
}

/* ============ Prices, ratings, chips ============ */
.price-stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; gap: 1px; }
.price-stack small { font-size: 11.5px; color: var(--gray); font-weight: 700; }
.price-old { color: #94a3b8; font-size: 13.5px; font-weight: 600; }
.wholesale-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; color: #7c2d12; background: #ffedd5; padding: 2px 8px; border-radius: 50px; margin-top: 3px; }
.product-badge.sale { background: linear-gradient(120deg, #ef4444, #f97316); box-shadow: 0 8px 18px -6px rgba(239, 68, 68, 0.6); }
.variant-chip { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; background: rgba(255, 255, 255, 0.92); color: var(--dark); font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 50px; }
.stars { display: inline-flex; gap: 2px; color: #f59e0b; font-size: 13px; }
.stars.lg { font-size: 20px; gap: 4px; }
.card-rating { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.card-rating small { color: var(--gray); font-size: 12px; }
.cart-line img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.cart-line-info { flex: 1; min-width: 0; }
.course-price-tag { position: absolute; bottom: 14px; inset-inline-start: 16px; z-index: 2; background: #fff; color: var(--primary-dark); font-weight: 900; font-size: 14px; padding: 5px 14px; border-radius: 50px; box-shadow: var(--shadow-md); }
.course-price-tag.free { background: #16a34a; color: #fff; }
.course-body h4 a:hover { color: var(--primary); }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; margin: 0 4px; }

/* ============ Product details: variants / wholesale / tabs ============ */
.pd-rating-line { display: inline-flex; align-items: center; gap: 8px; color: var(--gray); font-size: 14px; font-weight: 600; }
.pd-rating-line:hover span { color: var(--primary); text-decoration: underline; }
.pd-price-row { gap: 12px; }
.pd-compare { font-size: 20px; }
.pd-save { background: #fee2e2; color: #b91c1c; font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 50px; }
p.pd-stock { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; margin-bottom: 18px; padding: 0; background: none; border-radius: 0; }
p.pd-stock.in { color: #15803d; background: none; }
p.pd-stock.low { color: #c2410c; }
p.pd-stock.out { color: #b91c1c; background: none; }
.wholesale-box { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; background: #fff7ed; border: 1px dashed #fdba74; margin-bottom: 16px; }
.wholesale-box > i { font-size: 20px; color: #ea580c; }
.wholesale-box b { display: block; font-size: 14.5px; color: #7c2d12; }
.wholesale-box span { font-size: 13px; color: #9a3412; }
.wholesale-box a { color: #c2410c; font-weight: 800; text-decoration: underline; }
.wholesale-box.on { background: #ecfdf5; border-color: #6ee7b7; }
.wholesale-box.on > i, .wholesale-box.on b { color: #047857; }
.wholesale-box.on span { color: #065f46; }
.checkout-main > .wholesale-box { margin-bottom: 0; }
.pd-label { font-weight: 800; font-size: 14.5px; margin-bottom: 10px; color: var(--dark-2); }
.pd-label b { color: var(--primary-dark); }
.pd-variants { margin-bottom: 18px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-opt {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; background: #fff;
  border: 1.5px solid var(--gray-light); font-weight: 700; font-size: 14px; text-align: start; transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.variant-opt img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.variant-opt small { color: var(--gray); font-weight: 700; font-size: 12.5px; }
.variant-opt:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.variant-opt.active { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12); }
.variant-opt.na { opacity: 0.5; text-decoration: line-through; }
.pd-meta { display: grid; gap: 6px; padding: 14px 0; margin-bottom: 18px; border-top: 1px solid var(--gray-light); border-bottom: 1px solid var(--gray-light); font-size: 14.5px; }
.pd-meta div { display: flex; gap: 8px; }
.pd-meta dt { font-weight: 800; color: var(--dark); }
.pd-meta dd { color: var(--gray); }
.pd-meta a:hover { color: var(--primary); }
.pd-line-total { flex-basis: 100%; font-size: 14px; color: var(--gray); }
.pd-line-total b { color: var(--primary-dark); }
.pd-tabs { margin-top: 60px; background: #fff; border: 1px solid var(--gray-light); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); }
.tab-list { display: flex; border-bottom: 1px solid var(--gray-light); background: #f8fbfb; overflow-x: auto; }
.tab { position: relative; padding: 18px 28px; font-weight: 800; font-size: 15.5px; color: var(--dark-2); white-space: nowrap; transition: color 0.3s; }
.tab::after { content: ''; position: absolute; bottom: -1px; right: 0; left: 0; height: 3px; background: var(--gradient-2); transform: scaleX(0); transition: transform 0.35s var(--ease); }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); background: #fff; }
.tab.active::after { transform: scaleX(1); }
.tab-panel { padding: 30px; }
.tab-panel .pd-desc { margin: 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 13px 16px; border-bottom: 1px solid var(--gray-light); text-align: start; }
.spec-table th { width: 32%; background: #f8fbfb; color: var(--dark); font-weight: 800; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.reviews-wrap { display: grid; gap: 26px; }
.reviews-summary { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--gray-light); }
.big-rating { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.big-rating b { font-size: 46px; font-weight: 900; color: var(--dark); line-height: 1; }
.big-rating small { color: var(--gray); }
.rating-bars { flex: 1; min-width: 220px; display: grid; gap: 6px; }
.rating-bar { display: grid; grid-template-columns: 42px 1fr 30px; align-items: center; gap: 10px; font-size: 13.5px; color: var(--gray); }
.rating-bar span i { color: #f59e0b; font-size: 11px; }
.rating-bar > div { height: 8px; background: var(--gray-light); border-radius: 8px; overflow: hidden; }
.rating-bar > div i { display: block; height: 100%; background: #f59e0b; border-radius: 8px; }
.review-login { background: var(--light); padding: 14px 18px; border-radius: 12px; color: var(--gray); font-weight: 600; }
.review-login a { color: var(--primary); font-weight: 800; }
.review-form { display: grid; gap: 12px; background: var(--light); padding: 20px; border-radius: 16px; }
.review-form h4 { font-size: 16px; font-weight: 800; }
.review-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-light); border-radius: 12px; font-family: inherit; font-size: 14.5px; background: #fff; resize: vertical; }
.review-form textarea:focus { outline: none; border-color: var(--primary); }
.review-form .btn { justify-self: start; }
.review-form .form-error { background: #fef2f2; color: #b91c1c; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.star-input { display: flex; gap: 6px; direction: ltr; justify-content: flex-end; }
[dir="ltr"] .star-input { justify-content: flex-start; }
.star-input button { font-size: 26px; color: #d7dee3; transition: color 0.2s, transform 0.2s; }
.star-input button:hover { transform: scale(1.15); }
.star-input button.on { color: #f59e0b; }
.review-list { display: grid; gap: 14px; }
.review { padding: 16px 18px; border: 1px solid var(--gray-light); border-radius: 14px; }
.verified-buyer { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #15803d; }
.review.mine { border-color: rgba(13, 148, 136, 0.4); background: rgba(13, 148, 136, 0.03); }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.review-head > div { flex: 1; }
.review-head small { display: block; color: var(--gray); font-size: 12px; }
.review .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-2); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.review p { color: var(--dark-2); line-height: 1.9; }

/* checkout lines */
.tier-tag { font-style: normal; font-size: 12px; font-weight: 800; color: #047857; background: #d1fae5; padding: 1px 7px; border-radius: 50px; }
.sum-line-info s { color: #94a3b8; font-size: 12px; }
.sum-line-info .hint { display: block; color: #c2410c; font-size: 12px; font-weight: 700; }
.sum-line-info .problem { display: block; color: #b91c1c; font-size: 12.5px; font-weight: 800; }
.sum-line.has-problem { background: #fef2f2; border-radius: 12px; padding: 6px; }
.btn:disabled.btn-primary { opacity: 0.55; }

/* ============ Course page ============ */
.course-hero {
  position: relative; overflow: hidden; color: #fff; padding: 50px 0 70px;
  background: radial-gradient(900px 400px at 85% 0%, rgba(34, 211, 238, 0.22), transparent 60%), linear-gradient(160deg, var(--ink), var(--ink-2) 60%, #07404a);
}
.course-hero .pd-skeleton { grid-template-columns: 1.3fr 1fr; }
.course-hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; }
.pd-crumbs.light { color: rgba(255, 255, 255, 0.65); }
.pd-crumbs.light span { color: #fff; }
.pd-crumbs.light a:hover { color: var(--accent); }
.course-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.3; margin-bottom: 16px; }
.course-lead { color: rgba(255, 255, 255, 0.8); font-size: 17px; line-height: 1.9; margin-bottom: 24px; max-width: 640px; }
.course-facts { display: flex; flex-wrap: wrap; gap: 10px; }
.course-facts li { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); padding: 8px 16px; border-radius: 50px; font-size: 14px; font-weight: 700; }
.course-facts i { color: var(--mint); }
.course-buy-card { background: #fff; color: var(--dark-2); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); position: sticky; top: 100px; }
.course-buy-media { aspect-ratio: 16 / 9; background: #000; }
.course-buy-media img, .course-buy-media iframe, .course-buy-media video { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.course-buy-body { padding: 24px; display: grid; gap: 16px; }
.course-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.course-price b { font-size: 34px; font-weight: 900; color: var(--primary-dark); }
.course-price b.free { color: #16a34a; }
.course-cta { display: grid; gap: 10px; }
.course-cta .btn { width: 100%; }
.enroll-pending { display: flex; gap: 12px; align-items: flex-start; background: #fef3c7; color: #92400e; padding: 14px 16px; border-radius: 14px; }
.enroll-pending b { display: block; }
.enroll-pending span { font-size: 13.5px; }
.course-includes { display: grid; gap: 10px; border-top: 1px solid var(--gray-light); padding-top: 16px; font-size: 14.5px; }
.course-includes i { color: var(--primary); width: 22px; }
.course-content { padding: 50px 0 100px; }
.course-content-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.course-content-grid > div { display: grid; gap: 24px; align-content: start; }
.checkout-card h3 small { font-weight: 600; margin: 0 auto 0 0; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.outcomes li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.outcomes i { color: var(--primary); margin-top: 6px; }
.lessons { display: grid; gap: 8px; list-style: none; }
.lesson { width: 100%; display: grid; grid-template-columns: 34px 1fr auto 24px; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--gray-light); text-align: start; font-weight: 700; transition: background 0.25s, border-color 0.25s; }
.lesson:disabled { cursor: default; }
.lesson.playable:hover { background: rgba(13, 148, 136, 0.05); border-color: var(--primary-light); }
.lesson.current { background: rgba(13, 148, 136, 0.08); border-color: var(--primary); }
.lesson.locked { color: var(--gray); }
.lesson-no { width: 30px; height: 30px; border-radius: 50%; background: var(--light); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.lesson.playable .lesson-no { background: var(--gradient-2); color: #fff; }
.lesson-dur { color: var(--gray); font-size: 13px; }
.lesson > i { color: var(--primary); }
.lesson.locked > i { color: #94a3b8; }
.lessons-note { margin-top: 14px; color: var(--gray); font-size: 14px; }
.lesson-player { margin-bottom: 18px; }
.player-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.player-frame iframe, .player-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-link { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.player-title { margin-top: 10px; font-weight: 800; color: var(--primary-dark); }
.enroll-dialog { border: 0; border-radius: 22px; padding: 0; width: min(520px, calc(100vw - 32px)); margin: auto; box-shadow: var(--shadow-lg); }
.enroll-dialog::backdrop { background: rgba(3, 26, 34, 0.6); }
.enroll-body { padding: 26px; max-height: calc(100dvh - 40px); overflow-y: auto; }
.enroll-form { display: grid; gap: 14px; }
.enroll-form .card-head { display: flex; justify-content: space-between; align-items: center; }
.enroll-form h3 { font-size: 20px; font-weight: 900; }
.enroll-form .icon-btn { width: 36px; height: 36px; border-radius: 10px; background: var(--light); }
.enroll-form .form-error { background: #fef2f2; color: #b91c1c; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.enroll-summary { display: flex; align-items: center; gap: 12px; background: var(--light); padding: 12px; border-radius: 14px; }
.enroll-summary img { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; }
.enroll-summary div { flex: 1; }
.enroll-summary b { display: block; font-size: 14.5px; }
.enroll-summary span { font-size: 12.5px; color: var(--gray); }
.enroll-summary strong { color: var(--primary-dark); font-size: 18px; }
.checkout-done.flat { box-shadow: none; padding: 10px 0; }
a.my-order:hover b { color: var(--primary); }
@media (max-width: 992px) {
  .course-hero-grid, .course-content-grid, .course-hero .pd-skeleton { grid-template-columns: 1fr; }
  .course-buy-card { position: static; max-width: 520px; }
}
@media (max-width: 600px) {
  .outcomes { grid-template-columns: 1fr; }
  .tab { padding: 14px 18px; font-size: 14.5px; }
  .tab-panel { padding: 20px 16px; }
  .spec-table th { width: 40%; }
  .reviews-summary { gap: 20px; }
  .lesson { grid-template-columns: 30px 1fr auto; }
  .lesson > i { display: none; }
}

/* ============ Checkout ============ */
.btn-ghost-dark { border: 1.5px solid var(--gray-light); color: var(--dark-2); background: #fff; }
.btn-ghost-dark:hover { border-color: #25d366; color: #128c4a; }
.btn.is-disabled { opacity: 0.45; pointer-events: none; }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.checkout-main { position: relative; }
.checkout-section { padding: 70px 0 110px; }
.checkout-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.checkout-main { display: grid; gap: 22px; }
.checkout-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-light); box-shadow: var(--shadow-sm); padding: 28px; }
.checkout-card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 900; color: var(--dark); margin-bottom: 20px; }
.checkout-card .step { width: 30px; height: 30px; border-radius: 50%; background: var(--gradient-2); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.checkout-card .form-group { margin-bottom: 16px; }
.checkout-card .form-row { margin-bottom: 0; }
.checkout-card.sticky { position: sticky; top: 100px; }
.zone-info { background: rgba(13, 148, 136, 0.08); color: var(--primary-dark); padding: 10px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.pay-options { display: grid; gap: 12px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--gray-light); border-radius: 14px; cursor: pointer; transition: border-color 0.3s, background 0.3s, box-shadow 0.3s; }
.pay-option input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.pay-option:has(input:checked) { border-color: var(--primary); background: rgba(13, 148, 136, 0.05); box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1); }
.pay-body strong { display: block; font-size: 15.5px; }
.pay-body small { display: block; color: var(--gray); font-size: 13px; line-height: 1.7; margin-top: 2px; }
.sum-lines { display: grid; gap: 12px; margin-bottom: 18px; max-height: 340px; overflow-y: auto; }
.sum-line { display: flex; align-items: center; gap: 12px; }
.sum-line img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--gray-light); }
.sum-line-info { flex: 1; min-width: 0; }
.sum-line-info strong { display: block; font-size: 14px; line-height: 1.5; }
.sum-line-info span { font-size: 13px; color: var(--gray); }
.sum-line .cart-qty { align-items: center; }
.sum-line .cart-qty span { min-width: 22px; text-align: center; font-weight: 800; }
.sum-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px dashed var(--gray-light); font-size: 15px; }
.sum-row.total { font-size: 19px; font-weight: 900; color: var(--dark); border-top-style: solid; margin-bottom: 14px; }
.sum-row.total b { color: var(--primary-dark); }
.free-hint { font-size: 13.5px; font-weight: 700; color: var(--primary-dark); background: rgba(34, 211, 238, 0.1); padding: 8px 12px; border-radius: 10px; margin: 4px 0 10px; }
.checkout-summary .form-error { background: #fef2f2; color: #b91c1c; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.back-link { display: block; text-align: center; margin-top: 14px; color: var(--gray); font-weight: 700; font-size: 14px; }
.back-link:hover { color: var(--primary); }
.checkout-empty, .checkout-done { max-width: 620px; margin: 0 auto; text-align: center; background: #fff; border-radius: var(--radius); padding: 50px 30px; box-shadow: var(--shadow-md); }
.checkout-empty > i { font-size: 48px; color: var(--primary-light); margin-bottom: 14px; }
.checkout-empty h2, .checkout-done h2 { font-size: 26px; font-weight: 900; color: var(--dark); margin-bottom: 8px; }
.checkout-empty p { color: var(--gray); margin-bottom: 22px; }
.done-icon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--gradient-2); color: #fff; font-size: 36px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 12px rgba(20, 184, 166, 0.15); animation: popIn 0.6s var(--ease); }
@keyframes popIn { from { transform: scale(0.4); opacity: 0; } }
.order-no { font-size: 17px; color: var(--gray); margin-bottom: 22px; }
.order-no b { color: var(--primary-dark); font-size: 24px; }
.done-summary { text-align: start; background: var(--light); border-radius: 14px; padding: 8px 18px; margin-bottom: 18px; }
.done-summary div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--gray-light); }
.done-summary div:last-child { border: 0; }
.done-summary .total b { color: var(--primary-dark); font-size: 18px; }
.done-instructions { text-align: start; background: #fef3c7; color: #92400e; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px; margin-bottom: 14px; }
.muted-note { color: var(--gray); font-size: 14.5px; margin-bottom: 22px; }
.muted-note a { color: var(--primary); font-weight: 800; }

/* order status pills (shared with admin) */
.pill { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 50px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.st-new { background: #dbeafe; color: #1e40af; }
.st-confirmed { background: #e0e7ff; color: #3730a3; }
.st-shipped { background: #fef3c7; color: #92400e; }
.st-delivered { background: #dcfce7; color: #166534; }
.st-cancelled { background: #fee2e2; color: #991b1b; }
.pay-pending { background: #fff7ed; color: #9a3412; }
.pay-paid { background: #dcfce7; color: #166534; }
.pay-refunded { background: #f1f5f9; color: #475569; }

.my-orders-section { padding: 0 0 90px; }
.my-orders-section > .container { display: flex; justify-content: center; }
.my-orders-title { font-size: 20px; font-weight: 900; color: var(--dark); margin-bottom: 16px; }
.my-orders-title i { color: var(--primary); }
.my-order { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--gray-light); }
.my-order:last-child { border: 0; }
.my-order small { display: block; color: var(--gray); font-size: 12.5px; }
.my-order-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.my-order-meta b { color: var(--primary-dark); }

@media (max-width: 992px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-card.sticky { position: static; }
}
@media (max-width: 480px) {
  .checkout-card { padding: 20px 16px; }
}

/* ============ 404 ============ */
.notfound { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.notfound h1 { font-size: clamp(80px, 16vw, 160px); font-weight: 900; line-height: 1; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 992px) {
  .hero { min-height: auto; }
  .hero .container { grid-template-columns: 1fr; text-align: center; padding-block: 40px 70px; }
  .hero p { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-stage { order: -1; max-width: 400px; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-media { max-width: 480px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .contact-wrap { grid-template-columns: minmax(0, 1fr); }
  .scroll-hint { display: none; }
}
@media (max-width: 768px) {
  .top-bar { display: none; }
  .nav-links {
    position: fixed; top: 0; inset-inline-start: 0; width: 78%; max-width: 320px; height: 100vh; height: 100dvh;
    background: #fff; flex-direction: column; align-items: stretch; padding: 90px 24px; gap: 4px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15); z-index: 1002;
    transform: translateX(105%); transition: transform 0.45s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  [dir="ltr"] .nav-links:not(.open) { transform: translateX(-105%); }
  .nav-links a::after { display: none; }
  .nav-links a.active { background: rgba(13, 148, 136, 0.08); }
  .nav-toggle { display: flex; }
  .hide-sm { display: none !important; }
  .nav-actions .btn { padding: 9px 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .services, .products-preview, .courses-preview, .about-preview, .testimonials { padding: 80px 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero-chip { padding: 10px 14px; }
  .hero-chip .icon { width: 36px; height: 36px; font-size: 15px; }
  .hero-chip.c1 { right: 0; }
  .hero-chip.c2 { left: 0; }
  .about-badge { inset-inline-start: 0; }
}
@media (max-width: 480px) {
  .brand-text { font-size: 18px; }
  .hero-stats div { padding: 12px 16px; }
  .cta-box { padding: 48px 22px; }
  .auth-card { padding: 34px 22px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-img { height: 150px; }
  .product-body { padding: 14px; }
  .product-body h4 { font-size: 14.5px; min-height: 44px; }
  .price { font-size: 15px; }
  .add-btn { width: 38px; height: 38px; }
  .skeleton-card { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============ Language switch ============ */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; white-space: nowrap; }
.top-bar-social a.lang-switch { width: auto; padding: 0 12px; border-radius: 50px; font-size: 13px; background: rgba(255, 255, 255, 0.12); color: #fff; }
.top-bar-social a.lang-switch:hover { background: var(--primary); }
.nav-links .lang-switch { display: none; }

/* ============ Section helpers ============ */
.section-header.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; text-align: start; margin-bottom: 42px; }
.section-header.split .section-title { margin-bottom: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--primary); padding: 8px 0; }
.link-arrow i { transition: transform 0.3s var(--ease); }
.link-arrow:hover i { transform: translateX(-5px); }
[dir="ltr"] .link-arrow:hover i { transform: scaleX(-1) translateX(-5px); }
.footer-motto { font-weight: 800; color: var(--mint); font-size: 17px; margin-bottom: 6px; }

/* ============ Hero slider — layered slides (js/hero-render.js, edited in admin → شرائح الهيرو) ============ */
.hero-slider {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(34, 211, 238, 0.22), transparent 60%),
              radial-gradient(900px 600px at 0% 100%, rgba(20, 184, 166, 0.28), transparent 60%),
              linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, #073b45 100%);
}
.hero-slider::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 50%, #000 10%, transparent 70%);
}
.hs-slides { position: relative; z-index: 1; display: grid; }

/* Slides are stacked in one grid cell; the active one fades (or slides / zooms / wipes) in over the leaving one. */
.hx-slide {
  --dir: 1; --ez: cubic-bezier(0.16, 1, 0.3, 1);
  grid-area: 1 / 1; position: relative; z-index: 1; isolation: isolate; overflow: hidden;
  opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 1.2s;
}
.hx-slide[dir="rtl"] { --dir: -1; }
.hx-slide.is-active { opacity: 1; visibility: visible; z-index: 3; transition: opacity 0.9s ease; }
.hx-slide.is-leaving { visibility: visible; z-index: 2; opacity: 0; transition: opacity 0.9s ease 0.3s; }
.hx-tr-slide { transform: translateX(calc(var(--dir) * 7%)); }
.hx-tr-slide.is-active { transform: none; transition: opacity 0.9s ease, transform 1.2s var(--ez); }
.hx-tr-zoom { transform: scale(1.08); }
.hx-tr-zoom.is-active { transform: none; transition: opacity 1s ease, transform 1.6s var(--ez); }
.hx-tr-curtain.is-active { animation: hxCurtain 1.1s cubic-bezier(0.7, 0, 0.2, 1) both; }
.hx-tr-curtain[dir="rtl"].is-active { animation-name: hxCurtainRtl; }
@keyframes hxCurtain { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes hxCurtainRtl { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

/* Backgrounds */
.hx-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hx-bg-image img { width: 100%; height: 100%; object-fit: cover; }
.hx-bg-image.kb img { transform: scale(1.14); }
.hx-slide.is-active .hx-bg-image.kb img, .hx-slide.is-leaving .hx-bg-image.kb img { transform: scale(1.02); transition: transform 9s cubic-bezier(0.2, 0.6, 0.2, 1); }
.hx-ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 26, 34, 0.75), var(--ink)); }

/* The stage: a fixed design canvas (1200×580 desktop, 390×640 phones) that scales as one picture.
   --k = one design pixel, so text, gaps and motion distances all scale with it. */
.hx-frame { container: hx / inline-size; position: relative; }
.hx-stage {
  /* Short screens (phone held sideways) never squeeze the stage below 760px; text always scales with it, so layers never collide. */
  --hx-w: min(100cqw, var(--hx-max, 1320px), var(--hx-vh, max(calc((100svh - 150px) * 2.069), 760px)));
  --k: calc(var(--hx-w) / 1200);
  position: relative; width: var(--hx-w); aspect-ratio: 1200 / 580; margin-inline: auto;
}
.hx-layer {
  --x: var(--xd); --y: var(--yd); --w: var(--wd); --h: var(--hd); --s: var(--sd); --a: var(--ad); --r: var(--rd);
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); rotate: var(--r);
  font-size: calc(var(--s) * var(--k)); text-align: var(--a); color: var(--c, #fff);
  opacity: 0;
}
.hx-layer.d-hide { display: none; }
@container hx (max-width: 760px) {
  .hx-stage { --hx-w: min(100cqw, 520px); --k: calc(var(--hx-w) / 390); aspect-ratio: 390 / 640; }
  .hx-layer { --x: var(--xm); --y: var(--ym); --w: var(--wm); --h: var(--hm); --s: var(--sm); --a: var(--am); --r: var(--rm); }
  .hx-layer.d-hide { display: block; }
  .hx-layer.m-hide { display: none; }
}
.hx-inner { width: 100%; height: 100%; opacity: var(--op, 1); }
.hx-badge .hx-inner, .hx-button .hx-inner, .hx-price .hx-inner, .hx-chip .hx-inner { display: flex; justify-content: var(--a); align-items: flex-start; }
.hx-sh > .hx-inner { filter: drop-shadow(0 calc(var(--k) * 26) calc(var(--k) * 30) rgba(0, 0, 0, 0.5)); }

/* Entrance animations — run when the slide becomes active (delay --d, duration --t). */
.hx-e-smooth { --e: cubic-bezier(0.16, 1, 0.3, 1); }
.hx-e-soft { --e: cubic-bezier(0.4, 0, 0.2, 1); }
.hx-e-bounce { --e: cubic-bezier(0.34, 1.56, 0.64, 1); }
.hx-e-linear { --e: linear; }
.hx-in-none { --an: hxNone; } .hx-in-fade { --an: hxFade; } .hx-in-fade-up { --an: hxFadeUp; } .hx-in-fade-down { --an: hxFadeDown; }
.hx-in-slide-start { --an: hxSlideStart; } .hx-in-slide-end { --an: hxSlideEnd; } .hx-in-zoom-in { --an: hxZoomIn; } .hx-in-zoom-out { --an: hxZoomOut; }
.hx-in-blur-in { --an: hxBlurIn; } .hx-in-mask-up { --an: hxMaskUp; } .hx-in-rotate-in { --an: hxRotateIn; } .hx-in-flip { --an: hxFlip; }
.hx-in-bounce-in { --an: hxBounceIn; } .hx-in-words { --an: hxNone; }
.hx-slide.is-active .hx-layer { opacity: 1; animation: var(--an) var(--t) var(--e) var(--d) both; }
.hx-slide.is-leaving .hx-layer { opacity: 1; animation: hxOut 0.7s ease both; }
@keyframes hxNone { from { opacity: 1; } }
@keyframes hxFade { from { opacity: 0; } }
@keyframes hxFadeUp { from { opacity: 0; transform: translateY(calc(var(--k) * 60)); } }
@keyframes hxFadeDown { from { opacity: 0; transform: translateY(calc(var(--k) * -60)); } }
@keyframes hxSlideStart { from { opacity: 0; transform: translateX(calc(var(--k) * -160 * var(--dir))); } }
@keyframes hxSlideEnd { from { opacity: 0; transform: translateX(calc(var(--k) * 160 * var(--dir))); } }
@keyframes hxZoomIn { from { opacity: 0; transform: scale(0.6); } }
@keyframes hxZoomOut { from { opacity: 0; transform: scale(1.4); } }
@keyframes hxBlurIn { from { opacity: 0; filter: blur(18px); transform: scale(1.05); } }
@keyframes hxMaskUp { from { clip-path: inset(100% -30% -30% -30%); transform: translateY(calc(var(--k) * 40)); } to { clip-path: inset(-30%); } }
@keyframes hxRotateIn { from { opacity: 0; transform: rotate(calc(-16deg * var(--dir))) scale(0.8); } }
@keyframes hxFlip { from { opacity: 0; transform: perspective(900px) rotateX(80deg); } }
@keyframes hxBounceIn { 0% { opacity: 0; transform: scale(0.3); } 55% { opacity: 1; transform: scale(1.08); } 78% { transform: scale(0.96); } 100% { transform: none; } }
@keyframes hxOut { to { opacity: 0; transform: translateY(calc(var(--k) * -24)); } }
/* "Word by word": each word rises out of its own mask */
.hx-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.06em 0.05em 0.16em; margin: -0.06em -0.05em -0.16em; }
.hx-w > span { display: inline-block; transform: translateY(118%); }
.hx-slide.is-active .hx-w > span { animation: hxWord var(--t) var(--e) calc(var(--d) + var(--i) * 80ms) both; }
.hx-slide.is-leaving .hx-w > span { transform: none; }
@keyframes hxWord { from { transform: translateY(118%) rotate(5deg); } to { transform: none; } }
/* Loop effects run on the inner box so they never fight the entrance animation. */
.hx-loop-float { animation: hxFloat 6.5s ease-in-out infinite; }
.hx-loop-pulse { animation: hxPulse 2.8s ease-in-out infinite; }
.hx-loop-spin { animation: spin 50s linear infinite; }
.hx-loop-swing { animation: hxSwing 5s ease-in-out infinite; }
@keyframes hxFloat { 50% { transform: translateY(calc(var(--k) * -16)); } }
@keyframes hxPulse { 50% { transform: scale(1.05); } }
@keyframes hxSwing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.hero-slider.reduced .hx-layer, .hero-slider.reduced .hx-inner, .hero-slider.reduced .hx-w > span { animation: none !important; transform: none; }
.hero-slider.reduced .hx-slide { transition-duration: 0.01s !important; transition-delay: 0s !important; transform: none; }

/* Layer types */
.hx-txt { margin: 0; font-size: 1em; color: inherit; }
.hx-heading .hx-txt { font-weight: var(--fw, 900); line-height: 1.12; letter-spacing: -0.01em; }
.hx-slide[lang="ar"] .hx-heading .hx-txt { line-height: 1.32; letter-spacing: 0; }
.hx-hl { font-style: normal; color: var(--hl, color-mix(in srgb, var(--accent) 58%, #fff)); }
.hx-text { color: var(--c, rgba(255, 255, 255, 0.86)); }
.hx-text .hx-txt { font-weight: var(--fw, 600); line-height: 1.65; }
.hx-badge .hx-badge {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 0.6em 1.4em; border-radius: calc(var(--rad, 50) * var(--k));
  font-weight: var(--fw, 800); line-height: 1.3; background: var(--bg, var(--accent)); color: var(--c, #fff);
  box-shadow: 0 0.9em 1.9em -0.9em color-mix(in srgb, var(--bg, var(--accent)) 80%, transparent);
}
.hx-badge.hx-v-soft .hx-badge { background: var(--bg, rgba(255, 255, 255, 0.08)); color: var(--c, var(--mint)); border: 1px solid rgba(153, 246, 228, 0.25); box-shadow: none; }
.hx-badge.hx-v-outline .hx-badge { background: transparent; border: 1.5px solid currentColor; box-shadow: none; }
.hx-list ul, .hx-list .hx-list { display: grid; gap: 0.6em; margin: 0; padding: 0; list-style: none; }
.hx-list li { display: flex; align-items: center; gap: 0.6em; font-weight: var(--fw, 700); color: var(--c, rgba(255, 255, 255, 0.92)); text-align: start; }
.hx-list li i { color: var(--bg, var(--mint)); flex-shrink: 0; }
.hx-btn {
  display: inline-flex; align-items: center; gap: 0.6em; padding: 0.95em 1.8em; border-radius: calc(var(--rad, 50) * var(--k));
  font-weight: var(--fw, 800); line-height: 1.2; white-space: nowrap; color: var(--c, #fff);
  background: var(--bg, linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #062a33)));
  box-shadow: 0 1em 2em -1em color-mix(in srgb, var(--bg, var(--accent)) 85%, transparent);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, filter 0.3s;
}
.hx-btn:hover { transform: translateY(-3px); filter: brightness(1.08); }
.hx-v-light .hx-btn { background: var(--bg, #fff); color: var(--c, var(--ink)); box-shadow: 0 1em 2em -1.2em rgba(0, 0, 0, 0.6); }
.hx-v-outline .hx-btn { background: var(--bg, rgba(255, 255, 255, 0.06)); color: var(--c, #fff); border: 1.5px solid rgba(255, 255, 255, 0.45); box-shadow: none; }
.hx-v-whatsapp .hx-btn { background: var(--bg, #25d366); color: var(--c, #fff); box-shadow: 0 1em 2em -1em rgba(37, 211, 102, 0.7); }
.hx-price .hx-price {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0.2em 0.7em; padding: 0.75em 1.2em; border-radius: calc(var(--rad, 18) * var(--k));
  background: var(--bg, rgba(3, 26, 34, 0.62)); border: 1px solid rgba(255, 255, 255, 0.22); color: var(--c, #fff);
  box-shadow: 0 1.4em 3em -1.2em rgba(0, 0, 0, 0.6);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hx-v-glass .hx-price { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.hx-price small { flex-basis: 100%; font-size: 0.72em; font-weight: 700; opacity: 0.75; }
.hx-price b { font-size: 1.7em; font-weight: 900; line-height: 1.1; }
.hx-price s { font-size: 0.85em; font-weight: 700; opacity: 0.6; }
.hx-price em { font-style: normal; font-size: 0.72em; font-weight: 800; background: var(--accent); color: #fff; padding: 0.25em 0.8em; border-radius: 50px; }
.hx-v-solid .hx-price { background: var(--bg, var(--accent)); border-color: transparent; }
.hx-v-solid .hx-price em { background: rgba(255, 255, 255, 0.22); }
.hx-v-plain .hx-price { background: none; border: none; box-shadow: none; padding: 0; }
.hx-media { display: block; width: 100%; height: 100%; }
.hx-image .hx-media img, .hx-product-image .hx-media img { width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.hx-v-cover .hx-media img { object-fit: cover; }
.hx-image .hx-media, .hx-product-image .hx-media { border-radius: calc(var(--rad, 0) * var(--k)); overflow: hidden; }
.hx-has-bg .hx-media { background: var(--bg); padding: 5%; }
.hx-shape .hx-shape { display: block; width: 100%; height: 100%; }
.hx-v-glow .hx-shape { border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--bg, var(--accent)) 60%, transparent) 0%, transparent 68%); filter: blur(calc(var(--k) * 26)); }
.hx-v-ring .hx-shape, .hx-v-ring-dashed .hx-shape { border-radius: 50%; border: 1px solid var(--bg, rgba(255, 255, 255, 0.12)); }
.hx-v-ring-dashed .hx-shape { border-style: dashed; border-color: var(--bg, rgba(255, 255, 255, 0.16)); }
.hx-v-circle .hx-shape { border-radius: 50%; background: var(--bg, var(--accent)); }
.hx-v-rect .hx-shape { border-radius: calc(var(--rad, 24) * var(--k)); background: var(--bg, rgba(255, 255, 255, 0.08)); }
.hx-v-line .hx-shape { border-radius: 50px; background: var(--bg, var(--accent)); }
.hx-v-pedestal .hx-shape {
  border-radius: 50%; background: radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 60%, transparent 72%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), 0 calc(var(--k) * 30) calc(var(--k) * 60) calc(var(--k) * -20) color-mix(in srgb, var(--bg, var(--accent)) 70%, transparent);
}
.hx-chip .hx-chip {
  display: inline-flex; align-items: center; gap: 0.75em; padding: 0.8em 1.15em; border-radius: calc(var(--rad, 18) * var(--k));
  background: var(--bg, rgba(3, 26, 34, 0.5)); border: 1px solid rgba(255, 255, 255, 0.16); color: var(--c, #fff); text-align: start;
  box-shadow: 0 1.4em 3em -1.4em rgba(0, 0, 0, 0.6);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .hx-chip .hx-chip { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); } }
.hx-chip-ic { width: 2.7em; height: 2.7em; border-radius: 0.8em; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #22d3ee)); font-size: 1.1em; color: #fff; }
.hx-chip-tx { display: grid; line-height: 1.35; }
.hx-chip-tx b { font-weight: var(--fw, 800); }
.hx-chip-tx small { font-size: 0.82em; opacity: 0.68; }
.hx-3d.hero-stage { max-width: none; width: 100%; height: 100%; aspect-ratio: auto; margin: 0; }
.hx-placeholder { display: grid; place-items: center; width: 100%; min-height: 2.4em; height: 100%; padding: 0.4em; font-size: max(12px, 0.7em); font-weight: 700; color: rgba(255, 255, 255, 0.75); border: 1.5px dashed rgba(255, 255, 255, 0.4); border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .hx-inner { animation: none !important; } }

/* Controls: labelled tabs with a progress bar (drawn by hero.js) + arrows */
.hs-ui { position: absolute; inset-inline: 0; bottom: 26px; z-index: 5; pointer-events: none; }
.hs-ui-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hs-dots, .hs-arrows { display: flex; gap: 12px; pointer-events: auto; }
.hs-dots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 190px); gap: 14px; flex: 1; max-width: 860px; }
.hs-dot { min-width: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 0 0 4px; text-align: start; color: rgba(255, 255, 255, 0.55); font-weight: 800; font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif; cursor: pointer; transition: color 0.3s; }
.hs-dot:hover, .hs-dot.active { color: #fff; }
.hs-dot-bar { display: block; width: 100%; height: 2px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.hs-dot.active .hs-dot-bar { background: rgba(255, 255, 255, 0.28); }
.hs-dot-bar i { display: block; width: 100%; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; will-change: transform; }
[dir="rtl"] .hs-dot-bar i { transform-origin: right; }
.hs-dot.active .hs-dot-bar i { background: var(--hs-tab, #fff); }
.hs-dot-text { display: flex; align-items: baseline; gap: 8px; min-width: 0; max-width: 100%; overflow: hidden; }
.hs-dot-num { font-size: 12px; font-weight: 800; opacity: 0.8; flex-shrink: 0; }
.hs-dot-label { min-width: 0; flex: 1; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-arrows button {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); color: #fff; transition: var(--transition);
}
.hs-arrows button:hover { background: #fff; color: var(--ink); border-color: #fff; }
/* Narrower screens: the controls sit under the stage so they never cover its buttons. */
@media (max-width: 1100px) { .hs-ui { position: relative; bottom: auto; padding-block: 2px 18px; } }
@media (max-width: 992px) {
  .hs-dots { grid-auto-columns: minmax(0, 1fr); max-width: none; }
  .hs-dot-label { display: none; }
}
@media (max-width: 600px) {
  .hs-dots { gap: 8px; }
  .hs-arrows button { width: 40px; height: 40px; }
}
/* Admin preview iframe: nothing but the page itself */
.hero-preview .wa-widget, .hero-preview .to-top { display: none !important; }

/* ============ Categories (circular cards) ============ */
.cat-section { padding: 90px 0 40px; background: #fff; }
.cat-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px 18px; }
.cat-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; color: var(--dark); }
.cat-orb {
  position: relative; width: clamp(124px, 12vw, 160px); aspect-ratio: 1; border-radius: 50%; margin-bottom: 14px;
  padding: 6px; background: var(--light); box-shadow: 0 0 0 1px var(--gray-light), 0 16px 34px -20px rgba(3, 26, 34, 0.35);
  display: flex; align-items: center; justify-content: center; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.cat-orb img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: cover; border-radius: 50%; transition: transform 0.8s var(--ease); }
.cat-orb > i { font-size: 44px; color: var(--primary); }
.cat-ring {
  position: absolute; inset: -6px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: conic-gradient(from 0deg, #14b8a6, #22d3ee, #99f6e4, transparent 70%, #14b8a6);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: spin 2.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cat-go {
  position: absolute; bottom: 6px; inset-inline-end: 6px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px;
  box-shadow: 0 10px 20px -8px rgba(13, 148, 136, 0.8); transform: scale(0); transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.cat-card b { font-size: 16px; font-weight: 800; line-height: 1.35; transition: color 0.3s; }
.cat-card small { font-size: 12px; font-weight: 800; color: var(--primary); letter-spacing: 0.1em; text-transform: uppercase; }
html[lang="ar"] .cat-card small { letter-spacing: 0; font-size: 13px; }
.cat-card:hover .cat-orb { transform: translateY(-8px); box-shadow: 0 0 0 1px transparent, 0 26px 40px -18px rgba(13, 148, 136, 0.55); }
.cat-card:hover .cat-ring, .cat-card:focus-visible .cat-ring { opacity: 1; }
.cat-card:hover .cat-orb img { transform: scale(1.1); }
.cat-card:hover .cat-go, .cat-card:focus-visible .cat-go { transform: scale(1); }
.cat-card:hover b { color: var(--primary); }
.cat-card.is-skeleton .cat-orb { background: none; box-shadow: none; padding: 0; }
.cat-sk-line { display: block; width: 70%; height: 14px; border-radius: 8px; }
@media (max-width: 700px) {
  .cat-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-inline: -20px; padding: 6px 20px 14px; scrollbar-width: none; }
  .cat-rail::-webkit-scrollbar { display: none; }
  .cat-card { flex: 0 0 128px; scroll-snap-align: start; }
  .cat-orb { width: 116px; }
  .cat-card b { font-size: 14.5px; }
}

/* ============ Who we serve ============ */
.serve-section { padding: 100px 0; }
.serve-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.serve-card { position: relative; min-height: 400px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; color: #fff; isolation: isolate; box-shadow: var(--shadow-md); }
.serve-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.serve-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 26, 34, 0.05) 15%, rgba(3, 26, 34, 0.94) 80%); }
.serve-card:hover img { transform: scale(1.08); }
.serve-body { padding: 30px 28px; }
.serve-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--gradient-2); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; box-shadow: 0 14px 28px -10px rgba(20, 184, 166, 0.7); }
.serve-body h3 { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.serve-body p { color: rgba(255, 255, 255, 0.82); font-size: 15px; }

/* ============ Brands ============ */
.brands-section { padding: 100px 0; background: #fff; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 18px; }
.brand-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 160px; padding: 24px 16px;
  border-radius: 20px; border: 1px solid var(--gray-light); background: var(--light); text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.brand-card:hover { transform: translateY(-5px); background: #fff; border-color: rgba(13, 148, 136, 0.35); box-shadow: var(--shadow-md); }
.brand-logo { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 64px; }
.brand-logo img { max-height: 64px; max-width: 80%; object-fit: contain; transition: transform 0.4s var(--ease); }
.brand-card:hover .brand-logo img { transform: scale(1.05); }
.brand-word {
  font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif; font-size: 23px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
  background: linear-gradient(120deg, var(--dark), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-meta { display: flex; flex-direction: column; align-items: center; line-height: 1.4; }
.brand-meta b { font-size: 14.5px; color: var(--dark); }
.brand-meta small { color: var(--gray); font-size: 12.5px; font-weight: 700; }

/* ============ Shop toolbar ============ */
.shop-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.shop-toolbar .filters-bar { margin-bottom: 0; flex: 1 1 520px; justify-content: flex-start; }
.brand-filter { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--gray-light); border-radius: 50px; padding-block: 3px; padding-inline: 16px 6px; color: var(--primary); }
.brand-filter select { border: none; background: transparent; font: inherit; font-weight: 700; font-size: 14px; color: var(--dark); padding: 8px 6px; outline: none; max-width: 220px; cursor: pointer; }
.card-brand { color: var(--gray); font-weight: 700; }
.grid-state.filtered { grid-column: 1 / -1; }

@media (max-width: 768px) {
  .nav-links .lang-switch { display: inline-flex; margin-top: 14px; justify-content: center; border: 1.5px solid var(--gray-light); }
  .section-header.split { margin-bottom: 30px; }
}

/* English labels are longer: keep the header on one line between tablet and desktop */
@media (min-width: 769px) and (max-width: 1100px) {
  .nav-actions > a.btn.hide-sm { display: none; }
  .nav-links a { padding-inline: 11px; }
}
.add-btn { flex-shrink: 0; }
.contact-wa-alt { white-space: normal; text-align: center; }

/* ============ Brand strip (top of the homepage) ============ */
.brand-strip { background: #fff; border-bottom: 1px solid var(--gray-light); }
.bs-row { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.bs-label { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; }
html[lang="ar"] .bs-label { letter-spacing: 0; font-size: 14px; }
.bs-viewport {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.bs-track { display: flex; width: max-content; animation: bsMove var(--bs-dur, 30s) linear infinite; }
[dir="rtl"] .bs-track { animation-name: bsMoveRtl; }
.brand-strip:hover .bs-track, .bs-track:focus-within { animation-play-state: paused; }
.bs-set { display: flex; align-items: center; gap: 14px; padding-inline-end: 14px; }
@keyframes bsMove { to { transform: translateX(-50%); } }
@keyframes bsMoveRtl { to { transform: translateX(50%); } }
.bs-item {
  display: flex; align-items: center; justify-content: center; height: 48px; min-width: 130px; padding: 0 20px;
  border-radius: 50px; border: 1px solid var(--gray-light); background: var(--light);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.bs-item:hover { border-color: rgba(13, 148, 136, 0.45); background: #fff; transform: translateY(-2px); }
.bs-item img { max-height: 30px; max-width: 110px; object-fit: contain; }
.bs-item .brand-word { font-size: 16px; white-space: nowrap; }
.bs-all { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--dark); }
.bs-all:hover { color: var(--primary); }
@media (max-width: 700px) {
  .bs-row { min-height: 62px; gap: 10px; }
  .bs-label span, .bs-label { font-size: 0; gap: 0; }
  .bs-label i { font-size: 18px; }
  .bs-all { font-size: 12.5px; }
  .bs-item { height: 42px; min-width: 110px; padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { .bs-track { animation: none; } .bs-viewport { overflow-x: auto; } }

/* ============ Brands page + brand banner ============ */
.brand-grid.large { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 22px; }
.brand-grid.large .brand-card { min-height: 230px; padding: 30px 22px; background: #fff; box-shadow: var(--shadow-sm); }
.brand-desc { display: block; color: var(--gray); font-size: 14px; line-height: 1.6; margin: 4px 0 6px; }
.brand-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--primary); margin-top: 6px; }
.brand-banner {
  display: flex; align-items: center; gap: 26px; padding: 26px 30px; margin-bottom: 30px; border-radius: var(--radius);
  background: linear-gradient(120deg, #fff, var(--light)); border: 1px solid var(--gray-light); box-shadow: var(--shadow-sm);
}
.brand-banner[hidden] { display: none !important; }
.bb-logo { flex-shrink: 0; width: 130px; height: 130px; border-radius: 26px; background: #fff; border: 1px solid var(--gray-light); display: flex; align-items: center; justify-content: center; padding: 14px; text-align: center; }
.bb-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bb-logo .brand-word { font-size: 20px; }
.bb-text { flex: 1; min-width: 0; }
.bb-text .section-tag { margin-bottom: 8px; }
.bb-text h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; color: var(--dark); line-height: 1.2; }
.bb-text p { color: var(--gray); margin-top: 6px; max-width: 640px; }
.bb-text small { display: block; margin-top: 6px; font-weight: 800; color: var(--primary); }
@media (max-width: 640px) {
  .brand-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .bb-logo { width: 96px; height: 96px; }
}
.bb-logo .brand-word { font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 700px) { html[lang] .bs-label { font-size: 0; gap: 0; } }

/* ============ Events ============ */
.events-section { padding: 100px 0; }
.events-section.past { padding-top: 0; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.event-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-light); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.event-card.past { opacity: 0.92; }
.event-card.past .event-media img { filter: saturate(0.75); }
.event-media { position: relative; aspect-ratio: 16 / 9; background: var(--gradient); overflow: hidden; }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.event-card:hover .event-media img { transform: scale(1.06); }
.event-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.85); font-size: 54px; }
.event-date { position: absolute; top: 14px; inset-inline-start: 14px; background: #fff; border-radius: 14px; padding: 6px 12px; text-align: center; box-shadow: var(--shadow-md); line-height: 1.1; min-width: 58px; }
.event-date b { display: block; font-size: 22px; color: var(--primary); font-weight: 900; }
.event-date small { font-size: 12px; font-weight: 800; color: var(--dark); text-transform: uppercase; }
.event-kind { position: absolute; bottom: 14px; inset-inline-start: 14px; background: rgba(3, 26, 34, 0.75); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 50px; }
.event-kind.course { background: var(--primary); }
.event-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.event-body h3 { font-size: 19px; font-weight: 800; color: var(--dark); line-height: 1.35; }
.event-meta { display: grid; gap: 4px; color: var(--gray); font-size: 14px; font-weight: 600; }
.event-meta i { color: var(--primary); width: 18px; }
.event-body p { color: var(--gray); font-size: 14.5px; }
.event-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.event-actions .btn { padding: 11px 20px; font-size: 14px; }

/* ============ Contact: order tracking ============ */
.track-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-light); box-shadow: var(--shadow-sm); padding: 26px 28px; margin-bottom: 34px; scroll-margin-top: 120px; }
.track-intro { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.track-icon { width: 54px; height: 54px; flex-shrink: 0; border-radius: 16px; background: var(--gradient-2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.track-intro h3 { font-size: 21px; font-weight: 800; color: var(--dark); }
.track-intro p { color: var(--gray); font-size: 14.5px; }
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; }
.track-form input { border: 1.5px solid var(--gray-light); border-radius: 14px; padding: 13px 16px; font: inherit; font-weight: 700; background: var(--light); min-width: 0; }
.track-form input:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15); background: #fff; }
.track-card .form-error { margin-top: 12px; }
.track-help { margin-top: 14px; color: var(--gray); font-size: 13.5px; }
.track-result { margin-top: 20px; border-top: 1px dashed var(--gray-light); padding-top: 18px; }
.track-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.track-head b { font-size: 18px; color: var(--dark); }
.track-head small { display: block; color: var(--gray); font-size: 13px; }
.track-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 16px; counter-reset: s; }
.track-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--gray); font-size: 13px; }
.track-steps li::before { content: ''; position: absolute; top: 21px; inset-inline-start: -50%; width: 100%; height: 3px; background: var(--gray-light); z-index: 0; }
.track-steps li:first-child::before { display: none; }
.track-steps li.done::before { background: var(--primary-light); }
.track-steps span { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--light); border: 2px solid var(--gray-light); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.track-steps li.done span { background: var(--primary); border-color: var(--primary); color: #fff; }
.track-steps li.current span { box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.18); }
.track-steps li.done b { color: var(--dark); }
.track-cancelled { margin: 18px 0; color: #b91c1c; font-weight: 700; }
.track-items { display: grid; gap: 6px; font-size: 14px; }
.track-items li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--light); border-radius: 10px; }
.track-total { display: flex; gap: 16px; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; color: var(--gray); font-size: 14px; }
.track-total b { color: var(--dark); font-size: 16px; }
@media (max-width: 640px) {
  .track-card { padding: 20px; }
  .track-form { grid-template-columns: 1fr; }
  .track-steps b { font-size: 11.5px; }
}

/* ============ Checkout: payment details, transfer confirmation, coupon ============ */
.pay-extra { display: none; margin-top: 10px; flex-wrap: wrap; align-items: center; gap: 10px; }
.pay-option.selected .pay-extra { display: flex; }
.pay-account { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1.5px dashed var(--primary-light); border-radius: 12px; padding: 4px 4px 4px 14px; }
[dir="rtl"] .pay-account { padding: 4px 14px 4px 4px; }
.pay-number { font-weight: 900; font-size: 17px; letter-spacing: 0.04em; color: var(--dark); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: #fff; font-weight: 800; font-size: 13px; padding: 7px 12px; border-radius: 9px; transition: background 0.25s; }
.copy-btn:hover { background: var(--primary-dark); }
.copy-btn.copied { background: #16a34a; }
.btn-pay-link { background: linear-gradient(120deg, #5b21b6, #7c3aed); color: #fff; padding: 10px 18px; font-size: 14px; box-shadow: 0 10px 24px -10px rgba(91, 33, 182, 0.7); }
.btn-pay-link:hover { filter: brightness(1.08); }
.transfer-confirm { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #fffbeb; border: 1.5px solid #fcd34d; cursor: pointer; }
.transfer-confirm[hidden] { display: none; }
.transfer-confirm input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.transfer-confirm b { display: block; color: #92400e; }
.transfer-confirm small { color: #92400e; font-size: 13.5px; }
.transfer-confirm:has(input:checked) { background: #ecfdf5; border-color: #6ee7b7; }
.transfer-confirm:has(input:checked) b, .transfer-confirm:has(input:checked) small { color: #047857; }
.transfer-confirm.shake { animation: shake 0.5s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.sum-row.discount b, .sum-row.discount span { color: #047857; }
.coupon-tag { font-style: normal; font-size: 12px; font-weight: 800; background: #d1fae5; color: #047857; padding: 2px 8px; border-radius: 50px; }
.coupon-box { display: flex; gap: 8px; margin: 14px 0 6px; }
.coupon-box input { flex: 1; min-width: 0; border: 1.5px dashed var(--gray-light); border-radius: 12px; padding: 10px 14px; font: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; background: var(--light); }
.coupon-box input:focus { outline: none; border-color: var(--primary-light); background: #fff; }
.coupon-box .btn { padding: 10px 18px; font-size: 14px; }
.coupon-msg { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.coupon-msg.ok { color: #047857; }
.coupon-msg.bad { color: #b91c1c; }
.confirm-note { display: flex; gap: 10px; align-items: flex-start; background: #eff6ff; color: #1e40af; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; margin: 12px 0 14px; text-align: start; }
.confirm-note i { margin-top: 3px; }
.confirm-note.done { font-size: 14.5px; max-width: 560px; margin-inline: auto; }
.event-grid { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 400px)); justify-content: center; }

/* Checkout: payment methods live inside the order summary, right above "Place order". */
.sum-pay { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--gray-light); }
.sum-pay-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.sum-pay-title i { color: var(--primary); }
.sum-pay .pay-options { display: grid; gap: 10px; }
.sum-pay .pay-option { padding: 12px 14px; }
.sum-pay .pay-option:not(.selected) .pay-body small { display: none; }
.sum-pay .pay-body strong { font-size: 15px; }
.sum-pay .pay-body small { font-size: 13px; }
.sum-pay .pay-account { flex-wrap: wrap; max-width: 100%; }
.sum-pay .pay-number { font-size: 16px; }
.sum-pay .transfer-confirm { margin-top: 12px; }

/* iPhone Safari zooms the whole page into any field under 16px and stays zoomed — keep fields at 16px on phones. */
@media (max-width: 768px) {
  input:not([type="radio"]):not([type="checkbox"]), select, textarea { font-size: 16px !important; }
  .nav-links:not(.open) { visibility: hidden; transition: transform 0.45s var(--ease), visibility 0s linear 0.45s; }
  .nav-links.open { visibility: visible; }
}

/* Testimonial without a photo: initial in a circle */
.testi-person .testi-initial { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--primary), #14b8a6); border: 3px solid rgba(13, 148, 136, 0.2); }

/* Phones: keep the copyright line clear of the floating WhatsApp / back-to-top buttons */
@media (max-width: 768px) {
  .footer-bottom { padding-bottom: 96px; }
}

/* ============ Featured products slider ============ */
.products-grid.ps-track {
  display: flex; gap: 26px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 6px; scrollbar-width: none;
  /* room for the card hover lift + shadow, which overflow would otherwise clip */
  padding: 14px 6px 34px; margin: -14px -6px -34px;
}
.products-grid.ps-track::-webkit-scrollbar { display: none; }
.products-grid.ps-track:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: var(--radius); }
.ps-track > *, .ps-rail > * { flex: 0 0 calc((100% - 3 * 26px) / 4); min-width: 0; scroll-snap-align: start; }
/* JS-enhanced endless carousel: the track only clips, the rail moves on the GPU */
.products-grid.ps-track.ps-ready { display: block; overflow: hidden; scroll-snap-type: none; touch-action: pan-y; cursor: grab; }
.ps-ready.ps-dragging { cursor: grabbing; user-select: none; }
.ps-ready.ps-dragging a { pointer-events: none; }
.ps-rail { display: flex; gap: 26px; width: 100%; will-change: transform; backface-visibility: hidden; }
.ps-rail img { -webkit-user-drag: none; user-select: none; }
.ps-track > .grid-state, .ps-track > .skeleton-card:only-child { flex-basis: 100%; }
.ps-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 44px; }
.ps-nav {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 17px;
  color: var(--dark); background: #fff; border: 1px solid var(--gray-light); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.ps-nav:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.ps-nav[hidden] { display: none; }
@media (max-width: 1100px) { .ps-track > *, .ps-rail > * { flex-basis: calc((100% - 2 * 26px) / 3); } }
@media (max-width: 768px) {
  .products-grid.ps-track, .ps-rail { gap: 14px; }
  .ps-track > *, .ps-rail > * { flex-basis: 62%; }
  .ps-controls { gap: 10px; margin-top: 30px; }
  .ps-nav { width: 44px; height: 44px; font-size: 15px; }
}

/* ============ Educational videos ============ */
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: 26px; }
.pd-videos { padding-top: 70px; }
.video-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-light); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.video-card[hidden] { display: none; }
.video-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; overflow: hidden; background: var(--dark); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.4s; }
.video-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(3, 26, 34, 0.55)); }
.video-card:hover .video-thumb img { transform: scale(1.06); filter: brightness(0.82); }
.video-thumb-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; color: rgba(255, 255, 255, 0.25); background: linear-gradient(135deg, var(--dark), var(--primary)); }
.video-play { position: absolute; top: 50%; left: 50%; z-index: 2; width: 64px; height: 64px; border-radius: 50%; transform: translate(-50%, -50%); display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.95); color: var(--primary); font-size: 22px; box-shadow: 0 10px 30px rgba(3, 26, 34, 0.35); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.video-play i { margin-inline-start: 4px; }
[dir="rtl"] .video-play i { margin-inline-start: 0; margin-inline-end: 4px; transform: none; }
.video-card:hover .video-play { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.18); }
.video-src { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: var(--dark); font-size: 16px; }
.video-src .fa-youtube { color: #ff0000; }
.video-src .fa-facebook { color: #1877f2; }
.video-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.video-body h4 { font-size: 17.5px; font-weight: 800; line-height: 1.5; color: var(--dark); }
.video-body h4 button { all: unset; cursor: pointer; }
.video-body h4 button:hover, .video-body h4 button:focus-visible { color: var(--primary); }
.video-presenter { color: var(--primary); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.video-desc { color: var(--gray); font-size: 14px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.video-products { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.video-products a, .video-products span { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 12.5px; font-weight: 700; color: var(--primary-dark); background: var(--light); border: 1px solid var(--gray-light); border-radius: 50px; padding: 5px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-products a:hover { border-color: var(--primary); }
.video-search-wrap { position: relative; max-width: 520px; margin: 0 auto 34px; }
.video-search-wrap:has(input[hidden]) { display: none; }
.video-search-wrap i { position: absolute; top: 50%; inset-inline-start: 18px; transform: translateY(-50%); color: var(--gray); }
.video-search-wrap input { width: 100%; padding: 14px 18px; padding-inline-start: 46px; border: 1.5px solid var(--gray-light); border-radius: 50px; font: inherit; font-size: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.video-search-wrap input:focus { outline: none; border-color: var(--primary); }

.video-dialog { border: 0; padding: 0; background: transparent; width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; overflow: visible; }
.video-dialog::backdrop { background: rgba(3, 18, 28, 0.82); }
.video-modal { position: relative; background: #fff; border-radius: 20px; overflow: hidden; max-height: calc(100dvh - 24px); overflow-y: auto; box-shadow: var(--shadow-lg); }
.video-close { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, 0.95); color: var(--dark); font-size: 18px; box-shadow: var(--shadow-sm); }
.video-frame { position: relative; background: #000; aspect-ratio: 16 / 9; }
.video-frame.vertical { aspect-ratio: 9 / 16; max-height: 70dvh; margin: 0 auto; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-frame > .btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.video-info { padding: 22px 26px 26px; }
.video-info h3 { font-size: 21px; font-weight: 800; color: var(--dark); line-height: 1.5; margin-bottom: 6px; }
.video-full-desc { color: var(--gray); font-size: 15px; line-height: 1.85; margin-top: 12px; }
.video-info h5 { font-size: 15px; font-weight: 800; color: var(--dark); margin: 20px 0 10px; }
.video-linked { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.video-linked a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--gray-light); border-radius: 14px; font-weight: 700; font-size: 14px; color: var(--dark); transition: border-color 0.25s, background 0.25s; }
.video-linked a:hover { border-color: var(--primary); background: var(--light); }
.video-linked img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--light); }
.video-linked span { flex: 1; min-width: 0; }
.video-linked i { color: var(--primary); }
@media (max-width: 768px) {
  .video-info { padding: 18px; }
  .video-info h3 { font-size: 18px; }
  .video-play { width: 54px; height: 54px; font-size: 19px; }
}

/* ============ Homepage: New offers (static grid + long cover banners) ============ */
.offers-section { padding: 70px 0 0; background: #fff; }
.offers-section + .products-preview { padding-top: 90px; }
.offers-section .section-sub { margin: 8px 0 0; text-align: start; }
.offers-banners { display: grid; gap: 18px; margin-bottom: 30px; }
.offers-banners:empty { display: none; }
.offer-banner { display: block; border-radius: var(--radius); overflow: hidden; background: var(--light); box-shadow: var(--shadow-md); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
a.offer-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
/* A long cover (≈1600×400) shows whole; a tall photo uploaded by mistake is cropped instead of filling the screen. */
.offer-banner img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
@media (max-width: 640px) { .offer-banner img { max-height: 300px; } }
.offers-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .offers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .offers-section { padding-top: 50px; }
  .offers-banners { gap: 12px; margin-bottom: 22px; }
  .offers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
/* ============ Hero: video layer + video background ============ */
.hx-bg-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-video .hx-media { position: relative; height: 100%; border-radius: calc(var(--rad, 22) * var(--k)); overflow: hidden; background: #000; }
.hx-video .hx-media video, .hx-video .hx-media iframe, .hx-video .hx-media img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.hx-video.hx-v-contain .hx-media video { object-fit: contain; }
.hx-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.2em; color: #fff; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }

/* ============ Offers: video banner ============ */
.offer-banner video { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; background: #000; }
@media (max-width: 640px) { .offer-banner video { max-height: 300px; } }

/* ============ Brand page: cover + gallery ============ */
.brand-banner.has-cover { flex-wrap: wrap; padding-top: 0; overflow: hidden; }
.bb-cover { flex: 1 0 100%; margin: 0 -30px 6px; width: calc(100% + 60px); max-height: 420px; aspect-ratio: 16 / 4.5; background: var(--ink); }
.bb-cover img, .bb-cover video { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-banner.has-cover .bb-logo { margin-top: -70px; position: relative; box-shadow: var(--shadow-md); }
@media (max-width: 640px) {
  .bb-cover { margin: 0 -20px 4px; width: calc(100% + 40px); aspect-ratio: 16 / 7; }
  .brand-banner.has-cover .bb-logo { margin-top: -54px; }
}
.brand-media { margin-bottom: 34px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--gray-light); box-shadow: var(--shadow-sm); }
.brand-media[hidden] { display: none !important; }
.bm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.bm-head h3 { font-size: 20px; font-weight: 900; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.bm-head h3 i { color: var(--primary); }
.bm-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.bm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 16px; }
.bm-card { display: flex; flex-direction: column; gap: 8px; text-align: start; color: var(--dark); border-radius: 16px; transition: transform 0.3s var(--ease); }
.bm-card[hidden] { display: none; }
.bm-card:hover { transform: translateY(-3px); }
.bm-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--light); border: 1px solid var(--gray-light); }
.bm-media img, .bm-media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.bm-card:hover .bm-media img { transform: scale(1.05); }
.bm-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: var(--primary); }
.bm-play, .bm-zoom { position: absolute; inset: 0; display: grid; place-items: center; }
.bm-play i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(3, 26, 34, 0.7); color: #fff; font-size: 20px; padding-inline-start: 4px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6); }
.bm-zoom { opacity: 0; background: rgba(3, 26, 34, 0.35); color: #fff; font-size: 24px; transition: opacity 0.3s; }
.bm-card:hover .bm-zoom { opacity: 1; }
.bm-title { font-weight: 800; font-size: 14.5px; line-height: 1.5; }
.bm-pdf { justify-content: center; align-items: center; text-align: center; padding: 20px 14px; min-height: 100%; border: 1px dashed #fca5a5; background: #fff7f7; }
.bm-file { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: #fee2e2; color: #dc2626; font-size: 30px; }
.bm-open { font-size: 13px; font-weight: 800; color: #b91c1c; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 640px) { .brand-media { padding: 16px; } .bm-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* Photo lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; margin: 0; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(3, 26, 34, 0.9); }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 82dvh; object-fit: contain; border-radius: 12px; }
.lightbox figcaption { color: #fff; font-weight: 700; margin-top: 10px; }
.lb-close, .lb-nav { position: fixed; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 18px; }
.lb-close { top: 18px; inset-inline-end: 18px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav.prev { inset-inline-start: 18px; }
.lb-nav.next { inset-inline-end: 18px; }
.lb-count { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.75); font-weight: 700; font-size: 13px; }

/* Brands page: card with a cover */
.brand-grid.large .brand-card.has-cover { padding-top: 0; overflow: hidden; }
.brand-cover { display: block; width: calc(100% + 44px); margin: 0 -22px 10px; aspect-ratio: 16 / 7; background: var(--light); }
.brand-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-card.has-cover .brand-logo { margin-top: -44px; position: relative; z-index: 1; }
.brand-card.has-cover .brand-logo img, .brand-card.has-cover .brand-logo .brand-word { background: #fff; border-radius: 16px; padding: 8px 12px; box-shadow: var(--shadow-sm); }

/* ============ Cover video from a link (YouTube / Vimeo / MP4): fills its box like object-fit: cover ============ */
.vbg { position: absolute; inset: 0; overflow: hidden; container-type: size; background: var(--ink); }
.vbg-poster, .vbg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vbg iframe { position: absolute; top: 50%; left: 50%; width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.offer-video { position: relative; display: block; aspect-ratio: 21 / 9; max-height: 420px; width: 100%; }
@media (max-width: 640px) { .offer-video { aspect-ratio: 16 / 9; } }
.bb-cover { position: relative; }

/* ============ Homepage: New products carousel (sits between New offers and Best sellers) ============ */
.new-products { padding-bottom: 30px; }
.new-products + .products-preview { padding-top: 70px; }
@media (max-width: 768px) { .new-products { padding-bottom: 10px; } .new-products + .products-preview { padding-top: 50px; } }

/* ============ Product page: quantity offers ("buy more, save more") ============ */
.pd-offers:empty { display: none; }
.pd-offers { margin: 4px 0 18px; }
.pd-offers-title { font-weight: 800; color: var(--dark); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.pd-offers-title i { color: var(--primary); }
.pd-offer-list { display: grid; gap: 12px; }
.pd-offer { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; text-align: start; padding: 16px 18px; border: 2px solid var(--gray-light); border-radius: 16px; background: #fff; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.pd-offer:hover { border-color: #99d5cf; }
.pd-offer.on { border-color: var(--primary); background: #f0fdfa; box-shadow: 0 10px 24px -16px rgba(13, 148, 136, 0.6); }
.pd-offer-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #94a3b8; position: relative; flex-shrink: 0; }
.pd-offer.on .pd-offer-radio { border-color: var(--primary); }
.pd-offer.on .pd-offer-radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--primary); }
.pd-offer-main { display: grid; gap: 6px; }
.pd-offer-main > b { font-size: 16px; color: var(--dark); }
.pd-offer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-offer-tags em { font-style: normal; font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 8px; }
.pd-offer-tags .save { background: #dc2626; color: #fff; }
.pd-offer-tags .ship { background: #dcfce7; color: #166534; }
.pd-offer-price { display: grid; text-align: end; }
.pd-offer-price b { font-size: 18px; font-weight: 900; color: var(--dark); }
.pd-offer-price s { color: var(--gray); font-size: 13px; }
.pd-offer-badge { position: absolute; top: -12px; inset-inline-start: 16px; font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 8px; color: #fff; }
.pd-offer-badge.popular { background: #d97706; }
.pd-offer-badge.best { background: var(--dark); }
.tier-tag.offer { background: #fee2e2; color: #b91c1c; }
.promo-next { margin: 6px 0 4px; padding: 10px 12px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-weight: 700; font-size: 13.5px; }
.promo-next i { margin-inline-end: 6px; }
.sum-row.promo b, .sum-row.promo span { color: #047857; }
.promo-tag { font-style: normal; font-size: 12px; font-weight: 800; background: #d1fae5; color: #047857; padding: 2px 8px; border-radius: 6px; }

/* ============ Wide screens: use the space (wider content, larger type) ============ */
@media (min-width: 1500px) { .container { max-width: 1400px; } }
@media (min-width: 1800px) {
  .container { max-width: 1560px; }
  body[data-page]:not([data-page="admin"]) { zoom: 1.12; }
}
@media (min-width: 2300px) {
  body[data-page]:not([data-page="admin"]) { zoom: 1.3; }
}

.new-products + .offers-section { padding-top: 20px; }
.offers-section + .products-preview { padding-top: 80px; }

/* ============ Product page: offer banner + extra discount + "Add to your order" ============ */
.pd-offer-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 13px 18px; margin-bottom: 14px; border-radius: 14px; background: var(--ink, #031a22); color: #fff; }
.pd-offer-strip b { font-size: 16px; font-weight: 900; }
.pd-offer-soon, .pd-offer-timer { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 50px; background: #dc2626; color: #fff; font-weight: 800; font-size: 13px; }
.pd-offer-soon i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulseDot 1.2s ease-in-out infinite; }
.pd-offer-timer span { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .pd-offer-timer span { direction: rtl; }
@keyframes pulseDot { 50% { opacity: 0.35; } }
.pd-offer-tags .extra { background: #fef3c7; color: #92400e; }
.pd-addons:empty { display: none; }
.pd-addons { margin-top: 20px; }
.pd-addons-title { font-weight: 800; color: var(--dark); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.pd-addons-title i { color: var(--primary); }
.pd-addon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.pd-addon { position: relative; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; gap: 4px 10px; align-items: center; padding: 10px 12px 10px 40px; border: 1px solid var(--gray-light); border-radius: 14px; background: #fff; }
html[dir="rtl"] .pd-addon { padding: 10px 12px 10px 40px; }
.pd-addon-img { grid-row: span 2; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--light); }
.pd-addon-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-addon-name { font-weight: 800; font-size: 13.5px; color: var(--dark); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-addon-price { font-weight: 700; font-size: 13px; color: var(--gray); }
.pd-addon-add { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--gray-light); color: var(--dark); font-size: 12px; transition: background 0.2s, color 0.2s; }
.pd-addon-add:hover, .pd-addon-add.done { background: var(--primary); border-color: var(--primary); color: #fff; }
.pd-addon-save { position: absolute; top: -10px; right: 12px; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 50px; background: #16a34a; color: #fff; }
