/**
 * Dr. Smith Product Catalogue Stylesheet (Dark Theme v36.0)
 * Modern Apple-inspired dark aesthetic (#030712) for medical catalogue
 */

:root {
  --catalogue-bg: #030712;
  --catalogue-card-bg: rgba(255, 255, 255, 0.03);
  --catalogue-border: rgba(255, 255, 255, 0.08);
  --catalogue-border-hover: rgba(0, 163, 255, 0.4);
  --catalogue-accent: #00A3FF;
  --catalogue-text: #f1f5f9;
  --catalogue-muted: #94a3b8;
  --catalogue-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --catalogue-shadow-hover: 0 20px 45px rgba(0, 163, 255, 0.2);
}

/* Base Body & Layout with Anti-Horizontal Scroll Lock */
*, *::before, *::after {
  box-sizing: border-box;
}

html,
body.catalogue-page,
.catalogue-page {
  background-color: #030712 !important;
  color: var(--catalogue-text) !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  margin: 0;
  padding: 0;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

main,
section,
header,
footer {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: clip !important;
}

/* ============================================================
   HERO BANNER & BREADCRUMBS
   ============================================================ */
.catalogue-hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 60px !important;
  background: radial-gradient(circle at 50% 0%, #081226 0%, #030712 80%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.catalogue-hero--compact {
  padding: 110px 0 45px !important;
}

.catalogue-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #00A3FF !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 163, 255, 0.08);
  border: 1px solid rgba(0, 163, 255, 0.25);
  padding: 5px 16px;
  border-radius: 980px;
}

.catalogue-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff !important;
  line-height: 1.15;
  margin-bottom: 16px;
}

.catalogue-hero h1 span {
  color: #00A3FF !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.catalogue-hero p {
  font-size: 16px;
  line-height: 1.6;
  color: #94A3B8 !important;
  max-width: 680px;
  margin-bottom: 24px;
}

.catalogue-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #64748B;
  font-size: 13px;
}

.catalogue-breadcrumb a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.catalogue-breadcrumb a:hover {
  color: #00A3FF;
}

.catalogue-breadcrumb .bi {
  font-size: 11px;
  opacity: 0.6;
}

.catalogue-breadcrumb span[aria-current] {
  color: #00A3FF;
  font-weight: 600;
}

/* ============================================================
   SEARCH BAR & CATEGORY FILTERS
   ============================================================ */
.category-search-wrapper,
.catalogue-search-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 980px;
  padding: 4px 16px;
  transition: all 0.25s ease;
}

.category-search-wrapper:focus-within,
.catalogue-search-box:focus-within {
  background: rgba(255, 255, 255, 0.07);
  border-color: #00A3FF;
  box-shadow: 0 0 16px rgba(0, 163, 255, 0.3);
}

.category-search-wrapper input,
.catalogue-search-box input,
#category-filter-search,
#categoryProductSearch {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 14.5px;
  box-shadow: none !important;
}

.category-search-wrapper input::placeholder,
.catalogue-search-box input::placeholder,
#category-filter-search::placeholder,
#categoryProductSearch::placeholder {
  color: #64748B !important;
}

.category-search-wrapper .input-group-text,
.catalogue-search-box .input-group-text {
  background: transparent !important;
  border: none !important;
  color: #00A3FF !important;
  font-size: 16px;
}

.catalogue-count {
  color: #94A3B8 !important;
  font-size: 14px;
}

.catalogue-count strong {
  color: #00A3FF !important;
}

/* ============================================================
   BUTTONS & PILL CONTROLS
   ============================================================ */
.catalogue-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid #00A3FF;
  border-radius: 980px;
  background: #00A3FF;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 163, 255, 0.3);
}

.catalogue-button:hover {
  background: #0084d6;
  border-color: #0084d6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 163, 255, 0.45);
}

.catalogue-button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff !important;
  box-shadow: none;
}

.catalogue-button--ghost:hover {
  border-color: #00A3FF;
  background: rgba(0, 163, 255, 0.12);
  color: #00A3FF !important;
  transform: translateY(-2px);
}

/* ============================================================
   SECTIONS & SURFACES
   ============================================================ */
.catalogue-section {
  padding: 70px 0;
  background: #030712 !important;
}

.catalogue-section--surface {
  background: #030712 !important;
}

/* ============================================================
   CATEGORY TILES & CARDS (HIGH-END DARK GLASS)
   ============================================================ */
.category-card-box {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  backdrop-filter: blur(10px);
}

.category-card-box:hover {
  transform: translateY(-6px) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(0, 163, 255, 0.4) !important;
  box-shadow: 0 20px 45px rgba(0, 163, 255, 0.18) !important;
}

.category-card-box .card-body {
  background: transparent !important;
}

.category-card-box h3 {
  color: #ffffff !important;
  font-weight: 700;
}

.category-card-box p {
  color: #94A3B8 !important;
}

.category-card-box .cat-icon-box {
  background: rgba(0, 163, 255, 0.12) !important;
  color: #00A3FF !important;
  border: 1px solid rgba(0, 163, 255, 0.25);
}

.category-card-box .badge {
  background: rgba(0, 163, 255, 0.1) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(0, 163, 255, 0.25) !important;
}

.category-card-box .badge.bg-light {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #CBD5E1 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.category-card-box .btn-outline-primary {
  border: 1px solid rgba(0, 163, 255, 0.4) !important;
  color: #00A3FF !important;
  background: rgba(0, 163, 255, 0.06) !important;
  border-radius: 980px !important;
  transition: all 0.25s ease;
}

