/* ==========================================================================
   TABLE OF CONTENTS
   ----------------------------------------------------------------------
   0.  Saudi Riyal Symbol Font
   1.  Variables & Core Styles
   2.  Header & Navigation
   3.  Hero Section
   4.  Section Layout Shell
   5.  Vehicle Type Picker (Step 1 — Sedan / SUV)
   6.  Packages & Carousel
   7.  Brand Logo Engine (XPEL / ONYX / HEXA "For more" popups)
   8.  Tier Feature List (RTL bullet layout)
   9.  Price Grid Table Lines
   10. Additional Services & Add-ons
   11. Contact Form, Inputs & Custom Fields
   12. Square Choice Inputs (radio & checkbox groups)
   13. Navigation Sidebar Menu
   14. Privacy Policy / About / Package Detail Modals
   15. Footer
   16. Scroll Interactivity Elements
   17. Responsive Design & Media Queries
   18. Pure Complete Price Badge Colors
   19. Inline "More Details" Links
   20. Shopping Cart System
   ========================================================================== */

/* ==========================================================================
   0. SAUDI RIYAL SYMBOL FONT
   The official Saudi Riyal sign (U+20C1) was only added to Unicode in
   version 17.0 (Sept 2025). Most device fonts — including current iPhones —
   don't have a glyph for it yet, so it can render as a blank/fallback mark.
   This open-source font (github.com/emran-alhaddad/Saudi-Riyal-Font) maps
   a proper glyph to that same codepoint, guaranteeing consistent rendering
   regardless of the visitor's device or OS font support.
   ========================================================================== */
