/**
 * AWAN EXACT STYLES
 * Recreated from itsawan.com source code
 * All measurements, animations, and effects match exactly
 */

/* ========================================
   DESIGN TOKENS & CSS VARIABLES
   ======================================== */

:root {
  /* ===== PRIMARY COLORS ===== */
  --awan-orange: var(--awan-accent);
  --awan-orange-rgb: 190, 84, 46;
  --awan-orange-15: rgba(190,84,46,0.15);
  --awan-orange-20: rgba(190,84,46,0.2);
  --awan-orange-60: rgba(190,84,46,0.6);
  --awan-orange-80: rgba(190,84,46,0.8);

  /* ===== LIGHT MODE (Default) ===== */
  --awan-background: var(--awan-surface);
  --awan-background-rgb: 250, 250, 249;
  --awan-foreground: var(--awan-text);
  --awan-foreground-rgb: 23, 23, 23;

  /* Card */
  --awan-card: var(--awan-surface);
  --awan-card-foreground: var(--awan-text);

  /* Primary (Orange) */
  --awan-primary: var(--awan-accent);
  --awan-primary-foreground: var(--awan-surface);

  /* Secondary */
  --awan-secondary: #E0DCC8;
  --awan-secondary-foreground: var(--awan-text);

  /* Accent */
  --awan-accent: #BE542E;
  --awan-accent-foreground: var(--awan-text);

  /* Muted */
  --awan-muted: #E0DCC8;
  --awan-muted-foreground: #8B8778;

  /* Border */
  --awan-border: #C9C5B3;

  /* Radius */
  --awan-radius: 0.5rem;

  /* Legacy Semantic Colors (preserved for backward compatibility) */
  --awan-critical: #ef4444;
  --awan-line: #C9C5B3;
  --awan-white: var(--awan-surface);

  /* Legacy Text Colors (preserved for backward compatibility) */
  --awan-text-muted: #8A8880;
  --awan-text-gray: var(--awan-muted);
  --awan-text-dark-gray: var(--awan-muted);
}

/* ===== DARK MODE ===== */
.dark {
  --awan-background: var(--awan-text);
  --awan-background-rgb: 23, 23, 23;
  --awan-foreground: var(--awan-surface);
  --awan-foreground-rgb: 250, 250, 249;

  --awan-card: #2A2C2B;
  --awan-card-foreground: var(--awan-surface);

  --awan-secondary: #2A2C2B;
  --awan-secondary-foreground: var(--awan-surface);

  --awan-accent: #D4703A;
  --awan-accent-foreground: var(--awan-surface);

  --awan-muted: #2A2C2B;
  --awan-muted-foreground: #7A7870;

  --awan-border: var(--awan-muted);

  /* Legacy overrides */
  --awan-text-muted: #7A7870;
  --awan-orange-15: rgba(190,84,46,0.2);
}

/* ========================================
   HERO VIDEO SECTION - EXACT RECREATION
   ======================================== */

.index-entry {
  position: relative;
  width: 100%;
  height: 200vh;
  background: transparent;
}

.index-entry-video--initial-vh {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  transform-origin: center center;
  z-index: 1;
}

.index-entry-video__inner {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

/* Dark overlay covering entire container */
.index-entry-video__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,15,14,0.5);
  z-index: 2;
  pointer-events: none;
}

/* ========================================
   GLASSMORPHISM BUTTON SYSTEM
   ======================================== */

.index-entry-video__mute-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.index-entry-video__mute-btn .base-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.75rem 1.5rem;
  height: auto;
  min-height: 4.5rem;
  min-width: 7rem;

  /* Glassmorphism effect */
  background-color: rgba(45, 45, 45, 0.1);
  backdrop-filter: blur(200px);
  -webkit-backdrop-filter: blur(200px);
  border: 1px solid rgba(233,230,215,0.2);
  border-radius: 0.75rem;
  color: var(--awan-text);

  /* Pulse animation */
  animation: buttonPulse 3s ease-in-out 2s infinite;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.dark .index-entry-video__mute-btn .base-button {
  color: var(--awan-surface);
  background-color: hsla(0, 0%, 82.4%, 0.1);
}

.index-entry-video__mute-btn .base-button:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 24px rgba(190,84,46,0.6),
    0 8px 32px rgba(13,15,14,0.3);
  background: rgba(190,84,46,0.15);
  border-color: rgba(190,84,46,0.8);
}

