/* ============================================
   ENHANCEMENTS V3 — Effets Cinématiques
   ============================================ */

/* === DARK GRADIENT VIGNETTE === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    transparent 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* === GOLDEN PARTICLES OVERLAY === */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(201, 164, 92, 0.4), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(201, 164, 92, 0.3), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(201, 164, 92, 0.5), transparent),
    radial-gradient(2px 2px at 80% 10%, rgba(201, 164, 92, 0.4), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(201, 164, 92, 0.3), transparent),
    radial-gradient(2px 2px at 33% 80%, rgba(201, 164, 92, 0.4), transparent);
  background-size: 400px 400px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
  animation: particlesDrift 60s linear infinite;
}

@keyframes particlesDrift {
  from { background-position: 0 0; }
  to { background-position: 400px 400px; }
}

/* === SECTION TITLES MEGA STYLE === */
.section-title {
  position: relative;
  display: block;
  background: linear-gradient(135deg,
    var(--white) 0%,
    var(--gold-lighter) 50%,
    var(--white) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGradient 6s ease-in-out infinite;
}

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

/* === FOCUS STATES === */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

/* === TEXT SELECTION ENHANCED === */
::selection {
  background: linear-gradient(135deg, var(--gold), var(--gold-lighter));
  color: var(--black);
  text-shadow: 0 0 10px rgba(201, 164, 92, 0.5);
}

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

::-webkit-scrollbar-track {
  background: rgba(10, 10, 10, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--gold-lighter), var(--gold));
}

/* === BTN LUXURY ULTIMATE === */
.btn-luxury {
  position: relative;
  z-index: 1;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
}

.btn-luxury::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lighter), var(--gold));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  filter: blur(15px);
  transition: opacity 0.5s ease;
}

.btn-luxury:hover::before {
  opacity: 0.8;
}

/* === CARD GLOW BORDER === */
.product-card,
.category-card,
.feature-item,
.submission-card,
.product-edit-card {
  position: relative;
}

.product-card::after,
.category-card::after,
.feature-item::after,
.submission-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    transparent 30%,
    rgba(201, 164, 92, 0.3) 50%,
    transparent 70%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 3;
}

.product-card:hover::after,
.category-card:hover::after,
.feature-item:hover::after,
.submission-card:hover::after {
  opacity: 1;
}

/* === PARALLAX DEPTH FOR HERO === */
.section-hero {
  perspective: 1500px;
}

.hero-content > * {
  transform-style: preserve-3d;
}

/* === SMOOTH PAGE LOAD ANIMATION === */
@keyframes pageLoad {
  from {
    opacity: 0;
    filter: blur(20px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

body:not(.loading) main,
body:not(.loading) section,
body:not(.loading) header {
  animation: pageLoad 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === LOADER ULTIMATE === */
.loader-logo img {
  position: relative;
}

.loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
    rgba(201, 164, 92, 0.2) 0%,
    transparent 50%);
  animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1); }
}

/* === NAV CART BAG ANIMATION === */
.nav-cart {
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-cart:hover {
  transform: scale(1.1) rotate(-5deg);
}

.nav-cart .fa-shopping-bag {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cart:hover .fa-shopping-bag {
  animation: bagShake 0.5s ease;
}

@keyframes bagShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -10px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lighter)) !important;
  color: var(--black);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(201, 164, 92, 0.5);
}

/* === ENHANCED CHECKOUT BUTTON === */
.btn-checkout {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--black) !important;
  padding: 16px 30px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
}

.btn-checkout::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent);
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-checkout:hover::before {
  left: 100%;
}

.btn-checkout:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(201, 164, 92, 0.5);
}

.btn-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === PRODUCT CARD PRICE ANIMATION === */
.product-price {
  background: linear-gradient(135deg, var(--gold-lighter), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 1.3rem !important;
  text-shadow: 0 0 20px rgba(201, 164, 92, 0.3);
}

.product-price-old {
  text-decoration: line-through;
  color: #777 !important;
  font-size: 0.9rem;
}

/* === DISCOUNT BADGE PULSE === */
.product-badge.discount {
  background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
  animation: discountPulse 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}

@keyframes discountPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(231, 76, 60, 0.7);
  }
}

