:root {
  --bg-black: #FFFFFF;
  --bg-dark: #FAFAFA;
  --bg-card: #FFFFFF;
  --text-white: #111827;
  --text-light: #374151;
  --text-muted: #6B7280;
  --silver: #DC2626;
  --silver-light: #FFFFFF;
  --gold: #991B1B;
  --gold-light: #B91C1C;
  --diamond: #FEF2F2;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-black);
  color: var(--text-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111827;
}

.font-display {
  font-family: 'Playfair Display', serif;
}

.font-body {
  font-family: 'Inter', sans-serif;
}

/* ============ Sparkle Animations ============ */
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 0 40px rgba(255, 255, 255, 0.45); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.animate-sparkle {
  animation: sparkle 2.5s ease-in-out infinite;
}

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

.animate-shimmer {
  background: linear-gradient(90deg,
    transparent,
    rgba(220, 38, 38, 0.1),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

/* ============ Scroll Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Gradient Text & Borders ============ */
.text-gradient-silver {
  background: linear-gradient(135deg, #B91C1C 0%, #DC2626 40%, #991B1B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #7F1D1D 0%, #B91C1C 50%, #DC2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gradient-silver {
  position: relative;
}

.border-gradient-silver::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #FECACA, #DC2626, #991B1B, #DC2626, #FECACA);
  background-size: 300% 300%;
  animation: gradientShift 5s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ============ Product Card Hover ============ */
.product-card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px -10px rgba(220, 38, 38, 0.2),
              0 0 30px rgba(220, 38, 38, 0.06);
}

.product-image {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.08);
  filter: brightness(1.08) drop-shadow(0 0 12px rgba(220, 38, 38, 0.25));
}

/* ============ Button Styles ============ */
.btn-primary {
  background: linear-gradient(135deg, #B91C1C 0%, #DC2626 50%, #B91C1C 100%);
  background-size: 200% 100%;
  color: #FFFFFF;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 10px 40px rgba(220, 38, 38, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #B91C1C;
  font-weight: 500;
  padding: 13px 34px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  border: 1px solid rgba(220, 38, 38, 0.45);
  transition: all 0.4s ease;
}

.btn-outline:hover {
  border-color: rgba(220, 38, 38, 1);
  background: rgba(220, 38, 38, 0.06);
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.12);
  color: #991B1B;
}

/* ============ Category Card ============ */
.category-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.25) 55%, transparent 100%);
  transition: all 0.4s ease;
}

.category-card:hover::after {
  background: linear-gradient(to top, rgba(220, 38, 38, 0.88) 0%, rgba(17, 24, 39, 0.35) 60%, transparent 100%);
}

.category-card:hover {
  transform: scale(1.03);
}

.category-card .category-content {
  position: relative;
  z-index: 2;
}

/* ============ Gallery Lightbox ============ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeInUp 0.3s ease;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.35),
              0 0 60px rgba(220, 38, 38, 0.15);
}

#lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #111827;
  font-size: 2.5rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
  line-height: 1;
}

#lightbox-close:hover {
  background: rgba(220, 38, 38, 0.08);
  transform: rotate(90deg);
  color: #B91C1C;
}

/* ============ Gallery Item ============ */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid #F3F4F6;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.15);
  filter: brightness(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.92) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(220, 38, 38, 0.55);
  backdrop-filter: blur(4px);
}

.gallery-item:hover .gallery-icon {
  transform: translate(-50%, -50%) scale(1);
}

.gallery-icon svg {
  color: #fff;
}

/* ============ Mobile Menu ============ */
#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.active {
  transform: translateX(0);
}

.hamburger-line {
  transition: all 0.3s ease;
  transform-origin: center;
}

#hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

#hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FAFAFA;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #FCA5A5, #DC2626);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #DC2626, #B91C1C);
}

/* ============ Form Inputs ============ */
.form-input {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #111827;
  padding: 14px 18px;
  border-radius: 2px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: #DC2626;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-input::placeholder {
  color: #9CA3AF;
}

select.form-input option {
  color: #111827;
}

/* ============ Star Rating ============ */
.star-filled {
  color: #B91C1C;
}

/* ============ Hero Background Sparkle Dots ============ */
.sparkle-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.95),
              0 0 20px rgba(255, 255, 255, 0.7),
              0 0 30px rgba(255, 255, 255, 0.35);
  animation: sparkle 3s ease-in-out infinite;
}

/* ============ Divider ============ */
.silver-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #DC2626, transparent);
  margin: 0 auto;
}

/* ============ Brand Logo Image ============ */
.brand-logo {
  display: block;
  object-fit: contain;
  transition: transform 0.4s ease, filter 0.4s ease;
  max-width: 100%;
  border-radius: 4px;
  background: #FFFFFF;
  padding: 4px 8px;
  border: 1px solid #F3F4F6;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.06);
}

.brand-logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 12px rgba(220, 38, 38, 0.15));
  border-color: rgba(220, 38, 38, 0.2);
}

.brand-logo-nav {
  height: 56px;
  width: auto;
}

@media (min-width: 640px) {
  .brand-logo-nav {
    height: 64px;
  }
}

.brand-logo-footer {
  height: 80px;
  width: auto;
}

@media (min-width: 640px) {
  .brand-logo-footer {
    height: 96px;
  }
}

/* ============ Navbar Scroll State ============ */
#navbar {
  transition: background 0.4s ease, backdrop-filter 0.4s ease,
              border-color 0.4s ease, box-shadow 0.4s ease,
              height 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(220, 38, 38, 0.15) !important;
  box-shadow: 0 4px 30px rgba(17, 24, 39, 0.06) !important;
}

#navbar .nav-logo-img {
  display: block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#navbar .nav-logo-text {
  display: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  opacity: 0;
  transform: translateY(-6px);
}

#navbar.scrolled .nav-logo-img {
  display: none;
}

#navbar.scrolled .nav-logo-text {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