@font-face {
  font-family: 'SaudiRiyalFont';
  src: url('https://cdn.jsdelivr.net/npm/@emran-alhaddad/saudi-riyal-font@1.1.0/fonts/regular/saudi_riyal.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@emran-alhaddad/saudi-riyal-font@1.1.0/fonts/regular/saudi_riyal.woff') format('woff'),
       url('https://cdn.jsdelivr.net/npm/@emran-alhaddad/saudi-riyal-font@1.1.0/fonts/regular/saudi_riyal.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   1. VARIABLES & CORE STYLES
   ========================================================================== */
:root {
  --bg: #0a0a0a;
  --panel: #131313;
  --panel-2: #1b1b1b;
  --line: #2b2b2b;
  --orange: #ff6e01;
  --orange-light: #ff9142;
  --orange-dim: #4a2400;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --radius: 4px;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* The header is fixed at 96px tall (70px on mobile) — without this, every
   #anchor link (Book buttons, nav links, footer links) lands its target
   flush against the viewport top, hidden underneath the header. */
[id] {
  scroll-margin-top: 110px;
}

@media (max-width: 768px) {
  [id] {
    scroll-margin-top: 84px;
  }
  section {
    padding: 64px 0;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.lang-ar {
  font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .eyebrow::before {
  order: 2;
}

::selection {
  background: var(--orange);
  color: #140800;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 10px;
}

body.lang-ar .eyebrow {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--orange);
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 0 28px;
}

.header-lines {
  position: absolute;
  top: 68%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
}

.header-lines span {
  display: block;
  width: calc(50% - 60px);
  border-top: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  height: 5px;
  box-sizing: content-box;
}

.brand-center {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  padding: 0 30px;
}

.brand-center img,
.logo {
  height: 95px;
  width: auto;
  display: block;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: 190px 0 120px;
  background: #0a0a0a;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 700px 400px at 85% 8%, rgba(255, 110, 1, 0.16), transparent 60%),
    radial-gradient(ellipse 500px 300px at 10% 90%, rgba(255, 110, 1, 0.08), transparent 65%);
}

.hero-streak {
  position: absolute;
  z-index: -1;
  top: -120px;
  right: -160px;
  width: 820px;
  height: 820px;
  pointer-events: none;
  opacity: 0.5;
}

.hero-hex {
  position: absolute;
  z-index: -1;
  left: -90px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.06;
}

.hero p.lede {
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: .2s;
}

body.lang-ar .btn {
  text-transform: none;
  font-size: 14.5px;
}

.btn-solid {
  background: var(--orange);
  color: #140800;
  font-weight: 700;
}

.btn-solid:hover {
  background: var(--orange-light);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--muted);
}

.hero-strip {
  display: flex;
  gap: 30px;
  margin-top: 54px;
  flex-wrap: wrap;
}

.hero-stat {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

html[dir="rtl"] .hero-stat {
  border-left: none;
  border-right: 1px solid var(--line);
  padding-left: 0;
  padding-right: 14px;
}

.hero-stat b {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 23px;
}

body.lang-ar .hero-stat b {
  font-family: 'Cairo', sans-serif;
}

.hero-stat span {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

body.lang-ar .hero-stat span {
  text-transform: none;
}

/* ==========================================================================
   4. SECTION LAYOUT SHELL
   ========================================================================== */
section {
  padding: 100px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-top: 10px;
  max-width: 600px;
}

.section-head p {
  color: var(--muted);
  max-width: 340px;
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   6. PACKAGES & CAROUSEL (Safari RTL & Layout Fixes)
   ========================================================================== */
.carousel-section {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.carousel {
  position: relative;
  width: 100%;
}

/* Viewport and Track strictly locked to LTR to keep transform math identical across all browsers */
.carousel-viewport {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  direction: ltr !important;
  width: 100%;
}

.carousel-track {
  display: flex !important;
  direction: ltr !important;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
}

.slide {
  min-width: 100% !important;
  width: 100% !important;
  flex-shrink: 0;
  background: var(--panel-2);
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  box-sizing: border-box;
}

/* Force text and content inside slides to respect current language direction */
html[dir="rtl"] .slide {
  direction: rtl !important;
  text-align: right;
}

html[dir="ltr"] .slide {
  direction: ltr !important;
  text-align: left;
}

.slide-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
  width: 100%;
}

html[dir="rtl"] .slide-inner {
  direction: rtl !important;
}

.slide-left {
  padding: 24px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-right: 1px solid var(--line);
  border-left: none;
}

html[dir="rtl"] .slide-left {
  border-left: 1px solid var(--line);
  border-right: none;
}

.tier-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange-dim);
  background: rgba(255, 110, 1, 0.08);
  padding: 6px 12px;
  border-radius: 20px;
}

body.lang-ar .tier-badge {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.slide-left h3 {
  font-size: clamp(32px, 3.8vw, 44px);
  margin-top: 10px;
  line-height: 0.98;
}

.slide-left .tier-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
}

.tier-headline {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin-top: 18px;
}

.tier-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 10px;
  max-width: 46ch;
  overflow-wrap: break-word;
  word-break: break-word;
}

.slide-right {
  padding: 24px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   7. BRAND LOGO ENGINE (XPEL / ONYX / HEXA "For more" popups)
   ========================================================================== */
.brand-wrapper-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  width: 100%;
}
html[dir="rtl"] .brand-wrapper-group {
  align-items: flex-start; /* Ensures everything stays anchored correctly under RTL text */
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.brand-pill img {
  width: auto;
  height: 44px;
  object-fit: contain;
}

.brand-summary {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42ch;
  margin: 0;
}

.brand-more-btn {
  display: inline-block;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--orange);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.lang-ar .brand-more-btn {
  font-family: 'Cairo', sans-serif;
}

.brand-more-btn:hover {
  opacity: 0.8;
}

.tier-features-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

body.lang-ar .tier-features-title {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.tier-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 4px;
  padding: 0;
}

/* ==========================================================================
   8. TIER FEATURE LIST (RTL bullet layout)
   ========================================================================== */
.tier-features-list li {
  position: relative;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  padding-inline-start: 24px !important; /* Creates perfect text spacing clearance */
  padding-inline-end: 0 !important;
  margin-bottom: 6px;
  text-align: start;
}

.tier-features-list li::before {
  content: "•";
  position: absolute;
  top: 0;
  color: var(--orange);
  font-size: 18px;
  line-height: 1.4;
  /* CSS Logical property forces it before text in both EN and AR automatically */
  inset-inline-start: 4px !important; 
  inset-inline-end: auto !important;
}

html[dir="rtl"] .tier-features-list li::before {
  inset-inline-start: auto;
  inset-inline-end: 4px;
}

/* ==========================================================================
   9. PRICE GRID TABLE LINES
   ========================================================================== */
.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
  margin: 16px 0 6px;
  align-items: center;
  position: relative;
}

/* Creates a single solid underlying separation line straight across grid gap metrics */
.price-grid::after {
  content: "";
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--line);
  z-index: 2;
}

/* Stripping single table cell item layout fragments */
.price-grid > *:nth-child(-n+3) {
  padding-bottom: 12px;
  border-bottom: none !important; 
}

.grid-header {
  display: flex;
  align-items: center;
  min-height: 36px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
  overflow-wrap: break-word;
}

.price-grid > *:nth-child(2),
.price-grid > *:nth-child(3) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  text-align: center;
  font-weight: 700;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .05em;
}

body.lang-ar .price-grid > *:nth-child(2),
body.lang-ar .price-grid > *:nth-child(3) {
  font-family: 'Cairo', sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  gap: 3px;
  line-height: 1.3;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
  white-space: nowrap;
}

body.lang-ar .grid-item {
  font-family: 'Cairo', sans-serif;
}

/* Mirror the currency icon to the other side of the number in Arabic */
html[dir="rtl"] .grid-item {
  flex-direction: row-reverse;
}

.currency-icon {
  font-family: 'SaudiRiyalFont', sans-serif;
  font-size: 0.85em;
  line-height: 1.3;
  color: #ff6e01;
}
@media (max-width: 480px) {
  .price-grid {
    grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .grid-header {
    font-size: 11px;
  }

  .grid-item {
    font-size: 13px;
  }
}

.slide-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.slide-cta {
  margin-top: 8px;
  align-self: flex-start;
}

/* Complete package layout */
.complete-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 6px;
}

.complete-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.complete-item svg {
  width: 26px;
  height: 26px;
  color: var(--orange);
}

.complete-item span {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.3;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--line);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: .2s;
}

.carousel-nav:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.carousel-prev {
  left: -22px;
}

.carousel-next {
  right: -22px;
}

.carousel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
  direction: ltr;
}
html[dir="ltr"] .carousel-footer {
  direction: ltr !important;
}
html[dir="rtl"] .carousel-footer {
  direction: rtl !important;
}
.dots {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}
html[dir="rtl"] .dots {
  flex-direction: row-reverse !important;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  
  /* Use hardware-accelerated transforms instead of animating physical layouts */
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.35s ease;
}

