/* ============================================================
   DIZAINK.COM — Main Stylesheet
   Colorful & Energetic | Dark Mode | Glassmorphism
   ============================================================ */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --bg-base:        #f0f5fa;
  --bg-secondary:   #e4edf5;
  --bg-card:        #ffffff;
  --bg-card-hover:  #f8fbfd;

  --purple:   #7c3aed;
  --primary:  #14b8a6;  /* TEAL — main brand color */
  --pink:     #ec4899;
  --cyan:     #06b6d4;
  --orange:   #f97316;
  --green:    #10b981;
  --yellow:   #f59e0b;
  --red:      #ef4444;

  --grad-main:   linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
  --grad-warm:   linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  --grad-cool:   linear-gradient(135deg, #5eead4 0%, #14b8a6 100%);
  --grad-green:  linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  --grad-fire:   linear-gradient(135deg, #fbbf24 0%, #f97316 100%);

  --text-primary:   #1a2332;
  --text-secondary: #5a6b7d;
  --text-muted:     #94a3b8;

  --border:         rgba(20, 184, 166, 0.12);
  --border-glow:    rgba(20, 184, 166, 0.25);

  --font-main:  'Outfit', 'Cairo', sans-serif;
  --font-ar:    'Cairo', 'Outfit', sans-serif;

  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  --shadow-card:        0 2px 12px rgba(0,0,0,0.06);
  --shadow-glow-purple: 0 4px 20px rgba(124,58,237,0.12);
  --shadow-glow-pink:   0 4px 20px rgba(236,72,153,0.12);
  --shadow-glow-cyan:   0 4px 20px rgba(20,184,166,0.15);
  --shadow-glow-orange: 0 4px 20px rgba(249,115,22,0.12);

  --transition-fast:   all 0.18s cubic-bezier(0.4,0,0.2,1);
  --transition:        all 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow:   all 0.5s cubic-bezier(0.4,0,0.2,1);

  --announcement-h: 36px;
  --discount-bar-h: 0px;
  --top-bars-h: var(--announcement-h);
  --header-h: 72px;
  --z-header: 100;
  --z-modal:  200;
  --z-toast:  300;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(ellipse 85% 55% at 50% -10%, rgba(20, 184, 166, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 65% 50% at 100% 35%, rgba(56, 189, 248, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 65% 50% at 0% 70%, rgba(20, 184, 166, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 105%, rgba(56, 189, 248, 0.06) 0%, transparent 65%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

body[dir="rtl"] {
  font-family: var(--font-ar);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
select,
select.form-control,
select.form-input,
select option {
  background-color: #ffffff !important;
  color: var(--text-primary) !important;
}
ul { list-style: none; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ============================================================
   ANIMATED BACKGROUND ORBS
   ============================================================ */
/* Orbs hidden in light theme */
.bg-orbs {
  display: none;
}

/* Particle canvas hidden in light theme */
#particle-canvas {
  display: none;
}

/* ============================================================
   ANNOUNCEMENT BAR (Shopify Reference Style)
   ============================================================ */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--announcement-h);
  background: linear-gradient(135deg, #00a8cc 0%, #008bb0 100%);
  color: #ffffff;
  z-index: calc(var(--z-header) + 5);
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 168, 204, 0.2);
}

.announcement-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: announcementScroll 28s linear infinite;
  gap: 1.5rem;
  padding-left: 100%;
}

.announcement-track:hover {
  animation-play-state: paused;
}

@keyframes announcementScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

[dir="rtl"] .announcement-track {
  animation: announcementScrollRtl 28s linear infinite;
  padding-left: 0;
  padding-right: 100%;
}

@keyframes announcementScrollRtl {
  0%   { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.announcement-sep {
  opacity: 0.55;
  font-size: 0.75rem;
}

/* Discount Sub-Bar (below announcement bar) */
.discount-subbar {
  position: fixed;
  top: var(--announcement-h);
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 50%, #ef4444 100%);
  background-size: 200% 100%;
  animation: discountBarShimmer 3s ease infinite;
  color: #ffffff !important;
  z-index: calc(var(--z-header) + 4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 6px rgba(239, 68, 68, 0.25);
  line-height: 1;
}

@keyframes discountBarShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.discount-subbar .discount-timer {
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* When discount bar is active, push everything down */
body.has-discount-bar {
  --discount-bar-h: 30px;
  --top-bars-h: calc(var(--announcement-h) + var(--discount-bar-h));
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: var(--top-bars-h);
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  transition: var(--transition);
}

.logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #00b4d8 0%, #0096c7 45%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  display: inline-block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: #00a8cc;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #ffffff;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.25);
  transition: var(--transition-fast);
}

.header-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  color: #ffffff;
}

.header-wa-btn svg {
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  gap: 3px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  transition: var(--transition-fast);
  letter-spacing: 0.04em;
  background: transparent;
  cursor: pointer;
}

.lang-btn:hover { color: #0f172a; }

.lang-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Floating WhatsApp Button */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 95;
  transition: var(--transition-fast);
  text-decoration: none;
}

.whatsapp-floating-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

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

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 4rem) 1.5rem 6rem;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease both;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  white-space: pre-line;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s 0.1s ease both;
}

.hero-title .gradient-word {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-weight: 400;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s 0.3s ease both;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2.25rem;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 700;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-primary {
  background: var(--grad-main);
  color: white;
  box-shadow: 0 4px 20px rgba(20,184,166,0.25);
  font-size: 1.1rem;
  padding: 1.1rem 2.5rem;
}

.btn-primary::before {
  background: linear-gradient(135deg, #5eead4, #14b8a6);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(20,184,166,0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  font-size: 1.1rem;
  padding: 1.1rem 2.5rem;
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(20,184,166,0.06);
  box-shadow: 0 4px 16px rgba(20,184,166,0.12);
}

.btn-icon { font-size: 1.3em; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  animation: fadeInUp 1s 0.6s ease both;
  cursor: pointer;
}

.scroll-arrow {
  width: 28px; height: 28px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow svg { width: 12px; height: 12px; fill: var(--text-muted); }

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%       { transform: translateY(6px); opacity: 1; }
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section {
  position: relative;
  z-index: 2;
  padding: 5rem 1.5rem;
}

/* Gallery Section (hidden until user clicks 'Nos Collections') */
.gallery-section,
#gallery {
  display: none;
  animation: fadeInUp 0.5s ease both;
}

.gallery-section.active,
#gallery.active {
  display: block;
}

.gallery-nav-bar {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0 0.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   CATEGORY TABS
   ============================================================ */
.categories-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.categories-wrapper::-webkit-scrollbar { display: none; }

.categories-tabs {
  display: inline-flex;
  gap: 8px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px;
  flex-wrap: nowrap;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.cat-tab:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.cat-tab.active {
  background: var(--grad-main);
  color: white;
  box-shadow: 0 2px 12px rgba(20,184,166,0.25);
}

.cat-tab .cat-emoji { font-size: 1.1em; }
.cat-tab .cat-count {
  font-size: 0.7rem;
  opacity: 0.7;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-full);
  padding: 2px 7px;
}

/* ============================================================
   DESIGNS GRID (Shopify Reference Style — Crisp & Smooth)
   ============================================================ */
.designs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Product / Design Card */
.design-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.design-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 168, 204, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 168, 204, 0.1);
}

/* Top Image Container */
.design-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
}

.design-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badges on Image */
.product-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

[dir="rtl"] .product-card-badges {
  left: auto;
  right: 10px;
}

.product-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.product-card-badge.sale {
  background: #ef4444;
  color: #ffffff;
}

.product-card-badge.cod {
  background: #00a8cc;
  color: #ffffff;
}

/* Card Content Area */
.design-card-info {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.design-card-cat {
  font-size: 0.72rem;
  color: #00a8cc;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.design-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pricing Row */
.design-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 1rem;
}

.price-current {
  font-size: 1.2rem;
  font-weight: 900;
  color: #00a8cc;
  white-space: nowrap !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block;
}

.price-old {
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
  white-space: nowrap !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block;
}

/* Directly Visible Order Button (Shopify Style) */
.btn-card-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #0b1828;
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
  transition: background 0.18s ease, transform 0.18s ease;
  margin-top: auto;
  border: none;
  box-shadow: 0 2px 8px rgba(11, 24, 40, 0.15);
}

.design-card:hover .btn-card-order {
  background: #00a8cc;
  box-shadow: 0 4px 14px rgba(0, 168, 204, 0.35);
}

.btn-card-arrow {
  display: inline-block;
  font-size: 1rem;
  transition: transform 0.18s ease;
}

.design-card:hover .btn-card-arrow {
  transform: translateX(-3px);
}

[dir="ltr"] .design-card:hover .btn-card-arrow {
  transform: translateX(3px);
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Load more */
.load-more-wrapper {
  text-align: center;
  margin-top: 3rem;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #00a8cc 0%, #008bb0 100%);
  border: none;
  color: #ffffff;
  padding: 0.95rem 2.5rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 168, 204, 0.35);
  transition: var(--transition-fast);
}

.btn-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 168, 204, 0.45);
  color: #ffffff;
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, rgba(20,184,166,0.06) 25%, rgba(20,184,166,0.12) 50%, rgba(20,184,166,0.06) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.skeleton-img  { aspect-ratio: 4/5; }
.skeleton-text { height: 16px; margin: 1rem 1.25rem 0.5rem; border-radius: 4px; }
.skeleton-text-sm { height: 12px; margin: 0 1.25rem 1.25rem; width: 50%; border-radius: 4px; }

/* ============================================================
   MODALS (Shared)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 35, 50, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

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

.modal {
  background: #ffffff;
  border: 1px solid rgba(20, 184, 166, 0.15);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 30px rgba(20, 184, 166, 0.08);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.modal-body {
  padding: 1.5rem 1.5rem 2rem;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 184, 166, 0.3) transparent;
}

/* ============================================================
   APP CHOICE MODAL
   ============================================================ */
.app-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.app-btn::after {
  content: '→';
  position: absolute;
  right: 1.25rem;
  font-size: 1.1rem;
  opacity: 0.7;
  transition: var(--transition-fast);
}

body[dir="rtl"] .app-btn::after { content: '←'; right: auto; left: 1.25rem; }

.app-btn:hover::after { opacity: 1; transform: translateX(4px); }
body[dir="rtl"] .app-btn:hover::after { transform: translateX(-4px); }

.app-btn:hover { transform: translateY(-2px); }

.app-btn-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.app-btn-text { flex: 1; }
.app-btn-label { display: block; font-weight: 800; font-size: 1rem; }
.app-btn-sub   { display: block; font-size: 0.78rem; opacity: 0.75; font-weight: 400; margin-top: 1px; }

.app-btn-wa   { background: linear-gradient(135deg, #1db954, #128c3e); box-shadow: 0 4px 20px rgba(29,185,84,0.3); }
.app-btn-fb   { background: linear-gradient(135deg, #1877f2, #0a57d0); box-shadow: 0 4px 20px rgba(24,119,242,0.3); }
.app-btn-ig   { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); box-shadow: 0 4px 20px rgba(220,39,67,0.3); }
.app-btn-tt   { background: linear-gradient(135deg, #010101, #fd3e3e, #010101); background-size: 200% 200%; animation: tiktokGrad 3s ease infinite; box-shadow: 0 4px 20px rgba(253,62,62,0.25); }

@keyframes tiktokGrad {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

.copy-note {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--green);
  text-align: center;
  display: none;
}

.copy-note.show { display: block; animation: fadeInUp 0.3s ease; }

/* ============================================================
   PRODUCT MODAL (2-Column PC Redesign - Screenshot 1 Style)
   ============================================================ */
#modal-order .modal,
.modal.modal-product {
  max-width: 1100px !important;
  width: 92vw !important;
  max-height: 90vh !important;
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(20, 184, 166, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.12), 0 0 50px rgba(20, 184, 166, 0.06);
  border-radius: 24px;
  overflow: hidden;
}

#modal-order .modal-close,
.modal.modal-product .modal-close {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: auto;
  z-index: 30;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
  cursor: pointer;
}

#modal-order .modal-close:hover,
.modal.modal-product .modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: var(--text-primary);
  transform: scale(1.05);
}

body[dir="rtl"] #modal-order .modal-close,
body[dir="rtl"] .modal.modal-product .modal-close {
  left: auto;
  right: 1.25rem;
}

.product-modal-body {
  padding: 0 !important;
  overflow-y: auto;
  max-height: 90vh;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 560px;
}

/* LEFT COLUMN */
.product-modal-left {
  padding: 2.25rem 2rem 2rem 2.25rem;
  background: rgba(20, 184, 166, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body[dir="rtl"] .product-modal-left {
  padding: 2.25rem 2.25rem 2rem 2rem;
}

.product-image-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.order-design-img-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: #f8f9fb;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.order-design-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.order-design-img-wrap:hover img {
  transform: scale(1.04);
}

.btn-zoom-circle {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
  cursor: pointer;
  z-index: 3;
}

.btn-zoom-circle:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.5);
}

.order-design-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.order-thumb-btn {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  border: 2px solid transparent;
  padding: 0;
  background: #f8f9fb;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.order-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.order-thumb-btn:hover {
  border-color: rgba(6, 182, 212, 0.5);
}

.order-thumb-btn.active {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
  transform: scale(1.04);
}

/* Product Details Card */
.product-details-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-cat-pill {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.order-price-tag {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 3px 12px;
  border-radius: 20px;
}

.product-title-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 2px 0 4px;
}

.order-design-description {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: pre-line;
}

/* Vertical Trust Badges List */
.product-trust-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0.25rem;
}

.trust-item-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-item-line .trust-icon {
  font-size: 1.05rem;
}

/* RIGHT COLUMN: FORM */
.product-modal-right {
  padding: 2.25rem 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

body[dir="rtl"] .product-modal-right {
  padding: 2.25rem 2rem 2rem 2.25rem;
}

.form-card-header {
  margin-bottom: 0.25rem;
}

.form-card-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

/* Form inputs & styling */
#order-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

#order-form .form-group {
  margin-bottom: 0;
}

#order-form .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

#order-form .form-control {
  background: #ffffff;
  border: 1px solid rgba(20, 184, 166, 0.15);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  color: var(--text-primary);
}

#order-form .form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
}

#order-form .fit-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

#order-form .fit-option label {
  background: #ffffff;
  border: 1.5px solid rgba(20, 184, 166, 0.12);
  border-radius: 12px;
  padding: 0.85rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

#order-form .fit-option label:hover {
  border-color: rgba(6, 182, 212, 0.4);
}

#order-form .fit-option input:checked + label {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.06);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.25);
}

