@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  html {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  body {
    @apply bg-gray-50 text-gray-900;
  }
}

@layer components {
  .btn-primary {
    @apply inline-flex items-center justify-center gap-2
           px-5 py-2.5 rounded-lg font-medium text-sm
           bg-brand text-white hover:bg-brand-dark
           transition-colors duration-150 disabled:opacity-50 disabled:cursor-not-allowed;
  }
  .btn-outline {
    @apply inline-flex items-center justify-center gap-2
           px-5 py-2.5 rounded-lg font-medium text-sm
           border border-gray-300 text-gray-700 hover:bg-gray-100
           transition-colors duration-150;
  }
  .card {
    @apply bg-white rounded-xl shadow-card p-5;
  }
  .badge {
    @apply inline-block px-2 py-0.5 rounded text-xs font-semibold;
  }
  .badge-red    { @apply badge bg-red-100 text-red-700; }
  .badge-green  { @apply badge bg-green-100 text-green-700; }
  .badge-yellow { @apply badge bg-yellow-100 text-yellow-700; }
  .badge-blue   { @apply badge bg-blue-100 text-blue-700; }

  .product-card {
    @apply bg-white rounded-xl overflow-hidden shadow-card
           hover:shadow-md transition-shadow duration-200 cursor-pointer;
  }
  .price {
    @apply text-red-600 font-bold;
  }
  .price-original {
    @apply text-gray-400 line-through text-sm;
  }
}
