/* SurgeryStore — premium clinical storefront theme */
:root {
  --ss-navy: #0c2537;
  --ss-navy-2: #123c52;
  --ss-teal: #10a7a6;
  --ss-teal-dark: #08777e;
  --ss-mint: #e8f7f6;
  --ss-bg: #f3f8fb;
  --ss-line: #dbe8ef;
  --ss-text: #183247;
  --ss-muted: #61798b;
  --ss-shadow: 0 14px 36px rgba(12, 37, 55, .09);
}

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(180deg, #f8fcfd 0%, var(--ss-bg) 420px, #eef5f9 100%);
  color: var(--ss-text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ss-teal-dark); }
a:hover { color: var(--ss-navy); }

/* ---------- Navigation ---------- */
nav.cm-navbar {
  background: rgba(255, 255, 255, .94) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ss-line) !important;
  box-shadow: 0 8px 28px rgba(12, 37, 55, .06);
  padding: .45rem 0;
}

.navbar-brand.nb-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ss-navy) !important;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.035em;
}

.navbar-brand.nb-brand::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--ss-teal), #086c78);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 7px 18px rgba(16, 167, 166, .32);
}

.navbar .nav-link {
  color: #3d5668 !important;
  font-weight: 600;
  border-radius: 10px;
  padding: .5rem .75rem !important;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--ss-teal-dark) !important;
  background: var(--ss-mint) !important;
  transform: translateY(-1px);
}

.offcanvas-header { border-bottom: 1px solid var(--ss-line); }
.offcanvas-title { font-weight: 800; color: var(--ss-navy); }

.form-control {
  border-radius: 12px;
  border-color: var(--ss-line);
  padding: .6rem .85rem;
}
.form-control:focus {
  border-color: var(--ss-teal);
  box-shadow: 0 0 0 .2rem rgba(16, 167, 166, .16);
}

.input-group .form-control { border-radius: 12px 0 0 12px; }

.btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-secondary,
.btn-primary {
  background: linear-gradient(135deg, var(--ss-teal), var(--ss-teal-dark)) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(16, 167, 166, .24);
}
.btn-secondary:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #0bb9b7, #066a73) !important;
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(16, 167, 166, .34);
}

.btn-sm { padding: .42rem .9rem; font-size: .84rem; }

.badge.bg-primary { background: var(--ss-teal-dark) !important; }

/* ---------- Hero ---------- */
.hero-med {
  position: relative;
  overflow: hidden;
  margin: 1.25rem 0 2rem;
  padding: clamp(2rem, 4.6vw, 4rem);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(16, 167, 166, .38), transparent 42%),
    radial-gradient(circle at 12% 95%, rgba(46, 137, 167, .28), transparent 45%),
    linear-gradient(125deg, #0b2233 0%, #123f56 52%, #0d7079 100%);
  box-shadow: 0 24px 60px rgba(12, 37, 55, .22);
}

.hero-med::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
  pointer-events: none;
}

.hero-med::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  bottom: -170px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255,255,255,.03), 0 0 0 110px rgba(255,255,255,.025);
  pointer-events: none;
}

.hero-med__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-med__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .38rem .8rem;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #bdf0ee;
}
.hero-med__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #57e0d8;
  box-shadow: 0 0 0 4px rgba(87,224,216,.18);
}

.hero-med h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.hero-med__lead {
  max-width: 620px;
  margin: 0 0 1.6rem;
  color: #d7e8ef;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
}

