/* ==========================================================================
   FADZA FASHION - SHOFI FROZEN EXACT DESIGN SYSTEM (LUXURY RETAIL EDITION)
   Inspired by: https://www.shofifrozen.com/
   Primary Brand: #4A0E4E (Royal Wine Plum) & #D4AF37 (Champagne Gold Accent)
   Clean Modern Retail, Fast E-Commerce & Fashion Boutique Aesthetic
   ========================================================================== */

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

:root {
  --color-primary: #4A0E4E;
  --color-primary-hover: #5C1261;
  --color-primary-light: rgba(74, 14, 78, 0.08);
  --color-primary-border: rgba(74, 14, 78, 0.2);
  --color-gold: #D4AF37;
  --color-gold-hover: #B8972E;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
}

.font-serif-luxury {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4A0E4E;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Sticky Header Scroll Dynamic (Matching Shofi Frozen) */
#mainHeader.scrolled > div > div {
  box-shadow: 0 12px 30px -6px rgba(74, 14, 78, 0.08), 0 6px 12px -4px rgba(0, 0, 0, 0.03);
  background-color: rgba(255, 255, 255, 0.98);
  border-color: rgba(226, 232, 240, 0.95);
}
.dark #mainHeader.scrolled > div > div {
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.5);
  background-color: rgba(15, 23, 42, 0.98);
  border-color: rgba(51, 65, 85, 0.9);
}

/* ShofiFrozen Product Card Hover Dynamics */
.shofi-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.shofi-card:hover {
  transform: translateY(-4px);
  border-color: #e9d5ff;
  box-shadow: 0 20px 25px -5px rgba(74, 14, 78, 0.07), 0 8px 10px -6px rgba(74, 14, 78, 0.05);
}

/* Heart pop animation for like/wishlist */
@keyframes heartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35) rotate(-10deg); }
  80% { transform: scale(0.9) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.heart-pop {
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ShofiFrozen Category Pill active state */
.cat-pill {
  transition: all 0.2s ease;
  white-space: nowrap;
}
.cat-pill.active {
  background-color: #4A0E4E !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px -2px rgba(74, 14, 78, 0.35);
  font-weight: 700;
  border-color: #4A0E4E !important;
}
.cat-pill:not(.active) {
  background-color: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.cat-pill:not(.active):hover {
  background-color: rgba(74, 14, 78, 0.05);
  color: #4A0E4E;
  border-color: rgba(74, 14, 78, 0.3);
}

/* Circular Category Card Hover */
.category-circle-card:hover .circle-icon-box {
  transform: scale(1.08);
  border-color: rgba(74, 14, 78, 0.4);
  box-shadow: 0 10px 15px -3px rgba(74, 14, 78, 0.1);
}

/* Drawer / Aside Backdrop & Transitions */
.drawer-backdrop {
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

/* Color Swatches Interaction */
.color-swatch-dot {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.color-swatch-dot:hover {
  transform: scale(1.2);
}

.color-swatch-dot.active {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px #4A0E4E, 0 2px 4px rgba(74, 14, 78, 0.3);
}

.color-chip-btn {
  transition: all 0.2s ease;
}

.color-chip-btn.active {
  border-color: #4A0E4E !important;
  background-color: #4A0E4E !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(74, 14, 78, 0.25);
}

/* Payment Method Button Dynamic Selected State */
.pay-method-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pay-method-btn.selected {
  border-color: #4A0E4E !important;
  background-color: rgba(74, 14, 78, 0.06) !important;
  box-shadow: 0 4px 12px rgba(74, 14, 78, 0.12);
}

.pay-method-btn.selected h5,
.pay-method-btn.selected span.pay-title {
  color: #4A0E4E !important;
  font-weight: 800 !important;
}

/* Toast item styling */
.toast-item {
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Dark Mode Overrides (Optional Toggle) */
body.dark {
  background-color: #0b0d14;
  color: #e2e8f0;
}
body.dark .bg-gray-50,
body.dark .bg-slate-50 {
  background-color: #111422 !important;
}
body.dark .bg-white {
  background-color: #181c2e !important;
}
body.dark .text-gray-900,
body.dark .text-slate-900,
body.dark .text-gray-800 {
  color: #f8fafc !important;
}
body.dark .text-gray-700,
body.dark .text-gray-600 {
  color: #cbd5e1 !important;
}
body.dark .text-gray-500 {
  color: #94a3b8 !important;
}
body.dark .border-gray-100,
body.dark .border-gray-200,
body.dark .border-slate-200\/80 {
  border-color: #262c44 !important;
}
body.dark .cat-pill:not(.active) {
  background-color: #1a1f33;
  border-color: #2c3452;
  color: #cbd5e1;
}
body.dark .cat-pill.active {
  background-color: #4A0E4E !important;
  color: #ffffff !important;
}

body.dark #mainHeader.scrolled > div > div {
  background-color: rgba(24, 28, 46, 0.98) !important;
  border-color: rgba(38, 44, 68, 0.9) !important;
}
