/* 
---------------------------------------------
Luxury Dark Theme - Gold & Black
--------------------------------------------- 
*/

/* Brand Name Styling - Bazzi Baz */
.brand-logo-text {
  font-size: 30px; /* slightly smaller to avoid wrapping on desktop */
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none !important;
  font-family: 'Shabnam', Arial, sans-serif;
  white-space: nowrap; /* keep brand in one line */
  display: inline-flex;
  align-items: center;
}

.brand-ba-white {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.brand-gold {
  /* Gold text with gradient shimmer clipped to glyphs (no boxy filters) */
  color: #d4af37 !important; /* fallback */
  background-image: linear-gradient(90deg, #d4af37 0%, #ffd700 50%, #d4af37 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent; /* ensure gradient is visible only in text */
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
  animation: softHeartbeatGlow 5.5s ease-in-out infinite, goldShimmer 12s linear infinite; /* no filters, no transforms */
  display: inline-block;
}

/* Simplified animation: only a gentle slow shimmer (no pulse, no circle) */
/* Heart pulse scale (no background circle) */
@keyframes heartPulseScale {
  0% { transform: scale(1); }
  10% { transform: scale(1.12); }
  14% { transform: scale(0.95); }
  18% { transform: scale(1.07); }
  26% { transform: scale(1); }
  100% { transform: scale(1); }
}

/* Slight shadow intensifying synced with pulse */
@keyframes heartShadowPulse {
  0% { text-shadow: 0 0 12px rgba(212,175,55,0.50); }
  10% { text-shadow: 0 0 20px rgba(255,215,55,0.80); }
  14% { text-shadow: 0 0 9px rgba(212,175,55,0.40); }
  18% { text-shadow: 0 0 16px rgba(212,175,55,0.65); }
  26% { text-shadow: 0 0 12px rgba(212,175,55,0.50); }
  100% { text-shadow: 0 0 12px rgba(212,175,55,0.50); }
}

.brand-gold.animate-heart {
  animation: heartPulseScale 4.2s ease-in-out infinite, heartShadowPulse 4.2s ease-in-out infinite, goldShimmer 12s linear infinite; /* restored pulse + shimmer */
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .brand-gold.animate-heart { animation: none; text-shadow: 0 0 12px rgba(212,175,55,0.55); }
}

@keyframes heartHuePulse {
  0% { 
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
  }
  8% { 
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
  }
  16% { 
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.7);
  }
  24% { 
    text-shadow: 0 0 22px rgba(255, 215, 0, 0.85);
  }
  32% { 
    text-shadow: 0 0 16px rgba(212, 175, 55, 0.6);
  }
  100% { 
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
  }
}

/* Subtle heartbeat-like glow without filters or transforms */
@keyframes softHeartbeatGlow {
  0%   { text-shadow: 0 0 10px rgba(212,175,55,0.45), 0 0 0px rgba(212,175,55,0.0); }
  10%  { text-shadow: 0 0 14px rgba(212,175,55,0.65), 0 0 18px rgba(212,175,55,0.35); }
  14%  { text-shadow: 0 0 22px rgba(255,215,0,0.80), 0 0 28px rgba(212,175,55,0.45); } /* beat peak */
  18%  { text-shadow: 0 0 14px rgba(212,175,55,0.60), 0 0 18px rgba(212,175,55,0.30); }
  26%  { text-shadow: 0 0 11px rgba(212,175,55,0.50), 0 0 10px rgba(212,175,55,0.20); }
  40%  { text-shadow: 0 0 9px  rgba(212,175,55,0.40), 0 0 6px  rgba(212,175,55,0.15); }
  100% { text-shadow: 0 0 10px rgba(212,175,55,0.45), 0 0 0px rgba(212,175,55,0.0); }
}

/* Gentle shimmer across the gold gradient (text-clipped, no filter boxes) */
@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Body and Background Enhancements */
body {
  background: linear-gradient(135deg, #000000 0%, #0d0d0d 50%, #1a1a1a 100%);
  background-attachment: fixed;
}

/* Enhanced Gold Shimmer Effect */
.section-heading h2 em,
.section-heading h6,
h1, h2, h3, h4, h5, h6 {
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Luxury Box Shadows */
.features .item,
.trending .item,
.most-played .item,
.trending-box .item {
  box-shadow: 0px 5px 30px rgba(212, 175, 55, 0.2);
}

/* Gold Border Accents */
.main-button a,
.trending .item .down-content a,
.most-played .item .down-content a,
.categories .item {
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.main-button a:hover,
.trending .item .down-content a:hover,
.most-played .item .down-content a:hover {
  border-color: #d4af37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* Enhanced Navigation */
.header-area .main-nav .nav li a:hover {
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Luxury Input Fields */
input, textarea {
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #d4af37 !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Global dark form control overrides to prevent black/white on focus */
.form-control,
.form-control:focus {
  background-color: #1a1a1a !important;
  color: #d4af37 !important;
  border: 2px solid rgba(212,175,55,0.35) !important;
  box-shadow: 0 0 12px rgba(212,175,55,0.25) !important;
  caret-color: #d4af37;
}

.form-control::placeholder { color: #9b8430 !important; opacity: .9; }

/* Ensure product qty input respects dark focus */
.single-product form input:focus {
  background-color: #1a1a1a !important;
  color: #d4af37 !important;
  border: 2px solid #d4af37 !important;
  box-shadow: 0 0 14px rgba(212,175,55,0.35) !important;
}

/* Enhanced Buttons with Glow */
button,
.main-button a {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button:hover,
.main-button a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(212, 175, 55, 0.6);
}

/* Card Hover Effects */
.trending .item:hover,
.most-played .item:hover,
.trending-box .item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 40px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
}

/* Price Tags Enhancement */
.trending .item span.price,
.trending-box .item span.price,
.main-banner .right-image span.price {
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
  border: 2px solid rgba(184, 148, 30, 0.5);
}

/* Footer Enhancement */
footer {
  background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
  border-top: 2px solid rgba(212, 175, 55, 0.2);
}

/* Pagination Enhancement */
.trending ul.pagination li a {
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.trending ul.pagination li a:hover,
.trending ul.pagination li a.is_active {
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* Tab Content Enhancement */
.tabs-content {
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Remove box-shadows and lifts from tab buttons specifically */
.tabs-content .nav-tabs .nav-link,
.tabs-content .nav-link {
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
  background: transparent !important;
}

.tabs-content .nav-tabs .nav-link:hover,
.tabs-content .nav-tabs .nav-link:focus {
  box-shadow: none !important;
  transform: none !important;
  outline: none !important;
}

/* Keep a clean active state without glow */
.tabs-content .nav-tabs .nav-link.active {
  box-shadow: none !important;
  background: transparent !important;
  color: #d4af37 !important;
  border-bottom: 2px solid #d4af37;
}

/* Contact Form Enhancement */
.contact-page .left-text,
.contact-page .right-content form input,
.contact-page .right-content form textarea {
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Category Cards */
.categories .item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.5);
  transition: all 0.3s ease;
}

/* Preloader Enhancement */
.js-preloader {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

/* CTA Sections */
.cta .shop,
.cta .subscribe {
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 5px 30px rgba(212, 175, 55, 0.15);
}

/* Scrollbar Styling for Luxury Look */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4af37 0%, #b8941e 100%);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4af37;
}

/* Link Hover Effects */
a {
  transition: all 0.3s ease;
}

/* Enhanced Features Icons */
.features .item .image {
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
  border: 2px solid rgba(184, 148, 30, 0.3);
}

/* Banner Enhancement - Override Blue Background */
.main-banner {
  position: relative;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #0d0d0d 100%) !important;
  background-image: none !important;
  z-index: 1;
}

.main-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(212,175,55,0.15) 0%, rgba(0,0,0,0.8) 70%);
  pointer-events: none;
  border-radius: 0px 0px 150px 150px;
  z-index: 1;
}

.main-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 48%, rgba(212,175,55,0.03) 50%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(212,175,55,0.03) 50%, transparent 52%);
  background-size: 100px 100px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 1;
  border-radius: 0px 0px 150px 150px;
}

/* Override page heading backgrounds */
.page-heading {
  position: relative;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #0d0d0d 100%) !important;
  background-image: none !important;
  z-index: 1;
}

.page-heading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(212,175,55,0.15) 0%, rgba(0,0,0,0.8) 70%);
  pointer-events: none;
  z-index: 1;
}

.page-heading * {
  position: relative;
  z-index: 2;
}

/* Text Glow for Headers */
h1, h2, h3 {
  text-shadow: 0 2px 15px rgba(212, 175, 55, 0.4);
}

/* Make sure all text is visible on dark background */
p, span, li {
  color: #c0c0c0;
}

/* Dark mode adjustments for better contrast */
.section-heading h2 {
  color: #d4af37;
}

/* White text overrides for banners */
.main-banner .caption h6,
.main-banner .caption h2,
.page-heading h3,
.page-heading span,
.page-heading span a {
  color: #d4af37 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Remove red decorative underline image under H2 in main banner */
.main-banner .caption h2:after {
  content: none !important;
  background-image: none !important;
  display: none !important;
}

/* Main banner H2 keeps default gold color without animation */

.main-banner .caption p {
  color: #c0c0c0 !important;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

/* Ensure banner content is above overlays */
.main-banner .caption,
.main-banner .right-image {
  position: relative;
  z-index: 2;
}

/* Override any remaining blue/red elements */
[style*="background: #0071f8"],
[style*="background-color: #0071f8"],
[style*="background: #008af8"],
[style*="background-color: #008af8"],
[style*="background: #ee626b"],
[style*="background-color: #ee626b"] {
  background: #d4af37 !important;
  background-color: #d4af37 !important;
}

/* Enhanced mobile menu */
@media (max-width: 767px) {
  .background-header .main-nav .nav,
  .header-area .main-nav .nav {
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 5px 30px rgba(212, 175, 55, 0.3);
  }
}

/* Ensure all white backgrounds are dark */
.container,
.row,
.col-lg-6,
.col-lg-4 {
  background-color: transparent !important;
}

/* Final catch-all for any blue elements */
* {
  border-color: inherit;
}

/* Ensure search input in banner is dark */
.main-banner .caption form input {
  background-color: #1a1a1a !important;
  border: 2px solid rgba(212, 175, 55, 0.3) !important;
  color: #c0c0c0 !important;
}

.main-banner .caption form input::placeholder {
  color: #888 !important;
}

.main-banner .caption form input:focus {
  border-color: #d4af37 !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4) !important;
}

/* Gold glow animation for luxury feel */
@keyframes goldGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  }
}

.main-button a,
button {
  animation: goldGlow 3s infinite;
}

/* Z-Index Management - Ensure proper layering 
   Hierarchy:
   - Background/Banner: z-index: 1
   - Regular sections: z-index: 20  
   - Features/Cards: z-index: 50
   - Fixed Header (when scrolling): z-index: 999
   - Open Navigation Menu: z-index: 1000
   - Preloader: z-index: 9999
*/

.header-area {
  z-index: 10 !important;
}

.background-header {
  z-index: 999 !important;
  overflow: visible; /* let logo glow extend beyond header bounds */
}

.main-banner {
  z-index: 1 !important;
}

.page-heading {
  z-index: 1 !important;
}

.features {
  position: relative;
  z-index: 50 !important;
}

.trending,
.most-played,
.categories,
.cta,
.contact-page,
.single-product {
  position: relative;
  z-index: 20;
}

/* Ensure all cards and items are above header when not fixed */
.features .item,
.trending .item,
.most-played .item,
.trending-box .item,
.categories .item {
  position: relative;
  z-index: 50;
}

/* Menu should be on top when open */
.header-area .main-nav .nav {
  z-index: 1000 !important;
}

/* Ensure dropdown/mobile menu is always on top */
@media (max-width: 767px) {
  .header-area .main-nav .nav {
    z-index: 1000 !important;
  }
}

/* Footer should be below content */
footer {
  position: relative;
  z-index: 10;
}

/* Avoid clipping of logo/text shadows in header containers */
.header-area .main-nav,
.header-area .main-nav .logo {
  overflow: visible;
}

/* Improve quantity input visibility on product page */
.single-product form input {
  color: #d4af37 !important;
  border: 2px solid rgba(212, 175, 55, 0.35) !important;
  font-weight: 700;
}
.single-product form input::placeholder {
  color: #d4af37 !important;
  opacity: 0.85;
}
