/* Custom styles for Flowers & More */
/* Base styling and typography */
body {
  background-color: var(--light-bg);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-text);
}

/* Colour palette for easy theming */
:root {
  /* Colour palette for a modern, floral‑inspired UI */
  --primary-color: #b33834; /* softened deep red */
  --secondary-color: #d75e5e; /* warmer red for hover states */
  --light-bg: #fafafa; /* very light background */
  --dark-text: #2c3e50;
  --muted-text: #7f8c8d;
  --border-color: #e0e0e0;
  --card-bg: #ffffff;
  --card-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Navbar overrides */
.navbar {
  background-color: var(--primary-color) !important;
}
.navbar .navbar-brand,
.navbar .nav-link {
  color: #ffffff !important;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: #fceae8 !important;
  background-color: rgba(255,255,255,0.1);
  border-radius: 0.25rem;
}

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

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.shadow-text {
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Remove old overrides - replaced with new definitions above */

/* Card styling */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  box-shadow: var(--card-shadow);
}

/* Adjust card images */
.card-img-top {
  height: 180px;
  object-fit: cover;
}

/* Badges */
.badge {
  font-size: 0.75rem;
  margin-left: 4px;
}

/* Heading spacing */
h1, h2, h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Table style for cart and admin */
table th,
table td {
  vertical-align: middle !important;
}

/* POS specific styles */
.pos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.pos-products {
  flex: 2;
}
.pos-cart {
  flex: 1;
  border-left: 1px solid #ccc;
  padding-left: 1rem;
}

/* Hero section for homepage banner */
/* Hero section for homepage banner */
.hero {
  /*
   * Hero banner styling
   *
   * The homepage hero banner is the first thing customers see, so it should
   * span a healthy amount of vertical space and keep the text legible over a
   * busy background image. Flexbox is used to vertically center the
   * headline and call‑to‑action, while a semi‑transparent overlay darkens
   * the image for improved contrast. A minimum height prevents the banner
   * collapsing when content is short.
   */
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  /*
   * Increase the minimum height and vertical padding to give the hero
   * more breathing room. This helps prevent it from feeling cramped,
   * especially on larger screens, while still remaining responsive on
   * smaller devices. The additional padding ensures that the heading
   * and call‑to‑action are separated from the edges of the banner.
   */
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem;
  margin-bottom: 3rem;
  border-radius: 0.5rem;
  overflow: hidden;
}
/* Dark overlay to improve text readability */
/* Dark overlay to improve text readability */
/*
 * We no longer rely on a pseudo‑element overlay for the hero. The gradient
 * overlay is now provided inline via the `style` attribute in the home page.
 */
.hero > * {
  position: relative;
  z-index: 1;
}

/* Form elements styling */
.form-control,
.form-select {
  border-radius: 0.25rem;
  border-color: var(--border-color);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(192, 57, 43, 0.25);
}

/* Footer styling */
footer {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 3rem;
  color: var(--muted-text);
  font-size: 0.9rem;
}
