/* ==========================================================
   style.css
   Bootstrap handles layout (grid, navbar structure, forms,
   buttons, tables). This file only carries the brand identity
   on top of it: colors, fonts, and a handful of one-off
   components Bootstrap doesn't provide out of the box
   (the hero section, product card image crop, category pills).
   ========================================================== */

:root {
  --color-primary: #1b4332;
  --color-primary-light: #2d6a4f;
  --color-accent: #e08e45;
  --color-accent-dark: #c4742f;
  --color-bg: #f5f6f1;
  --color-text-muted: #5b5f58;
  --color-border: #e2e4dc;
}

body {
  background: var(--color-bg);
  font-family: "Inter", sans-serif;
  color: #1c1c1a;
}

h1, h2, h3, .brand {
  font-family: "Fraunces", serif;
  color: var(--color-primary);
}

a {
  color: var(--color-primary);
}

/* ---------- Navbar ---------- */
.navbar-brand.brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-dot {
  color: var(--color-accent);
}

.cart-icon-wrap {
  position: relative;
}

#cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--color-accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 6px;
}

/* ---------- Buttons (brand override) ---------- */
.btn-brand {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.btn-brand:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: white;
}

.btn-brand:disabled {
  background-color: #9fb3a8;
  border-color: #9fb3a8;
}

/* ---------- Hero (Home page) ---------- */
.hero {
  max-width: 600px;
  padding: 3rem 0 1.5rem;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent-dark);
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.15;
}

/* ---------- Category pills ---------- */
.category-pill {
  border: 1px solid var(--color-border);
  background: white;
  color: var(--color-text-muted);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.category-pill.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ---------- Product card ---------- */
.product-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(27, 67, 50, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}

.product-card:hover {
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.1);
  transform: translateY(-2px);
}

.product-card img {
  height: 180px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.product-category-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.product-price {
  font-weight: 700;
  color: var(--color-primary);
}

.out-of-stock-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(28, 28, 26, 0.8);
  color: white;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ---------- Misc ---------- */
.status-text {
  color: var(--color-text-muted);
}

.status-success {
  color: var(--color-primary-light);
}

.status-error {
  color: #b3261e;
}

.badge-placed {
  background-color: #fdf0e1;
  color: var(--color-accent-dark);
}

footer {
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
