/* ========================================
   Fashion Boutique — Custom Styles
   ======================================== */

/* CSS Variables */
:root {
  --gold: #C9A96E;
  --gold-light: #E8D5B5;
  --gold-dark: #A68B4B;
  --blush: #F8E8E0;
  --cream: #FFF9F5;
  --warm-bg: #FDF6F0;
  --text-dark: #2D2D2D;
  --text-muted: #7A7A7A;
  --border-light: #F0E6DC;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Body base */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: var(--gold-light);
  color: var(--text-dark);
}

/* ---- Glassmorphism ---- */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.glass-dark {
  background: rgba(45, 45, 45, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- Product Card ---- */
.product-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(201, 169, 110, 0.15);
}
.product-card .card-img-wrap {
  overflow: hidden;
  border-radius: 0.75rem 0.75rem 0 0;
}
.product-card .card-img-wrap img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .card-img-wrap img {
  transform: scale(1.08);
}
.product-card .card-overlay {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.product-card:hover .card-overlay {
  opacity: 1;
}

/* ---- Badge ---- */
.badge-sale {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}
.badge-new {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

/* ---- Floating WhatsApp Button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: waPulse 2s infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---- Bottom Nav ---- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(201, 169, 110, 0.2);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.6rem;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  padding: 6px 0;
  position: relative;
}
.bottom-nav-item i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}
.bottom-nav-item.active {
  color: var(--gold-dark);
}
.bottom-nav-item.active i {
  transform: scale(1.15);
}
.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--gold);
}
.bottom-nav-item:hover {
  color: var(--gold);
}

/* ---- Hero Banner ---- */
.hero-gradient {
  background: linear-gradient(135deg, #FDF6F0 0%, #F8E8E0 40%, #EDD5C4 100%);
}
.hero-shimmer {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  animation: shimmerFloat 6s ease-in-out infinite;
}
@keyframes shimmerFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
}

/* ---- Image Zoom Modal ---- */
.zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.zoom-modal.active { display: flex; }
.zoom-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ---- Star Rating ---- */
.star-gold { color: var(--gold); }
.star-empty { color: #ddd; }

/* ---- Quantity Selector ---- */
.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  color: var(--text-dark);
}
.qty-btn:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* ---- Search Overlay ---- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-overlay.active { display: flex; }

/* ---- Toast ---- */
.toast {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9997;
  padding: 12px 24px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast.show { transform: translateX(0); }
.toast-success { background: linear-gradient(135deg, #25D366, #128C7E); }
.toast-info { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }

/* ---- Category Card ---- */
.category-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  border-radius: 1rem;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(201, 169, 110, 0.18);
}
.category-card img {
  transition: transform 0.6s ease;
}
.category-card:hover img {
  transform: scale(1.1);
}

/* ---- Page transition ---- */
.page-enter {
  animation: pageIn 0.4s ease forwards;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Color swatch ---- */
.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.color-swatch:hover,
.color-swatch.active {
  border-color: var(--gold);
  transform: scale(1.15);
}

/* ---- Size button ---- */
.size-btn {
  padding: 6px 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}
.size-btn:hover,
.size-btn.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* ---- WhatsApp Banner ---- */
.wa-banner {
  background: linear-gradient(135deg, #25D366, #128C7E);
  position: relative;
  overflow: hidden;
}
.wa-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.wa-banner::after {
  content: '';
  position: absolute;
  bottom: -60%;
  left: -10%;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

/* ---- Review Card ---- */
.review-card {
  transition: transform 0.3s ease;
}
.review-card:hover {
  transform: translateY(-4px);
}

/* ---- Thumbnail gallery ---- */
.thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.7;
}
.thumb:hover,
.thumb.active {
  border-color: var(--gold);
  opacity: 1;
}

/* ---- Responsive ---- */
@media (min-width: 768px) {
  .bottom-nav { display: none !important; }
  .whatsapp-float { bottom: 30px; }
  body { padding-bottom: 0; }
}
@media (max-width: 767px) {
  body { padding-bottom: 72px; }
}

/* ---- Loading Skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, #f0e6dc 25%, #fdf6f0 50%, #f0e6dc 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Misc ---- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gold-gradient-text {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.3);
}
.btn-gold:hover {
  box-shadow: 0 6px 24px rgba(201, 169, 110, 0.45);
  transform: translateY(-2px);
}
.btn-outline-gold {
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
  transition: all 0.3s ease;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: #fff;
}