/**
 * Ruhi Designs — Stylesheet
 * ═══════════════════════════
 *
 * Sections:
 *   1. CSS Variables & Reset
 *   2. Fixed Texture Background
 *   3. Loading Screen
 *   4. SPA Page System
 *   5. Navigation (desktop + mobile)
 *   6. Scroll Reveal Animations
 *   7. Buttons
 *   8. Hero Section
 *   9. Section Headers
 *  10. About (Home inline)
 *  11. Features Bar
 *  12. Gallery (tabs, grid, items, custom card)
 *  13. Collection Preview (Home)
 *  14. About Page (story, values)
 *  15. Commission Page (form, file upload, color picker)
 *  16. Contact Page
 *  17. Product Detail Modal (image carousel)
 *  18. Footer
 *  19. Frame Designer
 *  20. Paintings Coming Soon
 *  21. Home Gallery Category Sections
 */

:root {
  --gold: #B8860B;
  --gold-light: #D4A843;
  --gold-dark: #8B6914;
  --brown: #3E2723;
  --brown-light: #5D4037;
  --cream: #FDF8F0;
  --cream-dark: #F5EDE0;
  --cream-darker: #EDE3D2;
  --text: #2C1810;
  --text-light: #6B5B4F;
  --white: #FFFDF9;
  --shadow: rgba(62, 39, 35, 0.08);
  --shadow-md: rgba(62, 39, 35, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
@keyframes spin { to { transform: rotate(360deg); } }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ═══════════ FIXED TEXTURE BACKGROUND ═══════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--texture-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}


/* ═══════════ LOADING SCREEN ═══════════ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--brown);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-arabic {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 68px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0;
  animation: loaderFadeIn 1s ease 0.2s forwards;
}
.loader-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 10px;
  text-transform: uppercase;
  color: rgba(253,248,240,0.5);
  margin-top: 8px;
  opacity: 0;
  animation: loaderFadeIn 1s ease 0.6s forwards;
}
.loader-line {
  width: 60px;
  height: 1.5px;
  background: rgba(253,248,240,0.15);
  margin-top: 32px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: loaderFadeIn 0.5s ease 0.8s forwards;
}
.loader-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: loaderSlide 1.5s ease 1s forwards;
}
@keyframes loaderFadeIn {
  to { opacity: 1; }
}
@keyframes loaderSlide {
  to { left: 0; }
}

/* ═══════════ PAGE SYSTEM ═══════════ */
.site-content {
  position: relative;
  z-index: 1;
}
.page {
  display: none;
  opacity: 0;
  min-height: 100vh;
}
.page.active {
  display: block;
  animation: pageIn 0.7s ease forwards;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════ NAVIGATION ═══════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
  background: var(--brown);
}
.nav.scrolled {
  background: var(--brown);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--brown-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Naskh Arabic', serif;
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
  border: 1px solid rgba(184,134,11,0.3);
}
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 4px;
  text-transform: uppercase;
}
.nav-center {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-center a {
  text-decoration: none;
  color: rgba(253,248,240,0.65);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
  cursor: pointer;
}
.nav-center a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-center a:hover,
.nav-center a.active { color: var(--gold-light); }
.nav-center a:hover::after,
.nav-center a.active::after { width: 100%; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-social {
  color: rgba(253,248,240,0.5);
  transition: color 0.3s;
  cursor: pointer;
  text-decoration: none;
}
.nav-social:hover { color: var(--gold); }
.nav-login {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  background: transparent;
}
.nav-login:hover {
  background: var(--gold);
  color: var(--white);
}

/* Mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: none;
  border: none;
}
.nav-hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--brown);
  text-decoration: none;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
}
@media (max-width: 900px) {
  .nav-center, .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .nav { padding: 0 20px; }
}

/* ═══════════ SCROLL ANIMATIONS ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.s1 { transition-delay: 0.1s; }
.s2 { transition-delay: 0.2s; }
.s3 { transition-delay: 0.3s; }
.s4 { transition-delay: 0.4s; }

/* ═══════════ BUTTONS (Original Style) ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 32px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border: 1.5px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184,134,11,0.25);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text-light);
}
.btn-secondary:hover {
  background: var(--brown);
  color: var(--cream);
  border-color: var(--brown);
  transform: translateY(-2px);
}
.btn-small {
  padding: 9px 22px;
  font-size: 10px;
  letter-spacing: 2px;
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
}

/* ═══════════ HERO ═══════════ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center right;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(62,39,35,0.72) 0%, rgba(62,39,35,0.45) 35%, rgba(253,248,240,0.1) 65%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 140px 80px 80px;
  max-width: 600px;
}
@media (max-width: 768px) {
  .hero-content { padding: 120px 24px 60px; }
}
.hero-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-label::before,
.hero-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold-light);
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease 0.5s both;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}
.hero-sub {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(253,248,240,0.65);
  font-weight: 400;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease 0.7s both;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.9s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating decorative elements */
.hero-decor {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.hero-decor-circle {
  width: 12px;
  height: 12px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  opacity: 0.4;
  top: 100px;
  left: 80px;
}
.hero-decor-dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  top: 90px;
  left: 60px;
  opacity: 0.5;
}

/* ═══════════ SECTION STYLES ═══════════ */
.section {
  padding: 100px 48px;
  position: relative;
  z-index: 1;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--brown);
  font-style: italic;
  margin-bottom: 14px;
}
.section-divider {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
}
.section-subtitle {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  max-width: 600px;
  margin: 20px auto 0;
  font-weight: 400;
}

/* ═══════════ ABOUT (Home inline) ═══════════ */
.about-home {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 768px) {
  .about-home { grid-template-columns: 1fr; text-align: center; }
}
.about-logo-card {
  width: 140px;
  height: 160px;
  background: var(--brown);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 8px 30px rgba(62,39,35,0.15);
}
.about-logo-arabic {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--gold);
}
.about-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(253,248,240,0.6);
}
.about-home-right h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 400;
  font-style: italic;
  color: var(--brown);
  margin-bottom: 20px;
}
.about-home-right p {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-home-buttons {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ═══════════ FEATURES BAR ═══════════ */
.features-bar {
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream-darker) 100%);
  border-top: 1px solid rgba(184,134,11,0.1);
  border-bottom: 1px solid rgba(184,134,11,0.1);
  padding: 52px 48px;
  position: relative;
  z-index: 1;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.feature-icon {
  color: var(--gold);
  font-size: 20px;
}
.feature-title {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 600;
}
.feature-desc {
  font-size: 12.5px;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.6;
}

/* ═══════════ GALLERY SECTION ═══════════ */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}
.gallery-tab {
  padding: 12px 36px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}
