/* =========================
   Global Reset & Base Styles
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", sans-serif;
}

body {
  background-color: #f9fafb;
  color: #111827;
  line-height: 1.6;
}

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

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

/* =========================
   Header / Navbar
========================= */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
}

header nav a {
  margin-left: 1.5rem;
  font-weight: 500;
  color: #374151;
  transition: color 0.2s;
}

header nav a:hover {
  color: #2563eb;
}

/* =========================
   Buttons
========================= */
button {
  cursor: pointer;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

button.primary {
  background-color: #2563eb;
  color: #ffffff;
}

button.primary:hover {
  background-color: #1d4ed8;
}

button.secondary {
  background-color: #e5e7eb;
  color: #111827;
}

button.secondary:hover {
  background-color: #d1d5db;
}

/* =========================
   Cards / Products
========================= */
.card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card .card-body {
  padding: 1rem;
}

.card .card-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.card .card-price {
  font-weight: 600;
  color: #2563eb;
}

/* =========================
   Sections
========================= */
.section {
  padding: 3rem 1rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111827;
}

/* =========================
   Forms
========================= */
input, select, textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #2563eb;
}

label {
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: block;
}

/* =========================
   Footer
========================= */
footer {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 2rem 1rem;
  text-align: center;
}

footer a {
  color: #2563eb;
  transition: color 0.2s;
}

footer a:hover {
  color: #93c5fd;
}

/* =========================
   Responsive Grid
========================= */
.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =========================
   Microanimations
========================= */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #2563eb;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease-in-out;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}