.dot.active {
  background: var(--orange);
  width: 22px;
  border-radius: 5px;
}

.progress-track {
  width: 120px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--orange);
}

.progress-fill.run {
  animation: fillbar 5s linear forwards;
}

@keyframes fillbar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@media (prefers-reduced-motion:reduce) {
  .progress-fill.run {
    animation: none;
    width: 100%;
  }
}/* ==========================================================================
   10. ADDITIONAL SERVICES & ADD-ONS (Spacious & User-Friendly)
   ========================================================================== */
.addon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.addon-card {
  position: relative;
  padding: 28px 20px 20px !important;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px !important;
  transition: transform .2s ease, border-color .2s ease;
}

/* Service icons (PNG illustrations, bigger & prominent) */
.addon-card > svg:not(.cart-toggle-btn svg) {
  width: 54px !important;
  height: 54px !important;
  max-width: 100%;
  object-fit: contain;
  color: var(--orange);
  flex-shrink: 0;
  display: block;
  margin-top: 4px;
}

.addon-card img.addon-icon-detailed {
  width: 130px;
  height: auto;
  max-height: 90px;
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  margin-top: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .addon-card:hover {
    border-color: var(--orange-dim);
    transform: translateY(-2px);
  }
}

.addon-card h3 {
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
}

body.lang-ar .addon-card h3 {
  font-family: 'Cairo', sans-serif;
}

