/* ========================================================
   ART LINE LUXURY FURNITURE — CORE STYLESHEET
   Brand Colors: Deep Obsidian #0F1115, Warm Gold #D4AF37, 
                 Champagne Cream #F9F6F0, Slate #1E222B
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  --color-gold: #D4AF37;
  --color-gold-light: #F3E5AB;
  --color-gold-dark: #AA820A;
  --color-obsidian: #0D0F12;
  --color-charcoal: #181B20;
  --color-surface: #22262E;
  --color-cream: #FAF8F5;
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

body {
  font-family: var(--font-arabic);
  background-color: #FAFAFA;
  color: #1F2937;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

.font-serif {
  font-family: var(--font-serif);
}

/* Luxury Gold Gradients & Accents */
.gold-gradient {
  background: linear-gradient(135deg, #DFBA4E 0%, #C59B27 50%, #E7C96E 100%);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #AA820A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-border {
  border-color: rgba(212, 175, 55, 0.35);
}

.gold-glow {
  box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.25);
}

/* Glassmorphism */
.glass-dark {
  background: rgba(15, 17, 21, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #B88E18 100%);
  color: #FFFFFF;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #E2BF4A 0%, #C99E23 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.btn-outline-gold {
  border: 1.5px solid #D4AF37;
  color: #D4AF37;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-outline-gold:hover {
  background-color: #D4AF37;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Product Card Hover */
.product-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.08), 0 0 20px -5px rgba(212, 175, 55, 0.15);
}

/* Gallery Zoom */
.gallery-zoom-container {
  overflow: hidden;
  position: relative;
  cursor: crosshair;
}
.gallery-zoom-container img {
  transition: transform 0.4s ease-out;
}
.gallery-zoom-container:hover img {
  transform: scale(1.35);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F1F1;
}
::-webkit-scrollbar-thumb {
  background: #D4AF37;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B88E18;
}

/* ========================================================
   NATIVE MOBILE APP & PWA EXPERIENCE
   ======================================================== */
* {
  -webkit-tap-highlight-color: transparent;
}

html, body {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

/* iOS Safe Areas */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.pt-safe {
  padding-top: env(safe-area-inset-top, 0px);
}

/* Native Mobile Tab Bar */
.bottom-app-bar {
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.45);
}

.native-app-tab {
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease;
}
.native-app-tab:active {
  transform: scale(0.90);
}

/* Native App Install Sheet Animation */
@keyframes slideUpFade {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.animate-slide-up {
  animation: slideUpFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile Sidebar Drawer Enhancements */
#mobileDrawer {
  will-change: transform;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.custom-drawer-scrollbar::-webkit-scrollbar {
  width: 4px;
}
.custom-drawer-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-drawer-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.25);
  border-radius: 9999px;
}
.custom-drawer-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.5);
}

.category-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  opacity: 0;
}
.category-accordion-body.open {
  max-height: 500px;
  opacity: 1;
}

.category-accordion-arrow {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-accordion-arrow.open {
  transform: rotate(180deg);
}

.drawer-nav-item {
  position: relative;
  transition: all 0.2s ease;
}
.drawer-nav-item:active {
  transform: scale(0.98);
}
