/*
 * Youssef Ezz El-Din - Artist Portfolio
 * Dark Gallery Theme
 * Static Website - No Database Required
 */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-card: #141414;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent-gold: #d4af37;
  --accent-ochre: #c9a961;
  --accent-hover: #e5c158;
  --border-color: #2a2a2a;
  --success: #4ade80;
  --error: #ef4444;
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --section-padding: 6rem;
  --container-max: 1400px;
  --grid-gap: 2rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.2);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-gold);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.text-gold {
  color: var(--accent-gold);
}

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

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding) 0;
}

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

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-medium);
}

.navbar-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.logo span {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--transition-medium);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cart-btn {
  position: relative;
  padding: 0.5rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.cart-btn:hover {
  color: var(--accent-gold);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-content .tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--accent-gold);
  margin-bottom: 2rem;
  font-style: italic;
}

.hero-content p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-dot.active {
  background: var(--accent-gold);
  transform: scale(1.2);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: all var(--transition-medium);
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1.2rem 2.5rem;
  font-size: 1rem;
}

/* ===== ARTWORK CARDS ===== */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--grid-gap);
}

.artwork-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-medium);
}

.artwork-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold);
}

.artwork-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.artwork-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.artwork-card:hover .artwork-image img {
  transform: scale(1.05);
}

.artwork-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-medium);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.artwork-card:hover .artwork-overlay {
  opacity: 1;
}

.sold-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--error);
  color: white;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
}

.artwork-info {
  padding: 1.5rem;
}

.artwork-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.artwork-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.artwork-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price-usd {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.price-egp {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.artwork-actions {
  display: flex;
  gap: 0.5rem;
}

.artwork-actions .btn {
  flex: 1;
  padding: 0.75rem;
}

/* ===== MASONRY GALLERY ===== */
.gallery-masonry {
  column-count: 3;
  column-gap: var(--grid-gap);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--grid-gap);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  opacity: 0;
  transition: opacity var(--transition-medium);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.gallery-item-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== FILTER BUTTONS ===== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  max-width: 1400px;
  max-height: 90vh;
  width: 100%;
}

.lightbox-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image img {
  max-height: 85vh;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-details {
  overflow-y: auto;
  padding-right: 1rem;
}

.lightbox-details h2 {
  margin-bottom: 0.5rem;
}

.lightbox-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lightbox-description {
  margin-bottom: 2rem;
  line-height: 1.8;
}

.lightbox-price {
  margin-bottom: 1.5rem;
}

.lightbox-price .price-usd {
  font-size: 2rem;
}

.lightbox-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 2rem;
  transition: color var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--accent-gold);
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg-secondary);
  z-index: 2000;
  transition: right var(--transition-medium);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
  font-size: 1.25rem;
}

.cart-close {
  padding: 0.5rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.cart-close:hover {
  color: var(--text-primary);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
  width: 80px;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cart-item-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.cart-item-price {
  color: var(--accent-gold);
  font-weight: 600;
}

.cart-item-remove {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--error);
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.cart-total span:last-child {
  color: var(--accent-gold);
  font-weight: 700;
}

.cart-checkout-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1999;
  display: none;
}

.cart-overlay.active {
  display: block;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  padding-top: 120px;
  padding-bottom: 4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--accent-gold);
  border-radius: 50%;
  transform: translateX(-5px);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-location {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

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

/* ===== SHIPPING PAGE ===== */
.shipping-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.shipping-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-medium);
}

.shipping-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
}

.shipping-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--accent-gold);
}

.shipping-card h3 {
  margin-bottom: 1rem;
}

.shipping-card p {
  font-size: 0.95rem;
}

.shipping-zones {
  margin-top: 4rem;
}

.zone-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.zone-table th,
.zone-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.zone-table th {
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.zone-table td {
  color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 300px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== COMMISSIONS PAGE ===== */
.commissions-process {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--border-color);
}

.process-step:last-child::after {
  display: none;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* ===== NOTIFICATIONS ===== */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-gold);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-medium);
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification-icon {
  color: var(--accent-gold);
}

.notification.error {
  border-color: var(--error);
  background: rgba(244, 67, 54, 0.1);
}

.notification.error .notification-icon {
  color: var(--error);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .gallery-masonry {
    column-count: 2;
  }
  
  .lightbox {
    padding: 1rem;
    overflow-y: auto;
    align-items: flex-start;
  }
  
  .lightbox-content {
    grid-template-columns: 1fr;
    max-height: none;
    height: auto;
    gap: 1rem;
  }
  
  .lightbox-image {
    max-height: 50vh;
    min-height: 200px;
  }
  
  .lightbox-details {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .process-step::after {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .gallery-masonry {
    column-count: 1;
  }
  
  .artwork-grid {
    grid-template-columns: 1fr;
  }
  
  .shipping-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* ===== UTILITY CLASSES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }
/* Mobile Menu Styles */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-menu-btn {
    display: block;
    z-index: 1000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }
  
  .mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: 0.3s;
  }
  
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* Overlay */
  .nav-links::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: -1;
  }
  
  .nav-links.active::before {
    opacity: 1;
    visibility: visible;
  }
}

