/* ================================================================
   pages.css  —  Unified design system for all content pages
   Covers: shop/product grids, page heroes, cards, forms, tables,
           badges, alerts, and all specific page components.

   Replaces: pages.css + shop.css (merged — shop.css no longer needed)

   Used by:
     search.html, products_main.html, sorted_products.html,
     product_view.html, about.html, contact.html, bundle_detail.html,
     bundle_list.html, manage_items.html, view_uploads.html,
     poform_edit.html, email_po.html, catalogue_section.html,
     success.html, cart.html, checkout.html, viewproduct.html

   Load with: <link rel="stylesheet" href="{% static 'pages.css' %}">
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=JetBrains+Mono:wght@400;500&family=Mulish:wght@400;500;600;700&display=swap');

/* ─────────────────────────────────────────────────────────────
   DESIGN TOKENS
   All colors, radii, shadows, and font stacks live here.
   Reference with var(--p-*) throughout all content pages.
───────────────────────────────────────────────────────────── */
:root {
  /* Brand colors */
  --p-blue:          #004b88;
  --p-blue-dark:     #003366;
  --p-blue-deeper:   #002244;
  --p-blue-tint:     #e8f0fa;
  --p-red:           #D10024;
  --p-red-tint:      #fff0f0;

  /* Surfaces */
  --p-bg:            #f0f4f8;
  --p-white:         #ffffff;
  --p-bg-image:      #f4f6f9;

  /* Borders */
  --p-border:        #e4e9f0;
  --p-border-hover:  var(--p-blue);

  /* Text */
  --p-text-1:        #1a2332;
  --p-text-2:        #3d4f63;
  --p-text-3:        #7a8fa6;
  --p-text-muted:    #b0bfcc;

  /* Shadows */
  --p-shadow:        0 2px 12px rgba(0,40,80,.07), 0 1px 3px rgba(0,0,0,.04);
  --p-shadow-lg:     0 8px 32px rgba(0,40,80,.12);
  --p-shadow-hover:  0 16px 48px rgba(0,40,80,.14), 0 4px 12px rgba(0,0,0,.06);
  --p-shadow-btn:    0 6px 20px rgba(0,75,136,.32);

  /* Radii */
  --p-radius:        14px;
  --p-radius-sm:     8px;
  --p-radius-btn:    10px;
  --p-radius-badge:  999px;
  --p-radius-pill:   8px;

  /* Typography */
  --p-font-display:  'Syne', sans-serif;
  --p-font-body:     'Mulish', sans-serif;
  --p-font-mono:     'JetBrains Mono', monospace;

  /* Motion */
  --p-ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --p-ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --p-transition:    0.25s var(--p-ease-out);
}


/* ─────────────────────────────────────────────────────────────
   GLOBAL RESETS (content pages only)
   These override style.css Monaco/color defaults for all elements
   on any page that loads pages.css — including the category nav bar.
───────────────────────────────────────────────────────────── */
body {
  font-family: var(--p-font-body);
  color: var(--p-text-1);
}

/* Page wrapper */
/* ─────────────────────────────────────────────────────────────
   PAGE WRAPPER
   Wrap any content page body in <div class="p-page">
───────────────────────────────────────────────────────────── */
.p-page {
  background: var(--p-bg);
  min-height: 100vh;
  padding: 2.5rem 0 5rem;
  font-family: var(--p-font-body);
  color: var(--p-text-1);
}

/* Shop pages use the same wrapper with slight extra padding */
.shop-page {
  background: var(--p-bg);
  min-height: 100vh;
  padding: 2.75rem 0 5rem;
  font-family: var(--p-font-body);
  color: var(--p-text-1);
}


/* ─────────────────────────────────────────────────────────────
   PAGE HERO BAND
   White card at the top of content pages.
   Usage: <div class="p-hero"><div class="container"><div class="p-hero-inner">…
───────────────────────────────────────────────────────────── */
.p-hero {
  background: var(--p-white);
  border-bottom: 1px solid var(--p-border);
  padding: 2.5rem 0 2rem;
  margin-bottom: 2.5rem;
}

