/* ============================================================
   enhancements.css — Quick-Win UI Enhancements
   ============================================================ */

/* ----------------------------------------------------------
   1. BACK-TO-TOP BUTTON
   ---------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

/* ----------------------------------------------------------
   2. SCROLL PROGRESS BAR
   ---------------------------------------------------------- */
.navbar__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  transition: width 50ms linear;
  z-index: 10;
}

/* ----------------------------------------------------------
   3. IMAGE FADE-IN
   ---------------------------------------------------------- */
.product-card__image {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.product-card__image.loaded {
  opacity: 1;
}

/* ----------------------------------------------------------
   4. COOKIE CONSENT BANNER
   ---------------------------------------------------------- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
}
.cookie-consent.visible {
  transform: translateY(0);
}
.cookie-consent.hiding {
  transform: translateY(100%);
}

.cookie-consent__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  background: #ffffff;
  border-top: 1px solid #e8e0d8;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent__text {
  flex: 1;
  min-width: 280px;
}
.cookie-consent__text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.cookie-consent__link {
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: underline;
  margin-top: 0.25rem;
  display: inline-block;
}

.cookie-consent__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-consent__accept {
  padding: 0.6rem 1.5rem;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
}
.cookie-consent__accept:hover {
  background: var(--gold-dark);
}
.cookie-consent__decline {
  padding: 0.6rem 1.5rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid #e8e0d8;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.cookie-consent__decline:hover {
  border-color: var(--text-tertiary);
  color: var(--text-primary);
}

/* Dark mode cookie banner */
[data-theme="dark"] .cookie-consent__inner {
  background: #1a1726;
  border-top-color: rgba(255,255,255,0.08);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
[data-theme="dark"] .cookie-consent__decline {
  border-color: rgba(255,255,255,0.1);
  color: #b8b2c4;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .cookie-consent__inner {
    padding: 1rem 1.25rem;
    flex-direction: column;
    text-align: center;
  }
  .cookie-consent__actions {
    width: 100%;
    justify-content: center;
  }
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
  }
}