.addon-card p {
  font-size: 13px !important;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.addon-subrow {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 4px;
}

.addon-subrow-static {
  font-weight: 500;
  color: var(--muted);
}

/* Cart Toggle Button (Easier to tap) */
.addon-card .cart-toggle-btn {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
}

.addon-card .cart-toggle-btn svg {
  width: 18px !important;
  height: 18px !important;
}
/* ==========================================================================
   11. CONTACT FORM, INPUTS & CUSTOM FIELDS
   ========================================================================== */
#contact {
  border-top: 1px solid var(--line);
}

.contact h2 {
  font-size: clamp(30px, 3.6vw, 44px);
}

.contact p.lede {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 14px;
  max-width: 420px;
  line-height: 1.6;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field label {
  display: flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

body.lang-ar .field label {
  font-family: 'Cairo', sans-serif;
  text-transform: none;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
  height: 50px;
}

.field textarea {
  height: auto;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--orange);
  outline: none;
}

.field select {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  box-sizing: border-box;
  background-color: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
}

html[dir="rtl"] .field select {
  background-position: left 16px center;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.submit-btn {
  margin-top: 6px;
  background: var(--orange);
  color: #140800;
  border: none;
  padding: 15px 20px;
  border-radius: 3px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}

body.lang-ar .submit-btn {
  text-transform: none;
  font-size: 15px;
}

.submit-btn:hover {
  background: var(--orange-light);
}

/* ==========================================================================
   12. SQUARE CHOICE INPUTS (radio & checkbox groups)
   ========================================================================== */
.form-question-group {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  width: 100%;
}

body.lang-ar .group-title {
  font-family: 'Cairo', sans-serif !important;
}

.required-star {
  color: #ff6e01 !important;
  font-weight: bold;
  display: inline-block;
  line-height: 1;
}

html[dir="rtl"] .required-star {
  margin-right: 4px;
  margin-left: 0;
}

html[dir="ltr"] .required-star {
  margin-left: 4px;
  margin-right: 0;
}

.checkbox-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 5px;
}

.square-choice-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: fit-content;
}

.choice-text {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.2s ease;
  user-select: none;
}

body.lang-ar .choice-text {
  font-family: 'Cairo', sans-serif !important;
}

.square-choice-label:hover .choice-text {
  color: var(--text);
}

input[type="radio"].square-radio-input,
input[type="checkbox"].square-checkbox-input,
input[type="checkbox"].square-privacy-input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  background-color: var(--panel-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  margin: 0;
  position: relative;
  flex-shrink: 0;
}

/* Flex layout priorities for left-to-right alignment order */
html[dir="ltr"] input[type="radio"].square-radio-input,
html[dir="ltr"] input[type="checkbox"].square-checkbox-input,
html[dir="ltr"] input[type="checkbox"].square-privacy-input {
  order: 1;
}
html[dir="ltr"] .choice-text,
html[dir="ltr"] .privacy-text {
  order: 2;
}

/* Flex layout priorities for right-to-left alignment order */
html[dir="rtl"] input[type="radio"].square-radio-input,
html[dir="rtl"] input[type="checkbox"].square-checkbox-input,
html[dir="rtl"] input[type="checkbox"].square-privacy-input {
  order: 2;
}
html[dir="rtl"] .choice-text,
html[dir="rtl"] .privacy-text {
  order: 1;
}

/* Choice States */
input[type="radio"].square-radio-input:hover,
input[type="checkbox"].square-checkbox-input:hover,
input[type="checkbox"].square-privacy-input:hover {
  border-color: var(--orange);
}

input[type="radio"].square-radio-input:checked,
input[type="checkbox"].square-checkbox-input:checked,
input[type="checkbox"].square-privacy-input:checked {
  border-color: var(--orange);
  background-color: var(--panel-2);
}

