body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.navbar-brand {
  letter-spacing: 0.03em;
}

.product-card {
  border: none;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.product-card img {
  object-fit: cover;
}

/* Admin styling */
.admin-body {
  background: #f3f4f6;
}

.admin-wrapper {
  max-width: 1200px;
}

.admin-card {
  border-radius: 1rem;
}

/* soft badge variants (Bootstrap 5 doesn't have these by default) */
.badge.bg-soft-primary {
  background-color: rgba(13, 110, 253, 0.08);
}

.badge.bg-soft-secondary {
  background-color: rgba(108, 117, 125, 0.08);
}

/* text color helpers */
.text-primary-emphasis {
  color: #0b5ed7;
}

.text-secondary-emphasis {
  color: #495057;
}

/* subtle info badge */
.bg-info-subtle {
  background-color: rgba(13, 202, 240, 0.12);
}

.text-info-emphasis {
  color: #087990;
}
/* Floating Cart Button */
.floating-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
}

.floating-cart .btn {
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-cart .badge {
  font-size: 0.7rem;
}

/* POS-style category bar */
.pos-category-bar {
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  margin-bottom: 1.5rem;
}

.pos-cat-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  text-decoration: none;
  font-size: 0.9rem;
  color: #4b5563;
  transition: all 0.15s ease-in-out;
  min-width: 90px;
  text-align: center;
}

.pos-cat-card:hover {
  background-color: #eef2ff;
  border-color: #c7d2fe;
  color: #1d4ed8;
}

.pos-cat-card-active {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.35);
}

.pos-cat-label {
  font-weight: 600;
}

/* Make the bar scrollable on small screens like a POS tab row */
@media (max-width: 768px) {
  .pos-category-bar {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  .pos-category-bar .d-flex {
    flex-wrap: nowrap;
  }
  .pos-cat-card {
    flex: 0 0 auto;
  }
}
/* POS style product cards */
.product-card-pos {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card-pos:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
}

.product-image-wrapper img {
  object-fit: cover;
}

.product-card-pos .card-body {
  padding: 0.75rem 0.8rem 0.9rem;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d4ed8;
}

/* Make text a bit larger for older eyes */
.product-card-pos .fw-semibold {
  font-size: 0.95rem;
}

.product-card-pos .small {
  font-size: 0.8rem;
}

/* On very small screens, make tiles a bit taller and breathable */
@media (max-width: 576px) {
  .product-card-pos .card-body {
    padding: 0.9rem;
  }
  .product-price {
    font-size: 1.15rem;
  }
}
/* ---------- Product detail page ---------- */

.product-detail-card {
  background: #ffffff;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

.product-detail-accent {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top left, rgba(59,130,246,0.15), transparent 60%);
  pointer-events: none;
  opacity: 0.7;
}

.product-image-frame {
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f97316 0%, #facc15 40%, #ffffff 100%);
  padding: 6px;
}

.product-main-image {
  border-radius: 1rem;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.product-image-frame:hover .product-main-image {
  transform: scale(1.04);
}

.product-price-card {
  border-radius: 1rem;
}

.product-price-table th {
  font-weight: 600;
}

.product-price-table td {
  border-top-style: dotted;
  border-top-color: #e5e7eb;
}

.product-description p {
  line-height: 1.6;
}

.product-order-panel {
  background: #f9fafb;
}

.product-guest-alert {
  border-radius: 1rem;
}

/* Slightly larger text for older eyes */
.product-detail-card h2 {
  font-size: 1.4rem;
}

@media (max-width: 768px) {
  .product-detail-card {
    border-radius: 1rem;
  }
}
/* ----------- MODERN PRODUCT CARD (Perfect for 500x500 images) ----------- */

.product-card-modern {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

/* Image wrapper for 500x500 square */
.product-card-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f8f8;
}

.product-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures PERFECT square crop */
  transition: transform .4s ease;
}

.product-card-modern:hover img {
  transform: scale(1.08);
}

.product-card-body {
  padding: 0.9rem 1rem 1.1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card-prices div {
  line-height: 1.3;
}

/* Make text readable for elder customers */
.product-card-body .fw-semibold {
  font-size: 1rem;
}

.product-card-body small,
.product-card-body .small {
  font-size: 0.85rem;
}
/* ---------- Home category cards (index.php) ---------- */

.category-hero {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 0.75rem 0.75rem 0.5rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.catalog-cat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 110px;
  border-radius: 1rem;
  padding: 0.6rem 0.8rem;
  text-decoration: none;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  color: #111827;
}

.catalog-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
  border-color: #c7d2fe;
  background: #eef2ff;
}

.catalog-cat-card-active {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #f9fafb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45);
}

.catalog-cat-card-active .catalog-cat-subtitle {
  color: #e5e7eb;
}

.catalog-cat-icon-wrapper {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2px;
}

.catalog-cat-card-active .catalog-cat-icon-wrapper {
  background: rgba(15, 23, 42, 0.15);
}

.catalog-cat-icon-wrapper i {
  font-size: 1.2rem;
}

.catalog-cat-label {
  font-size: 0.9rem;
  font-weight: 700;
}

.catalog-cat-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
}