.p-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Shop-style page header (flex row: left text + right badge) */
.shop-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.shop-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}


/* ─────────────────────────────────────────────────────────────
   TYPOGRAPHY COMPONENTS
───────────────────────────────────────────────────────────── */
.p-eyebrow,
.shop-eyebrow {
  font-family: var(--p-font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--p-blue);
  margin: 0;
}

.p-title,
.shop-title {
  font-family: var(--p-font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--p-text-1);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.shop-title-accent { color: var(--p-blue); }

.p-sub {
  color: var(--p-text-3);
  font-size: 1rem;
  margin: 0.25rem 0 0;
}

/* Count / result badge */
.shop-badge {
  display: inline-flex;
  align-items: center;
  background: var(--p-blue);
  color: #fff;
  font-family: var(--p-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.35rem 0.95rem;
  border-radius: var(--p-radius-badge);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  align-self: flex-start;
  margin-top: 0.5rem;
}


/* ─────────────────────────────────────────────────────────────
   CARD
───────────────────────────────────────────────────────────── */
.p-card {
  margin-top: 1.25rem;
  background: var(--p-white);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow);
  padding: 1.75rem 2rem;
}

.p-card-title {
  font-family: var(--p-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--p-blue);
  margin: 0 0 1rem;
}


/* ─────────────────────────────────────────────────────────────
   GRADIENT DIVIDER
   Usage: <hr class="p-divider">
───────────────────────────────────────────────────────────── */
.p-divider,
.product-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--p-blue) 0%, var(--p-red) 100%);
  border: none;
  border-radius: 2px;
  margin: 1.25rem 0;
}

.product-divider { margin: 0 0 1rem; }


/* ─────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────── */
.p-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--p-font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--p-radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s ease;
}

