/* ==========================================================================
   AVORA JEWELRY — HTML Clone
   Custom styles bổ sung cho Tailwind CDN
   ========================================================================== */

:root {
  --color-primary: #C86B73;
  --color-primary-hover: #B05860;
  --color-secondary: #F8ECEE;
  --color-accent-gold: #D4AF37;
  --color-bg-main: #FFFDFD;
  --color-bg-card: #FFFFFF;
  --color-bg-surface: #FDF7F8;
  --color-text-main: #2C1E21;
  --color-text-muted: #7D6F73;
  --color-border: #F0E2E4;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

* {
  font-family: 'Be Vietnam Pro', sans-serif;
}

/* Custom Scrollbar for Luxury Feel */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF7F8;
}
::-webkit-scrollbar-thumb {
  background: #E2BDC0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C86B73;
}

/* Ẩn thanh cuộn ngang cho hàng tab danh mục */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Shimmer Animation for Featured Items */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* Smooth transitions */
.transition-luxury {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Icon lucide giữ đúng tỉ lệ khi chưa render xong */
[data-lucide] {
  flex-shrink: 0;
}

/* Dropdown "Bộ Sưu Tập" của menu desktop */
.nav-dropdown-panel {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
}

/* Gạch chân hiệu ứng hover cho menu */
.nav-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #C86B73;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-underline:hover::after {
  transform: scaleX(1);
}

/* Nút hotline nổi: mở rộng khi hover */
.hotline-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.3s ease, margin-left 0.3s ease;
}
.hotline-btn:hover .hotline-label {
  max-width: 20rem;
  margin-left: 0.5rem;
}

/* Ảnh thứ 2 hiện lên khi hover card sản phẩm */
.product-card:hover .product-img-secondary {
  opacity: 1;
}
.product-card:hover .product-quickview {
  opacity: 1;
}

/* Fade-in cho modal & drawer */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-fade-in { animation: fadeIn 0.2s ease-out forwards; }
.animate-slide-in-right { animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-pop-in { animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Khoá cuộn nền khi mở modal / drawer */
body.overflow-locked {
  overflow: hidden;
}