.hero-med__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-med__actions .btn { padding: .7rem 1.35rem; }
.hero-med__actions .btn-light {
  background: #fff !important;
  color: var(--ss-navy) !important;
  border: 0 !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.14);
}
.hero-med__actions .btn-light:hover { background: #eefafa !important; }

.hero-med__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.8rem;
}
.hero-med__chip {
  padding: .4rem .75rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #d9edf2;
  font-size: .82rem;
  font-weight: 600;
}
.hero-med__chip i { color: #57e0d8; margin-right: .35rem; }

.hero-med__visual { position: relative; min-height: 290px; }
.hero-med__orb {
  position: absolute;
  inset: 12% 6% 4% 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.22), rgba(255,255,255,.02) 62%);
  border: 1px solid rgba(255,255,255,.16);
}
.hero-med__device {
  position: absolute;
  top: 8%;
  right: 4%;
  width: min(88%, 320px);
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f3fafb);
  box-shadow: 0 24px 50px rgba(2, 18, 28, .35);
  transform: rotate(-4deg);
}
.hero-med__device img { display: block; width: 100%; height: 190px; object-fit: contain; }
.hero-med__device--small {
  top: auto;
  right: auto;
  left: 0;
  bottom: 0;
  width: 46%;
  padding: .7rem;
  border-radius: 16px;
  transform: rotate(6deg);
}
.hero-med__device--small img { height: 96px; }
.hero-med__badge {
  position: absolute;
  left: 2%;
  top: 4%;
  padding: .55rem .8rem;
  border-radius: 14px;
  background: rgba(9, 32, 46, .78);
  border: 1px solid rgba(255,255,255,.18);
  color: #d8f5f3;
  font-size: .78rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

@media (max-width: 767.98px) {
  .hero-med { border-radius: 22px; padding: 1.6rem; }
  .hero-med__inner { grid-template-columns: 1fr; }
  .hero-med__visual { min-height: 230px; order: -1; }
  .hero-med__device { width: min(75%, 260px); right: 8%; }
  .hero-med__device img { height: 140px; }
  .hero-med__device--small { width: 42%; }
  .hero-med__device--small img { height: 70px; }
}

/* ---------- Content blocks ---------- */
main { padding-top: 1rem; }

main .fs-4.fw-semibold {
  color: var(--ss-navy);
  font-weight: 750;
  letter-spacing: -.02em;
}

.cm-i-card-products { margin-bottom: 2.4rem; }

.card.is-product {
  border: 1px solid var(--ss-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(12, 37, 55, .055);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card.is-product:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 167, 166, .38);
  box-shadow: var(--ss-shadow);
}
.card.is-product .card-img-top {
  height: 205px;
  object-fit: contain;
  padding: 1.1rem;
  background: linear-gradient(180deg, #fff 0%, #f6fbfc 100%);
}
.card.is-product .card-body { padding: 1.1rem 1.1rem 1.2rem; }
.card.is-product .card-title { min-height: 2.7em; }
.card.is-product .card-title a {
  color: var(--ss-navy);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.card.is-product .card-title a:hover { color: var(--ss-teal-dark); }

.productPrice {
  color: var(--ss-teal-dark) !important;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -.015em;
}

.text-body-secondary { color: var(--ss-muted) !important; }

.alert-info {
  background: var(--ss-mint);
  border-color: #b9e6e4;
  color: #125c62;
  border-radius: 14px;
}
.alert-danger { border-radius: 14px; }

/* Product detail */
.product-info .card,
#productInfo .card,
.product_details {
  border: 1px solid var(--ss-line);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(12, 37, 55, .05);
}

/* ---------- Footer ---------- */
footer .footer {
  background: linear-gradient(120deg, #0b2233, #123b51) !important;
  color: #cfe1e9 !important;
  border: 0 !important;
  padding: 2.4rem 0 !important;
}
footer .footer a { color: #9ee6e2 !important; }
footer .footer a:hover { color: #fff !important; }
footer .footer .card-title,
footer .footer h2,
footer .footer h3 {
  color: #fff !important;
  font-weight: 700;
}
footer .footer-suffix {
  background: #081b28 !important;
  color: #8ea8b7 !important;
  border: 0 !important;
  padding: 1rem 0 !important;
  font-size: .86rem;
}
footer .footer-suffix a { color: #8ea8b7 !important; }
footer .footer-suffix a:hover { color: #cfe1e9 !important; }

/* Small utility polish */
hr { border-color: var(--ss-line); }
.fas.fa-shopping-cart { color: var(--ss-navy); }