.p-btn-primary { background: var(--p-blue); color: #fff; }
.p-btn-primary:hover {
  background: var(--p-blue-dark); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(0,75,136,.3);
  text-decoration: none;
}

.p-btn-outline { background: transparent; color: var(--p-blue); border: 1.5px solid var(--p-blue); }
.p-btn-outline:hover { background: var(--p-blue); color: #fff; text-decoration: none; }

.p-btn-danger  { background: #dc3545; color: #fff; }
.p-btn-danger:hover  { background: #b02a37; color: #fff; text-decoration: none; }

.p-btn-secondary { background: #6c757d; color: #fff; }
.p-btn-secondary:hover { background: #545b62; color: #fff; text-decoration: none; }

.p-btn-success { background: #198754; color: #fff; }
.p-btn-success:hover { background: #146c43; color: #fff; text-decoration: none; }

/* Full-width view/CTA button (product cards) */
.btn-view {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--p-blue);
  color: #fff;
  font-family: var(--p-font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: var(--p-radius-btn);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background var(--p-transition), transform var(--p-transition), box-shadow var(--p-transition);
}
.btn-view:hover {
  background: var(--p-blue-dark); color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--p-shadow-btn);
  text-decoration: none;
}
.btn-view svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Back / secondary link button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  background: var(--p-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--p-radius-btn);
  text-decoration: none;
  transition: background var(--p-transition), transform var(--p-transition), box-shadow var(--p-transition);
}
.btn-back:hover {
  background: var(--p-blue-dark); color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--p-shadow-btn);
  text-decoration: none;
}


/* ─────────────────────────────────────────────────────────────
   FORM ELEMENTS
───────────────────────────────────────────────────────────── */
.p-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.p-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--p-text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.p-input,
.p-textarea,
.p-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  font-family: var(--p-font-body);
  font-size: 0.9rem;
  color: var(--p-text-1);
  background: var(--p-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.p-input:focus,
.p-textarea:focus,
.p-select:focus {
  border-color: var(--p-blue);
  box-shadow: 0 0 0 3px rgba(0,75,136,.12);
}

.p-textarea { resize: vertical; min-height: 120px; }
.p-help-text { font-size: 0.78rem; color: var(--p-text-3); margin: 0; }
.p-error     { font-size: 0.8rem;  color: var(--p-red);    margin: 0; }


/* ─────────────────────────────────────────────────────────────
   ALERTS
───────────────────────────────────────────────────────────── */
.p-alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--p-radius-sm);
  font-size: 0.88rem;
  border: 1px solid transparent;
  margin-bottom: 1.25rem;
}
.p-alert-danger { background: #fff0f0; border-color: #ffd0d0; color: var(--p-red); }
.p-alert-info   { background: var(--p-blue-tint); border-color: #c5d8f0; color: var(--p-blue-dark); }


/* ─────────────────────────────────────────────────────────────
   TABLE
───────────────────────────────────────────────────────────── */
.p-table-wrap {
  overflow-x: auto;
  border-radius: var(--p-radius);
  border: 1px solid var(--p-border);
  box-shadow: var(--p-shadow);
}

.p-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--p-white);
}

.p-table thead tr { background: var(--p-blue); color: #fff; }
.p-table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--p-font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: none;
}
.p-table tbody tr {
  border-bottom: 1px solid var(--p-border);
  transition: background 0.15s ease;
}
.p-table tbody tr:last-child { border-bottom: none; }
.p-table tbody tr:hover { background: var(--p-blue-tint); }
.p-table td { padding: 0.7rem 1rem; color: var(--p-text-2); vertical-align: middle; }
.p-table .p-table-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.p-table-empty { text-align: center; padding: 2.5rem; color: var(--p-text-3); font-style: italic; }


/* ─────────────────────────────────────────────────────────────
   BADGES
───────────────────────────────────────────────────────────── */
.p-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: var(--p-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.p-badge-blue  { background: var(--p-blue-tint); color: var(--p-blue); }
.p-badge-green { background: #e6f9f0; color: #157347; }
.p-badge-red   { background: #fff0f0; color: var(--p-red); }
.p-badge-grey  { background: #f0f2f5; color: var(--p-text-3); }


/* ─────────────────────────────────────────────────────────────
   SPEC / INFO ROWS (contact, detail pages)
───────────────────────────────────────────────────────────── */
.p-spec-list { list-style: none; padding: 0; margin: 0; }
.p-spec-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--p-bg);
  font-size: 0.88rem;
}
.p-spec-row:last-child { border-bottom: none; }
.p-spec-icon { color: var(--p-blue); width: 16px; flex-shrink: 0; }
.p-spec-text { color: var(--p-text-2); }
.p-spec-text a { color: var(--p-blue); font-weight: 600; text-decoration: none; }
.p-spec-text a:hover { text-decoration: underline; }


/* ─────────────────────────────────────────────────────────────
   PRODUCT GRID  (search, products_main, sorted_products)
───────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Product card */
.product-card {
  background: var(--p-white);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--p-transition), box-shadow var(--p-transition), border-color var(--p-transition);

  /* staggered entrance — set style="--i:N" on the element */
  opacity: 0;
  animation: p-card-reveal 0.5s var(--p-ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes p-card-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--p-shadow-hover);
  border-color: var(--p-border-hover);
}

/* Card image */
.product-image-wrap {
  height: 200px;
  width: 100%;
  background: var(--p-bg-image);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--p-border);
  position: relative;
}
.product-image {
  max-height: 170px;
  max-width: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform var(--p-transition);
}
.product-card:hover .product-image { transform: scale(1.06); }

.product-no-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--p-text-muted);
}
.product-no-image svg   { width: 36px; height: 36px; opacity: 0.5; }
.product-no-image span  { font-family: var(--p-font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* Card body */
.product-body {
  padding: 1.25rem 1.25rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-title {
  font-family: var(--p-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--p-text-1);
  margin: 0 0 0.85rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Spec rows inside card */
.product-specs { list-style: none; padding: 0; margin: 0 0 auto; flex: 1; }
.product-spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--p-bg-image);
  gap: 0.75rem;
}
.product-spec:last-child { border-bottom: none; }
.spec-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--p-text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.spec-value {
  font-family: var(--p-font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--p-text-2);
  text-align: right;
  word-break: break-word;
}
.spec-price .spec-label { color: var(--p-text-2); font-weight: 700; }
.spec-price .spec-value { color: var(--p-red); font-weight: 700; font-size: 0.9rem; }

/* Standalone price chip */
.product-price-chip {
  margin: 1rem 0 0;
  background: var(--p-red-tint);
  border: 1.5px solid #ffd0d0;
  border-radius: var(--p-radius-pill);
  padding: 0.55rem 1rem;
  text-align: center;
  font-family: var(--p-font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--p-red);
  letter-spacing: -0.01em;
}

/* Card footer */
.product-footer { padding: 1rem 1.25rem 1.25rem; }
.product-footer form { margin: 0; }


/* ─────────────────────────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────────────────────────── */
.shop-empty {
  background: var(--p-white);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow);
  max-width: 500px;
  margin: 3.5rem auto;
  padding: 3.5rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.shop-empty-icon {
  width: 52px; height: 52px;
  background: var(--p-blue-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p-blue);
  margin-bottom: 0.25rem;
}
.shop-empty-icon svg { width: 26px; height: 26px; }
.shop-empty-title { font-family: var(--p-font-display); font-size: 1.35rem; font-weight: 800; color: var(--p-text-1); margin: 0; }
.shop-empty-sub   { color: var(--p-text-3); font-size: 0.9rem; margin: 0; }

.shop-tips {
  list-style: none;
  padding: 0.75rem 1rem;
  margin: 0;
  text-align: left;
  width: 100%;
  background: var(--p-bg);
  border-radius: var(--p-radius-pill);
}
.shop-tips li {
  padding: 0.4rem 0 0.4rem 1.3rem;
  position: relative;
  font-size: 0.85rem;
  color: var(--p-text-2);
  border-bottom: 1px solid var(--p-border);
}
.shop-tips li:last-child { border-bottom: none; }
.shop-tips li::before { content: '→'; position: absolute; left: 0; color: var(--p-blue); font-weight: 700; }


/* ─────────────────────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────────────────────── */
.shop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
}
.shop-pagination-info {
  width: 100%;
  text-align: center;
  font-family: var(--p-font-mono);
  font-size: 0.72rem;
  color: var(--p-text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.75rem;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 1.1rem;
  border: 1.5px solid var(--p-border);
  border-radius: var(--p-radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--p-text-2);
  background: var(--p-white);
  text-decoration: none;
  transition: all var(--p-transition);
  font-family: var(--p-font-body);
}
.page-btn:hover {
  border-color: var(--p-blue); color: var(--p-blue);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,75,136,.12);
  text-decoration: none;
}
.page-btn-active { background: var(--p-blue); border-color: var(--p-blue); color: #fff; font-weight: 700; }
.page-btn-active:hover { background: var(--p-blue-dark); border-color: var(--p-blue-dark); color: #fff; }


/* ─────────────────────────────────────────────────────────────
   GRID LAYOUTS (general)
───────────────────────────────────────────────────────────── */
.p-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.p-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 700px) { .p-grid-2 { grid-template-columns: 1fr; } }


/* ─────────────────────────────────────────────────────────────
   SPECIFIC PAGE COMPONENTS
───────────────────────────────────────────────────────────── */

/* — Bundle detail — */
.bundle-detail-grid    { align-items: start; margin-bottom: 1.75rem; }
.bundle-image-card     { min-height: 280px; display: flex; align-items: center; justify-content: center; background: var(--p-bg); }
.bundle-img-main       { max-height: 340px; max-width: 100%; object-fit: contain; padding: 1rem; }
.bundle-img-placeholder{ max-height: 280px; max-width: 100%; object-fit: contain; padding: 1rem; opacity: .4; }
.bundle-description    { color: var(--p-text-2); line-height: 1.7; margin-bottom: 1.25rem; }
.bundle-price-box      { background: var(--p-blue-tint); border: 1.5px solid #c5d8f0; border-radius: var(--p-radius-sm); padding: 1rem; text-align: center; margin-bottom: 1.25rem; }
.bundle-price-label    { font-family: var(--p-font-mono); font-size: 0.7rem; color: var(--p-text-3); margin: 0 0 0.25rem; text-transform: uppercase; letter-spacing: .1em; }
.bundle-price-value    { font-family: var(--p-font-display); font-size: 2rem; font-weight: 800; color: var(--p-blue); }

/* — Products (pages.css card variant — manage_items, bundle_list) — */
.p-product-card        { background: var(--p-bg); border: 1px solid var(--p-border); border-radius: var(--p-radius-sm); overflow: hidden; display: flex; flex-direction: column; }
.p-product-img-wrap    { height: 180px; display: flex; align-items: center; justify-content: center; background: var(--p-white); border-bottom: 1px solid var(--p-border); }
.p-product-img         { max-height: 160px; max-width: 100%; object-fit: contain; padding: .75rem; }
.p-product-img-none    { max-height: 120px; opacity: .35; }
.p-product-info        { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.p-product-title       { font-family: var(--p-font-display); font-size: .95rem; font-weight: 700; color: var(--p-text-1); margin: 0; }
.p-product-desc        { font-size: .82rem; color: var(--p-text-3); flex: 1; margin: 0; }

/* — Catalogue section — */
.catalogue-info-card   { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; }
.part-number-text      { font-family: var(--p-font-mono); font-size: 1.15rem; font-weight: 700; color: var(--p-blue); }
.part-price-text       { font-family: var(--p-font-display); font-size: 1.4rem; font-weight: 800; color: var(--p-red); }
.pdf-iframe            { width: 100%; height: 680px; display: block; border: none; }

/* — Success page — */
.success-card          { text-align: center; padding: 3rem 2.5rem; }
.success-icon-wrap     { width: 64px; height: 64px; background: #e6f9f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.success-icon          { font-size: 1.75rem; color: #198754; }
.success-title         { font-family: var(--p-font-display); font-size: 1.75rem; font-weight: 800; color: var(--p-text-1); margin: 0 0 .75rem; }
.success-text          { color: var(--p-text-2); margin-bottom: 1.75rem; }
.success-actions       { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* — About & Contact — */
.about-img             { width: 100%; height: 100%; min-height: 250px; object-fit: cover; display: block; }
.cta-title             { font-family: var(--p-font-display); font-weight: 700; color: var(--p-text-1); margin: 0 0 1rem; }
.map-container         { border-radius: var(--p-radius-sm); overflow: hidden; border: 1px solid var(--p-border); }
.map-iframe            { display: block; border: none; width: 100%; height: 420px; }


/* ─────────────────────────────────────────────────────────────
   LAYOUT & UTILITY CLASSES
   Shorthand classes for common one-liners in templates.
───────────────────────────────────────────────────────────── */

/* Container widths */
.container-sm  { max-width: 720px; }
.container-md  { max-width: 860px; }
.container-xs-pt { max-width: 540px; padding-top: 3rem; }

/* Flex / grid helpers */
.grid-align-start { align-items: start; margin-bottom: 1.5rem; }
.hero-header-flex { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.form-grid-2    { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.grid-2-gap     { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-actions   { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Spacing */
.m-0      { margin: 0; }
.mb-1     { margin-bottom: 1rem; }
.mb-1-25  { margin-bottom: 1.25rem; }
.mb-1-5   { margin-bottom: 1.5rem; }
.mb-1-75  { margin-bottom: 1.75rem; }
.divider-lg { margin: 2rem 0; }
.eyebrow-tight { margin-bottom: .25rem; }

/* Typography utilities */
.text-center     { text-align: center; }
.justify-center  { justify-content: center; }
.font-mono       { font-family: var(--p-font-mono); }
.font-mono-sm    { font-family: var(--p-font-mono); font-size: .8rem; }
.font-mono-xs-nowrap { font-family: var(--p-font-mono); font-size: .78rem; white-space: nowrap; }
.fw-600          { font-weight: 600; }
.text-body       { color: var(--p-text-2); line-height: 1.7; margin: 0; }
.text-body-mb    { color: var(--p-text-2); line-height: 1.7; margin: 0 0 1rem; }
.text-body-mb1   { color: var(--p-text-2); margin-bottom: 1rem; }
.text-sm         { color: var(--p-text-2); font-size: 0.88rem; line-height: 1.7; margin: 0; }
.text-sm-mb      { color: var(--p-text-2); font-size: 0.9rem; margin-bottom: 0.75rem; }
.bullet-list     { color: var(--p-text-2); font-size: 0.88rem; padding-left: 1.2rem; margin: 0; line-height: 2; }
.label-optional  { font-weight: 400; text-transform: none; letter-spacing: 0; }

/* Card / table utilities */
.card-flush          { padding: 0; overflow: hidden; }
.card-centered-sm    { max-width: 480px; margin: 0 auto; text-align: center; }
.table-wrap-flat     { border: none; border-radius: 0; box-shadow: none; }
.table-card-header   { padding: 1.25rem 1.5rem 0.75rem; border-bottom: 1px solid var(--p-border); }
.table-link          { color: var(--p-blue); font-weight: 600; }
.col-w-50            { width: 50px; }
.col-w-180           { width: 180px; }
.checkbox-input      { width: 16px; height: 16px; cursor: pointer; accent-color: var(--p-blue); }

/* Button size utilities */
.btn-full-center  { width: 100%; justify-content: center; }
.btn-small        { font-size: .82rem; padding: .55rem 1rem; }
.btn-action-small { font-size: .78rem; padding: .4rem .85rem; }


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .p-page          { padding: 1.5rem 0 3.5rem; }
  .shop-page       { padding: 1.75rem 0 3.5rem; }
  .p-hero          { padding: 1.75rem 0 1.5rem; margin-bottom: 1.75rem; }
  .p-card          { padding: 1.25rem; }
  .p-grid-3,
  .p-grid-2        { grid-template-columns: 1fr; }
  .product-grid    { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
  .shop-header     { flex-direction: column; align-items: flex-start; }
  .product-image-wrap { height: 170px; }
  .product-image   { max-height: 140px; }
}

@media (max-width: 540px) {
  .product-grid    { grid-template-columns: 1fr; }
  .product-spec    { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
  .spec-value      { text-align: left; }
  .shop-empty      { padding: 2.5rem 1.5rem; }
  .form-grid-2,
  .grid-2-gap      { grid-template-columns: 1fr; }
}

/* --- RR base tokens & defaults appended 2026-06-15 --- */
:root {
  --rr-navy: #004b88;
  --rr-navy-dark: #003060;
  --rr-black: #0d1b2a;
  --rr-red: #D10024;
  --rr-steel: #f4f6f9;
  --rr-mid: #6b7a8d;
  --rr-white: #ffffff;
  --rr-card-bg: #ffffff;
  --rr-border: rgba(0,75,136,0.12);
  --ff-head: 'Barlow Condensed', sans-serif;
  --ff-body: 'Barlow', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: var(--ff-body); color: var(--rr-black); background: var(--rr-white); }

.container { max-width: 2500px; margin: 0 auto; padding: 0 24px; }