/* subtle per-category tints (optional) */
.card-cat-canned    { background: linear-gradient(135deg,#fef3c7,#f9fafb); }
.card-cat-drinks    { background: linear-gradient(135deg,#dbeafe,#f9fafb); }
.card-cat-condiments{ background: linear-gradient(135deg,#fee2e2,#f9fafb); }
.card-cat-frozen    { background: linear-gradient(135deg,#e0f2fe,#f9fafb); }
.card-cat-instant   { background: linear-gradient(135deg,#ede9fe,#f9fafb); }
.card-cat-snacks    { background: linear-gradient(135deg,#fef9c3,#f9fafb); }

/* POS style product cards (already used) */
.product-card-pos {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card-pos:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
}

.product-image-wrapper img {
  object-fit: cover;
}

.product-card-pos .card-body {
  padding: 0.75rem 0.8rem 0.9rem;
}

@media (max-width: 768px) {
  .category-hero {
    padding: 0.75rem 0.5rem;
  }

  .catalog-cat-card {
    height: 100px;
    padding: 0.5rem 0.6rem;
  }
}
/* ----------- MODERN PRODUCT CARD (Optimized for 500x500) ----------- */

.product-card-modern {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e5e7eb;
}

.product-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15,23,42,0.15);
  border-color: #d1d5db;
}

/* Image wrapper for 500x500 square */
.product-card-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f4f6;
}

.product-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* for 500x500 fits perfectly */
  transition: transform .4s ease;
}

.product-card-modern:hover img {
  transform: scale(1.08);
}

.product-card-body {
  padding: 0.85rem 0.95rem 1.05rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Chips / badges */
.category-chip {
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
}

.brand-chip {
  background: #fef9c3;
  color: #b45309;
  border-radius: 999px;
  border: 1px solid #facc15;
}

.stock-chip {
  border-radius: 999px;
}

.stock-chip.stock-ok {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.stock-chip.stock-empty {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.stock-chip.stock-ok,
.stock-chip.stock-empty,
.product-meta-pill--stock,
.product-meta-pill--out {
  display: none !important;
}

.case-chip {
  background: #eef2ff;
  color: #4338ca;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
}

/* Prices area */
.product-card-prices {
  background: linear-gradient(to right, #f9fafb, #eef2ff);
  border-radius: 0.6rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #e5e7eb;
}

.product-card-prices div + div {
  margin-top: 2px;
}

/* Readability for elder customers */
.product-card-body .fw-semibold {
  font-size: 0.98rem;
}

.product-card-body .small,
.product-card-body small {
  font-size: 0.82rem;
}

@media (max-width: 576px) {
  .product-card-body {
    padding: 0.9rem;
  }
}

/* ---------- CATEGORY TILE STRIP (POS Style) ---------- */

.category-tile-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: .5rem;
  margin-bottom: 1.5rem;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, #fafafa, #f1f5f9);
  text-decoration: none;
  color: #111827;
  border: 1px solid #e5e7eb;
  width: 240px;
  transition: all .25s ease;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.cat-card-active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: #1d4ed8;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .35);
}

.cat-card-active .cat-desc {
  color: #e0e7ff !important;
}

.cat-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  color: #1e3a8a;
}

.cat-card-active .cat-icon-wrapper {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
}

.cat-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.cat-title {
  font-weight: 700;
  font-size: .95rem;
}

.cat-desc {
  font-size: .75rem;
  color: #475569;
}

/* Make tiles scrollable on small screens */
@media (max-width: 600px) {
  .category-tile-strip {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: .5rem;
  }
  .cat-card {
    flex: 0 0 auto;
  }
}
/* Mobile: make category tiles 2 columns */

@media (max-width: 768px) {
  .category-tile-strip {
    display: grid !important; /* override Bootstrap's d-flex */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .cat-card {
    width: 100% !important;
    padding: 0.8rem 0.9rem;
    justify-content: flex-start !important;
  }

  .cat-text {
    text-align: left;
  }

  .cat-icon-wrapper {
    margin: 0;
  }
}

/* Extra small phones: 1 column */
@media (max-width: 400px) {
  .category-tile-strip {
    grid-template-columns: 1fr;
  }
}

/* ------- CATEGORY CARD TEXT FIXES (Mobile and Desktop) ------- */

/* Default text refinement */
.cat-card .cat-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal; /* allow wrapping */
  word-break: break-word;
}

.cat-card .cat-desc {
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  opacity: 0.85;
  max-width: 160px; /* limit text width */
}

/* Center + wrap on mobile grid */
@media (max-width: 768px) {
  .cat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #f8fafc;
  }

  .cat-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
  }

  .cat-card-active .cat-desc,
  .cat-card-active .cat-title {
    color: #ffffff !important;
  }

  .cat-card-active {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    color: white !important;
  }

  .cat-card-active .cat-icon-wrapper {
    background: rgba(255,255,255,0.25);
  }

  .cat-desc {
    max-width: 100% !important;
  }
}

/* Extra small screen fix */
@media (max-width: 480px) {
  .cat-card .cat-title {
    font-size: 0.9rem;
  }
  .cat-card .cat-desc {
    font-size: 0.72rem;
  }
}

/* =========================================================
   Mobile Floating Brand Bar (Index page)
   Shown when a category tile is selected to avoid long scrolling.
   ========================================================= */

body.has-brand-floatbar main {
  padding-bottom: 96px; /* make room for the fixed bar */
}

.brand-floatbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1085; /* above content; below the Bootstrap modal */
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
}

.brand-floatbar-header {
  padding: 10px 12px 0 12px;
}

.brand-floatbar-title {
  font-size: 0.85rem;
  color: rgba(0,0,0,0.65);
}

.brand-floatbar-chips {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 92px; /* leave space so the floating cart button doesn't cover chips */
}

.brand-floatbar-chips::-webkit-scrollbar {
  height: 6px;
}

.brand-chip-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: rgba(0,0,0,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
}

.brand-chip-link.active {
  border-color: rgba(13,110,253,0.35);
  background: rgba(13,110,253,0.08);
  color: rgba(13,110,253,0.95);
  font-weight: 600;
}

.brand-chip-link:active {
  transform: translateY(1px);
}


/* AJAX catalogue loading state */
#catalogue-grid.catalogue-loading { opacity: 0.55; pointer-events: none; }
#catalogue-grid.catalogue-loading::after { content: 'Loading…'; display: block; text-align: center; padding: 12px 0; font-size: 0.95rem; color: rgba(0,0,0,0.6); }




/* Print output is controlled by the dedicated catalogue print mode below. */

/* ==============================
PRINT FIX FOR 9 PRODUCTS PER PAGE
============================== */
@media print {

  @page { size: A4; margin: 10mm; }

  header, nav, footer, .filters-panel, .pos-category-bar,
  .floating-cart, .btn, button {
    display:none !important;
  }

  .container, .container-fluid {
    padding-left:0 !important;
    padding-right:0 !important;
  }

  .row {
    --bs-gutter-x:10px !important;
    --bs-gutter-y:10px !important;
  }

  #catalogue-grid .row > div {
    width:33.3333% !important;
    max-width:33.3333% !important;
    flex:0 0 33.3333% !important;
  }

  .product-card, .product-card-modern {
    break-inside:avoid !important;
    page-break-inside:avoid !important;
    margin-bottom:8px !important;
  }

  .product-card img, .product-card-modern img {
    height:145px !important;
    object-fit:cover !important;
  }

  .product-card-body, .card-body {
    padding:8px !important;
  }

  .product-card-title, .card-title {
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:unset !important;
    line-height:1.15 !important;
    margin:4px 0 !important;
  }

  .product-card-prices, .price-box {
    font-size:11px !important;
    padding:6px !important;
    line-height:1.15 !important;
  }

  .badge.bg-success {
    display:none !important;
  }

}


/* ==== PRINT FIXES ==== */
@media print {

  @page { size: A4; margin:10mm; }

  #catalogue-grid .row > div{
    width:33.3333% !important;
    max-width:33.3333% !important;
    flex:0 0 33.3333% !important;
  }

  .product-card, .product-card-modern{
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom:8px !important;
  }

  .product-card img{
    height:145px !important;
    object-fit:cover !important;
  }

  .product-card-title{
    text-align:center !important;
    line-height:1.2 !important;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .badge.bg-success{
    display:none !important;
  }

}

/* ==============================
   Catalogue print mode (CTRL+P + Print button)
   - Builds a temporary #print-root (9 items per page)
   - Does NOT modify the normal on-screen UI
   ============================== */

#print-root { display: none; }

body.is-exporting-pdf #print-root {
  display: block !important;
  position: absolute;
  left: -9999px;
  top: 0;
  width: 190mm;
  background: #ffffff;
  pointer-events: none;
  z-index: 1;
}

body.is-exporting-pdf::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(2px);
  z-index: 9998;
}

body.is-exporting-pdf::after {
  content: "Preparing PDF...";
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  z-index: 9999;
}

body.is-exporting-pdf .print-page {
  break-after: page;
  page-break-after: always;
  height: 277mm;
  box-sizing: border-box;
  overflow: hidden;
}

body.is-exporting-pdf .print-page--cover {
  background: #ffffff;
}

body.is-exporting-pdf .print-cover-shell {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.is-exporting-pdf .print-cover-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

body.is-exporting-pdf .print-page.last {
  break-after: auto;
  page-break-after: auto;
}

body.is-exporting-pdf .print-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, 67.25mm);
  gap: 1.5mm;
  height: 100%;
}

body.is-exporting-pdf .print-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  break-inside: avoid;
  page-break-inside: avoid;
  display: flex;
  flex-direction: column;
  height: 67.25mm;
  min-height: 0;
}

body.is-exporting-pdf .print-imgwrap {
  position: relative;
  width: 100%;
  height: 46mm;
  background: #fff;
  flex: 0 0 auto;
}

body.is-exporting-pdf .print-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.is-exporting-pdf .print-qr {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 54px;
  height: 54px;
  padding: 3px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.12);
  z-index: 3;
}

body.is-exporting-pdf .print-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

body.is-exporting-pdf .print-code {
  position: absolute;
  left: 6px;
  top: 6px;
  font-size: 8.5px;
  font-weight: 800;
  color: #111;
  text-align: center;
  background: rgba(255,255,255,0.95);
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 2px 6px;
  max-width: calc(100% - 12px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.is-exporting-pdf .print-imgbadges {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: flex-start;
  align-items: flex-end;
  max-width: none;
  pointer-events: none;
}

body.is-exporting-pdf .print-imgbadges .chip {
  display: inline-block;
  font-size: 8px;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 5px;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(229,231,235,0.9);
}

body.is-exporting-pdf .print-body {
  padding: 5px 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #ffffff;
  flex: 1 1 auto;
  min-height: 0;
}

body.is-exporting-pdf .print-name {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  color: #111 !important;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  display: block;
  max-height: none;
  padding-bottom: 0;
  text-align: center;
}

body.is-exporting-pdf .print-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

body.is-exporting-pdf .print-badges .chip {
  display: inline-block;
  font-size: 8px;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 5px;
  white-space: nowrap;
}

body.is-exporting-pdf .chip-brand {
  background: #fef9c3;
  color: #b45309;
  border: 1px solid #facc15;
}

body.is-exporting-pdf .chip-case {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

body.is-exporting-pdf .print-prices {
  margin-top: 2px;
  margin-bottom: 0;
  display: block;
  font-size: 10.5px;
  background: linear-gradient(to right, #f9fafb, #eef2ff);
  border-radius: 10px;
  padding: 5px 7px;
  border: 1px solid #e5e7eb;
}

body.is-exporting-pdf .print-prices .qty-grid {
  display: grid;
  grid-template-columns: 32px 1fr 1fr 1fr;
  gap: 2px 6px;
  align-items: center;
}

body.is-exporting-pdf .print-prices .qty-cell {
  font-weight: 800;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.is-exporting-pdf .print-prices .qty-label {
  font-weight: 900;
  color: #111;
}

@media print {
  /* Only when JS enables catalogue print mode */
  body.is-printing-catalogue * { visibility: hidden !important; }
  body.is-printing-catalogue #print-root,
  body.is-printing-catalogue #print-root * { visibility: visible !important; }

  body.is-printing-catalogue #print-root {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  /* Keep A4 defaults consistent */
  @page { size: A4; margin: 10mm; }

  /* Page wrapper */
  body.is-printing-catalogue .print-page {
    break-after: page;
    page-break-after: always;
    /* Force each JS-built page to match the printable A4 height
       (A4 297mm - top/bottom margins 10mm each = 277mm)
       This prevents the browser from reflowing cards across pages.
    */
    height: 277mm;
    box-sizing: border-box;
    overflow: hidden;
  }
  body.is-printing-catalogue .print-page--cover {
    background: #ffffff;
  }
  body.is-printing-catalogue .print-cover-shell {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  body.is-printing-catalogue .print-cover-shell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
  }
  body.is-printing-catalogue .print-page.last {
    break-after: auto;
    page-break-after: auto;
  }

  /* 4x4 grid (16 items) */
  body.is-printing-catalogue .print-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(4, 67.25mm);
    gap: 1.5mm;
    height: 100%;
  }

  body.is-printing-catalogue .print-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    break-inside: avoid;
    page-break-inside: avoid;
    display: flex;
    flex-direction: column;
    height: 67.25mm;
    min-height: 0;
  }

  body.is-printing-catalogue .print-imgwrap {
    position: relative;
    width: 100%;
    /* Fixed image area so the text area below always exists */
    height: 46mm;
    background: #fff;
    flex: 0 0 auto;
  }

  body.is-printing-catalogue .print-imgwrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  body.is-printing-catalogue .print-qr {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 54px;
    height: 54px;
    padding: 3px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.18);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.12);
    z-index: 3;
  }

  body.is-printing-catalogue .print-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  /* Product Code overlay (top of image) */
  body.is-printing-catalogue .print-code {
    position: absolute;
    left: 6px;
    top: 6px;
    font-size: 8.5px;
    font-weight: 800;
    color: #111;
    text-align: center;
    background: rgba(255,255,255,0.95);
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 2px 6px;
    max-width: calc(100% - 12px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Brand + Case chips rendered inside the image area (below Product Code) */
  body.is-printing-catalogue .print-imgbadges {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: flex-start;
    align-items: flex-end;
    max-width: none;
    pointer-events: none;
  }

  body.is-printing-catalogue .print-imgbadges .chip {
    display: inline-block;
    font-size: 8px;
    font-weight: 800;
    border-radius: 999px;
    padding: 1px 5px;
    white-space: nowrap;
    /* Improve legibility against busy images */
    box-shadow: 0 0 0 1px rgba(229,231,235,0.9);
  }

  body.is-printing-catalogue .print-body {
    padding: 5px 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #ffffff;
    flex: 1 1 auto;
    min-height: 0;
  }

  /* Product name: allow 2–3 lines (no truncation to 1 line) */
  body.is-printing-catalogue .print-name {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    color: #111 !important;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    display: block;
    /* Let JS compute a safe max-height per card (keeps 9/page while avoiding clipped text).
       We keep CSS permissive here to prevent "missing" names in print engines.
    */
    max-height: none;
    padding-bottom: 0;
    text-align: center;
  }

  body.is-printing-catalogue .print-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  body.is-printing-catalogue .print-badges .chip {
    display: inline-block;
    font-size: 8px;
    font-weight: 800;
    border-radius: 999px;
    padding: 1px 5px;
    white-space: nowrap;
  }

  /* Match light chip colors from the on-screen catalogue (print-only) */
  body.is-printing-catalogue .chip-brand {
    background: #fef9c3;
    color: #b45309;
    border: 1px solid #facc15;
  }

  body.is-printing-catalogue .chip-case {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
  }

  body.is-printing-catalogue .print-prices {
    margin-top: 2px;
    margin-bottom: 0;
    display: block;
    font-size: 10.5px;
    background: linear-gradient(to right, #f9fafb, #eef2ff);
    border-radius: 10px;
    padding: 5px 7px;
    border: 1px solid #e5e7eb;
  }

  /* Quantity pricing grid (2 rows): QTY tiers + prices */
  body.is-printing-catalogue .print-prices .qty-grid {
    display: grid;
    grid-template-columns: 32px 1fr 1fr 1fr;
    gap: 2px 6px;
    align-items: center;
  }

  body.is-printing-catalogue .print-prices .qty-cell {
    font-weight: 800;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.is-printing-catalogue .print-prices .qty-label {
    font-weight: 900;
    color: #111;
  }
}
/* =========================
   CHECKOUT PAGE UPGRADE
   ========================= */

.checkout-page {
  padding-bottom: 2rem;
}

.checkout-hero {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e7eef8;
  border-radius: 1.5rem;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.checkout-kicker {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  margin-bottom: 0.85rem;
}

.checkout-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.checkout-subtitle {
  color: #64748b;
  max-width: 760px;
  line-height: 1.6;
}

.checkout-card,
.checkout-summary-card,
.checkout-success-card,
.checkout-empty-card {
  background: #ffffff;
  border: 1px solid #e9eef5;
  border-radius: 1.5rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.checkout-card__header,
.checkout-summary-card__header {
  padding: 1.4rem 1.4rem 1rem;
  border-bottom: 1px solid #eef2f7;
}

.checkout-card__body,
.checkout-summary-card__body {
  padding: 1.4rem;
}

.checkout-section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2563eb;
  margin-bottom: 0.3rem;
}

.checkout-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.checkout-label {
  font-weight: 700;
  color: #334155;
}

.checkout-input-group {
  border-radius: 0.95rem;
  overflow: hidden;
  border: 1px solid #dbe4ef;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  background: #fff;
}

.checkout-input-group:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.checkout-input-group .input-group-text {
  background: #f8fafc;
  border: 0;
  color: #64748b;
  min-width: 52px;
  justify-content: center;
}

.checkout-input {
  border: 0 !important;
  min-height: 54px;
  font-size: 1rem;
  box-shadow: none !important;
}

.checkout-static-field {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border: 1px solid #dbe4ef;
  border-radius: 0.95rem;
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
}

.checkout-notes-wrap {
  border: 1px solid #dbe4ef;
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.checkout-notes-wrap:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.checkout-textarea {
  border: 0 !important;
  box-shadow: none !important;
  resize: vertical;
  min-height: 140px;
  padding: 1rem;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.checkout-summary-card {
  position: sticky;
  top: 1.25rem;
}

.checkout-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.checkout-summary-item {
  padding: 0.95rem 1rem;
  border: 1px solid #ebf0f6;
  border-radius: 1rem;
  background: #fbfdff;
}

.checkout-summary-item__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}

.checkout-summary-name {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
}

.checkout-summary-price {
  font-weight: 800;
  color: #1d4ed8;
  white-space: nowrap;
}

.checkout-summary-meta {
  color: #64748b;
  font-size: 0.92rem;
}

.checkout-summary-totals {
  border-top: 1px solid #eef2f7;
  margin-top: 1.2rem;
  padding-top: 1rem;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #334155;
  margin-bottom: 0.65rem;
}

.checkout-total-row--grand {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
}

.checkout-summary-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.06);
  color: #1e3a8a;
  font-size: 0.94rem;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.checkout-success-card,
.checkout-empty-card {
  padding: 1.5rem;
}

.checkout-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  flex: 0 0 56px;
}

.checkout-order-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.checkout-empty-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

@media (max-width: 991.98px) {
  .checkout-summary-card {
    position: static;
  }

  .checkout-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .checkout-hero,
  .checkout-card__header,
  .checkout-card__body,
  .checkout-summary-card__header,
  .checkout-summary-card__body,
  .checkout-success-card,
  .checkout-empty-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .checkout-actions .btn {
    width: 100%;
  }

  .checkout-summary-item__top {
    flex-direction: column;
    gap: 0.35rem;
  }
}

/* =========================
   PRODUCT DETAIL UPGRADE
   ========================= */

.product-page {
  padding-bottom: 2rem;
}

.product-backbar {
  margin-bottom: 0.75rem;
}

.product-backlink {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  color: #2563eb;
}

.product-backlink:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.product-detail-shell {
  max-width: 1280px;
}

.product-detail-card-premium {
  background: #ffffff;
  border: 1px solid #e8edf5;
  border-radius: 1.75rem;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  padding: 1.25rem;
}

.product-media-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-media-frame {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 35%),
    #ffffff;
  border: 1px solid #e7ecf5;
  border-radius: 1.5rem;
  padding: 0.75rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.product-main-image-premium {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.15rem;
  display: block;
}

.product-quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.product-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 600;
}

.product-meta-pill--cool {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.2);
  color: #0f766e;
}

.product-meta-pill--stock {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.18);
  color: #15803d;
}

.product-meta-pill--out {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.2);
  color: #475569;
}

.product-info-top {
  margin-bottom: 0.8rem;
}

.product-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2563eb;
  margin-bottom: 0.45rem;
}

.product-title-main {
  font-size: clamp(1.75rem, 2.5vw, 2.4rem);
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.9rem;
}

.product-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.product-inline-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.product-inline-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
}