.dark .index-entry-video__mute-btn .base-button:hover {
  background-color: rgba(233,230,215,0.2);
}

.base-button__label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.base-button__icon {
  font-size: 1.25rem;
  line-height: 1;
}

/* ========================================
   BUTTON ANIMATIONS
   ======================================== */

@keyframes buttonPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes rippleEffect {
  0% {
    width: 0;
    height: 0;
    opacity: 0.6;
  }
  100% {
    width: 300%;
    height: 300%;
    opacity: 0;
  }
}

/* ========================================
   FLOATING HINT LABEL
   ======================================== */

.button-hint-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 5rem));
  opacity: 0;
  animation: hintBreathingLoop 10s ease-in-out 1s infinite;
  z-index: 11;
  pointer-events: none;
}

.button-hint-label__text {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--awan-surface);
  background: rgba(13,15,14,0.5);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

@keyframes hintBreathingLoop {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 4.8rem));
  }
  20% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 5rem));
  }
  50% {
    opacity: 1;
  }
  70% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* ========================================
   HERO HEADLINES
   ======================================== */

.index-entry-video__headline {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 9;
  width: 100%;
  max-width: 600px;
  padding: 0 2rem;
  text-align: center;
}

.index-entry-video__headline--top {
  top: 50%;
  transform: translate(-50%, calc(-50% - 120px));
}

.index-entry-video__headline--bottom {
  top: 50%;
  transform: translate(-50%, calc(-50% + 120px));
}

.index-entry-video__headline-text {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015rem;
  color: var(--awan-surface);
  transition: opacity 0.3s ease-out;
}

.index-entry-video__headline-text--orange {
  color: var(--awan-orange);
}

/* ========================================
   VIDEO/SLIDER TRANSITIONS
   ======================================== */

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 0.8s ease-out;
  z-index: 1;
}

.video-container.video-fadeout {
  opacity: 0;
  pointer-events: none;
}

.image-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in;
  z-index: 0;
}

.image-slider.slider-fadein {
  opacity: 1;
  z-index: 1;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.slider-image.active {
  opacity: 1;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   FEATURED PROJECTS - 3D CARDS
   ======================================== */

.featured-projects-container {
  background-color: var(--awan-background);
  color: var(--awan-foreground);
  padding: 4rem 1rem;
  width: 100%;
}

.featured-projects-header {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.featured-projects-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--awan-foreground);
}

/* ====================================================
   FEATURE CARDS — CSS vars for light/dark
   ==================================================== */

/* Light mode */
:root {
  --fp-container-bg: #E0DCC8;
  --fp-card-bg: var(--awan-surface);
  --fp-card-border: rgba(13,15,14,0.06);
  --fp-card-shadow: 0 4px 24px rgba(13,15,14,0.07), 0 1px 4px rgba(13,15,14,0.04);
  --fp-heading: var(--awan-text);
  --fp-body: var(--awan-muted);
  --fp-divider: rgba(13,15,14,0.08);
  --fp-img-bg: #E0DCC8;
}
/* Dark mode — mirrors light (cream theme) */
.dark {
  --fp-container-bg: #E0DCC8;
  --fp-card-bg: var(--awan-surface);
  --fp-card-border: rgba(13,15,14,0.06);
  --fp-card-shadow: 0 4px 24px rgba(13,15,14,0.07), 0 1px 4px rgba(13,15,14,0.04);
  --fp-heading: var(--awan-text);
  --fp-body: var(--awan-muted);
  --fp-divider: rgba(13,15,14,0.08);
  --fp-img-bg: #E0DCC8;
}

.featured-projects-container {
  background: var(--fp-container-bg);
  padding: 4rem 1rem !important;
}

.featured-project-card {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  perspective: 1000px;
}

.featured-project-card-inner {
  position: relative;
  width: 100%;
  max-width: 1160px;
  height: 78vh;
  max-height: 680px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3rem;

  background: var(--fp-card-bg);
  border: 1px solid var(--fp-card-border);
  border-radius: 1.5rem;
  box-shadow: var(--fp-card-shadow);

  transform-origin: 50% 100%;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Scroll-based fade overlay */
.featured-project-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--fp-container-bg);
  opacity: 0;
  border-radius: 1.5rem;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.featured-project-icon svg {
  display: block;
}

.featured-project-card-info {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--awan-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.featured-project-card-title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fp-heading);
  margin: 0;
}