/* Touch-friendly improvements */
@media (pointer: coarse) {
  .nav-links a,
  .btn,
  button {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 1rem;
  padding: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.lang-btn {
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

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

.lang-btn.active {
  color: var(--bg-primary);
  background: var(--accent-gold);
}

.lang-divider {
  color: var(--border-color);
  font-size: 0.8rem;
}

/* RTL Support */
[dir="rtl"] .lang-switcher {
  margin-right: 0;
  margin-left: 1rem;
}

/* ===== RTL (Right-to-Left) STYLES FOR ARABIC ===== */
body.rtl {
  font-family: 'Inter', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* RTL Navigation */
[dir="rtl"] .nav-links {
  gap: 2rem;
}

[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

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

/* RTL Hero */
[dir="rtl"] .hero-content {
  direction: rtl;
}

/* RTL Sections */
[dir="rtl"] .section-header {
  direction: rtl;
}

[dir="rtl"] .section-header p {
  margin-left: auto;
  margin-right: auto;
}

/* RTL About Grid */
[dir="rtl"] .about-grid {
  direction: rtl;
}

[dir="rtl"] .about-content {
  direction: rtl;
  text-align: right;
}

/* RTL Timeline */
[dir="rtl"] .timeline {
  padding-left: 0;
  padding-right: 2rem;
}

[dir="rtl"] .timeline::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .timeline-item::before {
  left: auto;
  right: -2rem;
  transform: translateX(5px);
}

/* RTL Footer */
[dir="rtl"] .footer-grid {
  direction: rtl;
}

[dir="rtl"] .footer-brand p {
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .footer-links {
  text-align: right;
}

[dir="rtl"] .footer-bottom {
  direction: rtl;
}

/* RTL Cart Sidebar */
[dir="rtl"] .cart-sidebar {
  right: auto;
  left: -450px;
}

[dir="rtl"] .cart-sidebar.open {
  right: auto;
  left: 0;
}

[dir="rtl"] .cart-item {
  direction: rtl;
}

[dir="rtl"] .cart-item-image {
  margin-right: 0;
  margin-left: 1rem;
}

/* RTL Lightbox */
[dir="rtl"] .lightbox-content {
  direction: rtl;
}

[dir="rtl"] .lightbox-details {
  padding-right: 0;
  padding-left: 1rem;
  text-align: right;
}

[dir="rtl"] .lightbox-close {
  right: auto;
  left: 2rem;
}

/* RTL Shipping Cards */
[dir="rtl"] .shipping-grid {
  direction: rtl;
}

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

/* RTL Forms */
[dir="rtl"] .form-group {
  text-align: right;
}

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

[dir="rtl"] .form-row {
  direction: rtl;
}

/* RTL Table */
[dir="rtl"] .zone-table {
  direction: rtl;
}

[dir="rtl"] .zone-table th,
[dir="rtl"] .zone-table td {
  text-align: right;
}

/* RTL Process Steps */
[dir="rtl"] .process-steps {
  direction: rtl;
}

[dir="rtl"] .process-step::after {
  right: auto;
  left: -50%;
}

/* RTL Notification */
[dir="rtl"] .notification {
  right: auto;
  left: 2rem;
}

/* RTL Artwork Cards */
[dir="rtl"] .artwork-info {
  text-align: right;
}

[dir="rtl"] .artwork-meta {
  direction: rtl;
}

[dir="rtl"] .artwork-price {
  direction: rtl;
}

[dir="rtl"] .artwork-actions {
  direction: rtl;
}

/* RTL Mobile Menu */
@media (max-width: 768px) {
  [dir="rtl"] .nav-links {
    right: auto;
    left: -100%;
  }
  
  [dir="rtl"] .nav-links.active {
    right: auto;
    left: 0;
  }
  
  [dir="rtl"] .lang-switcher {
    margin-right: 0;
    margin-left: 0.5rem;
  }
  
  [dir="rtl"] .cart-sidebar {
    left: -100%;
    right: auto;
  }
  
  [dir="rtl"] .cart-sidebar.open {
    left: 0;
    right: auto;
  }
  
  [dir="rtl"] .lightbox-content {
    direction: rtl;
  }
  
  [dir="rtl"] .lightbox-details {
    padding-left: 0;
  }
}

/* RTL Hero Slider */
[dir="rtl"] .hero-dots {
  direction: rtl;
}

/* RTL Filter Bar */
[dir="rtl"] .filter-bar {
  direction: rtl;
}

/* RTL Gallery Masonry */
[dir="rtl"] .gallery-masonry {
  direction: rtl;
}

[dir="rtl"] .gallery-item {
  direction: rtl;
}

[dir="rtl"] .gallery-item-overlay {
  direction: rtl;
  text-align: right;
}

/* RTL Social Links */
[dir="rtl"] .social-links {
  direction: rtl;
}

/* Add Noto Sans Arabic font for better Arabic typography */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');