#order-form .size-options {
  display: flex;
  gap: 8px;
}

#order-form .size-btn {
  flex: 1;
  padding: 0.55rem 0.4rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid rgba(20, 184, 166, 0.12);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

#order-form .size-btn:hover {
  border-color: var(--primary);
  color: #fff;
}

#order-form .size-btn.selected {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.12);
  color: var(--primary);
}

/* Delivery options */
.delivery-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.delivery-card {
  background: #ffffff;
  border: 1.5px solid rgba(20, 184, 166, 0.12);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.delivery-card input[type="radio"] {
  display: none;
}

.delivery-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
}

.delivery-card.selected {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.25);
}

.delivery-icon {
  font-size: 1.3rem;
}

.delivery-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.delivery-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.delivery-fee-badge {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--primary);
}

/* Size Options */
.size-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.size-btn {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1.5px solid rgba(20, 184, 166, 0.12);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.size-btn:hover {
  border-color: var(--primary);
  color: #fff;
}

.size-btn.selected {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

/* Color Chips Picker */
.color-chips-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.color-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid rgba(20, 184, 166, 0.12);
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.color-chip-btn:hover {
  border-color: var(--primary);
  color: #fff;
}

.color-chip-btn.selected {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.color-chip-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Multi-Item Order Cards */
.order-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.order-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-item-card {
  background: rgba(20, 184, 166, 0.03);
  border: 1px solid rgba(20, 184, 166, 0.1);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all var(--transition-fast);
  animation: fadeIn 0.25s ease-out;
}

.order-item-card:hover {
  border-color: rgba(20, 184, 166, 0.2);
  background: rgba(20, 184, 166, 0.05);
}

.order-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(20, 184, 166, 0.08);
  padding-bottom: 6px;
}

.order-item-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.order-item-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.order-item-delete-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.order-item-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.order-item-row-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-item-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.2rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

/* Stepper Quantity control */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2px;
  gap: 2px;
}

.qty-step-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.qty-step-btn:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
}