.gallery-tab:hover { color: var(--gold-dark); }
.gallery-tab.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 500px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.4s, box-shadow 0.4s;
  background: var(--white);
  border: 1px solid var(--cream-darker);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--shadow-md);
}
.gallery-item-img-wrap { overflow:hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream-dark);
}
.gallery-item-img-wrap svg {
  width: 100%;
  height: 100%;
}
.gallery-item:hover .gallery-item-img-wrap svg {
  transform: scale(1.03);
  transition: transform 0.6s ease;
}
.gallery-item-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: white;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  font-weight: 500;
  z-index: 2;
}
.gallery-item-info {
  padding: 18px 20px 20px;
}
.gallery-item-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--brown);
  margin-bottom: 4px;
}
.gallery-item-desc {
  font-size: 12.5px;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 10px;
}
.gallery-item-price {
  font-size: 14px;
  color: var(--gold-dark);
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.gallery-item-actions {
  display: flex;
  gap: 8px;
}

/* Custom Design Card */
.custom-card {
  background: var(--brown);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 28px;
  cursor: pointer;
  min-height: 420px;
  transition: transform 0.4s, box-shadow 0.4s;
  border: 1px solid var(--brown-light);
}
.custom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(62,39,35,0.2);
}
.custom-card-icon {
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
}
.custom-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--cream);
  margin-bottom: 10px;
  font-style: italic;
}
.custom-card p {
  font-size: 13px;
  color: rgba(253,248,240,0.55);
  font-weight: 300;
  line-height: 1.6;
  max-width: 240px;
  margin-bottom: 20px;
}

