/* ============================================================
   Shop CSS — extracted from base_shop.html + inline patterns
   ============================================================ */

/* ── Global page overrides ── */
body {
  background-color: #fafbfc !important;
}

/* ── Typography ── */
h1 { font-size: 30px !important; font-weight: 700 !important; }
h5 { font-weight: 600 !important; }

/* Kill body text color from Blocksy — keep it black */
.container h1,
.container h2,
.container h3,
.container h4,
.container h5,
.container p,
.container li,
.card-title,
.card-title a,
.shop-header + * h2,
.table a,
.table td {
  color: #000 !important;
}

/* ── Breadcrumb ── */
.breadcrumb-item a {
  color: #000 !important;
  text-decoration: none;
}
.breadcrumb-item a:hover {
  color: #000 !important;
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: #000 !important;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #6c757d !important;
}

/* ── Card overrides (Blocksy kills borders/shadows) ── */
.card {
  border: none !important;
  box-shadow: none !important;
}

/* ── Table overrides ── */
.table, .table td, .table th {
  border: none !important;
}
.sample-records-table.table td,
.sample-records-table.table th {
  border-bottom: 1px solid #dee2e6 !important;
}
.sample-records-table.table thead th {
  border-bottom-width: 2px !important;
}
.sample-records-table.table tr:last-child td {
  border-bottom: none !important;
}
.state-lists-table.table td,
.state-lists-table.table th {
  border-bottom: 1px solid #dee2e6 !important;
}
.state-lists-table.table thead th {
  border-bottom-width: 2px !important;
}

/* ── Link hover colors ── */
.card-title a {
  transition: color 0.2s ease;
}
.card-title a:hover {
  color: #00509d !important;
}
.table a:hover {
  color: #333 !important;
}
.state-lists-table a:hover {
  color: #00509d !important;
}

/* ── Nav pills ── */
.nav-pills .nav-link.active {
  background-color: #337ab7 !important;
}
#carrier-filter .nav-link:not(.active) {
  color: #00509d;
}

/* ── Button overrides (undo WordPress .btn overrides from autoptimize) ── */
.btn {
  text-transform: none !important;
  padding: auto !important;
  margin: 0 !important;
  font-size: inherit !important;
  font-weight: var(--bs-btn-font-weight) !important;
  letter-spacing: normal !important;
  border-radius: var(--bs-border-radius) !important;
}

/* ── Primary / Add-to-cart buttons — brand #00509d ── */
.btn-primary,
.add-to-cart-btn,
.table .add-to-cart-btn {
  background: #00509d !important;
  border: none !important;
  color: #fff !important;
  box-shadow: none !important;
  border-radius: 3px !important;
  padding: 5px 20px !important;
  min-height: 40px !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.2s ease !important;
}
.btn-primary:hover,
.add-to-cart-btn:hover,
.table .add-to-cart-btn:hover {
  background: #00509d !important;
  filter: brightness(0.9);
  color: #fff !important;
  transform: none !important;
  /* Material Design hover — elevated (~6dp, FAB resting) */
  box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),
              0px 6px 10px 0px rgba(0, 0, 0, 0.14),
              0px 1px 18px 0px rgba(0, 0, 0, 0.12) !important;
}

/* Added-to-cart success state */
.add-to-cart-btn.added {
  background-color: #d2e3dd !important;
  border-color: #d2e3dd !important;
  color: #1a5c3e !important;
  box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),
              0px 6px 10px 0px rgba(0, 0, 0, 0.14),
              0px 1px 18px 0px rgba(0, 0, 0, 0.12) !important;
}

/* Adding... state (disabled during fetch) */
.add-to-cart-btn:disabled {
  opacity: 1 !important;
  box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.20),
              0px 6px 10px 0px rgba(0, 0, 0, 0.14),
              0px 1px 18px 0px rgba(0, 0, 0, 0.12) !important;
}

/* ── Footer ── */
.ct-footer h2.wp-block-heading {
  font-size: 99% !important;
}
.ct-footer p,
.ct-footer .wp-block-paragraph {
  font-size: 80% !important;
}
.ct-footer a {
  color: #28292a !important;
  text-decoration: none;
}
.ct-footer a:hover {
  color: #00509d !important;
}

/* ── Shop header ── */
.shop-header {
  background: linear-gradient(135deg, #00509d 0%, #003366 100%);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}
.shop-header h1 { color: #fff !important; }
.shop-header p { color: rgba(255,255,255,0.85) !important; }
.shop-header .container {
  position: relative;
  z-index: 1;
}
.shop-header-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
}

/* Full-width container override */
.ct-container-full,
.ct-container-full > article {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
}

/* ── Sticky header with shrink ── */
#header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: #fff;
  transition: box-shadow 0.3s ease;
}
#header [data-row="middle"] {
  min-height: 120px;
  transition: min-height 0.3s ease;
}
#header [data-row="middle"] .ct-container {
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.scrolled #header {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
body.scrolled #header [data-row="middle"] {
  min-height: 84px !important;
}

/* ── Product card images ── */
.product-card-img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}
.product-card-link {
  display: block;
  position: relative;
}

/* ── Image text overlay ── */
.image-overlay {
  position: absolute;
  inset: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  color: #003f88;
  padding: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  border-radius: 0.375rem;
}
.image-overlay--card {
  font-size: 0.85rem;
}
.image-overlay--detail {
  font-size: 1.275rem;
  font-weight: 900;
  line-height: 1.35;
}

/* ── Product detail sidebar ── */
.product-sidebar-card {
  top: 1rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
}
.product-detail-img {
  max-height: 220px;
  object-fit: cover;
  width: 100%;
}

/* ── Icon colors ── */
.icon-teal { color: #a3c2ba; }

/* ── Price text ── */
.price-text { color: rgb(40, 41, 42); }

/* ── Section heading ── */
.section-heading { font-weight: 700; }

/* ── Floating cart button ── */
#floating-cart-btn {
  bottom: 24px;
  right: 24px;
  z-index: 1070;
  visibility: hidden;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  padding: 8px 24px !important;
}

/* ── Empty cart alert ── */
.alert-empty-cart {
  background: #d2e3dd;
  color: #1a5c3e;
  border-color: #b8d5cc;
}

/* ── Cart remove button ── */
.remove-from-cart-btn {
  color: #6c757d;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-block;
  padding: 0.25rem;
  text-decoration: none;
}

/* ── Cart table ── */
.product-thumbnail { width: 80px; }
.product-subtotal { color: rgb(40, 41, 42); }

/* ── Cart totals divider ── */
.cart-total-divider {
  border-top: 1px solid #dee2e6;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ── State section ── */
.state-section-wrapper {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  background: #fff;
  padding: 1.25rem 0;
}

/* ── State table ── */
.state-table-scroll {
  max-height: 600px;
  overflow-y: auto;
}

/* ── Success page ── */
.success-order-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}
