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

:root {
  --primary: #0284C7;
  --primary-dark: #0369A1;
  --primary-light: #E0F2FE;
  --secondary: #06B6D4;
  --accent-coral: #F43F5E;
  --dark-slate: #0F172A;
  --body-gray: #475569;
  --bg-light: #F8FAFC;
  --border-color: #E2E8F0;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--body-gray);
  background-color: #FFFFFF;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  color: var(--dark-slate);
  font-weight: 700;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0284C7;
}

/* Smooth transitions */
a, button {
  transition: all 0.25s ease-in-out;
}

/* Hero Gradient & Wave */
.ocean-gradient {
  background: linear-gradient(135deg, #075985 0%, #0284C7 50%, #0EA5E9 100%);
}

.ocean-gradient-subtle {
  background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
}

.text-gradient {
  background: linear-gradient(135deg, #0284C7 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Product Card Hover & Effects */
.product-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  border-radius: 16px;
  background: #FFFFFF;
  overflow: hidden;
  border: 1px solid #E2E8F0;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(2, 132, 199, 0.15);
  border-color: #BAE6FD;
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.15;
  background-color: #F8FAFC;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-overlay-actions {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 5;
}

.product-card:hover .product-overlay-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Category Pill & Filter */
.category-pill {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-pill:hover, .category-pill.active {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Badge tags */
.badge-sale {
  background: linear-gradient(135deg, #F43F5E, #E11D48);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.3);
}

.badge-sku {
  background: #F1F5F9;
  color: #64748B;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Floating Actions: Messenger & Zalo & Hotline */
.floating-contact-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn.messenger {
  background: linear-gradient(135deg, #0084FF, #00C6FF);
}

.floating-btn.zalo {
  background: #0068FF;
}

.floating-btn.hotline {
  background: #10B981;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Modals & Drawers */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #FFFFFF;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  z-index: 101;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  right: 0;
}

.modal-container {
  position: fixed;
  inset: 0;
  z-index: 102;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-container.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-container.active .modal-content {
  transform: scale(1);
}

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

.toast {
  pointer-events: auto;
  background: #FFFFFF;
  color: var(--dark-slate);
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  font-weight: 500;
  font-size: 0.95rem;
  animation: slideInRight 0.3s ease forwards;
}

.toast.success { border-left-color: #10B981; }
.toast.info { border-left-color: #0284C7; }
.toast.warning { border-left-color: #F59E0B; }

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