/* ============================================
   MedSupplies.com - Modern Storefront Theme
   Inspired by Shopify Flex (Fresh preset)
   v6
   ============================================ */

/* === Reset & Base === */
* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: #1a1a1a; text-decoration: none; transition: color 0.2s ease; }
a:hover, a:focus { color: #0066cc; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-top: 0;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
img { max-width: 100%; height: auto; }

/* === Noscript warning === */
.no-script { display: none !important; }

/* === Layout === */
#bodyWrapper { max-width: 1200px; padding: 0 20px; }
#bodyContent { padding: 40px 0; min-height: 50vh; }
.body-sans-header { padding-top: 0; }

/* === Empty page header === */
.page-header h1:empty { display: none; }
.page-header { border-bottom: none; margin-bottom: 10px; padding-bottom: 0; }

/* ==========================================
   NAVBAR - override navbar-inverse to white
   ========================================== */
.navbar,
.navbar-inverse,
.navbar-default,
.navbar-custom {
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  border: none !important;
  border-bottom: 1px solid #eaeaea !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  min-height: 64px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.navbar-brand {
  padding: 12px 15px !important;
  height: auto !important;
  line-height: 40px;
}

.navbar-brand img {
  height: 36px;
  width: auto;
}

.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus { color: #1a1a1a !important; }

.navbar-inverse .navbar-nav > li > a,
.navbar-nav > li > a {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #555 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 22px 16px !important;
  transition: color 0.2s ease;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus,
.navbar-nav > li > a:hover { color: #1a1a1a !important; background: transparent !important; }

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus,
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
  color: #1a1a1a !important;
  background: transparent !important;
}

.navbar-inverse .navbar-text,
.navbar-text { color: #555 !important; font-size: 13px; }

.navbar-inverse .navbar-toggle { border: none; }
.navbar-inverse .navbar-toggle .icon-bar { background: #1a1a1a; width: 22px; height: 2px; }
.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus { background: #f5f5f5; }
.navbar-inverse .navbar-collapse { border-color: #eaeaea; }

/* Dropdown menus */
.navbar-inverse .dropdown-menu,
.dropdown-menu {
  background: #fff !important;
  border: 1px solid #e8e8e8 !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
  border-radius: 8px !important;
  padding: 6px 0 !important;
}

.navbar-inverse .dropdown-menu > li > a,
.dropdown-menu > li > a {
  color: #555 !important;
  padding: 9px 20px !important;
  font-size: 14px !important;
}

.navbar-inverse .dropdown-menu > li > a:hover,
.dropdown-menu > li > a:hover {
  background: #f5f5f5 !important;
  color: #1a1a1a !important;
}

.dropdown-menu .divider { background-color: #eaeaea; margin: 4px 0; }

/* Cart icon */
.navbar-nav .fa-shopping-cart { font-size: 16px; }

/* === Modular Header (search + breadcrumb area) === */
.modular-header {
  padding: 10px 0 0;
}

.modular-header .search {
  float: right;
  max-width: 320px;
  width: 100%;
}

.modular-header .searchbox-margin { margin: 5px 0 10px; }

.modular-header .input-group .form-control {
  border-radius: 40px 0 0 40px !important;
  padding-left: 18px;
  height: 38px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  font-size: 14px;
}

.modular-header .input-group .form-control:focus {
  background: #fff;
  border-color: #aaa;
}

.modular-header .input-group-btn .btn {
  border-radius: 0 40px 40px 0 !important;
  background: #1a1a1a;
  border: 1px solid #1a1a1a;
  color: #fff;
  height: 38px;
  padding: 0 16px;
}

.modular-header .input-group-btn .btn:hover { background: #333; }

/* Breadcrumbs */
.breadcrumb {
  background: transparent;
  padding: 8px 0;
  margin-bottom: 10px;
  font-size: 13px;
}
.breadcrumb > li + li:before { content: /; color: #ccc; padding: 0 8px; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #1a1a1a; }
.breadcrumb > .active { color: #1a1a1a; }

/* === Buttons === */
.btn {
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 10px 24px;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary, .btn-success {
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #1a1a1a;
}
.btn-primary:hover, .btn-primary:focus,
.btn-success:hover, .btn-success:focus {
  background: #333; border-color: #333; color: #fff;
}

.btn-default {
  background: transparent; color: #1a1a1a; border: 2px solid #1a1a1a;
}
.btn-default:hover, .btn-default:focus { background: #1a1a1a; color: #fff; }

.btn-info { background: #1a1a1a; border: 2px solid #1a1a1a; color: #fff; }
.btn-info:hover { background: #333; border-color: #333; color: #fff; }

.btn-lg { padding: 14px 36px; font-size: 16px; }

/* === Product Cards === */
.productHolder,
.thumbnail.equal-height {
  display: flex !important; flex-direction: column !important;
  height: 100% !important;
  border: 1px solid #eaeaea !important; border-radius: 8px !important;
  padding: 14px !important; margin-bottom: 0 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  text-align: center;
}
.productHolder:hover,
.thumbnail.equal-height:hover {
  border-color: #ccc !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.productHolder img,
.thumbnail.equal-height > a > img,
.thumbnail.equal-height img {
  border-radius: 6px; width: 100% !important;
  height: auto !important;
  aspect-ratio: 1; object-fit: contain; background: #f9f9f9;
  padding: 10px;
  margin: 0 auto;
}
.productHolder h2, .productHolder .h2,
.thumbnail.equal-height .caption a span {
  font-size: 13px !important; font-weight: 500;
  margin: 8px 0 4px; letter-spacing: 0;
  line-height: 1.4; color: #1a1a1a;
  display: block;
}
.thumbnail.equal-height .caption {
  flex: 1; display: flex !important; flex-direction: column !important;
  justify-content: space-between;
  padding: 8px 0 0 !important;
}
.thumbnail.equal-height .caption p {
  margin-bottom: 6px; font-size: 13px;
}
.thumbnail.equal-height .caption hr {
  margin: 6px 0; border-color: #f0f0f0;
  width: 100%;
}
.thumbnail.equal-height .btn-group {
  display: flex; width: 100%; justify-content: center;
}
.thumbnail.equal-height .btn-group .btn {
  font-size: 12px; padding: 7px 14px;
  border-radius: 6px;
}

/* Product grid layout */
.new-products .row {
  display: flex !important; flex-wrap: wrap !important;
  margin-left: -12px; margin-right: -12px;
}
.new-products .row > [class*="col-"] {
  display: flex !important;
  padding-left: 12px; padding-right: 12px;
  margin-bottom: 24px;
}

.grid-group-item { margin-bottom: 24px; }
.list-group { display: flex; flex-flow: row wrap; }
.item.list-group-item { border: none !important; background: transparent; }

/* === Product Detail === */
.page-header h1 { font-size: 2rem; font-weight: 600; margin-bottom: 10px; }
.page-header h1 del { font-size: 0.5em; color: #999; }
p.lead { font-size: 1.5rem; font-weight: 600; color: #1a1a1a; }
p.lead del { color: #999; font-size: 0.6em; }

/* === Forms === */
.form-control {
  border: 1px solid #d9d9d9; border-radius: 6px;
  height: 44px; font-size: 15px; color: #1a1a1a;
  box-shadow: none !important; transition: border-color 0.2s ease; padding: 8px 14px;
}
.form-control:focus { border-color: #1a1a1a; outline: none; }
textarea.form-control { height: auto; }
label { font-weight: 500; font-size: 14px; color: #555; margin-bottom: 6px; }

/* === Tables === */
.table { border: none; }
.table > thead > tr > th {
  border-bottom: 2px solid #eaeaea; font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em; color: #888; padding: 12px 8px;
}
.table > tbody > tr > td {
  border-top: 1px solid #f0f0f0; padding: 16px 8px; vertical-align: middle;
}
.table > tbody > tr:hover > td { background: #fafafa; }

/* === Panels === */
.panel { border: 1px solid #eaeaea; border-radius: 8px; box-shadow: none; }
.panel-heading { border-radius: 8px 8px 0 0; background: #fafafa !important; border-bottom: 1px solid #eaeaea; }
.panel-title { font-weight: 600; font-size: 14px; }
.panel-body { padding: 20px; }
.panel-default > .panel-heading { background: #fafafa; border-color: #eaeaea; }

/* === Alerts === */
.alert { border-radius: 6px; border: none; font-size: 14px; padding: 16px 20px; }
.alert-success { background: #f0fdf4; color: #166534; }
.alert-danger { background: #fef2f2; color: #991b1b; }
.alert-info { background: #eff6ff; color: #1e40af; }
.alert-warning { background: #fffbeb; color: #92400e; }

/* === Checkout Steps === */
.stepwizard { margin: 30px 0; }
.stepwizard-step p { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.05em; }
.btn-circle { background: #eaeaea; color: #888; border: none; }
.btn-circle.btn-primary { background: #1a1a1a; color: #fff; }

/* === Category Navigation === */
.category-nav {
  background: #f9f9f9;
  border-bottom: 1px solid #eaeaea;
  padding: 10px 0;
  text-align: center;
}
.category-nav .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}
.category-nav .cat-link {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.2s ease;
}
.category-nav .cat-link:hover {
  background: #1a1a1a;
  color: #fff;
}
.category-nav .cat-link.active {
  background: #1a1a1a;
  color: #fff;
}

/* === Footer === */
.footer {
  background: #fafafa !important; border-top: 1px solid #eaeaea !important;
  padding: 60px 0 40px; margin-top: 60px;
}
.footer h4 {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: #1a1a1a; margin-bottom: 20px;
}
.footer h2 {
  font-size: 12px !important; font-weight: 600 !important;
  text-transform: uppercase !important; letter-spacing: 0.1em !important;
  color: #1a1a1a !important; text-shadow: none !important;
  border-bottom: none !important; margin-bottom: 20px !important;
}
.footer p { color: #666; font-size: 14px; line-height: 1.7; }
.footer ul { padding: 0; list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a, .footer a { color: #666; font-size: 14px; transition: color 0.2s ease; }
.footer ul li a:hover, .footer a:hover { color: #1a1a1a; }

.footer-extra {
  background: #1a1a1a !important; color: #999 !important;
  padding: 18px 0; font-size: 13px; line-height: 1.5 !important;
}
.footer-extra a { color: #999 !important; }
.footer-extra a:hover { color: #fff !important; }

/* === Hide sidebars === */
#columnLeft, #columnRight { display: none; }

/* === Pagination === */
.pagination > li > a, .pagination > li > span {
  color: #1a1a1a; border: 1px solid #eaeaea; padding: 8px 14px; font-size: 14px;
}
.pagination > .active > a, .pagination > .active > span {
  background: #1a1a1a; border-color: #1a1a1a; color: #fff;
}
.pagination > li > a:hover { background: #f5f5f5; border-color: #eaeaea; color: #1a1a1a; }

/* === Well === */
.well { background: #fafafa; border: 1px solid #eaeaea; border-radius: 8px; box-shadow: none; }

/* === Hide osCommerce branding === */
.modular-header img[src*=oscommerce] { display: none; }
.contact { border-left: none; }

/* === Responsive === */
@media (max-width: 767px) {
  #bodyContent { padding: 20px 0; }
  .navbar-brand { font-size: 1.3rem !important; }
  .footer { padding: 40px 0 30px; margin-top: 40px; }
  .footer .col-md-4 { margin-bottom: 30px; }
  h1 { font-size: 1.5rem; }
  .modular-header .search { float: none; max-width: 100%; }
}

@media (max-width: 480px) {
  #bodyWrapper { padding: 0 15px; }
}