/* === ADD TO CART BUTTON === */
.btn-add-cart {
  background: rgba(201, 164, 92, 0.15) !important;
  color: var(--gold) !important;
  border: 1px solid var(--gold) !important;
  padding: 12px 20px !important;
  border-radius: 6px !important;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-cart:hover:not(:disabled) {
  background: var(--gold) !important;
  color: var(--black) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(201, 164, 92, 0.4);
}

.btn-add-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #555 !important;
  color: #777 !important;
}

/* === LOADER SHOP === */
.loader-shop {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px;
  font-size: 3rem;
  color: var(--gold);
  filter: drop-shadow(0 0 20px rgba(201, 164, 92, 0.5));
}

/* === EMPTY MSG / ERROR MSG === */
.empty-msg, .error-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 30px;
  color: #aaa;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(201, 164, 92, 0.3);
  border-radius: 12px;
}

.error-msg {
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.3);
  background: rgba(231, 76, 60, 0.05);
}

/* === IMAGE DISCOUNT BADGE === */
.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 12px;
  background: rgba(231, 76, 60, 0.9);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* === CONTENT FADE-IN ON LOAD === */
.shop-grid > * {
  animation: productFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

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

.shop-grid > *:nth-child(1) { animation-delay: 0.05s; }
.shop-grid > *:nth-child(2) { animation-delay: 0.1s; }
.shop-grid > *:nth-child(3) { animation-delay: 0.15s; }
.shop-grid > *:nth-child(4) { animation-delay: 0.2s; }
.shop-grid > *:nth-child(5) { animation-delay: 0.25s; }
.shop-grid > *:nth-child(6) { animation-delay: 0.3s; }
.shop-grid > *:nth-child(7) { animation-delay: 0.35s; }
.shop-grid > *:nth-child(8) { animation-delay: 0.4s; }

/* === CART SIDEBAR INNER === */
.cart-header {
  border-bottom: 1px solid rgba(201, 164, 92, 0.2) !important;
  padding-bottom: 20px;
  position: relative;
}

.cart-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.cart-close {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cart-close:hover {
  transform: rotate(90deg) scale(1.2);
  color: var(--gold) !important;
}

/* === TAX BREAKDOWN STYLE === */
.cart-tax-breakdown {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid rgba(201, 164, 92, 0.1);
}

.cart-tax-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.9rem;
  color: #ccc;
}

.cart-tax-row.cart-total-ttc {
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 700;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(201, 164, 92, 0.2);
}

/* === FOOTER ENHANCED === */
.footer {
  background: linear-gradient(180deg,
    rgba(10, 10, 10, 0.9) 0%,
    rgba(10, 10, 10, 1) 100%);
  position: relative;
  margin-top: 80px;
  padding-top: 60px;
}

/* === RESPONSIVE FIXES === */
@media (max-width: 480px) {
  .scroll-progress {
    height: 2px;
  }

  body::after {
    background-size: 200px 200px;
  }
}

/* === PERFORMANCE OPTIMIZATIONS === */
.product-card,
.category-card,
.feature-item,
.gallery-item {
  will-change: transform;
}

.scroll-progress,
.cursor,
.cursor-follower {
  will-change: transform, opacity;
}

/* === HEADER PARALLAX === */
.page-header {
  overflow: hidden;
  position: relative;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(10, 10, 10, 0.9) 0%,
    rgba(10, 10, 10, 0.7) 50%,
    rgba(10, 10, 10, 0.9) 100%);
  z-index: 2;
}

.page-header-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 100px 20px 80px;
}

.page-header-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-family: 'Cormorant Garamond', serif;
  margin: 20px 0;
  background: linear-gradient(135deg,
    var(--white) 0%,
    var(--gold-lighter) 50%,
    var(--white) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGradient 6s ease-in-out infinite;
}

/* === LOAD ENHANCEMENT === */
.fade-up-enter {
  opacity: 0;
  transform: translateY(20px);
}