/* ═══════════ COLLECTION PREVIEW (Home) ═══════════ */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .preview-grid { grid-template-columns: 1fr; }
}
.preview-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/5;
  border-radius: 2px;
}
.preview-card svg {
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease;
}
.preview-card:hover svg { transform: scale(1.05); }
.preview-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 24, 16, 0.75) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: background 0.4s;
}
.preview-card:hover .preview-card-overlay {
  background: linear-gradient(to top, rgba(44, 24, 16, 0.85) 0%, rgba(44,24,16,0.15) 100%);
}
.preview-card-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.preview-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: white;
  font-weight: 400;
  font-style: italic;
}
.preview-card-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: all 0.4s ease;
}
.preview-card:hover .preview-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ═══════════ ABOUT PAGE ═══════════ */
.about-hero-section {
  padding: 160px 48px 80px;
  text-align: center;
}
.about-story-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 0 48px 80px;
}
@media (max-width: 768px) {
  .about-story-grid { grid-template-columns: 1fr; gap: 40px; padding: 0 24px 60px; }
}
.about-img-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--cream-dark);
}
.about-img-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold-light);
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}
.about-img-frame svg { width: 100%; height: 100%; }
.about-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 400;
  font-style: italic;
  color: var(--brown);
  margin-bottom: 20px;
}
.about-text p {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 18px;
  line-height: 1.8;
}
.about-signature {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--gold-dark);
  margin-top: 28px;
}

/* Values */
.values-section {
  background: linear-gradient(180deg, rgba(245,237,224,0.5) 0%, rgba(237,227,210,0.3) 100%);
  padding: 100px 48px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
.value-card {
  text-align: center;
  padding: 36px 20px;
  background: rgba(255,253,249,0.7);
  border: 1px solid var(--cream-darker);
  transition: transform 0.4s, box-shadow 0.4s;
}
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px var(--shadow);
}
.value-icon {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 16px;
}
.value-title {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 600;
  margin-bottom: 10px;
}
.value-desc {
  font-size: 12.5px;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.6;
}

/* ═══════════ COMMISSION PAGE ═══════════ */
.commission-section {
  background: var(--brown);
  min-height: 100vh;
  padding: 120px 48px 80px;
  position: relative;
}
.commission-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 768px) {
  .commission-grid { grid-template-columns: 1fr; gap: 40px; }
}
.commission-left .section-label { color: var(--gold); }
.commission-left h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 20px;
}
.commission-left p {
  font-size: 14px;
  color: rgba(253,248,240,0.55);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 40px;
}
.commission-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(253,248,240,0.08);
}
.commission-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(184,134,11,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.commission-contact-icon svg { width: 16px; height: 16px; color: var(--gold); }
.commission-contact-text {
  font-size: 14px;
  color: var(--cream);
  font-weight: 300;
}

/* Commission form */
.commission-form {
  background: transparent;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 8px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(253,248,240,0.15);
  background: rgba(253,248,240,0.05);
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: var(--cream);
  transition: border-color 0.3s;
  outline: none;
  border-radius: 0;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(253,248,240,0.3);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4A843' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-select option { background: var(--brown); color: var(--cream); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* Light form variant (for modals) */
.form-light .form-input,
.form-light .form-select,
.form-light .form-textarea {
  border: 1px solid var(--cream-darker);
  background: var(--cream);
  color: var(--text);
}
.form-light .form-input::placeholder,
.form-light .form-textarea::placeholder { color: var(--text-light); }
.form-light .form-input:focus,
.form-light .form-select:focus,
.form-light .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.06);
}
.form-light .form-label { color: var(--brown); }
.form-light .form-select option { background: var(--white); color: var(--text); }