.featured-project-card-description {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--fp-body);
  margin: 0;
}

.featured-project-card-img {
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--fp-img-bg);
}

.featured-project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================================
   ABOUT SECTION - SCROLL HIGHLIGHTING
   ======================================== */

.about-section .paragraph .content {
  color: var(--awan-text-muted);
  font-size: 1.5rem;
  line-height: 1.4;
}

.about-section .paragraph .content mark {
  background-color: transparent;
  color: #8A8880;
  transition: color 0.5s ease;
}

.about-section .paragraph .content mark.focus {
  color: var(--awan-text);
  font-weight: 600;
}

.dark .about-section .paragraph .content mark.focus {
  color: var(--awan-orange);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 767.98px) {
  .index-entry-video__mute-btn .base-button {
    min-height: 4rem;
    min-width: 6rem;
    padding: 0.625rem 1.25rem;
  }

  .base-button__label {
    font-size: 0.75rem;
  }

  .button-hint-label {
    transform: translate(-50%, calc(-50% - 4.3rem));
  }

  .index-entry-video__headline-text {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
  }

  .index-entry-video__headline--top {
    transform: translate(-50%, calc(-50% - 100px));
  }

  .index-entry-video__headline--bottom {
    transform: translate(-50%, calc(-50% + 100px));
  }

  .featured-project-card-inner {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    height: auto;
    min-height: unset;
  }
}

