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 #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  min-height: 100vh;
}

body,
body > form {
  display: flex;
  flex-direction: column;
}

body > .container {
  flex: 1 0 auto;
}

.navbar-brand {
  font-weight: 800;
}

.dropdown-menu {
  border-radius: 8px;
}

.store-hero {
  background: linear-gradient(135deg, #f4f7f2 0%, #edf4f8 55%, #f8f5ee 100%);
  border: 1px solid #dbe4dd;
  border-radius: 8px;
  overflow: hidden;
  padding: 2rem;
}

.store-hero-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: end;
}

.store-eyebrow {
  color: #44624a;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.store-hero h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 1rem;
  max-width: 760px;
}

.store-hero p {
  color: #4f5b55;
  font-size: 1.1rem;
  max-width: 720px;
}

.store-search {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 1.5rem;
  max-width: 760px;
}

.store-hero-stats {
  display: grid;
  gap: 0.75rem;
}

.store-hero-stats div,
.customer-option,
.category-tile {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #d8e2dc;
  border-radius: 8px;
}

.store-hero-stats div {
  padding: 1rem;
}

.store-hero-stats span {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
}

.store-hero-stats small,
.category-tile small,
.customer-option span {
  color: #66736d;
}

.category-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.category-tile {
  color: #1f2d29;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  text-decoration: none;
}

.category-tile:hover {
  border-color: #0d6efd;
  color: #0d6efd;
}

.category-tile span,
.customer-option strong {
  font-weight: 700;
}

.customer-option-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.customer-option {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.store-card {
  border-radius: 8px;
}

.store-price {
  font-size: 1.25rem;
  font-weight: 800;
}

.admin-action-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.admin-action-card {
  background: #f7f9f8;
  border: 1px solid #dce4e0;
  border-radius: 8px;
  color: #1f2d29;
  display: grid;
  gap: 0.35rem;
  min-height: 104px;
  padding: 1rem;
  text-decoration: none;
}

.admin-action-card:hover {
  border-color: #0d6efd;
  color: #0d6efd;
}

.admin-action-card span {
  font-weight: 800;
}

.admin-action-card small {
  color: #607069;
  line-height: 1.35;
}

.site-footer {
  background: #f6f8f7;
  color: #4f5b55;
  flex-shrink: 0;
  margin-top: 3rem;
  padding: 2rem 0 1rem;
}

.site-footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(160px, 1fr));
}

.site-footer-brand,
.site-footer-heading {
  color: #1f2d29;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.site-footer-brand {
  font-size: 1.2rem;
}

.site-footer a {
  color: #40524a;
  display: block;
  margin-bottom: 0.35rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: #0d6efd;
  text-decoration: underline;
}

.site-footer-bottom {
  border-top: 1px solid #d8e1dc;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.privacy-shell {
  margin: 0 auto;
  max-width: 980px;
}

.privacy-header {
  background: #f6f8f7;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.privacy-header h1 {
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.privacy-header p:last-child {
  color: #4f5b55;
  font-size: 1.05rem;
  margin-bottom: 0;
  max-width: 760px;
}

.privacy-grid {
  display: grid;
  gap: 1rem;
}

.privacy-section {
  border-bottom: 1px solid #e0e6e3;
  padding-bottom: 1rem;
}

.privacy-section h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.privacy-section p {
  color: #4f5b55;
  margin-bottom: 0.5rem;
}

.auction-card-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.quick-bid-bar {
  background: #0d6efd;
}

.quick-bid-button {
  border-radius: 0;
  font-weight: 700;
  width: 100%;
}

.quick-bid-status {
  background: #198754;
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  text-align: center;
}

.auction-detail-image {
  background: #f8f9fa;
  max-height: 620px;
  object-fit: contain;
  width: 100%;
}

.auction-gallery-image {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.cart-item-image {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 72px;
}

.account-item-image {
  aspect-ratio: 1 / 1;
  flex: 0 0 56px;
  object-fit: cover;
  width: 56px;
}

.companion-shell {
  margin: 0 auto;
  max-width: 860px;
}

.companion-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.companion-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.companion-kicker {
  color: #53615b;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}

.scanner-panel {
  background: #f6f8f7;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
}

.scan-video {
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

.scanner-actions,
.lookup-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.scanner-status,
.lookup-status {
  color: #56635d;
  margin: 0;
}

.companion-form {
  display: grid;
  gap: 0.85rem;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tall-input {
  min-height: 7rem;
}

.companion-submit {
  min-height: 3.25rem;
  width: 100%;
}

.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;
}

@media (max-width: 767px) {
  .store-hero {
    padding: 1.25rem;
  }

  .store-hero-content,
  .store-search {
    grid-template-columns: 1fr;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .companion-header {
    align-items: flex-start;
  }

  .form-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .scanner-actions .btn,
  .lookup-row .btn {
    flex: 1 1 8rem;
  }
}
