@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+Georgian:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-main: #070a12;
  --bg-card: rgba(15, 23, 42, 0.7);
  --border-card: rgba(255, 255, 255, 0.12);
  --gold-accent: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html, body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', 'Noto Sans Georgian', -apple-system, sans-serif;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  line-height: 1.5;
}

#mainHeader {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  width: 100% !important;
  background: rgba(7, 10, 18, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.search-results-dropdown {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.15);
}

/* Responsive & Visibility Fallbacks */
.hidden { display: none !important; }
@media (max-width: 767px) {
  .md\:flex { display: none !important; }
}
@media (max-width: 639px) {
  .sm\:block { display: none !important; }
  .sm\:inline { display: none !important; }
  .sm\:flex { display: none !important; }
}
@media (min-width: 640px) {
  .sm\:block { display: block !important; }
  .sm\:inline { display: inline !important; }
  .sm\:flex { display: flex !important; }
  .sm\:hidden { display: none !important; }
}
@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070a12;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: #d4af37;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
}

.glass-nav {
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, #e2e8f0 70%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-btn {
  background: linear-gradient(135deg, #d4af37 0%, #f1c40f 100%);
  color: #070a12;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.gold-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px var(--gold-glow);
}

/* Product Card Hover */
.product-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 25px -5px rgba(212, 175, 55, 0.15);
}

/* Image Zoom on Card Hover */
.card-img-wrap img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.08); }
}

.ambient-glow {
  animation: pulseGlow 8s infinite ease-in-out;
}

/* Modal Transitions */
.modal-overlay {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}
.modal-content {
  transform: scale(0.92) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Floating Widget */
.floating-widget {
  animation: floatBounce 4s infinite ease-in-out;
}
@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
