/* ==========================================================================
   Selancy PharmaCare - Common CSS Design Tokens & Base Utilities
   Theme: White & Soft Pink (Trắng & Hồng Nhạt) - Selancy Style
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Questrial&family=Roboto:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Selancy Color Spectrum */
  --primary-pink: #ff758f;
  --primary-pink-dark: #e05776;
  --primary-pink-deep: #c93b62;
  
  --bg-pink-light: #fff0f3;
  --bg-pink-soft: #ffe5ec;
  --bg-pink-hover: #ffccd5;
  
  --border-pink: #ffccd5;
  --border-pink-light: #fff0f3;
  
  --accent-gold: #fbbf24;
  --accent-rose: #fb7185;
  --rx-blue: #3b82f6;

  /* Neutral Spectrum */
  --bg-main: #fffdfd;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  
  --text-dark: #2b2d42;
  --text-main: #343a40;
  --text-muted: #6c757d;
  --text-light: #a0aec0;

  /* Shadows & Radius */
  --shadow-sm: 0 2px 5px rgba(255, 117, 143, 0.08);
  --shadow-md: 0 4px 15px rgba(255, 117, 143, 0.12);
  --shadow-lg: 0 10px 25px rgba(255, 117, 143, 0.18);
  --shadow-xl: 0 20px 30px rgba(255, 117, 143, 0.22);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Roboto', 'Inter', sans-serif;
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Common Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-rx {
  background-color: #eff6ff;
  color: var(--rx-blue);
  border: 1px solid #bfdbfe;
}

.badge-selancy {
  background-color: var(--bg-pink-soft);
  color: var(--primary-pink-dark);
  border: 1px solid var(--border-pink);
}

.badge-hot {
  background-color: #fff1f2;
  color: #f43f5e;
  border: 1px solid #fecdd3;
}

.badge-sale {
  background-color: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.price-current {
  font-weight: 800;
  color: var(--primary-pink-dark);
  font-size: 1.15rem;
}

.price-old {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-pink-dark));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 117, 143, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-pink-dark), var(--primary-pink-deep));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 87, 118, 0.45);
}

.btn-outline {
  border: 1px solid var(--primary-pink);
  color: var(--primary-pink-dark);
  background: #ffffff;
}

.btn-outline:hover {
  background: var(--bg-pink-light);
  color: var(--primary-pink-deep);
}

/* Selancy Sticky Side Contact Widgets */
.selancy-floating-widgets {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.selancy-float-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 117, 143, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-pink);
  border: 1px solid var(--border-pink);
  transition: var(--transition-fast);
  cursor: pointer;
}

.selancy-float-btn:hover {
  transform: scale(1.1);
  background: var(--primary-pink);
  color: #ffffff;
}

.selancy-float-btn.zalo-btn {
  color: #0084ff;
  border-color: #99caff;
}

.selancy-float-btn.zalo-btn:hover {
  background: #0084ff;
  color: #ffffff;
}

/* Modal & Toast */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 45, 66, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.25s ease;
  padding: 1.75rem;
  position: relative;
  border: 1px solid var(--border-pink);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-pink-dark);
}

.modal-close:hover {
  background: var(--bg-pink-soft);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary-pink);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease forwards;
}

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