.qty-step-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-step-val {
  min-width: 28px;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Add Item Button */
.btn-add-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(6, 182, 212, 0.06);
  border: 1px dashed rgba(6, 182, 212, 0.4);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 0.35rem;
}

.btn-add-item:hover {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Order Summary Box (Shipping Included) */
.order-summary-box {
  background: rgba(6, 182, 212, 0.04);
  border: 1.5px solid rgba(6, 182, 212, 0.2);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 0.5rem;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  background: rgba(20, 184, 166, 0.03);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  margin-bottom: 4px;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: rgba(248, 250, 252, 0.7);
  font-weight: 600;
}

.summary-line.summary-total {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
  margin-top: 2px;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
}

.summary-total-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

/* Modal Send Card & Clipboard Banner */
.modal-send-card {
  max-width: 580px !important;
  border: 1.5px solid rgba(20, 184, 166, 0.25) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,0.12), 0 0 50px rgba(20,184,166,0.08) !important;
}

.clipboard-notice-banner {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(20, 184, 166, 0.04));
  border: 1.5px solid var(--primary);
  border-radius: 14px;
  padding: 1.1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.08);
}

.notice-badge {
  display: inline-block;
  background: var(--primary);
  color: #000;
  font-weight: 900;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.notice-desc {
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.notice-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: rgba(20, 184, 166, 0.04);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
}

.receipt-preview-wrap {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.receipt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.btn-recopy {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--primary);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-recopy:hover {
  background: var(--primary);
  color: #fff;
}

#order-form .btn-submit,
#btn-order-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 0.95rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.25);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#order-form .btn-submit:hover,
#btn-order-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(20, 184, 166, 0.35);
  filter: brightness(1.06);
}

/* Responsive adjustments */
@media (max-width: 899px) {
  #modal-order .modal,
  .modal.modal-product {
    max-width: 560px !important;
    width: 100% !important;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .product-modal-grid {
    grid-template-columns: 1fr;
  }

  .product-modal-left {
    padding: 1.5rem 1.25rem 1rem;
  }

  .product-modal-right {
    padding: 1rem 1.25rem 1.75rem;
  }

  .order-design-img-wrap {
    height: 260px;
  }

  .product-title-heading {
    font-size: 1.3rem;
  }
}

/* Lightbox Zoom Overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(26, 35, 50, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-content {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0,0,0,0.3), 0 0 50px rgba(20,184,166,0.1);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid rgba(255,255,255,0.2);
}

.lightbox-close:hover {
  background: var(--red);
  border-color: var(--red);
}

.order-design-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.order-thumb-btn {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.order-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.order-thumb-btn:hover {
  border-color: rgba(6,182,212,0.4);
}

.order-thumb-btn.active {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(6,182,212,0.4);
  transform: scale(1.05);
}

.order-design-description {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 10px;
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-control {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(20,184,166,0.1);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #ffffff;
  color: var(--text-primary);
  color-scheme: light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2314b8a6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

select.form-control option {
  background-color: #ffffff !important;
  color: var(--text-primary) !important;
  padding: 10px;
}

[dir="rtl"] select.form-control {
  background-position: left 0.9rem center;
  padding-right: 0.9rem;
  padding-left: 2.5rem;
}

.fit-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.fit-option {
  position: relative;
}

.fit-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
}

.fit-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  gap: 4px;
}

.fit-option label:hover {
  border-color: rgba(6,182,212,0.4);
}

.fit-option input:checked + label {
  border-color: var(--primary);
  background: rgba(6,182,212,0.08);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
}

.fit-option-emoji { font-size: 1.5rem; }
.fit-option-name  { font-size: 0.85rem; font-weight: 700; }
.fit-option-sub   { font-size: 0.72rem; color: var(--text-secondary); }

.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-btn {
  min-width: 52px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  text-align: center;
}

.size-btn:hover { border-color: var(--primary); color: var(--text-primary); }

.size-btn.selected {
  border-color: var(--primary);
  background: rgba(6,182,212,0.1);
  color: var(--primary);
}

.form-footer {
  margin-top: 1.75rem;
  padding-top: 1rem;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, #ffffff 100%);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.btn-submit {
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: var(--grad-main);
  color: white;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(20,184,166,0.25);
  transition: var(--transition);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(20,184,166,0.35);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   ORDER MESSAGE PREVIEW (in send modal)
   ============================================================ */
.message-preview {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: pre-wrap;
  font-family: 'Courier New', monospace;
  max-height: 180px;
  overflow-y: auto;
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  background: #ffffff;
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #00b4d8 0%, #0096c7 45%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-link {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--primary);
  background: rgba(20,184,166,0.08);
  transform: translateY(-3px);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: linear-gradient(135deg, rgba(20,184,166,0.15), rgba(20,184,166,0.1));
  border: 1px solid rgba(20,184,166,0.3);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  backdrop-filter: blur(20px);
  animation: toastIn 0.4s ease, toastOut 0.4s 2.6s ease forwards;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

@keyframes toastIn  { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes toastOut { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(-10px); } }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.6s ease both;
}

/* ============================================================
   RESPONSIVE & MOBILE OPTIMIZATIONS
   ============================================================ */
html, body {
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

@media (max-width: 991px) {
  .header-nav {
    display: none !important;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .header {
    padding: 0 0.85rem;
    height: var(--header-h);
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .header-nav {
    display: none !important;
  }

  .logo {
    font-size: 1.35rem;
    flex-shrink: 0;
  }

  .header-right {
    gap: 6px;
    flex-shrink: 0;
  }

  .lang-switcher {
    padding: 2px;
    gap: 2px;
  }

  .lang-btn {
    padding: 4px 7px;
    font-size: 0.72rem;
    min-height: 28px;
  }

  .header-wa-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .header-wa-btn span {
    display: none;
  }

  .hero {
    padding: 3.5rem 1rem 2rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8.5vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.75rem;
    padding: 0 0.5rem;
  }

  .choice-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    gap: 0.85rem;
    margin: 0 auto;
  }

  .choice-card {
    padding: 1.25rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: var(--radius-lg);
  }

  .choice-card:active {
    transform: scale(0.98);
  }

  .categories-wrapper {
    justify-content: flex-start;
    padding: 0.4rem 1rem 0.85rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .categories-wrapper::-webkit-scrollbar {
    display: none;
  }

  .categories-tabs {
    flex-shrink: 0;
    gap: 6px;
    padding: 4px;
  }

  .cat-tab {
    padding: 7px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
    min-height: 38px;
  }

  .designs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    padding: 0 0.5rem;
    max-width: 100%;
  }

  .design-card {
    border-radius: var(--radius-md);
  }

  .design-card-img-wrap {
    aspect-ratio: 1 / 1;
  }

  .design-card-info {
    padding: 0.65rem 0.55rem;
    gap: 4px;
  }

  .design-card-name {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .design-card-cat {
    font-size: 0.68rem;
  }

  .design-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 0.35rem;
  }

  .price-current {
    font-size: 0.95rem;
    font-weight: 900;
    white-space: nowrap !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-block;
  }

  .price-old {
    font-size: 0.72rem;
    white-space: nowrap !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-block;
  }

  .btn-card-order {
    width: 100%;
    padding: 0.5rem 0.5rem;
    font-size: 0.78rem;
    gap: 4px;
    justify-content: center;
    border-radius: 99px;
  }

  .whatsapp-floating-btn {
    bottom: 20px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
  [dir="rtl"] .whatsapp-floating-btn {
    right: auto;
    left: 16px;
  }

  /* Form & inputs iOS auto-zoom prevention */
  .form-control,
  select.form-control,
  textarea.form-control,
  .form-input {
    font-size: 16px !important;
    padding: 0.8rem 0.95rem;
    border-radius: var(--radius-sm);
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .fit-options {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .size-options {
    gap: 6px;
  }

  .size-btn {
    min-width: 44px;
    min-height: 38px;
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 90vh;
    padding: 1.25rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  .footer {
    padding: 3rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.1rem; }
  .designs-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; padding: 0 0.35rem; max-width: 100%; }
  .design-card-price { font-size: 0.7rem; padding: 3px 8px; }
  .toast { font-size: 0.82rem; padding: 0.65rem 1.1rem; }
}

@media (min-width: 1200px) {
  .designs-grid { grid-template-columns: repeat(3, 1fr); max-width: 1200px; }
}

@media (min-width: 1400px) {
  .designs-grid { max-width: 1300px; }
}

/* ============================================================
   RTL SUPPORT (Arabic)
   ============================================================ */
[dir="rtl"] {
  font-family: 'Cairo', 'Outfit', sans-serif;
}

[dir="rtl"] body {
  font-family: 'Cairo', 'Outfit', sans-serif;
  text-align: right;
}

[dir="rtl"] .modal-close {
  margin-left: 0;
  margin-right: auto;
  right: auto;
  left: 1.1rem;
}

[dir="rtl"] select.form-control {
  background-position: left 0.9rem center;
  padding-left: 2rem;
  padding-right: 0.85rem;
}

[dir="rtl"] .scroll-arrow svg {
  transform: rotate(180deg);
}

[dir="rtl"] .btn-zoom-circle {
  right: auto;
  left: 12px;
}

[dir="rtl"] .product-meta-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .product-modal-left {
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

[dir="rtl"] .product-modal-right {
  padding: 2.25rem 2rem 2rem 2.25rem;
}

[dir="rtl"] .app-btn::after {
  content: '←';
  right: auto;
  left: 1.25rem;
}

[dir="rtl"] .app-btn:hover::after {
  transform: translateX(-4px);
}

[dir="rtl"] .delivery-card {
  text-align: right;
}

[dir="rtl"] .notice-steps .step-item {
  text-align: right;
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-gradient {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   CHOICE CARDS (Landing Page Two-Path UX)
   ============================================================ */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 680px;
  margin: 0 auto;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.choice-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  user-select: none;
  box-shadow: var(--shadow-card);
}

.choice-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-main);
  opacity: 0;
  transition: var(--transition);
}

.choice-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(20,184,166,0.1), 0 0 0 1px rgba(20,184,166,0.2);
}

.choice-card.active {
  border-color: var(--primary);
  background: rgba(20,184,166,0.04);
  box-shadow: 0 0 0 2px rgba(20,184,166,0.2), 0 12px 32px rgba(20,184,166,0.1);
}

.choice-card .choice-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(6,182,212,0.3));
  transition: transform 0.3s ease;
}

.choice-card:hover .choice-icon { transform: scale(1.1); }

.choice-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.choice-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.choice-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.choice-card.active .choice-badge {
  background: var(--grad-main);
  border-color: transparent;
  color: white;
}

/* ── Step Section (below hero) ── */
.step-section {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem;
  display: none;
  animation: fadeInUp 0.5s ease;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(6,182,212,0.03) 0%, transparent 100%);
}

.step-section.active { display: block; }

.step-container {
  max-width: 540px;
  margin: 0 auto;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.step-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-main);
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(6,182,212,0.35);
}

.step-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
  padding-left: 3.25rem;
}

[dir='rtl'] .step-desc { padding-left: 0; padding-right: 3.25rem; }

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}

.btn-back:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(6,182,212,0.08);
}

.back-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

[dir="rtl"] .back-arrow {
  transform: rotate(180deg);
}

/* ── Price Badge on Design Cards ── */
.design-card-price {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--grad-main);
  color: white;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(6,182,212,0.4);
  pointer-events: none;
}

[dir='rtl'] .design-card-price { left: auto; right: 10px; }

/* ── Order Design Price ── */
.order-price-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 4px;
}

@media (max-width: 600px) {
  .choice-grid { grid-template-columns: 1fr; max-width: 340px; }
  .step-desc { padding-left: 0; }
}


.hidden { display: none !important; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