/* Color picker */
.color-options { display: flex; gap: 10px; flex-wrap: wrap; }
.color-opt {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
}
.color-opt:hover, .color-opt.sel {
  border-color: var(--gold);
  transform: scale(1.15);
}
.color-opt.sel::after {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: white;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* File upload */
.file-upload {
  border: 1.5px dashed rgba(253,248,240,0.2);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}
.file-upload:hover { border-color: var(--gold-light); }
.file-upload svg { width: 28px; height: 28px; color: var(--gold); margin-bottom: 10px; }
.file-upload p { font-size: 12px; color: rgba(253,248,240,0.4); }
.file-upload .fname { font-size: 11px; color: var(--gold); margin-top: 6px; font-weight: 500; }
.file-upload input { display: none; }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}
.btn-submit:hover {
  background: var(--gold);
  color: var(--white);
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 60px 32px;
}
.form-success.show { display: block; }
.form-success svg { width: 48px; height: 48px; color: var(--gold); margin-bottom: 18px; }
.form-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: var(--cream);
  margin-bottom: 10px;
}
.form-success p { color: rgba(253,248,240,0.5); font-size: 13px; font-weight: 300; }

/* ═══════════ CONTACT PAGE ═══════════ */
.contact-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: var(--brown);
  margin-bottom: 16px;
}
.contact-info p {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 28px;
  line-height: 1.8;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--cream-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 16px; height: 16px; color: var(--gold); }
.contact-detail-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  display: block;
  margin-bottom: 2px;
}
.contact-detail-text { font-size: 14px; color: var(--text); }
.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.contact-social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--cream-darker);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-light);
  text-decoration: none;
}
.contact-social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ═══════════ PRODUCT DETAIL MODAL ═══════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, 0.55);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.product-modal {
  background: var(--white);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) {
  .product-modal { grid-template-columns: 1fr; max-height: 95vh; }
  .product-modal-img { min-height: 240px; max-height: 300px; }
  .product-modal-info { padding: 20px 24px 28px; text-align: center; }
  .product-modal-info .pm-detail { justify-content: center; }
  .product-modal-info #pmBuyArea { text-align: center; }
}
.product-modal-img { width: 100%; min-height: 300px; overflow: hidden; }
.product-modal-img svg { width: 100%; height: 100%; }
.product-modal-info {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.pm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-light);
}
.pm-cat {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.pm-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--brown);
  margin-bottom: 10px;
  font-style: italic;
}
.pm-desc {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 16px;
}
.pm-price {
  font-size: 18px;
  color: var(--gold-dark);
  font-weight: 500;
  margin-bottom: 20px;
}
.pm-detail {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--cream-darker);
  font-size: 12px;
}
.pm-detail span:first-child { color: var(--text-light); }
.pm-detail span:last-child { color: var(--text); font-weight: 500; }
.pm-details { margin-bottom: 20px; }

/* ═══════════ PRODUCT MODAL IMAGE NAV ═══════════ */
.pm-img-wrap {
  position: relative;
  width: 100%;
  min-height: 300px;
  overflow: hidden;
}
.pm-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease;
}
.pm-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(62,39,35,0.45);
  color: var(--cream);
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.pm-img-wrap:hover .pm-arrow { opacity: 1; }
.pm-arrow:hover { background: var(--gold); }
.pm-arrow-left { left: 10px; }
.pm-arrow-right { right: 10px; }
.pm-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 4px;
}
.pm-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cream-darker);
  border: 1px solid var(--text-light);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.pm-dot.active {
  background: var(--gold);
  border-color: var(--gold);
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  background: var(--brown);
  padding: 56px 48px 28px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-brand-arabic {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 32px;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 4px;
}
.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-brand-desc {
  color: rgba(253,248,240,0.45);
  font-size: 13px;
  font-weight: 300;
  max-width: 320px;
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: rgba(253,248,240,0.5);
  text-decoration: none;
  font-size: 13px;
  font-weight: 300;
  margin-bottom: 10px;
  transition: color 0.3s;
  cursor: pointer;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(253,248,240,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy {
  color: rgba(253,248,240,0.25);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1px;
}
.footer-craft {
  color: var(--gold);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1px;
  opacity: 0.5;
}

/* Scrollbar */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--cream-darker); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }
/* ═══════════ FRAME DESIGNER ═══════════ */
.designer-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .designer-layout { grid-template-columns: 1fr; }
}
.designer-canvas-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.designer-frame {
  position: relative;
  width: 340px;
  height: 480px;
  border: 12px solid #C0C0C0;
  background: var(--cream-dark);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15), inset 0 0 0 2px rgba(192,192,192,0.3);
  overflow: hidden;
  cursor: crosshair;
}
.designer-frame.black-border {
  border-color: #1a1a1a;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2), inset 0 0 0 2px rgba(255,255,255,0.08);
}
.designer-frame.silver-border {
  border-color: #C0C0C0;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15), inset 0 0 0 2px rgba(192,192,192,0.3);
}
.designer-frame-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.designer-asset {
  position: absolute;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow 0.2s;
  touch-action: none;
}
.designer-asset:hover,
.designer-asset.active {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.designer-asset img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.designer-asset .asset-delete {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 22px;
  height: 22px;
  background: #c0392b;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1;
}
.designer-asset.active .asset-delete { display: flex; }
.designer-asset .asset-resize {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border: 1px solid white;
  border-radius: 2px;
  cursor: nwse-resize;
  display: none;
}
.designer-asset.active .asset-resize { display: block; }
.designer-hint {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  font-style: italic;
}

/* Designer panel */
.designer-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.dp-section h4 {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cream-darker);
}
.dp-border-opts {
  display: flex;
  gap: 10px;
}
.dp-border-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--cream-darker);
  background: transparent;
  cursor: pointer;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  transition: all 0.3s;
}
.dp-border-btn.active {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: rgba(184,134,11,0.05);
}
.dp-border-btn .swatch {
  display: block;
  width: 100%;
  height: 6px;
  margin-bottom: 8px;
  border-radius: 2px;
}
.dp-bg-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.dp-bg-thumb {
  aspect-ratio: 210/297;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s;
  background-size: cover;
  background-position: center;
}
.dp-bg-thumb:hover { border-color: var(--gold-light); transform: scale(1.05); }
.dp-bg-thumb.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(184,134,11,0.2); }