.product-inline-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.product-inline-badge--brand {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #1d4ed8;
}

.product-inline-badge--category {
  background: #eef2ff;
  border-color: #e0e7ff;
  color: #4338ca;
}

.product-price-card-premium,
.product-description-card,
.product-order-card,
.product-guest-card {
  background: #ffffff;
  border: 1px solid #e8edf5;
  border-radius: 1.35rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  padding: 1.15rem 1.15rem;
  margin-bottom: 1rem;
}

.product-price-card-premium {
  margin-top: 0.1rem;
  border-color: #dbe5f1;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.045);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(255, 255, 255, 1) 100%);
}

.product-section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.product-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.9rem;
}

.product-price-card-premium .product-section-title {
  margin-bottom: 0.6rem;
}

.product-price-table-wrap {
  overflow-x: auto;
}

.product-price-card-premium .product-price-table-wrap {
  margin-top: 0.1rem;
}

.product-price-table-premium th,
.product-price-table-premium td {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
  vertical-align: middle;
  border-color: #edf2f7;
}

.product-price-table-premium th {
  font-weight: 700;
  color: #0f172a;
  width: 32%;
}

.product-price-amount {
  font-weight: 800;
  color: #1d4ed8;
  white-space: nowrap;
}

.product-price-range {
  text-align: right;
  color: #64748b;
  font-size: 0.92rem;
  white-space: nowrap;
}