@media (min-width: 768px) and (max-width: 999.98px) {
  .featured-project-card-inner {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   RTL SUPPORT
   ======================================== */

[dir='rtl'] .index-entry-video__mute-btn {
  left: auto;
  right: 50%;
  transform: translate(50%, -50%);
}

[dir='rtl'] .button-hint-label {
  left: auto;
  right: 50%;
}

[dir='rtl'] .index-entry-video__headline {
  left: auto;
  right: 50%;
  transform: translate(50%, 0);
}

[dir='rtl'] .index-entry-video__headline--top {
  transform: translate(50%, calc(-50% - 120px));
}

[dir='rtl'] .index-entry-video__headline--bottom {
  transform: translate(50%, calc(-50% + 120px));
}

/* ========================================
   MICRO-INTERACTIONS & HOVER EFFECTS
   ======================================== */

/* Button hover ripple effect */
.base-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(190,84,46,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s, opacity 0.6s;
  opacity: 0;
  pointer-events: none;
}

.base-button:active::before {
  width: 300%;
  height: 300%;
  opacity: 0;
  transition: 0s;
}

/* Card hover lift effect */
.featured-project-card-inner:hover {
  transform: translateY(-4px) rotateX(2deg);
  box-shadow: 0 12px 40px rgba(13,15,14,0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Text selection highlight */
::selection {
  background-color: rgba(190,84,46,0.3);
  color: inherit;
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Loading state shimmer animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-shimmer {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(
    to right,
    rgba(233,230,215,0) 0%,
    rgba(233,230,215,0.3) 50%,
    rgba(233,230,215,0) 100%
  );
  background-size: 1000px 100%;
}

/* Icon rotation on hover */
.strip-item:hover .strip-item__icon {
  transform: rotate(360deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   LOGO STRIP CONTINUOUS SCROLL ANIMATION
   ======================================== */

/* Logo strip container */
.logo-strip {
  width: 100%;
  overflow: hidden;
  padding: 4rem 0;

  position: relative;
}

/* Logo strip track with continuous scroll */
.logo-strip-track {
  display: flex;
  gap: 4rem;
  animation: logoStripScroll 40s linear infinite;
  will-change: transform;
}

/* Continuous horizontal scroll animation */
@keyframes logoStripScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* RTL reverse animation (handled in rtl-enhancements.css) */
[dir='rtl'] .logo-strip-track {
  animation-direction: reverse;
}

/* Pause on hover for accessibility */
.logo-strip:hover .logo-strip-track {
  animation-play-state: paused;
}

/* Strip items */
.strip-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.strip-item__text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--awan-foreground);
  transition: color 0.3s ease;
}

.strip-item__text--highlight {
  color: var(--awan-orange);
  font-weight: 600;
}

.strip-item__quote {
  font-style: italic;
  color: var(--awan-text-dark-gray);
}

/* Button text slide effect */
.footer-cta-button {
  position: relative;
  overflow: hidden;
}

.footer-cta-button::after {
  content: 'اشتري الآن';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--awan-orange);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.footer-cta-button:hover::after {
  transform: translateY(0);
}

/* Scroll indicator bounce */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.scroll-indicator {
  animation: bounce 2s infinite;
}

/* ========================================
   GLOBAL TRANSITIONS
   ======================================== */

* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-duration: 200ms;
  transition-timing-function: ease-in-out;
}

/* ========================================
   PAGE LOAD ENTRANCE ANIMATIONS
   ======================================== */

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Fade in from bottom */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero video entrance */
.hero-video-exact,
.index-entry-video--initial-vh {
  animation: fadeIn 0.8s ease-out;
}

/* Staggered section entrances */
.about-section-exact,
.benefits-exact,
.featured-projects-exact,
.contact-section,
.logo-strip {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger delays for sequential reveal */
.about-section-exact {
  animation-delay: 0.1s;
}

.benefits-exact {
  animation-delay: 0.2s;
}

.logo-strip {
  animation-delay: 0.3s;
}

.featured-projects-exact {
  animation-delay: 0.4s;
}

.contact-section {
  animation-delay: 0.5s;
}

/* ========================================
   ENHANCED LOADING STATES
   ======================================== */

/* Apply shimmer to loading elements */
.product-card.loading,
.cart-item.loading,
img[data-loading="true"] {
  position: relative;
  overflow: hidden;
}

.product-card.loading::after,
.cart-item.loading::after,
img[data-loading="true"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(233,230,215,0) 0%,
    rgba(233,230,215,0.3) 50%,
    rgba(233,230,215,0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  pointer-events: none;
}

/* Dark mode loading shimmer */
.dark .product-card.loading::after,
.dark .cart-item.loading::after,
.dark img[data-loading="true"]::after {
  background: linear-gradient(
    90deg,
    rgba(233,230,215,0) 0%,
    rgba(233,230,215,0.1) 50%,
    rgba(233,230,215,0) 100%
  );
}

/* ========================================
   SCREEN READER ONLY UTILITY
   ======================================== */

/* Visually hidden but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================
   ACCESSIBILITY FOCUS STATES
   ======================================== */

/* Accessible focus states for all interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--awan-orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(190,84,46,0.2);
}

/* Remove default outline for non-keyboard focus */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Keyboard navigation indicators */
.nav-link:focus-visible {
  background: rgba(190,84,46,0.1);
  border-radius: 0.5rem;
}

/* Focus visible for custom buttons */
.base-button:focus-visible {
  outline: 2px solid var(--awan-orange);
  outline-offset: 4px;
}

/* Card focus states */
.featured-project-card:focus-visible {
  outline: 2px solid var(--awan-orange);
  outline-offset: 4px;
}

/* Product card focus */
.product-card:focus-visible {
  outline: 2px solid var(--awan-orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(190,84,46,0.2);
}

/* ========================================
   ENHANCED RIPPLE EFFECT
   ======================================== */

/* Ripple active state */
.base-button.ripple-active::before,
.checkout-btn.ripple-active::before,
[data-add-to-cart-form].ripple-active::before {
  width: 300%;
  height: 300%;
  opacity: 0;
  transition: width 0.6s, height 0.6s, opacity 0.6s;
}

/* ========================================
   CART PAGE — Mobile-first layout (v192)
   All awan-cart-* classes live here.
   ======================================== */

/* ── Page shell ── */
.awan-cart-page {
  background: var(--awan-surface);
  min-height: 60vh;
  padding-bottom: 5rem;
}
.dark .awan-cart-page {
  background: var(--awan-text);
}

/* ── Container ── */
.awan-cart-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .awan-cart-container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .awan-cart-container { padding: 0 2rem; }
}

/* ── Header ── */
.awan-cart-header {
  border-bottom: 1px solid rgba(13,15,14,0.08);
  padding: 1.25rem 0 1rem;
  margin-bottom: 1.5rem;
}
.dark .awan-cart-header {
  border-bottom-color: rgba(233,230,215,0.08);
}
@media (min-width: 640px) {
  .awan-cart-header { padding: 2rem 0 1.25rem; }
}

/* ── Back link ── */
.awan-cart-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--awan-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 0.625rem;
  transition: gap 0.2s;
}
.awan-cart-back:hover { gap: 0.625rem; }

/* ── Title ── */
.awan-cart-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--awan-text);
}
.dark .awan-cart-title { color: var(--awan-surface); }
@media (min-width: 640px) {
  .awan-cart-title { font-size: 1.75rem; }
}

/* ── Body ── */
.awan-cart-body {
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .awan-cart-body { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .awan-cart-body { padding: 0 2rem; }
}

/* ── Grid: single col mobile → two col desktop ── */
.awan-cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  min-width: 0;
}
@media (min-width: 900px) {
  .awan-cart-grid {
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
  }
}
@media (min-width: 1100px) {
  .awan-cart-grid {
    grid-template-columns: 1fr 400px;
  }
}

/* ── Items column ── */
.awan-cart-items {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

/* ── Column labels (desktop only) ── */
.awan-cart-col-labels {
  display: none;
  grid-template-columns: 1fr 120px 120px;
  gap: 1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(13,15,14,0.08);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a7870;
}
.dark .awan-cart-col-labels {
  border-bottom-color: rgba(233,230,215,0.08);
}
@media (min-width: 768px) {
  .awan-cart-col-labels { display: grid; }
}

/* ── Summary sidebar ── */
.awan-cart-summary-inner {
  background: var(--awan-surface);
  border: 1px solid rgba(13,15,14,0.08);
  border-radius: 1.25rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dark .awan-cart-summary-inner {
  background: var(--awan-text);
  border-color: rgba(233,230,215,0.08);
}
@media (min-width: 900px) {
  .awan-cart-summary-inner {
    position: sticky;
    top: 5rem;
    padding: 1.5rem;
  }
}

/* ── Trust bar ── */
.awan-cart-trust {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(13,15,14,0.08);
}
.dark .awan-cart-trust {
  border-top-color: rgba(233,230,215,0.08);
}
.awan-cart-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--awan-text-muted);
}
.dark .awan-cart-trust-item { color: #7a7870; }

/* ── qty-sym (text fallback for + / - buttons) ── */
.qty-sym {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  color: inherit;
}

/* ── Ensure [hidden] beats display:flex on qty buttons ── */
[data-qty-action][hidden],
.qty-input-btn[hidden] {
  display: none !important;
}

/* ── Hero defensive styling (v199 #1) ── */
/* Guarantee the hero area is never blank cream even if canvas and poster both fail to render. */
/* Users always see either the poster image, the canvas scrubbing, or the dark brand color. */
.awan-hero-frame {
  background-color: rgb(13, 15, 14);
}
#hero-poster {
  opacity: 1 !important;
  display: block !important;
}

/* ── Quantity input base styling (v196) ── */
/* Zid's cart template renders SVGs inside .qty-input-btn without width/height */
/* attrs — they collapse to 0×0 in flex containers and buttons appear empty. */
/* These rules give buttons a guaranteed hit area and force SVGs to a visible */
/* size regardless of the runtime patcher. Applies to cart, product, and any */
/* other page that uses the .qty-input component or Zid's native render. */
.qty-input {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--awan-border);
  border-radius: 0.5rem;
  background: var(--awan-bg);
  overflow: hidden;
}
.qty-input-full {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.qty-input-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  flex-shrink: 0;
  color: var(--awan-text);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.qty-input-btn:hover {
  background: rgba(13, 15, 14, 0.06);
}
.qty-input-btn:disabled,
.qty-input-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
/* Force qty SVGs to render visibly even when width/height attrs are missing */
.qty-input-btn svg {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  fill: currentColor;
}
.qty-input-field {
  flex: 1 1 auto;
  min-width: 2.5rem;
  width: 3rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--awan-text);
  text-align: center;
  font-size: 0.875rem;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-input-field::-webkit-outer-spin-button,
.qty-input-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-input-field:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(190, 84, 46, 0.3);
}

/* ── Cart empty-state polish (v199 #7) ── */
/* Zid renders the empty-cart message inside [data-cart-products-list]. We style it so */
/* the page doesn't look half-built when cart is empty, and make the discount/coupon block */
/* breathe so the "تطبيق" button doesn't overlap its input. */
[data-cart-products-list]:empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
  padding: 2rem 1rem;
  color: var(--awan-text-muted);
  text-align: center;
  font-size: 0.95rem;
}
[data-cart-products-list]:empty::before {
  content: 'سلتك فارغة — ابدأ التسوق لإضافة منتجات.';
  max-width: 32ch;
  line-height: 1.6;
  color: var(--awan-text);
  font-weight: 500;
}
html[lang="en"] [data-cart-products-list]:empty::before {
  content: 'Your cart is empty — start shopping to add products.';
}
/* Give the discount/coupon input row proper spacing so button doesn't overlap input */
.awan-cart-summary-inner .coupon-code-form,
.awan-cart-summary-inner [data-coupon-form] {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.awan-cart-summary-inner .coupon-code-form input,
.awan-cart-summary-inner [data-coupon-form] input {
  flex: 1 1 auto;
  min-width: 0;
}

/* ── Cart item rows (Zid vitrin classes styled) ── */
.cart-product-item {
  background: var(--awan-bg) !important;
  border: 1px solid rgba(13,15,14,0.07) !important;
  border-radius: 1rem !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.875rem !important;
  padding: 1rem !important;
  margin-bottom: 0.625rem !important;
  transition: box-shadow 0.2s, border-color 0.2s !important;
}
.cart-product-item:hover {
  border-color: rgba(190,84,46,0.25) !important;
  box-shadow: 0 4px 16px rgba(13,15,14,0.08) !important;
}

/* Checkout button — overrides Zid's Tailwind */
.checkout-btn,
button[class*="checkout"],
a[class*="checkout"],
[data-testid*="checkout"] button {
  background: var(--awan-accent) !important;
  color: var(--awan-text-on-accent) !important;
  border: none !important;
  border-radius: 0.75rem !important;
  width: 100% !important;
  padding: 1rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.checkout-btn:hover,
button[class*="checkout"]:hover {
  background: var(--awan-accent-hover) !important;
  box-shadow: 0 6px 20px rgba(190,84,46,0.4) !important;
}

/* ── Dark mode ── */
.dark .cart-product-item {
  background: #1e1f1e !important;
  border-color: rgba(233,230,215,0.07) !important;
}

/* ========================================
   VITRIN PAGES BRAND OVERRIDE (v193)
   Targets: account, login, register, orders,
   reset-password — all Zid-owned vitrin pages.

   Rules: MUI semantic classes only (stable across
   SDK updates). Never use hash css-* classes.
   ======================================== */

/* ── Body background on vitrin pages ── */
body[style*="background"],
body {
  background-color: var(--awan-bg, #E9E6D7) !important;
}

/* ── Root container ── */
.MuiBox-root[class*="css-wxugok"],
.MuiBox-root:first-of-type {
  background-color: var(--awan-bg, #E9E6D7) !important;
}

/* ── Page wrapper background ── */
.MuiContainer-root {
  background-color: transparent !important;
}

/* ── Cards / Paper ── */
.MuiPaper-root {
  background-color: var(--awan-surface, #F5F3EC) !important;
  border: 1px solid rgba(13,15,14,0.08) !important;
  border-radius: 1rem !important;
  box-shadow: 0 2px 12px rgba(13,15,14,0.06) !important;
}
.dark .MuiPaper-root {
  background-color: #1e1f1e !important;
  border-color: rgba(233,230,215,0.08) !important;
}

/* ── Section header accent bar (top colored strip on card) ── */
.MuiBox-root[style*="background-color: rgb(255, 249, 244)"] {
  background-color: var(--awan-accent) !important;
}
.MuiBox-root[style*="background-color: rgb(255, 249, 244)"] * {
  color: #fff !important;
}

/* ── Avatar circle ── */
.MuiBox-root[style*="background-color: rgb(242, 242, 242)"] {
  background-color: rgba(190,84,46,0.12) !important;
}
.MuiBox-root[style*="background-color: rgb(242, 242, 242)"] svg {
  color: var(--awan-accent) !important;
}

/* ── Typography ── */
.MuiTypography-root {
  font-family: var(--font-family, inherit) !important;
  color: var(--awan-text) !important;
}
.MuiTypography-root.MuiTypography-h1,
.MuiTypography-root.MuiTypography-h2,
.MuiTypography-root.MuiTypography-h3,
.MuiTypography-root.MuiTypography-h4,
.MuiTypography-root.MuiTypography-h5,
.MuiTypography-root.MuiTypography-h6 {
  font-weight: 700 !important;
  color: var(--awan-text) !important;
}
.MuiTypography-root.MuiTypography-caption,
.MuiTypography-root.MuiTypography-body2 {
  color: var(--awan-text-muted, #8a8880) !important;
}

/* ── Links ── */
.MuiLink-root,
a.MuiTypography-root {
  color: var(--awan-accent) !important;
  text-decoration-color: rgba(190,84,46,0.3) !important;
}
.MuiLink-root:hover {
  color: var(--awan-accent-hover, #A3452A) !important;
}

/* ── Buttons: primary ── */
.MuiButton-containedPrimary,
.MuiButton-contained {
  background-color: var(--awan-accent) !important;
  color: var(--awan-text-on-accent, #E9E6D7) !important;
  border-radius: 0.625rem !important;
  font-weight: 700 !important;
  font-family: var(--font-family, inherit) !important;
  box-shadow: none !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.MuiButton-containedPrimary:hover,
.MuiButton-contained:hover {
  background-color: var(--awan-accent-hover, #A3452A) !important;
  box-shadow: 0 4px 16px rgba(190,84,46,0.35) !important;
}

/* ── Buttons: outlined ── */
.MuiButton-outlinedPrimary,
.MuiButton-outlined {
  border-color: var(--awan-accent) !important;
  color: var(--awan-accent) !important;
  border-radius: 0.625rem !important;
  font-weight: 600 !important;
  font-family: var(--font-family, inherit) !important;
}
.MuiButton-outlinedPrimary:hover,
.MuiButton-outlined:hover {
  background-color: rgba(190,84,46,0.06) !important;
}

/* ── Text buttons ── */
.MuiButton-textPrimary,
.MuiButton-text {
  color: var(--awan-accent) !important;
  font-weight: 600 !important;
}

/* ── Icon buttons ── */
.MuiIconButton-root {
  color: var(--awan-text-muted) !important;
  transition: color 0.15s, background 0.15s !important;
}
.MuiIconButton-root:hover {
  color: var(--awan-accent) !important;
  background-color: rgba(190,84,46,0.08) !important;
}

/* ── Form inputs ── */
.MuiOutlinedInput-root {
  background-color: var(--awan-surface, #F5F3EC) !important;
  border-radius: 0.625rem !important;
  font-family: var(--font-family, inherit) !important;
}
.MuiOutlinedInput-notchedOutline {
  border-color: rgba(13,15,14,0.18) !important;
  border-radius: 0.625rem !important;
}
.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: rgba(190,84,46,0.5) !important;
}
.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: var(--awan-accent) !important;
  border-width: 2px !important;
}
.MuiInputLabel-root.Mui-focused {
  color: var(--awan-accent) !important;
}

/* ── Dividers ── */
.MuiDivider-root {
  border-color: rgba(13,15,14,0.08) !important;
}
.dark .MuiDivider-root {
  border-color: rgba(233,230,215,0.08) !important;
}

/* ── Toggle / Switch ── */
.MuiSwitch-colorPrimary.Mui-checked {
  color: var(--awan-accent) !important;
}
.MuiSwitch-colorPrimary.Mui-checked + .MuiSwitch-track {
  background-color: var(--awan-accent) !important;
}

/* ── Tabs ── */
.MuiTab-root.Mui-selected {
  color: var(--awan-accent) !important;
}
.MuiTabs-indicator {
  background-color: var(--awan-accent) !important;
}

/* ── Chips ── */
.MuiChip-colorPrimary {
  background-color: rgba(190,84,46,0.12) !important;
  color: var(--awan-accent) !important;
}

/* ── Alerts ── */
.MuiAlert-standardSuccess {
  background-color: rgba(100,149,96,0.1) !important;
  color: #649560 !important;
}
.MuiAlert-standardError {
  background-color: rgba(194,43,81,0.1) !important;
  color: #c22b51 !important;
}

/* ── Grid items spacing fix on mobile ── */
@media (max-width: 600px) {
  .MuiGrid-container {
    padding: 0 !important;
  }
  .MuiContainer-root {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
