html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(188, 146, 87, 0.5);
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--background);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Colors */
:root {
  --background: #FDFAF0;
  --primary: #BC9257;
  --secondary: #B58646;
  --accent: #D0B286;
  --light: #F5EFE0;
  --dark: #2C3E50;
  --succes: green;
  --info: blue;
  --warning: orange;
  --danger: red;

  /* Bootstrap color overrides */
  --bs-primary: var(--primary);
  --bs-secondary: var(--secondary);
  --bs-success: var(--succes);
  --bs-info: var(--info);
  --bs-warning: var(--warning);
  --bs-danger: var(--danger);
  --bs-light: var(--light);
  --bs-dark: var(--dark);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
}

/* Navbar */
.navbar-petite {
  background-color: var(--background);
  box-shadow: 0 2px 8px rgba(188, 146, 87, 0.15);
}

.navbar-petite .nav-link {
  color: var(--dark) !important;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-petite .nav-link:hover,
.navbar-petite .nav-link:focus {
  color: var(--primary) !important;
}

.navbar-petite .navbar-toggler {
  border-color: rgba(188, 146, 87, 0.4);
}

.navbar-petite .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(188, 146, 87, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-petite .dropdown-menu {
  border-color: rgba(188, 146, 87, 0.2);
  box-shadow: 0 4px 12px rgba(188, 146, 87, 0.15);
}

.navbar-petite .dropdown-item:hover {
  background-color: var(--light);
  color: var(--primary);
}

.navbar-logo {
  height: 48px;
  width: auto;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 5rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: #333;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Ensure white text on outline buttons on hover */
.btn-outline-primary:hover,
.btn-outline-danger:hover {
  color: white !important;
}

/* Featured Section */
.featured {
  padding: 4rem 1rem;
  background: var(--light);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--dark);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.product-info p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Stats Section */
.stats {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  padding: 3rem 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Why Choose Us */
.why-us {
  padding: 4rem 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature {
  text-align: center;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature h3 {
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.feature p {
  color: #666;
}

/* Main content expands to push footer to bottom */
main[role="main"] {
  flex: 1 0 auto;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  flex-shrink: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {

  .hero h1 {
    font-size: 2rem;
  }

  .products-grid,
  .stats-grid,
  .features-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  /* Compact footer for smaller screens */
  footer {
    padding: 1.5rem 1rem; /* Reduced padding */
  }

  .footer-content {
    gap: 1rem; /* Reduced gap between sections */
    margin-bottom: 1.5rem; /* Reduced margin-bottom */
  }

  .footer-section h4 {
    margin-bottom: 0.75rem; /* Reduced heading margin */
  }

  .footer-section a {
    margin-bottom: 0.3rem; /* Reduced link margin */
  }
}

@media (max-width: 600px) {
  .logo {
    font-size: 1.5rem;
  }
}

/* Modern Minimalistic Form Control Styling */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ced4da; /* Light gray border */
  border-radius: 0.375rem; /* Slightly rounded corners */
  font-size: 1rem;
  line-height: 1.5;
  color: #495057; /* Darker text color */
  background-color: #fff;
  background-clip: padding-box;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  -webkit-appearance: none; /* Remove default browser styling */
  -moz-appearance: none;
  appearance: none;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(188, 146, 87, 0.25);
}

.form-control::placeholder {
  color: #6c757d; /* Lighter placeholder text */
  opacity: 1; /* Ensure placeholder is visible */
}

/* Style for disabled inputs */
.form-control:disabled,
.form-control[readonly] {
  background-color: #e9ecef; /* Lighter background for disabled/readonly */
  opacity: 1;
}

/* Style for select elements */
select.form-control {
  padding-right: 2.25rem; /* Space for custom arrow */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

select.form-control:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23BC9257' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* Adjust for form-floating labels if used */
.form-floating > .form-control,
.form-floating > .form-control-plaintext,
.form-floating > .form-select {
  padding: 1rem 1rem; /* Adjust padding for floating labels */
}

.form-floating > label {
  padding: 1rem 1rem;
}

/* Style for input groups to match the modern form controls */
.input-group {
  margin-bottom: 1rem;
}

.input-group > .form-control,
.input-group > input[type="text"],
.input-group > input[type="email"],
.input-group > input[type="password"],
.input-group > input[type="number"],
.input-group > input[type="date"],
.input-group > select {
  margin-bottom: 0;
  width: 1%;
  flex: 1 1 auto;
}

.input-group-text {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