.product-description-copy {
  color: #334155;
  line-height: 1.85;
  font-size: 1rem;
}

.product-description-copy p:last-child {
  margin-bottom: 0;
}

.product-order-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(220px, 1fr);
  gap: 1rem;
  align-items: end;
}

.product-order-field {
  min-width: 0;
}

.product-order-label {
  display: block;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.55rem;
}

.product-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  width: 100%;
  max-width: 280px;
}

.product-qty-btn {
  width: 48px;
  height: 48px;
  border: 0;
  background: #f8fafc;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.product-qty-btn:hover {
  background: #e8f0ff;
  color: #1d4ed8;
}

.product-qty-input {
  border: 0 !important;
  box-shadow: none !important;
  border-left: 1px solid #e5e7eb !important;
  border-right: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  min-height: 44px;
  text-align: center;
  font-weight: 700;
}

.product-order-action {
  min-width: 0;
}

.product-order-note,
.product-guest-copy {
  margin-top: 0.9rem;
  color: #64748b;
  line-height: 1.65;
}

.product-guest-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

@media (max-width: 991.98px) {
  .product-detail-card-premium {
    padding: 1rem;
  }

  .product-order-grid {
    grid-template-columns: 1fr;
  }

  .product-qty-control {
    max-width: 100%;
  }

  .product-price-range {
    white-space: normal;
  }
}

@media (max-width: 575.98px) {
  .product-detail-card-premium,
  .product-price-card-premium,
  .product-description-card,
  .product-order-card,
  .product-guest-card {
    border-radius: 1.15rem;
  }

  .product-title-main {
    font-size: 1.5rem;
  }

  .product-badge-row {
    gap: 0.75rem;
  }

  .product-inline-meta {
    gap: 0.45rem;
  }
}

.product-order-card--priority {
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.08);
}

.product-order-card--priority .product-section-title {
  margin-bottom: 0.8rem;
}

.product-order-card--priority .btn-primary {
  min-height: 48px;
}

@media (min-width: 992px) {
  .product-order-card--priority {
    position: relative;
  }
}

.product-order-card--priority .btn-primary{
  font-size:18px;
  font-weight:700;
  padding:14px 18px;
  border-radius:10px;
}

/* =========================================================
   2026 Catalogue Front Page Refresh
   Scope: front page UX polish only; no business logic changes.
   ========================================================= */

body.catalogue-frontpage {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f3f6fb 42%, #eef2f7 100%);
}

