/* ====================================================================
   CLOUDFASHION - MODERN LUXURY & STREETWEAR STYLES (UPGRADE V2)
   Đề tài: Website Bán Quần Áo Serverless Cloudflare
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --primary: #09090b;
  --accent: #d97706; /* Luxury Warm Amber / Gold */
  --accent-orange: #ea580c;
  --bg-cream: #faf9f6;
}

body {
  font-family: var(--font-sans);
  color: #18181b;
  background-color: #faf9f6;
  scroll-behavior: smooth;
}

.font-serif-title {
  font-family: var(--font-serif);
}

/* Glassmorphism nav */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(228, 228, 231, 0.8);
}

/* Card hover animation */
.product-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.08), 0 8px 12px -6px rgba(0, 0, 0, 0.03);
}

.product-image-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-container img {
  transform: scale(1.06);
}

/* Star rating interactive hover */
.star-btn {
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.star-btn:hover {
  transform: scale(1.2);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #f4f4f5;
}
::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}

/* Toast Notification Styles */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 400px;
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-success {
  background: #09090b;
  color: #f4f4f5;
  border-left: 4px solid #10b981;
}

.toast-error {
  background: #09090b;
  color: #f4f4f5;
  border-left: 4px solid #f43f5e;
}

.toast-info {
  background: #09090b;
  color: #f4f4f5;
  border-left: 4px solid #f59e0b;
}

/* Badges */
.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Pulse animation for badge */
@keyframes pulse-bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.badge-bounce {
  animation: pulse-bounce 0.3s ease-in-out;
}
