/* ==========================================================================
   AL-HAMID PERFUMES (امام پرفیومز) — Premium Islamic Luxury Fragrance Theme
   ========================================================================== */

:root {
  --color-noir-deep: #08080a;
  --color-noir-card: #121215;
  --color-noir-elevated: #1a1a20;
  --color-gold-light: #fbeea4;
  --color-gold-primary: #d4af37;
  --color-gold-burnished: #aa7a1e;
  --color-gold-dark: #7c5813;
  --color-sand-silk: #fbf8f2;
  --color-sand-muted: #c5bfb3;
  --color-emerald-deep: #062b1f;
  --font-serif-luxury: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-serif-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-urdu: 'Noto Nastaliq Urdu', 'Amiri', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif;
  --font-arabic-calligraphy: 'Amiri', 'Scheherazade New', serif;
}

/* Base Smooth Scrolling & Selection */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-noir-deep);
  color: var(--color-sand-silk);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--color-gold-primary);
  color: #000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #332a19;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-primary);
}

/* Typography Helpers */
.font-luxury {
  font-family: var(--font-serif-luxury);
}

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

.font-urdu {
  font-family: var(--font-urdu);
  line-height: 1.9;
  letter-spacing: 0;
}

.font-arabic {
  font-family: var(--font-arabic-calligraphy);
}

/* Metallic Gold Gradients & Text */
.gold-text-gradient {
  background: linear-gradient(135deg, #fff2be 0%, #d4af37 40%, #f3d068 70%, #996515 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-text-shimmer {
  background: linear-gradient(90deg, #d4af37 0%, #fff6d6 50%, #d4af37 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.gold-border-gradient {
  border-image: linear-gradient(135deg, rgba(212, 175, 55, 0.6), rgba(153, 101, 21, 0.2), rgba(212, 175, 55, 0.8)) 1;
}

/* Luxury Islamic Pattern Backgrounds */
.bg-islamic-pattern {
  background-color: #09090c;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 65%),
    radial-gradient(circle at 100% 100%, rgba(6, 43, 31, 0.09) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4af37' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M40 0l10 10-10 10-10-10L40 0zm0 40l10 10-10 10-10-10L40 40zm-20-20l10 10-10 10-10-10L20 20zm40 0l10 10-10 10-10-10L60 20zm-40 40l10 10-10 10-10-10L20 60zm40 0l10 10-10 10-10-10L60 60zM0 40l10 10-10 10-10-10L0 40zm80 0l10 10-10 10-10-10L80 40z'/%3E%3C/g%3E%3C/svg%3E");
}

.bg-pattern-subtle {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L45 15L30 30L15 15L30 0z M30 30L45 45L30 60L15 45L30 30z' fill='%23d4af37' fill-opacity='0.025' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Glassmorphism Cards */
.glass-luxury {
  background: rgba(18, 18, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.16);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.glass-luxury:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.08);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Minimal Luxury Hamburger Button */
.hamburger-btn {
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: rgba(26, 26, 32, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger-btn:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.6);
  transform: scale(1.05);
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: var(--color-gold-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-line:nth-child(2) {
  width: 16px;
  margin-left: auto;
  margin-right: 0;
}

.hamburger-btn:hover .hamburger-line:nth-child(2) {
  width: 22px;
}

.hamburger-btn.is-active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Offcanvas Navigation Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 7, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Gold Button Styles */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #f0df88 0%, #d4af37 50%, #9e6d17 100%);
  color: #0c0a09;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
  filter: brightness(1.08);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: 0.75s;
}

.btn-gold:hover::after {
  left: 150%;
}

.btn-luxury-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(26, 26, 32, 0.4);
  color: #f7f3e8;
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-luxury-outline:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: #d4af37;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Islamic Arch Clip Path */
.arch-frame {
  border-top-left-radius: 120px;
  border-top-right-radius: 120px;
}

/* Floating animation */
@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: floatGentle 5s ease-in-out infinite;
}

/* Gold Glow Pulse */
@keyframes goldPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.04);
  }
}

.animate-gold-pulse {
  animation: goldPulse 4s ease-in-out infinite;
}

/* Arabic / Urdu Flourish Divider */
.islamic-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 1.5rem auto;
}

.islamic-divider::before,
.islamic-divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

/* Velvet Badge */
.velvet-badge {
  background: linear-gradient(135deg, #18181b, #09090b);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.1);
}

/* Filter Tab Styles */
.tab-filter-btn {
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  color: #c5bfb3;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.15);
  cursor: pointer;
  white-space: nowrap;
}

.tab-filter-btn:hover {
  color: #fff;
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
}

.tab-filter-btn.active {
  background: linear-gradient(135deg, #d4af37, #996515);
  color: #0c0a09;
  font-weight: 600;
  border-color: #d4af37;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

/* Product Card Effects */
.product-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.product-card:hover {
  transform: translateY(-6px);
}

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

.product-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Notes Badge */
.note-pill {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: #f0e6cb;
}

/* Sticky Mobile Quick Order Bar */
.mobile-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(12, 10, 9, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    padding: 0.65rem 1rem;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.7);
  }
}

/* ---- WordPress/Elementor additions ---- */
.al-rtl { direction: rtl; }
body.al-hamid-page .elementor-widget-image img { width: 100%; height: 100%; object-fit: inherit; border-radius: inherit; max-height: inherit; display: block; }
body.al-hamid-page .elementor-widget-heading .elementor-heading-title { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; line-height: inherit; text-align: inherit; margin: 0; padding: 0; }
body.al-hamid-page .elementor-widget-text-editor > .elementor-widget-container { color: inherit; font: inherit; letter-spacing: inherit; text-align: inherit; }
body.al-hamid-page .elementor-widget-text-editor p { margin: 0; }

body.al-hamid-page .elementor-widget-text-editor.flex-grow a { display: flex; width: 100%; }

.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---- light sections (black & white theme) ---- */
.al-light .tab-filter-btn { background: #fff; color: #444; border-color: #d9d9d9; }
.al-light .tab-filter-btn:hover { color: #111; border-color: #d4af37; background: #faf6e8; }
.al-light .tab-filter-btn.active { background: linear-gradient(135deg, #f0df88, #d4af37 50%, #b8891c); color: #111; border-color: #d4af37; box-shadow: 0 4px 14px rgba(212, 175, 55, .3); }
.al-light .product-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .1); border-color: #d4af37; }
.al-light .product-card .product-img { filter: none; }
.al-light .btn-luxury-outline { color: #111; border-color: #111; background: transparent; }
.al-light .faq-icon { color: #9a6f12; }