.catalogue-frontpage .navbar {
  background: linear-gradient(135deg, #0f172a, #111827) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.catalogue-frontpage .navbar-brand {
  gap: 0.9rem !important;
}

.catalogue-frontpage .site-logo {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.site-wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}

.site-wordmark-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #fff;
}

.site-wordmark-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}

.catalogue-success-alert {
  border: 1px solid #bbf7d0;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.08);
}

.catalogue-hero,
.catalogue-panel,
.catalogue-results-shell {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

.catalogue-hero {
  border-radius: 1.9rem;
  padding: 1.6rem 1.6rem 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}

.catalogue-kicker,
.catalogue-section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.catalogue-hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.03;
  color: #0f172a;
  margin-bottom: 0.9rem;
}

.catalogue-hero-text {
  max-width: 62ch;
  color: #475569;
  font-size: 1rem;
  line-height: 1.65;
}

.catalogue-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.catalogue-stat-card {
  border-radius: 1.25rem;
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  display: flex;
  flex-direction: column;
  min-height: 112px;
}

.catalogue-stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
}

.catalogue-stat-label {
  margin-top: auto;
  font-size: 0.82rem;
  color: #64748b;
}

.catalogue-panel {
  border-radius: 1.6rem;
  padding: 1.35rem;
}

.catalogue-panel--categories {
  padding-bottom: 1.15rem;
}

.catalogue-results-shell {
  border-radius: 1.65rem;
  padding: 1.25rem;
}

.catalogue-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.catalogue-section-heading--compact {
  margin-bottom: 1.1rem;
}

.catalogue-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.catalogue-section-note {
  font-size: 0.9rem;
  color: #64748b;
  text-align: right;
}

.category-tile-strip {
  gap: 0.9rem;
  margin-bottom: 0;
}

.catalogue-frontpage .cat-card {
  width: calc(25% - 0.7rem);
  min-width: 220px;
  padding: 1rem 1.05rem;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #dbe4f0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
}

.catalogue-frontpage .cat-card::after {
  content: '';
  position: absolute;
  inset: auto -14% -42% auto;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.06);
  pointer-events: none;
}

.catalogue-frontpage .cat-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.13);
}

.catalogue-frontpage .cat-card-active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #1d4ed8;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.28);
}

.catalogue-frontpage .cat-icon-wrapper {
  width: 46px;
  height: 46px;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.catalogue-frontpage .cat-card-active .cat-icon-wrapper {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.catalogue-frontpage .cat-title {
  font-size: 0.98rem;
}

.catalogue-frontpage .cat-desc {
  font-size: 0.78rem;
  color: #64748b;
  opacity: 1;
}

.catalogue-filter-panel {
  padding: 1.2rem;
  position: sticky;
  top: 1rem;
}

.catalogue-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.45rem;
}

.catalogue-filter-form .form-control,
.catalogue-filter-form .form-select {
  border-radius: 0.95rem;
  border-color: #d8e2ee;
  min-height: 48px;
  background: #fbfdff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.catalogue-filter-form .form-control:focus,
.catalogue-filter-form .form-select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.24rem rgba(59, 130, 246, 0.14);
}

.catalogue-search-field {
  position: relative;
}

.catalogue-search-field > i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
}

.catalogue-search-field .form-control {
  padding-left: 2.7rem;
}

.catalogue-filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.catalogue-filter-toggle .form-check-input {
  float: none;
  margin: 0;
}

.catalogue-filter-toggle .form-check-label {
  font-size: 0.92rem;
  color: #334155;
}

.catalogue-results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8edf4;
}

.catalogue-results-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
}

.catalogue-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.84rem;
  font-weight: 700;
}

.catalogue-summary-line {
  margin-top: 0.45rem;
  color: #64748b;
  font-size: 0.95rem;
}

.catalogue-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.catalogue-mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  background: #f8fafc;
  border: 1px solid #dbe4ee;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
}

.catalogue-mini-chip i {
  color: #2563eb;
}

.catalogue-grid-surface {
  min-height: 240px;
}

.catalogue-empty-state {
  border-radius: 1.2rem;
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffdf2, #fffbeb);
  padding: 1rem 1.1rem;
}

.catalogue-frontpage .product-card-modern {
  border-radius: 1.35rem;
  border: 1px solid #d7e1ec;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
}

.catalogue-frontpage .product-card-modern:hover {
  transform: translateY(-6px);
  border-color: #c5d8f3;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
}

.product-card-media {
  position: relative;
}

.catalogue-frontpage .product-card-img-wrapper {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 42%),
    linear-gradient(180deg, #eef4fb 0%, #f8fbff 100%),
    repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.05) 0 12px, rgba(255,255,255,0.32) 12px 24px);
  border-bottom: 1px solid #e3eaf3;
}

.catalogue-frontpage .product-card-img-wrapper img {
  object-fit: contain;
  padding: 0.75rem;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.12));
}

.catalogue-cool-flag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.96);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.26);
}

.catalogue-frontpage .product-card-body {
  padding: 1rem 1rem 1.05rem;
}

.product-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.catalogue-frontpage .category-chip,
.catalogue-frontpage .brand-chip,
.catalogue-frontpage .stock-chip,
.catalogue-frontpage .case-chip {
  border-width: 1px;
  font-weight: 700;
  padding: 0.38rem 0.62rem;
}

.catalogue-frontpage .product-name {
  color: #0f172a;
  line-height: 1.3;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalogue-frontpage .product-card-title-block {
  margin-bottom: 0.2rem !important;
}

.catalogue-frontpage .product-card-title-block .product-name {
  margin-bottom: 0 !important;
}

.catalogue-frontpage .product-card-chip-row {
  margin-bottom: 0.58rem !important;
}

.product-card-subtitle {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
  min-height: 1.35em;
}

.catalogue-frontpage .product-card-prices {
  display: grid;
  align-self: center;
  width: min(100%, 242px);
  border-radius: 1rem;
  padding: 0.68rem 0.82rem;
  border: 1px solid #dbe5f0;
  background: linear-gradient(180deg, #fbfdff 0%, #f1f5ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 8px 18px rgba(148, 163, 184, 0.12);
  margin: 0 auto 0.12rem;
}

.catalogue-frontpage .product-card-prices div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.8rem;
  align-items: center;
  color: #475569;
}

.catalogue-frontpage .product-card-prices div strong {
  color: #0f172a;
  font-weight: 700;
}

.catalogue-frontpage .product-card-price-value {
  justify-self: end;
  color: #334155;
  font-weight: 800;
  white-space: nowrap;
}

.catalogue-frontpage .product-card-prices div + div {
  margin-top: 0.34rem;
  padding-top: 0.34rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.42);
}

.catalogue-frontpage .product-card-body .btn {
  min-height: 42px;
  border-radius: 0.95rem;
  font-weight: 700;
}

.catalogue-pagination-wrap {
  padding-top: 0.6rem;
}

.catalogue-frontpage .pagination .page-link {
  border-radius: 0.85rem !important;
  margin: 0.15rem;
  border-color: #dbe5f0;
  color: #334155;
  min-width: 42px;
  text-align: center;
}

.catalogue-frontpage .pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #1d4ed8;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.catalogue-frontpage .brand-floatbar {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 -14px 30px rgba(15, 23, 42, 0.10);
}

.catalogue-frontpage .brand-floatbar-title {
  color: #475569;
  font-weight: 600;
}

.catalogue-frontpage .brand-floatbar-chips {
  gap: 0.55rem;
}

.catalogue-frontpage .brand-chip-link {
  border-color: #d8e2ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #334155;
  font-weight: 600;
}