.dp-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dp-asset-thumb {
  aspect-ratio: 1;
  border-radius: 4px;
  border: 2px solid var(--cream-darker);
  cursor: grab;
  overflow: hidden;
  transition: all 0.3s;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.dp-asset-thumb:hover { border-color: var(--gold-light); transform: scale(1.05); }
.dp-asset-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.dp-asset-name {
  font-size: 9px;
  text-align: center;
  color: var(--text-light);
  margin-top: 4px;
}
.dp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ═══════════ PAINTINGS COMING SOON ═══════════ */
.coming-soon-card {
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 28px;
  min-height: 420px;
  border: 1px solid rgba(184,134,11,0.2);
  position: relative;
  overflow: hidden;
}
.coming-soon-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184,134,11,0.15);
  pointer-events: none;
}
.coming-soon-icon {
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--gold);
  animation: comingSoonPulse 2s ease-in-out infinite;
}
@keyframes comingSoonPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}
.coming-soon-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--cream);
  margin-bottom: 8px;
  font-style: italic;
}
.coming-soon-card .coming-soon-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}
.coming-soon-card p {
  font-size: 13px;
  color: rgba(253,248,240,0.5);
  font-weight: 300;
  line-height: 1.6;
  max-width: 260px;
}

/* ═══════════ HOME GALLERY CATEGORY SECTIONS ═══════════ */
.home-category-section {
  margin-bottom: 60px;
}
.home-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.home-category-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: var(--brown);
  white-space: nowrap;
}
.home-category-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
}

/* ═══════════ REVIEWS ═══════════ */
.reviews-section {
  background: var(--cream-dark);
  padding-bottom: 60px;
}
.reviews-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 24px 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.reviews-carousel::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 min(340px, 85vw);
  scroll-snap-align: center;
  background: var(--white);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 16px var(--shadow);
}
.review-stars {
  color: #D4A843;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.review-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
}
.review-author {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--brown);
}
.review-date {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}
.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.reviews-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream-darker);
  cursor: pointer;
  transition: background 0.3s;
}
.reviews-dots .dot.active {
  background: var(--gold);
}

/* ═══════════ LETTER PICKER ═══════════ */
.letter-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  direction: rtl;
}
.letter-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--cream-darker);
  background: var(--white);
  border-radius: 8px;
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 20px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.letter-btn:hover {
  border-color: var(--gold);
  background: var(--cream);
  transform: scale(1.08);
}
.letter-btn.active {
  background: var(--brown);
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(184,134,11,0.3);
  transform: scale(1.12);
}
