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

:root {
  /* Brand Colors */
  --color-accent: #00555a;
  --color-accent-light: #00777e;
  --color-accent-dark: #00363a;
  
  --color-bg-chalk: #FAFAFA;
  --color-bg-white: #FFFFFF;
  
  --color-text-black: #111111;
  --color-text-muted: #555555;
  --color-text-white: #FFFFFF;

  /* UI Colors */
  --color-border: #E0E0E0;
  --color-error: #D32F2F;
  --color-success: #388E3C;
  --color-warning: #FFC107;

  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif; /* Good for holistic/pharmaceutical premium feel */

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px rgba(0,85,90,0.1);
  
  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-chalk);
  color: var(--color-text-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-accent-dark);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-light);
}

ul {
  list-style: none;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.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-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Typography Utilities */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-serif { font-family: var(--font-serif); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-white);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: #E0E0E0;
  color: var(--color-text-black);
}

.badge.success {
  background: #E8F5E9;
  color: var(--color-success);
}

.badge.warning {
  background: #FFF8E1;
  color: #F57F17;
}

.badge.error {
  background: #FFEBEE;
  color: var(--color-error);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Navigation */
.navbar {
  background-color: var(--color-bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.navbar .brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar .brand img {
  height: 32px;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text-black);
}

.nav-links a:hover {
  color: var(--color-accent);
}

.cart-icon {
  position: relative;
  font-size: 1.25rem;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background-color: var(--color-accent);
  color: var(--color-text-white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
footer {
  background-color: var(--color-accent-dark);
  color: var(--color-text-white);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: auto;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
  color: var(--color-text-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* UI Elements */
.card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Grid System */
.grid {
  display: grid;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none; /* simple mobile hide for now */
  }
}

/* Hero Section */
.hero {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, var(--color-bg-chalk) 0%, #e6f0f0 100%);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-sm);
  color: var(--color-accent-dark);
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-md);
}

/* Product Cards */
.product-card {
  display: flex;
  flex-direction: column;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: #F0F0F0;
}

.product-info {
  padding: var(--space-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.product-card .btn {
  margin-top: auto;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--color-text-muted);
}

/* Section spacing */
.section {
  padding: var(--space-lg) 0;
}

/* Custom Toast Notification */
.custom-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    background: white;
    color: var(--color-text);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 9999;
    font-weight: 500;
    font-family: var(--font-sans);
    animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    display: flex;
    align-items: center;
    gap: 12px;
}
.custom-toast.toast-success {
    border-left: 4px solid var(--color-accent);
}
.custom-toast.toast-error {
    border-left: 4px solid #ef4444;
}
.custom-toast.toast-info {
    border-left: 4px solid #3b82f6;
}
.custom-toast.fade-out {
    animation: fadeOutRight 0.3s ease forwards;
}
@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}