.catalogue-frontpage .brand-chip-link.active {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #93c5fd;
  color: #1d4ed8;
}

@media (max-width: 1199.98px) {
  .catalogue-frontpage .cat-card {
    width: calc(33.333% - 0.65rem);
    min-width: 210px;
  }
}

@media (max-width: 991.98px) {
  .catalogue-hero {
    grid-template-columns: 1fr;
  }

  .catalogue-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalogue-filter-panel {
    position: static;
  }

  .catalogue-frontpage .cat-card {
    width: calc(50% - 0.5rem);
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .catalogue-hero {
    padding: 1.25rem;
    border-radius: 1.5rem;
  }

  .catalogue-panel,
  .catalogue-results-shell {
    border-radius: 1.35rem;
    padding: 1rem;
  }

  .catalogue-section-heading,
  .catalogue-results-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .catalogue-section-note {
    text-align: left;
  }

  .catalogue-results-toolbar .btn {
    width: 100%;
    justify-content: center;
  }

  .catalogue-frontpage .category-tile-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .catalogue-frontpage .cat-card {
    width: 100% !important;
    padding: 0.9rem 0.9rem;
  }

  .catalogue-frontpage .product-card-body {
    padding: 0.9rem;
  }

  .site-wordmark-title {
    font-size: 1.05rem;
  }

  .site-wordmark-subtitle {
    font-size: 0.68rem;
  }
}

@media (max-width: 575.98px) {
  .catalogue-hero-stats {
    grid-template-columns: 1fr;
  }

  .catalogue-stat-card {
    min-height: auto;
  }

  .catalogue-frontpage .category-tile-strip {
    grid-template-columns: 1fr;
  }

  .catalogue-frontpage .product-card-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalogue-frontpage .product-card-prices div {
    display: block;
  }

  .catalogue-frontpage .product-card-prices div strong {
    display: inline-block;
    margin-bottom: 0.1rem;
  }

  .catalogue-frontpage .product-card-price-value {
    display: block;
    justify-self: auto;
  }

  .catalogue-frontpage .site-wordmark-subtitle {
    display: none;
  }

  .catalogue-frontpage .site-logo {
    max-height: 56px;
  }
}


.catalogue-frontpage .product-card-subtitle {
  display: none !important;
}

.catalogue-layout-row {
  align-items: stretch;
}

.catalogue-sticky-searchbar {
  --catalogue-search-fab-size: 54px;
  --catalogue-search-bottom-offset: 24px;
  --catalogue-search-right-offset: 18px;
  position: fixed;
  right: var(--catalogue-search-right-offset);
  bottom: var(--catalogue-search-bottom-offset);
  z-index: 1090;
  margin: 0;
  pointer-events: none;
}

.catalogue-mobile-search-toggle-shell {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: auto;
}

.catalogue-mobile-search-toggle {
  position: relative;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.catalogue-mobile-search-toggle:hover,
.catalogue-mobile-search-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.20);
  background: #ffffff;
  outline: none;
}

