/* Global branding */
:root {
  --medsupply-primary: #0b7285;
  --medsupply-section-bg: #f8fafc;
}

.text-medsupply-primary {
  color: var(--medsupply-primary) !important;
}

.btn-medsupply-primary {
  color: #fff;
  background-color: var(--medsupply-primary);
  border-color: var(--medsupply-primary);
}

.btn-medsupply-primary:hover,
.btn-medsupply-primary:focus {
  color: #fff;
  background-color: #095c68;
  border-color: #095c68;
}

.section-soft-bg {
  background-color: var(--medsupply-section-bg);
}

/* Placeholder "coming soon" image - display smaller */
.img-placeholder-card {
  height: 200px !important;
  object-fit: contain;
  width: 100%;
}
.img-placeholder-detail {
  max-height: 280px;
  object-fit: contain;
}

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;
}

/* Navbar: prevent toggler from overlapping brand on small screens */
.navbar-brand {
  flex-shrink: 0;
  margin-right: 2.5rem;
  margin-left:2rem;
}
.navbar-toggler {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.375rem 0.75rem;
}

html {
  position: relative;
  min-height: 100%;
  height: 100%;
}

/* Sticky footer: applied in global CSS so body (not in scoped scope) gets display:flex and min-height */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100vh;
}
.site-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.site-main main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
/* Consistent page padding for all public pages */
.site-content {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}
@media (min-width: 768px) {
  .site-content {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }
}

.footer {
  flex-shrink: 0;
  width: 100%;
  padding: 2rem 0 1rem;
  line-height: 1.6;
  border-top: 2px solid rgba(11, 114, 133, 0.35);
  background-color: #1f2b38;
  color: #f8f9fa;
}

.footer a {
  color: #e2f3ff;
}

.footer a:hover {
  color: var(--medsupply-primary);
}

.footer small,
.footer .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Manage Account (Admin Identity pages) */
.manage-account-header .fw-600 { font-weight: 600; }
.manage-account-card { max-width: 42rem; }
.manage-account-card .card-body { max-width: 100%; }
.manage-account-card .form-group,
.manage-account-card .mb-3 { margin-bottom: 1rem; }
.manage-account-card label { font-weight: 600; color: #2c3e50; margin-bottom: 0.375rem; }
.manage-account-card .form-control {
  border-radius: 6px;
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
}
.manage-account-card .form-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}
.manage-account-card .form-control:disabled { background-color: #e9ecef; cursor: not-allowed; }
.manage-account-card h3,
.manage-account-card h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; color: #2c3e50; }
.manage-account-card .btn-primary {
  background: #3498db;
  border-color: #3498db;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
}
.manage-account-card .btn-primary:hover { background: #2980b9; border-color: #2980b9; }
.manage-account-card .text-danger { font-size: 0.875rem; }

/*body {
  margin-bottom: 60px;
}*/

/* Product listing cards: consistent height, 4-line product name so full data shows without excessive height */
.product-card-body {
  min-height: 0;
}
.product-card-title {
  font-size: 0.9rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.6em;
}
.product-card-name {
  font-size: 0.8rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  min-height: 4.5em;
}
@media (min-width: 768px) {
  .product-card-title { font-size: 0.95rem; }
  .product-card-name { font-size: 0.85rem; }
}

/* 0-price products: WestCMR-like "Call for Price / Contact Us" action */
.call-for-price-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-width: 120px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #6aa233;
  background: linear-gradient(135deg, #92cb4a 0%, #6aa233 100%);
  color: #ffffff !important;
  text-decoration: none;
}

.call-for-price-btn:hover,
.call-for-price-btn:focus {
  border-color: #5a8e2a;
  background: linear-gradient(135deg, #84bb3f 0%, #5a8e2a 100%);
  color: #ffffff !important;
}

.call-for-price-btn .cfp-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.call-for-price-btn .cfp-subtitle {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.call-for-price-btn.call-for-price-btn-lg {
  min-width: 210px;
  padding: 0.7rem 1rem;
}

.call-for-price-btn.call-for-price-btn-lg .cfp-title {
  font-size: 0.92rem;
}

.call-for-price-btn.call-for-price-btn-lg .cfp-subtitle {
  font-size: 0.78rem;
}
