/* ============================================================
   COMPONENTS — White Vibrant Theme
   Buttons, Cards, Navbar, Footer, Badges, Micro-interactions
   ============================================================ */

/* ===== Navbar — White Glass ===== */
#mainNavbar {
  background: rgba(255, 253, 248, 0.88) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 134, 10, 0.14);
  box-shadow: 0 2px 20px rgba(90, 58, 26, 0.08);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#mainNavbar .navbar-brand {
  font-family: var(--font-display);
  color: var(--color-text-primary) !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.35rem;
}

#mainNavbar .nav-link {
  color: var(--color-text-body) !important;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  padding: 8px 0 !important;
  position: relative;
  transition: color var(--dur-fast) ease;
}

#mainNavbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
  transition: width var(--dur-fast) var(--ease-luxury);
}

#mainNavbar .nav-link:hover {
  color: var(--color-gold) !important;
}

#mainNavbar .nav-link:hover::after,
#mainNavbar .nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  border: 1px solid var(--color-border) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23d4860a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* ===== Luxury Buttons ===== */
.btn-luxury {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-fast) var(--ease-luxury),
              box-shadow var(--dur-fast) var(--ease-luxury);
}

.btn-luxury.primary {
  background: var(--gradient-gold);
  color: #fff;
  box-shadow: 0 8px 28px -6px rgba(212, 134, 10, 0.55);
}

.btn-luxury.ghost {
  background: rgba(255, 255, 255, 0.70);
  color: var(--color-text-primary);
  border: 1.5px solid rgba(212, 134, 10, 0.40);
  backdrop-filter: blur(8px);
}

.btn-luxury:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px -8px rgba(212, 134, 10, 0.60);
}

.btn-luxury.ghost:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--color-gold);
}

.btn-luxury:active {
  transform: translateY(0) scale(0.98);
}

/* Ripple */
.btn-luxury::after {
  content: '';
  position: absolute;
  top: var(--ripple-y, 50%);
  left: var(--ripple-x, 50%);
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}

.btn-luxury.rippling::after {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition: width 0s, height 0s, opacity 0s;
}

/* ===== Product Cards — White Premium ===== */
.product-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--dur-med) var(--ease-luxury),
    box-shadow var(--dur-med) var(--ease-luxury);
  transform-style: preserve-3d;
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(212, 134, 10, 0.20);
}

.product-card .img-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--color-bg-soft);
}

.product-card .img-wrap img {
  transition: transform 0.7s var(--ease-luxury);
}

.product-card:hover .img-wrap img {
  transform: scale(1.07);
}

.product-card .card-body {
  padding: 20px 22px 22px;
}

.product-card .card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-text-primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.product-card .card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-gold);
  font-family: var(--font-display);
}

.product-card .card-price-old {
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-decoration: line-through;
  margin-left: 6px;
}

/* Badge on card */
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gradient-gold);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

/* Wishlist heart */
.wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 2px 8px rgba(90, 58, 26, 0.10);
  transition: all var(--dur-fast) var(--ease-luxury);
  z-index: 2;
}

.wishlist-btn:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(90, 58, 26, 0.15);
  transform: scale(1.08);
}

.wishlist-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--color-text-muted);
  stroke-width: 1.8;
  transition: all 0.35s var(--ease-luxury);
}

.wishlist-btn.active svg {
  fill: var(--color-gold-bright);
  stroke: var(--color-gold-bright);
  animation: heartPop 0.4s var(--ease-luxury);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ===== Cart Icon ===== */
.cart-icon.bounce {
  animation: cartBounce 0.5s var(--ease-luxury);
}

@keyframes cartBounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px) scale(1.15); }
  60% { transform: translateY(0) scale(0.95); }
}

/* ===== Stars ===== */
.stars .star {
  display: inline-block;
  position: relative;
  color: var(--color-gold-bright);
}

.stars .star::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.55), transparent 70%);
  opacity: 0;
  animation: sparkle 2.6s ease-in-out infinite;
}

.stars .star:nth-child(2)::after { animation-delay: 0.3s; }
.stars .star:nth-child(3)::after { animation-delay: 0.6s; }
.stars .star:nth-child(4)::after { animation-delay: 0.9s; }
.stars .star:nth-child(5)::after { animation-delay: 1.2s; }

@keyframes sparkle {
  0%, 85%, 100% { opacity: 0; }
  90% { opacity: 1; }
}

/* ===== Animated Counters ===== */
.counter-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--color-gold);
  font-weight: 800;
}

/* ===== Section Styles ===== */
.section-white { background: var(--color-white); }
.section-soft  { background: var(--color-bg-soft); }
.section-alt   { background: var(--color-bg-alt); }

/* Stats Bar */
.stats-bar {
  background: linear-gradient(135deg, #fff9f0 0%, #fff4e0 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 10px 20px;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Features / USP grid */
.feature-card {
  text-align: center;
  padding: 36px 28px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-med) var(--ease-luxury);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 134, 10, 0.22);
  transform: translateY(-4px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gradient-gold-soft);
  border: 1px solid rgba(212, 134, 10, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

/* Footer — White warm */
footer.site-footer {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 32px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-top: 6px;
}

.footer-divider {
  height: 1px;
  background: var(--gradient-section-sep);
  margin: 28px 0;
}

.footer-copy {
  color: var(--color-text-light);
  font-size: 0.82rem;
  text-align: center;
}

/* ===== Toast / Notification ===== */
.toast-notification {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  box-shadow: var(--shadow-lg);
  z-index: 9998;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-primary);
  transform: translateX(120%);
  transition: transform 0.4s var(--ease-luxury);
}

.toast-notification.show {
  transform: translateX(0);
}