.catalogue-sticky-searchbar.is-open .catalogue-mobile-search-toggle {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.catalogue-sticky-searchbar.has-active-filters .catalogue-mobile-search-toggle::after {
  content: '';
  position: absolute;
  top: 9px;
  right: 9px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 2px #ffffff;
}

.catalogue-filter-panel--toolbar {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  top: auto !important;
  left: auto !important;
  width: min(296px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: fit-content !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0.72rem;
  border-radius: 1rem;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.catalogue-filter-form--toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  align-items: stretch;
  margin: 0;
}

.catalogue-filter-form--toolbar,
.catalogue-filter-form--toolbar > *,
.catalogue-search-field--toolbar,
.catalogue-search-field--toolbar .form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.catalogue-search-field--floating {
  border-radius: 18px;
  padding: 0.3rem 0.3rem 0.3rem 2.65rem;
  box-shadow: none;
}

.catalogue-search-field--floating > i {
  left: 0.95rem;
}

.catalogue-search-field--floating .form-control {
  min-height: 46px;
  font-size: 0.95rem;
}

.catalogue-search-field--toolbar {
  margin-bottom: 0;
  background: #f8fbff;
}

.catalogue-filter-toggle--toolbar {
  border-radius: 14px;
  min-height: 48px;
  margin: 0;
  white-space: nowrap;
  padding: 0.85rem 0.95rem;
}

@media (max-width: 991.98px) {
  main.container {
    overflow: visible;
  }

  .catalogue-sticky-searchbar {
    --catalogue-search-right-offset: 14px;
    --catalogue-search-bottom-offset: 14px;
  }

  .catalogue-sticky-searchbar-inner {
    padding: 0.75rem 0.85rem;
    border-radius: 1rem;
  }

  .catalogue-sticky-searchbar-note {
    display: none;
  }

  .catalogue-filter-panel--toolbar {
    width: min(272px, calc(100vw - 28px));
    right: 0;
    bottom: calc(100% + 10px);
    padding: 0.68rem 0.72rem;
    border-radius: 0.95rem;
  }

  .catalogue-filter-form--toolbar {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .catalogue-sticky-searchbar-inner {
    gap: 0.75rem;
  }

  .catalogue-sticky-searchbar-copy .catalogue-section-eyebrow {
    margin-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .catalogue-sticky-searchbar {
    --catalogue-search-fab-size: 48px;
    --catalogue-search-right-offset: 12px;
    --catalogue-search-bottom-offset: 94px;
  }

  .catalogue-sticky-searchbar-inner {
    padding: 0.7rem 0.75rem;
  }

  .catalogue-mobile-search-toggle {
    width: 48px;
    height: 48px;
  }

  .catalogue-filter-panel--toolbar {
    width: min(256px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    right: 0;
    bottom: calc(100% + 10px);
    padding: 0.62rem 0.66rem;
    border-radius: 0.95rem;
  }

  .catalogue-search-field--floating {
    padding-left: 2.55rem;
  }

  .catalogue-search-field--floating .form-control {
    min-height: 44px;
    font-size: 0.92rem;
  }

  .catalogue-filter-toggle--toolbar {
    min-height: 44px;
    font-size: 0.92rem;
  }
}


/* =========================================================
   2026 Header refresh: Akabane Bussan Online Catalog
   ========================================================= */
body.catalogue-frontpage {
  --catalog-header-blue: #1d4ed8;
  --catalog-header-red: #dc2626;
  --catalog-header-ink: #0f172a;
}

.catalogue-frontpage .catalogue-topbar {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.94)) !important;
  border-bottom: 1px solid rgba(191, 219, 254, 0.8);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.catalogue-frontpage .catalogue-topbar-inner {
  min-height: 76px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.catalogue-brand {
  min-width: 0;
  text-decoration: none;
}

.catalogue-brand-logo-wrap {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.9), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(191, 219, 254, 0.95);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.10);
  overflow: hidden;
}

.catalogue-brand-logo-wrap.is-empty {
  display: none;
}

.catalogue-frontpage .catalogue-brand-logo,
.catalogue-brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: none;
}

@media (max-width: 575.98px) {
  .catalogue-frontpage .catalogue-topbar-inner {
    min-height: 62px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .catalogue-brand-logo-wrap {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 16px;
  }

  .catalogue-frontpage .catalogue-brand-logo,
  .catalogue-brand-logo {
    width: 40px;
    height: 40px;
  }
}

.catalogue-brand-wordmark {
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
}

.catalogue-brand-title {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.catalogue-brand-title-main {
  color: var(--catalog-header-blue);
  font-size: clamp(1.18rem, 1.04rem + 0.62vw, 1.68rem);
}

.catalogue-brand-title-sub {
  color: var(--catalog-header-red);
  font-size: clamp(0.88rem, 0.82rem + 0.28vw, 1.02rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.catalogue-brand-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  color: #64748b;
  max-width: 58ch;
}

.catalogue-topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.catalogue-mode-btn {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  border-width: 1px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.catalogue-mode-btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.78);
}

.catalogue-mode-btn--active,
.catalogue-mode-btn--ghost {
  border-color: rgba(191, 219, 254, 0.95);
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
}

.catalogue-mode-btn--active {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: #1d4ed8;
}

.catalogue-mode-btn--order,
.catalogue-mode-btn--order-active {
  border-color: rgba(254, 202, 202, 0.95);
  color: #991b1b;
  background: rgba(255, 255, 255, 0.94);
}

.catalogue-mode-btn--order-active {
  background: linear-gradient(135deg, #fee2e2, #fff1f2);
  color: #b91c1c;
}

.catalogue-mode-btn:hover,
.catalogue-mode-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
}

@media (max-width: 991.98px) {
  .catalogue-frontpage .catalogue-topbar-inner {
    min-height: 70px;
  }

  .catalogue-brand-logo-wrap {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
  }

  .catalogue-frontpage .catalogue-brand-logo,
  .catalogue-brand-logo {
    width: 42px;
    height: 42px;
  }

  .catalogue-brand-subtitle {
    font-size: 0.76rem;
    max-width: 42ch;
  }
}

@media (max-width: 767.98px) {
  .catalogue-frontpage .catalogue-topbar-inner {
    align-items: center !important;
    min-height: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .catalogue-brand {
    gap: 0.7rem !important;
    align-items: center !important;
    max-width: calc(100% - 108px);
  }

  .catalogue-brand-logo-wrap {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 15px;
  }

  .catalogue-frontpage .catalogue-brand-logo,
  .catalogue-brand-logo {
    width: 40px;
    height: 40px;
  }

  .catalogue-brand-wordmark {
    gap: 0.12rem;
  }

  .catalogue-brand-title {
    gap: 0.1rem;
    line-height: 1;
  }

  .catalogue-brand-title-main {
    font-size: 1.18rem;
    font-weight: 900;
    color: #1d4ed8;
  }

  .catalogue-brand-title-sub {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    color: #dc2626;
  }

  .catalogue-brand-subtitle {
    display: none;
  }

  .catalogue-topbar-actions {
    gap: 0.5rem !important;
    flex-shrink: 0;
    align-self: center;
  }

  .catalogue-mode-btn {
    min-width: 42px;
    min-height: 42px;
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
    border-radius: 999px;
  }

  .catalogue-mode-btn-icon {
    width: 21px;
    height: 21px;
  }
}

@media (max-width: 575.98px) {
  .catalogue-frontpage .catalogue-topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
  }

  .catalogue-frontpage .catalogue-topbar-inner {
    gap: 0.5rem;
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
  }

  .catalogue-brand {
    gap: 0.62rem !important;
    max-width: calc(100% - 104px);
  }

  .catalogue-brand-logo-wrap {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 14px;
  }

  .catalogue-frontpage .catalogue-brand-logo,
  .catalogue-brand-logo {
    width: 38px;
    height: 38px;
  }

  .catalogue-brand-wordmark {
    gap: 0.08rem;
  }

  .catalogue-brand-title {
    gap: 0.05rem;
    line-height: 1;
  }

  .catalogue-brand-title-main {
    font-size: 1.14rem;
    font-weight: 900;
    color: #1d4ed8;
  }

  .catalogue-brand-title-sub {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    color: #dc2626;
  }

  .catalogue-topbar-actions {
    gap: 0.34rem !important;
  }

  .catalogue-mode-btn {
    min-width: 40px;
    min-height: 40px;
    padding-left: 0.52rem !important;
    padding-right: 0.52rem !important;
  }

  .catalogue-mode-btn-icon {
    width: 20px;
    height: 20px;
  }
}


.catalogue-desktop-category-panel {
  display: block;
}

.catalogue-filter-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.catalogue-filter-panel-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.15rem;
}

.catalogue-filter-panel-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.catalogue-filter-panel-close {
  width: 40px;
  height: 40px;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.catalogue-filter-panel-close:hover,
.catalogue-filter-panel-close:focus-visible {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
  outline: none;
}

.catalogue-filter-group {
  border: 1px solid #dbe4ee;
  background: #f8fbff;
  border-radius: 1rem;
  padding: 0.85rem;
}

.catalogue-filter-group-title {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #475569;
}

.catalogue-filter-category-list {
  display: grid;
  gap: 0.55rem;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.catalogue-filter-category-option {
  display: block;
  cursor: pointer;
}

.catalogue-filter-category-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.catalogue-filter-category-option span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid #dbe4ee;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
  transition: all 0.18s ease;
}

.catalogue-filter-category-option span i {
  color: #2563eb;
}

.catalogue-filter-category-option input:checked + span {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.catalogue-filter-storage-list {
  display: grid;
  gap: 0.55rem;
}

.catalogue-filter-storage-option {
  display: block;
  cursor: pointer;
}

.catalogue-filter-storage-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.catalogue-filter-storage-option span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid #dbe4ee;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
  transition: all 0.18s ease;
}

.catalogue-filter-storage-option span i {
  color: #2563eb;
}

.catalogue-filter-storage-option input:checked + span {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.catalogue-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.catalogue-filter-actions .btn {
  min-height: 46px;
  border-radius: 0.95rem;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .catalogue-desktop-category-panel {
    display: none;
  }

  .catalogue-filter-panel--toolbar {
    width: min(360px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    max-height: min(78vh, 640px) !important;
    overflow: hidden !important;
    padding: 0.8rem;
    border-radius: 1.15rem;
  }

  .catalogue-filter-form--toolbar {
    max-height: calc(min(78vh, 640px) - 1.6rem);
    overflow-y: auto;
    padding-right: 0.1rem;
  }
}

@media (max-width: 575.98px) {
  .catalogue-filter-panel--toolbar {
    width: min(348px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    bottom: calc(100% + 12px);
    padding: 0.75rem;
  }

  .catalogue-filter-panel-title {
    font-size: 0.96rem;
  }

  .catalogue-filter-category-list {
    max-height: 220px;
  }

  .catalogue-filter-category-option span {
    min-height: 44px;
    padding: 0.75rem 0.85rem;
    font-size: 0.94rem;
  }
}


/* =========================================================
   Shared catalogue header styles (all customer-facing pages)
   ========================================================= */
body.catalogue-site {
  --catalog-header-blue: #1d4ed8;
  --catalog-header-red: #dc2626;
  --catalog-header-ink: #0f172a;
}

.catalogue-site .catalogue-topbar {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96)) !important;
  border-bottom: 1px solid rgba(191, 219, 254, 0.8);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.catalogue-site .catalogue-topbar-inner {
  min-height: 76px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.catalogue-site .catalogue-brand-title-main {
  color: var(--catalog-header-blue);
}

.catalogue-site .catalogue-brand-title-sub {
  color: var(--catalog-header-red);
}

@media (max-width: 767.98px) {
  .catalogue-site .catalogue-topbar-inner {
    align-items: center !important;
    min-height: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .catalogue-site .catalogue-brand {
    gap: 0.7rem !important;
    align-items: center !important;
    max-width: calc(100% - 108px);
  }

  .catalogue-site .catalogue-brand-logo-wrap {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 15px;
  }

  .catalogue-site .catalogue-brand-logo {
    width: 40px;
    height: 40px;
  }

  .catalogue-site .catalogue-brand-wordmark {
    gap: 0.12rem;
  }

  .catalogue-site .catalogue-brand-title {
    gap: 0.1rem;
    line-height: 1;
  }

  .catalogue-site .catalogue-brand-title-main {
    font-size: 1.18rem;
    font-weight: 900;
  }

  .catalogue-site .catalogue-brand-title-sub {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
  }

  .catalogue-site .catalogue-brand-subtitle {
    display: none;
  }

  .catalogue-site .catalogue-topbar-actions {
    gap: 0.5rem !important;
    flex-shrink: 0;
    align-self: center;
  }

  .catalogue-site .catalogue-mode-btn {
    min-width: 42px;
    min-height: 42px;
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
    border-radius: 999px;
  }

  .catalogue-site .catalogue-mode-btn-icon {
    width: 21px;
    height: 21px;
  }
}

/* =========================================================
   Cart page responsive styles
   ========================================================= */
.cart-page {
  padding-bottom: 2rem;
}

.cart-hero {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 35%), linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e7eef8;
  border-radius: 1.5rem;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.cart-kicker {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  margin-bottom: 0.85rem;
}

.cart-title {
  font-size: clamp(1.95rem, 3vw, 2.75rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.cart-subtitle {
  color: #64748b;
  max-width: 760px;
  line-height: 1.6;
}

.cart-card,
.cart-summary-card,
.cart-empty-card {
  background: #ffffff;
  border: 1px solid #e9eef5;
  border-radius: 1.5rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.cart-card__header,
.cart-summary-card__header {
  padding: 1.4rem 1.4rem 1rem;
  border-bottom: 1px solid #eef2f7;
}

.cart-card__body,
.cart-summary-card__body {
  padding: 1.4rem;
}

.cart-section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2563eb;
  margin-bottom: 0.3rem;
}

.cart-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.cart-item-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid #e9eef5;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.cart-item-card__media {
  min-width: 0;
}

.cart-item-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.cart-item-card__content,
.cart-item-main {
  min-width: 0;
}

.cart-item-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.cart-item-name {
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.45rem;
}

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  color: #475569;
  font-size: 1rem;
}

.cart-remove-btn {
  flex-shrink: 0;
}

.cart-item-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: end;
}

.cart-price-block,
.cart-subtotal-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cart-price-label {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 700;
}

.cart-price-value,
.cart-subtotal-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.cart-qty-block {
  min-width: 180px;
}

.cart-qty-control {
  display: grid;
  grid-template-columns: 48px minmax(74px, 96px) 48px;
  align-items: center;
  border: 1px solid #dbe4ef;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}

.cart-qty-btn {
  appearance: none;
  border: 0;
  background: #f8fafc;
  color: #0f172a;
  min-height: 52px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-btn:hover,
.cart-qty-btn:focus-visible {
  background: #eff6ff;
}

.cart-qty-input {
  border: 0 !important;
  border-left: 1px solid #dbe4ef !important;
  border-right: 1px solid #dbe4ef !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 52px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.cart-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cart-summary-card {
  position: sticky;
  top: 1.25rem;
}

.cart-summary-stat,
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cart-summary-stat {
  color: #334155;
  margin-bottom: 0.8rem;
}

.cart-summary-total {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #eef2f7;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.cart-summary-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.06);
  color: #1e3a8a;
  font-size: 0.94rem;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

@media (max-width: 991.98px) {
  .cart-summary-card {
    position: static;
  }

  .cart-item-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .cart-item-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-subtotal-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .cart-hero,
  .cart-card__header,
  .cart-card__body,
  .cart-summary-card__header,
  .cart-summary-card__body,
  .cart-empty-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cart-item-card {
    grid-template-columns: 1fr;
    gap: 0.95rem;
    padding: 0.9rem;
  }

  .cart-item-image {
    aspect-ratio: 4 / 3;
  }

  .cart-item-top {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-item-name {
    font-size: 1.1rem;
  }

  .cart-item-meta {
    font-size: 0.94rem;
  }

  .cart-item-bottom {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .cart-qty-block {
    min-width: 0;
  }

  .cart-qty-control {
    width: 100%;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
  }

  .cart-inline-actions .btn,
  .cart-summary-card .btn {
    width: 100%;
  }
}


/* =========================================================
   2026-03 spacing fixes: header actions + floating buttons
   ========================================================= */
.catalogue-floating-cart {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 1080;
}

.catalogue-floating-cart-btn {
  width: 64px;
  height: 64px;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28) !important;
}

.catalogue-floating-cart-badge {
  font-size: 0.75rem;
}

body.catalogue-order-mode .catalogue-sticky-searchbar {
  --catalogue-search-bottom-offset: 96px;
}

.catalogue-topbar-actions {
  gap: 0.85rem !important;
}

.catalogue-mode-btn {
  min-width: 48px;
}

@media (max-width: 767.98px) {
  .catalogue-topbar-actions,
  .catalogue-site .catalogue-topbar-actions {
    gap: 0.7rem !important;
  }

  .catalogue-mode-btn,
  .catalogue-site .catalogue-mode-btn {
    min-width: 46px;
    min-height: 46px;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .catalogue-mode-btn-icon,
  .catalogue-site .catalogue-mode-btn-icon {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 575.98px) {
  .catalogue-floating-cart {
    right: 12px;
    bottom: 12px;
  }

  .catalogue-floating-cart-btn {
    width: 52px;
    height: 52px;
  }

  body.catalogue-order-mode .catalogue-sticky-searchbar {
    --catalogue-search-bottom-offset: 76px;
  }

  .catalogue-topbar-actions,
  .catalogue-site .catalogue-topbar-actions {
    gap: 0.55rem !important;
  }

  .catalogue-brand,
  .catalogue-site .catalogue-brand {
    max-width: calc(100% - 126px);
  }
}

.catalogue-language-switcher {
  margin: 0;
}

.catalogue-language-toggle {
  display: inline-flex;
  position: relative;
  cursor: pointer;
  margin: 0;
}

.catalogue-language-toggle__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.catalogue-language-toggle__track {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 152px;
  min-height: 48px;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #183153 0%, #214c7f 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 14px 30px rgba(11, 31, 56, 0.18);
  overflow: hidden;
}

.catalogue-language-toggle__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #f6e7c0 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  transition: transform 0.28s ease;
}

.catalogue-language-toggle__option {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.72);
  transition: color 0.28s ease;
}

.catalogue-language-toggle__option--ja {
  letter-spacing: 0.01em;
}

.catalogue-language-toggle__input:checked + .catalogue-language-toggle__track .catalogue-language-toggle__thumb {
  transform: translateX(100%);
}

.catalogue-language-toggle__input:focus-visible + .catalogue-language-toggle__track {
  outline: 3px solid rgba(255,255,255,0.32);
  outline-offset: 2px;
}

.catalogue-language-toggle__input:not(:checked) + .catalogue-language-toggle__track .catalogue-language-toggle__option--en,
.catalogue-language-toggle__input:checked + .catalogue-language-toggle__track .catalogue-language-toggle__option--ja {
  color: #183153;
}

.catalogue-language-toggle__input:checked + .catalogue-language-toggle__track .catalogue-language-toggle__option--en {
  color: rgba(255,255,255,0.72);
}

.catalogue-language-switcher--mode .catalogue-language-toggle__track {
  width: 168px;
}

@media (max-width: 768px) {
  .catalogue-language-toggle__track {
    width: 138px;
    min-height: 44px;
  }

  .catalogue-language-toggle__option {
    min-height: 36px;
    font-size: 0.74rem;
    padding: 0 10px;
  }
}