input[type="radio"].square-radio-input:checked::before,
input[type="checkbox"].square-checkbox-input:checked::before,
input[type="checkbox"].square-privacy-input:checked::before {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: solid var(--orange);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* Side-By-Side Layout Columns */
.choices-row-container {
  display: flex;
  gap: 24px;
  margin-bottom: 22px;
  width: 100%;
}

.choices-row-container .form-question-group {
  flex: 1;
  margin-bottom: 0;
}

/* ==========================================================================
   13. NAVIGATION SIDEBAR MENU (Rich Frosted Glassmorphism)
   ========================================================================== */
.menu-btn {
  position: fixed;
  top: 24px !important;
  z-index: 99998 !important;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  padding: 0;
}

html[dir="ltr"] .menu-btn {
  left: 20px;
  right: auto;
}

html[dir="rtl"] .menu-btn {
  right: 20px;
  left: auto;
}

.menu-btn .bar {
  width: 100%;
  height: 3px;
  background-color: var(--orange);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.sidebar {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 290px !important;
  height: 100vh !important;
  z-index: 99999 !important; 
  display: flex !important;
  flex-direction: column !important;
  padding: 80px 24px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  background-color: rgba(6, 6, 6, 0.94) !important;
  backdrop-filter: blur(35px) !important;
  -webkit-backdrop-filter: blur(35px) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              left 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html[dir="ltr"] .sidebar {
  left: -320px !important;
  right: auto !important;
  box-shadow: 25px 0 50px rgba(0, 0, 0, 0.9) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[dir="ltr"] .sidebar.active {
  left: 0 !important;
  right: auto !important;
  transform: none !important;
}

html[dir="rtl"] .sidebar {
  right: -320px !important;
  left: auto !important;
  box-shadow: -25px 0 50px rgba(0, 0, 0, 0.9) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[dir="rtl"] .sidebar.active {
  right: 0 !important;
  left: auto !important;
  transform: none !important;
}

.menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
  width: 100%;
}

.menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.menu-links a {
  color: var(--text);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color 0.2s ease, transform 0.2s ease;
}

body.lang-ar .menu-links a {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-size: 16px;
  font-weight: 600;
}

.menu-links a:hover {
  color: var(--orange);
  transform: translateY(-2px);
}

.menu-about-link {
  display: inline-block;
  margin-top: -26px;
  color: var(--muted);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

body.lang-ar .menu-about-link {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
}

.menu-about-link:hover {
  color: var(--orange);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  font-weight: bold;
}

.lang-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
}

.lang-link.active, 
.lang-link:hover {
  color: var(--orange);
}

.separator {
  color: var(--line);
}

.menu-book-btn {
  display: inline-block;
  background-color: var(--orange);
  color: #000;
  padding: 12px 36px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(255, 110, 1, 0.2);
}

body.lang-ar .menu-book-btn {
  font-family: 'Cairo', sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.menu-book-btn:hover {
  background-color: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 110, 1, 0.4);
}

.close-btn {
  position: absolute;
  top: 22px;
  font-size: 36px;
  line-height: 1;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 100002 !important;
}

.close-btn:hover {
  color: var(--orange);
}

html[dir="ltr"] .close-btn {
  right: 24px;
  left: auto;
}

html[dir="rtl"] .close-btn {
  left: 24px;
  right: auto;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  z-index: 99997 !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   14. PRIVACY POLICY / ABOUT / PACKAGE DETAIL MODALS (Frosted Glass Dark Theme)
   ========================================================================== */
.square-privacy-input {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  margin-top: 2px;
  cursor: pointer;
}

.privacy-text {
  font-family: 'Inter', 'Cairo', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
}

.privacy-link {
  font-family: 'Inter', 'Cairo', sans-serif;
  font-weight: 700;
  color: #ff6e01;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.privacy-link:hover {
  opacity: 0.8;
}

/* Ensure the text is styled correctly inside the shared modal */
.privacy-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100005 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.privacy-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.privacy-modal-content {
  background-color: rgba(19, 19, 19, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.privacy-modal-overlay.active .privacy-modal-content {
  transform: translateY(0);
}

.privacy-modal-close {
  position: absolute;
  top: 15px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
  z-index: 10;
}

html[dir="ltr"] .privacy-modal-close {
  right: 20px;
}
html[dir="rtl"] .privacy-modal-close {
  left: 20px;
}

.privacy-modal-close:hover {
  color: var(--orange);
}

.privacy-modal-body {
  padding: 40px 30px;
  overflow-y: auto;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.privacy-modal-body h2 {
  font-size: 28px;
  color: var(--text);
  margin-bottom: 5px;
}

.privacy-modal-body h3 {
  font-size: 16px;
  color: var(--orange);
  margin-top: 20px;
  margin-bottom: 8px;
}

.privacy-modal-body p {
  color: var(--text);
  margin-bottom: 12px;
}

.modal-meta {
  font-size: 12px;
  color: var(--orange) !important;
  opacity: 0.8;
}

/* Modal Language Swaps */
html[dir="ltr"] .lang-content-ar,
html[dir="rtl"] .lang-content-en {
  display: none !important;
}

html[dir="ltr"] .lang-content-en,
html[dir="rtl"] .lang-content-ar {
  display: block !important;
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 12.5px;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

footer a {
  text-decoration: none;
  color: var(--muted);
}

footer a:hover {
  color: var(--orange);
}

/* Hours / Location / Phone grid */
.footer-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-info-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.footer-info-col b {
  color: var(--text);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

body.lang-ar .footer-info-col b {
  text-transform: none;
}

.footer-info-col span,
.footer-info-col a {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-info-col a {
  width: fit-content;
  max-width: 100%;
  border-bottom: 1px solid var(--text);
  transition: opacity .2s ease;
}

.footer-info-col a:hover {
  opacity: 0.8;
}

/* Keep the phone number left-to-right even in Arabic layout */
.footer-info-col a[href^="https://wa.me"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* Copyright + social icons + quick links row */
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.social-icons-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  order: 2;
}

.social-icon-link {
  display: inline-flex;
  color: var(--orange);
  transition: opacity 0.3s ease;
}

.social-icon-link:hover {
  opacity: 0.7;
}

.footer-copyright {
  order: 1;
}

.footer-links-list {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  row-gap: 8px;
}

body.lang-ar .footer-links-list {
  justify-content: flex-start;
}

.footer-links-list a {
  white-space: nowrap;
}

.footer-links-list a:not(:last-child)::after {
  content: "·";
  margin: 0 10px;
  color: var(--muted);
}
/* Updated Footer Responsive Logic */
@media (max-width: 768px) {
  .footer-info-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-info-col {
    align-items: center;
    text-align: center;
  }

  .footer-info-col a {
    width: auto;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: center; /* Changed from stretch to center your bottom elements */
    gap: 18px;
    padding: 0 20px;
  }

  .footer-links-list {
    order: 1;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .social-icons-container {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center; /* Keeps social icons at the absolute horizontal center */
  }

  .footer-copyright {
    order: 3;
    width: 100%;
    font-size: 11px;
    opacity: .7;
    margin-top: 4px;
  }

  /* Automatically aligns bottom-left in English layouts */
  html[dir="ltr"] .footer-copyright {
    text-align: left;
  }

  /* Automatically aligns bottom-right in Arabic layouts */
  html[dir="rtl"] .footer-copyright {
    text-align: right;
  }
}
/* ==========================================================================
   16. SCROLL INTERACTIVITY ELEMENTS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
/* ==========================================================================
   17. RESPONSIVE DESIGN & MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  /* Side-By-Side stacking rule */
  .contact {
    display: flex !important;
    flex-direction: column !important;
    gap: 50px !important;
  }

  .contact > div:first-child {
    order: 2 !important;
    width: 100% !important;
  }
  
  .contact form {
    order: 1 !important;
    width: 100% !important;
  }
}

@media (max-width: 900px) {
  .slide-inner {
    grid-template-columns: 1fr;
  }

  /* Shift top slide content higher up */
  .slide-left {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 12px !important;
  }

  html[dir="rtl"] .slide-left {
    border-left: none;
    border-bottom: 1px solid var(--line);
  }

  /* Compact padding for the right slide section (Brand + Prices) */
  .slide-right {
    padding: 12px 20px 24px !important;
    gap: 6px !important;
  }

  /* Move brand group higher up and constrain width */
  .brand-wrapper-group {
    margin-top: 0 !important;
    gap: 4px !important;
    align-items: center !important;
  }

  .brand-pill img {
    height: 38px !important;
    width: auto;
  }

  .brand-summary {
    font-size: 12px !important;
    line-height: 1.4 !important;
    max-width: 85% !important; /* Constrains text width to prevent arrow overlap */
    margin: 0 auto;
    text-align: center;
  }

  .addon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .wrap.nav {
    display: flex;
    align-items: center;
    position: relative;
    padding: 12px 16px;
    min-height: 70px;
  }
  .brand-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
  }
  .logo {
    max-height: 84px;
    width: auto;
  }
  .header-lines span {
    width: calc(50% - 52px);
  }
}

@media (max-width: 720px) {
  /* Position navigation arrows outward & higher so they never cover text */
  .carousel-nav {
    width: 36px !important;
    height: 36px !important;
    top: 40% !important;
    background: rgba(10, 10, 10, 0.85) !important;
    z-index: 10 !important;
  }

  .carousel-prev {
    left: -10px !important;
  }

  .carousel-next {
    right: -10px !important;
  }
}

@media (max-width: 600px) {
  .choices-row-container {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  /* 2 Side-by-Side Boxes with Taller Height & Larger Icons */
  .addon-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .addon-card {
    padding: 22px 10px 14px !important;
    border-radius: 8px;
    min-height: 210px;
    justify-content: space-between;
  }

  .addon-card > svg:not(.cart-toggle-btn svg) {
    width: 42px !important;
    height: 42px !important;
    margin-top: 2px;
  }

  .addon-card img.addon-icon-detailed {
    width: 100px;
    max-height: 68px;
    margin-top: 2px;
  }

  .addon-card h3 {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  .addon-card p {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .addon-subrow {
    font-size: 10px;
    padding-top: 6px;
  }

  .addon-card .cart-toggle-btn {
    width: 30px !important;
    height: 30px !important;
    top: 8px;
    inset-inline-end: 8px;
  }
  
  .cart-toggle-btn svg {
    width: 14px !important;
    height: 14px !important;
  }

  .row2 {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 150px 0 80px;
  }
  .complete-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 360px) {
  .sidebar {
    width: 260px;
  }
  .addon-card {
    padding: 20px 8px 12px !important;
  }
  .addon-card h3 {
    font-size: 12px !important;
  }
}
/* ==========================================================================
   18. PURE COMPLETE PRICE BADGE COLORS
   ========================================================================== */
.complete-price-footer {
  display: flex;
  direction: ltr;
  justify-content: flex-start;
}

.complete-price-footer .price-badge {
  color: #ffffff !important; /* Changes the '2,999' text to pure white */
  font-weight: 800;
  font-size: 20px;
  font-family: 'JetBrains Mono', 'Cairo', sans-serif;
  direction: ltr;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Explicitly locks the currency symbol inside the badge to orange */
.complete-price-footer .price-badge .currency-icon {
  color: var(--orange) !important;
}

/* Keep left-aligned on mobile too, just add breathing room above it */
@media (max-width: 768px) {
  .complete-price-footer {
    margin-top: 10px;
  }
}
/* ==========================================================================
   19. INLINE "MORE DETAILS" LINKS
   ========================================================================== */
.label-more-details-link {
  font-size: 11px !important;
  font-weight: 500;
  color: var(--orange) !important;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

/* Margin controls to space it perfectly depending on reading direction */
html[dir="ltr"] .label-more-details-link {
  margin-left: 8px;
}

html[dir="rtl"] .label-more-details-link {
  margin-right: 8px;
}

/* Subtle interactive premium feel on hover */
.label-more-details-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}
/* ==========================================================================
   20. SHOPPING CART SYSTEM
   ========================================================================== */

/* Header cart button — mirrors the hamburger menu's position */
.cart-btn {
  position: fixed;
  top: 24px !important;
  z-index: 99998 !important;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
}

html[dir="ltr"] .cart-btn {
  right: 20px;
  left: auto;
}

html[dir="rtl"] .cart-btn {
  left: 20px;
  right: auto;
}

.cart-btn svg {
  width: 100%;
  height: 100%;
}

.cart-count {
  position: absolute;
  top: -7px;
  inset-inline-end: -9px;
  background: var(--orange);
  color: #140800;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

@media (max-width: 480px) {
  html[dir="ltr"] .cart-btn { right: 16px; }
  html[dir="rtl"] .cart-btn { left: 16px; }
}

/* Mini add-to-cart toggle buttons (shared base style) */
.cart-toggle-btn {
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.cart-toggle-btn svg {
  width: 16px;
  height: 16px;
}

.cart-toggle-btn .icon-added {
  display: none;
}

.cart-toggle-btn.in-cart .icon-add {
  display: none;
}

.cart-toggle-btn.in-cart .icon-added {
  display: block;
}

.cart-toggle-btn:not(.in-cart):hover {
  border-color: var(--orange);
  color: var(--orange);
}

.cart-toggle-btn.in-cart {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

/* Placement: corner of each addon-card */
.addon-card .cart-toggle-btn {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
}

/* Placement: next to the PURE COMPLETE price badge */
.complete-price-footer {
  align-items: center;
  gap: 14px;
}

/* ---------------- "Your Selection" list in the form ---------------- */
.cart-selection-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;        /* Horizontal direction */
  flex-wrap: wrap;           /* Wrap onto next line if items exceed container width */
  gap: 8px;
  align-items: center;
}

.cart-selection-list li {
  display: inline-flex;      /* Keep each item tightly wrapped */
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 20px;       /* Rounded chip appearance */
  padding: 6px 12px;         /* Compact padding for inline tags */
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;       /* Prevent individual tag text from wrapping awkwardly */
}

.cart-selection-list li .cart-item-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--orange);      /* Highlights 'Package/Add-on' tag clearly */
  margin-inline-end: 6px;
}

body.lang-ar .cart-selection-list li .cart-item-tag {
  font-family: 'Cairo', sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.cart-remove-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0 0 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease;
  flex-shrink: 0;
}

.cart-remove-btn svg {
  width: 13px;
  height: 13px;
}

.cart-remove-btn:hover {
  color: #ff4d4d;
}

.cart-selection-empty {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 6px;
}

.cart-selection-list:empty {
  display: none;
}

.cart-selection-list:empty + .cart-selection-empty {
  display: block;
}

.cart-selection-list:not(:empty) + .cart-selection-empty {
  display: none;
}

/* Flashes the selection box orange briefly if someone tries to submit
   without picking a package — see the JS validation on form submit */
.cart-selection-invalid {
  animation: cartInvalidFlash 1.4s ease;
}

@keyframes cartInvalidFlash {
  0%, 100% { box-shadow: none; }
  15%, 45% { box-shadow: 0 0 0 2px #ff4d4d; }
  30%, 60% { box-shadow: none; }
}

/* ---------------- "Item added" feedback animations ---------------- */
@keyframes cartBtnPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.3); }
  60%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.cart-btn.cart-btn-pop { animation: cartBtnPop 0.45s ease; }

@keyframes cartCountPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.cart-count.cart-count-pop { animation: cartCountPop 0.4s ease; }

@keyframes cartToggleAdded {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.cart-toggle-btn.just-added { animation: cartToggleAdded 0.4s ease; }