.category-card-box:hover .btn-outline-primary {
  background: #00A3FF !important;
  color: #ffffff !important;
  border-color: #00A3FF !important;
  box-shadow: 0 4px 14px rgba(0, 163, 255, 0.4);
}

/* ============================================================
   PRODUCT CARDS (FOR SUBCATEGORY PAGES)
   Clean White Image Display inside Dark Glass Card Container
   ============================================================ */
.catalogue-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
  display: flex;
  flex-direction: column;
}

.catalogue-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(0, 163, 255, 0.4) !important;
  box-shadow: 0 18px 40px rgba(0, 163, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.catalogue-card__image {
  position: relative;
  min-height: 220px;
  background-color: #ffffff !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  padding: 12px;
}

.catalogue-card__image--photo img,
.catalogue-card__image--zoomable img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #ffffff;
  padding: 12px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalogue-card:hover .catalogue-card__image--photo img,
.catalogue-card:hover .catalogue-card__image--zoomable img {
  transform: scale(1.05);
}

.catalogue-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: transparent !important;
}

.catalogue-card__body h3,
.catalogue-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff !important;
  margin-bottom: 8px;
}

.catalogue-card__body p,
.catalogue-card p {
  font-size: 13.5px;
  color: #94A3B8 !important;
  line-height: 1.55;
  margin-bottom: 16px;
}

.catalogue-card__category {
  display: inline-block;
  margin-bottom: 8px;
  color: #00A3FF !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalogue-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 980px;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #00A3FF;
  border: 1px solid rgba(0, 163, 255, 0.3);
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}

.catalogue-card__badge--accent {
  right: 14px;
  left: auto;
  background: #00A3FF;
  color: #ffffff;
  border: none;
}

.catalogue-card__details {
  margin: 0 0 18px;
  padding-left: 18px;
  color: #CBD5E1 !important;
  font-size: 13px;
  line-height: 1.5;
}

.catalogue-card__details li + li {
  margin-top: 6px;
}

.catalogue-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.catalogue-card__link {
  color: #00A3FF !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.catalogue-card__link:hover {
  color: #38bdf8 !important;
  transform: translateX(3px);
}

/* Bed Category Tiles */
.bed-category-tile {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 16px;
  transition: all 0.25s ease;
}

.bed-category-tile:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(0, 163, 255, 0.4) !important;
}

.bed-category-tile__image {
  background: #ffffff !important;
  border-radius: 12px;
}

.bed-category-tile__label {
  color: #ffffff !important;
}

.bed-category-tile__count {
  background: rgba(0, 163, 255, 0.12) !important;
  color: #38bdf8 !important;
}

.bed-card__specs li {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #CBD5E1 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bed-card__specs i {
  color: #00A3FF !important;
}

/* Support Cards */
.catalogue-support-card {
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  padding: 24px;
  transition: all 0.3s ease;
}

.catalogue-support-card:hover {
  border-color: rgba(0, 163, 255, 0.4) !important;
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05) !important;
}

.catalogue-support-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(0, 163, 255, 0.12) !important;
  color: #00A3FF !important;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.catalogue-support-card h3 {
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.catalogue-support-card p {
  color: #94A3B8 !important;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Call to Action Banner */
.catalogue-cta {
  padding: 44px;
  border-radius: 24px;
  background: radial-gradient(circle at 0% 0%, rgba(0, 163, 255, 0.15) 0%, rgba(3, 7, 18, 0.95) 100%), rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(0, 163, 255, 0.3) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.catalogue-cta h2 {
  color: #ffffff !important;
  font-weight: 800;
  margin-bottom: 8px;
}

.catalogue-cta p {
  color: #94A3B8 !important;
  font-size: 15px;
  margin: 0;
}

/* Marketplace Filter Pills */
.marketplace-filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  border-radius: 980px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.marketplace-filter-pill.active,
.marketplace-filter-pill:hover {
  background: rgba(0, 163, 255, 0.15);
  border-color: #00A3FF;
  color: #ffffff;
}

/* Admin Banner Dark */
#adminVipBanner .admin-vip-card {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(0, 163, 255, 0.3) !important;
  border-radius: 16px;
  padding: 20px;
  color: #ffffff;
}

.admin-login-btn {
  background: rgba(0, 163, 255, 0.12) !important;
  border: 1px solid rgba(0, 163, 255, 0.3) !important;
  color: #38bdf8 !important;
  border-radius: 980px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
}

/* No Results Banner */
#no-category-results div {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #CBD5E1;
}

#no-category-results h5 {
  color: #ffffff !important;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .catalogue-hero {
    padding: 110px 0 45px !important;
  }
  .catalogue-hero h1 {
    font-size: 2.2rem;
  }
}

/* Subcategory Hub Card Styling */
.subcat-card-box {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 14px;
}
.subcat-card-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.12) !important;
  border-color: rgba(0, 113, 227, 0.4) !important;
}
.subcat-card-box:hover .btn-outline-primary {
  background-color: #0071e3;
  color: #fff;
}
.cat-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.12), rgba(0, 113, 227, 0.22));
  color: #0071e3;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.max-w-500 {
  max-width: 500px;
}

.apple-drawer-input-readonly {
  background: rgba(255, 255, 255, 0.08) !important;
  font-weight: 600 !important;
}

