:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #cbd5e1;
  --border-light: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --brand-navy: #0f2952;
  --brand-navy-hover: #173b75;
  --brand-red: #b91c1c;
  --brand-red-hover: #991b1b;
  --accent-blue: #1d4ed8;
  --status-verified-bg: #dcfce7;
  --status-verified-fg: #166534;
  --status-review-bg: #fef3c7;
  --status-review-fg: #92400e;
  --status-error-bg: #fee2e2;
  --status-error-fg: #991b1b;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Header & Navigation */
.site-header {
  background: var(--bg-surface);
  border-bottom: 2px solid var(--brand-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-navy);
  text-decoration: none !important;
}

.brand-logo-img {
  max-height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  margin: 0;
  line-height: 1.15;
}

.brand-title span {
  color: var(--brand-red);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}

/* Header Navigation Actions */
.header-actions {
  display: none;
}

@media (min-width: 1024px) {
  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
}

/* Mobile Header Actions (WhatsApp Quick Link + Hamburger Button) */
.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 1024px) {
  .mobile-header-actions {
    display: none;
  }
}

.mobile-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #15803d;
  color: #ffffff !important;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}

.mobile-whatsapp-btn:hover {
  background: #166534;
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-navy);
  color: #ffffff;
  border: 1px solid var(--brand-navy);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  min-height: 38px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mobile-menu-toggle:hover {
  background: var(--brand-navy-hover);
  border-color: var(--brand-navy-hover);
}

.mobile-menu-toggle svg {
  display: block;
}

/* Mobile Navigation Drawer & Backdrop */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 86vw;
  background: var(--bg-surface);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 28px rgba(15, 23, 42, 0.25);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

body.mobile-menu-active {
  overflow: hidden;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 2px solid var(--brand-navy);
  background: var(--bg-surface);
}

.mobile-drawer-logo {
  max-height: 38px;
  width: auto;
  display: block;
}

.mobile-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mobile-drawer-close:hover {
  background: #fee2e2;
  color: var(--brand-red);
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
}

.mobile-drawer-section {
  margin-bottom: 20px;
}

.mobile-drawer-heading {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--bg-subtle);
  color: var(--brand-navy);
  border-color: var(--brand-navy);
}

.mobile-nav-link--whatsapp {
  color: #15803d;
  border-color: rgba(21, 128, 61, 0.25);
}

.mobile-nav-link--whatsapp:hover {
  background: #dcfce7;
  color: #166534;
}

.mobile-nav-icon {
  font-size: 1.1rem;
  display: inline-flex;
}

.mobile-nav-label {
  flex: 1;
}

.mobile-cat-list {
  gap: 2px;
}

.mobile-cat-list .mobile-nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
}

.mobile-cat-list .mobile-nav-link:hover,
.mobile-cat-list .mobile-nav-link.active {
  background: var(--bg-subtle);
  color: var(--brand-navy);
  font-weight: 700;
}

.mobile-drawer-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-subtle);
  font-size: 0.82rem;
}

/* Category Strip - Visible on mobile/tablet, hidden on desktop in favor of left sidebar */
.category-strip {
  background: var(--brand-navy);
  color: #ffffff;
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 1024px) {
  .category-strip {
    display: none;
  }
}

.category-strip-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 10px 16px;
  scrollbar-width: none;
}

.category-strip-list::-webkit-scrollbar {
  display: none;
}

.category-strip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s;
}

.category-strip-link:hover,
.category-strip-link.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.category-strip-link.empty-cat {
  opacity: 0.72;
}

.cat-count-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 10px;
  font-family: var(--font-mono);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  min-height: 38px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-navy);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--brand-navy-hover);
  color: #ffffff;
}

.btn-accent {
  background-color: var(--brand-red);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--brand-red-hover);
  color: #ffffff;
}

.btn-outline {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
}

.btn-whatsapp {
  background-color: #15803d;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: #166534;
  color: #ffffff;
}

.btn-sm {
  padding: 5px 10px;
  min-height: 32px;
  font-size: 0.8rem;
}

/* Fancy Back Navigation Button */
.btn-back-fancy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 10px;
  background: #ffffff;
  color: var(--brand-navy) !important;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-back-fancy .btn-back-arrow-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--brand-red);
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.btn-back-fancy .btn-back-arrow-wrap svg {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-back-fancy:hover {
  background: #ffffff;
  color: var(--brand-red) !important;
  border-color: var(--brand-navy);
  box-shadow: 0 4px 14px rgba(15, 41, 82, 0.12), 0 2px 4px rgba(15, 41, 82, 0.06);
  transform: translateY(-1px);
}

.btn-back-fancy:hover .btn-back-arrow-wrap {
  background: var(--brand-red);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.35);
}

.btn-back-fancy:hover .btn-back-arrow-wrap svg {
  transform: translateX(-3px);
}

.btn-back-fancy:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(15, 41, 82, 0.08);
}

/* Search & Filter Toolbar */
.search-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.search-form-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-main-col {
  width: 100%;
}

.search-input-group {
  display: flex;
  gap: 8px;
  width: 100%;
}

.search-input-group .form-control {
  flex: 1;
  min-width: 0;
}

.search-inline-btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 16px;
  font-weight: 700;
}

.mobile-filter-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.mobile-filter-toggle-btn:hover {
  background: #e2e8f0;
}

.mft-icon {
  font-size: 1rem;
}

.mft-text {
  flex: 1;
  text-align: left;
}

.mft-active-dot {
  color: var(--brand-red);
  font-size: 1.2rem;
  line-height: 1;
}

.mft-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.secondary-filters-wrap {
  display: none;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
}

.secondary-filters-wrap.is-open {
  display: flex;
}

.search-form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-desktop-btn {
  display: inline-flex;
}

@media (min-width: 900px) {
  .search-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    align-items: flex-end;
    gap: 12px;
  }
  .search-inline-btn {
    display: none !important;
  }
  .mobile-filter-toggle-btn {
    display: none !important;
  }
  .secondary-filters-wrap {
    display: contents !important;
  }
  .secondary-filters-wrap > div {
    display: flex;
    flex-direction: column;
  }
  .search-form-actions {
    display: flex;
    gap: 6px;
    align-self: flex-end;
  }
}

.form-control, .form-select {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.form-control:focus, .form-select:focus {
  border-color: var(--brand-navy);
}

/* Main Catalogue Layout */
.catalogue-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 0 48px;
}

@media (min-width: 1024px) {
  .catalogue-layout {
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width: 1023px) {
  .catalogue-sidebar {
    display: none;
  }
}

/* Sidebar */
.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.sidebar-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-cat-item + .sidebar-cat-item {
  margin-top: 4px;
}

.sidebar-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none !important;
}

.sidebar-cat-link:hover,
.sidebar-cat-link.active {
  background: var(--bg-subtle);
  color: var(--brand-navy);
  font-weight: 700;
}

/* Toolbar above grid */
.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

/* Desktop View Switcher */
.view-switcher-group {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.15s ease;
  line-height: 1;
}

.view-btn:hover {
  color: var(--brand-navy);
  background: rgba(0, 0, 0, 0.05);
}

.view-btn.active {
  background: var(--brand-navy);
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 41, 82, 0.25);
}

.view-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

@media (max-width: 640px) {
  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 14px;
  }
  .results-toolbar > div:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
}

/* Product Grid & Cards */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 560px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 1px var(--brand-red), 0 8px 24px rgba(185, 28, 28, 0.16);
  transform: translateY(-2px);
}

.product-card-media {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
}

.product-card-media img {
  max-width: 100%;
  max-height: 162px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Text-first card when product has no verified image - no empty box */
.product-card--text-only {
  border-top: 3px solid var(--brand-navy);
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.part-number-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-navy);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-card-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.product-card-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.product-card-meta {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin: 0;
  overflow-wrap: anywhere;
}

.ref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.ref-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 1px 6px;
  border-radius: 3px;
  overflow-wrap: anywhere;
}

.product-card-footer {
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Compact List / Table Mode & Mobile Responsive Card Layout
   ========================================================================== */
.product-list-desktop-wrap,
.product-list-table-wrap {
  display: block;
  width: 100%;
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.product-list-mobile-cards {
  display: none;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th, .data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  overflow-wrap: break-word;
}

.data-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Specific List Elements */
.th-part-number, .col-part-number { width: 140px; }
.th-category, .col-category { width: 160px; }
.th-refs, .col-refs { width: 160px; }
.th-dims, .col-dims { width: 150px; }
.th-actions, .col-actions { width: 230px; }

.list-cat-pill {
  display: inline-block;
  background: var(--bg-subtle);
  color: var(--brand-navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none !important;
  border: 1px solid var(--border-light);
  transition: all 0.15s ease;
}

.list-cat-pill:hover {
  background: var(--brand-navy);
  color: #ffffff;
}

.list-product-title {
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
}

.list-product-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.list-product-title a:hover {
  color: var(--brand-navy);
  text-decoration: underline;
}

.list-fitment-badge {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

.list-dimensions-box {
  font-size: 0.82rem;
  white-space: pre-line;
  line-height: 1.4;
  color: var(--text-secondary);
  font-family: var(--font-sans);
}

.list-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* ==========================================================================
   Mobile Responsive List View (< 769px) - Dedicated Clean Card Architecture
   ========================================================================== */
@media (max-width: 768px) {
  .product-list-desktop-wrap,
  .product-list-table-wrap {
    display: none !important;
  }

  .product-list-mobile-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .mobile-part-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .mobile-part-card:active {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  }

  .mpc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mpc-top .part-number-badge {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--brand-navy);
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.02em;
  }

  .mpc-cat-badge {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: var(--brand-navy);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    border: 1px solid var(--border-light);
    text-decoration: none !important;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mpc-title-box {
    margin: 0;
  }

  .mpc-title-link {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-navy);
    text-decoration: none !important;
    line-height: 1.35;
    display: inline-block;
  }

  .mpc-title-link:hover {
    color: var(--brand-red);
    text-decoration: underline !important;
  }

  .mpc-fitment-row {
    background: #f8fafc;
    border-left: 3.5px solid var(--brand-red);
    border-radius: 0 6px 6px 0;
    padding: 7px 12px;
    font-size: 0.86rem;
    color: var(--text-primary);
    line-height: 1.4;
  }

  .mpc-fitment-label {
    font-weight: 700;
    color: var(--brand-navy);
    margin-right: 4px;
  }

  .mpc-fitment-text {
    color: var(--text-primary);
  }

  .mpc-spec-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 0.83rem;
    line-height: 1.5;
  }

  .mpc-spec-label {
    display: block;
    font-weight: 700;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 4px;
  }

  .mpc-spec-content {
    white-space: pre-line;
    font-family: var(--font-sans);
    color: #1e293b;
    font-size: 0.83rem;
  }

  .mpc-refs-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mpc-refs-label {
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
  }

  .mpc-refs-row .ref-chips {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .mpc-btn-bar {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
    margin-top: 4px;
  }

  .mpc-btn-bar .btn {
    width: 100%;
    min-height: 40px;
    padding: 6px 4px;
    font-size: 0.82rem;
    font-weight: 700;
    justify-content: center;
    text-align: center;
    border-radius: 6px;
  }

  .mpc-wa-btn {
    background-color: #15803d !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(21, 128, 61, 0.25);
  }

  .mpc-wa-btn:hover {
    background-color: #166534 !important;
  }
}

@media (max-width: 480px) {
  .mpc-btn-bar {
    grid-template-columns: 1fr 1fr;
  }
  .mpc-btn-bar .mpc-wa-btn {
    grid-column: span 2;
    order: -1;
    font-size: 0.9rem;
  }
}

/* Product Detail Page */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 16px;
}

@media (min-width: 900px) {
  .detail-grid--with-media {
    grid-template-columns: 420px 1fr;
  }
}

.detail-gallery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.detail-main-img-wrap {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 12px;
}

.detail-main-img-wrap img {
  max-width: 100%;
  max-height: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.detail-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.detail-thumb-btn {
  border: 2px solid var(--border-light);
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 4px;
  cursor: pointer;
  width: 68px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-thumb-btn.active {
  border-color: var(--brand-navy);
}

.detail-thumb-btn img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0;
}

@media (min-width: 600px) {
  .spec-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-item {
  background: var(--bg-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-navy);
}

.spec-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.spec-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

/* Badges & Alerts */
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 12px;
}

.badge-verified {
  background: var(--status-verified-bg);
  color: var(--status-verified-fg);
}

.badge-review {
  background: var(--status-review-bg);
  color: var(--status-review-fg);
}

.badge-error {
  background: var(--status-error-bg);
  color: var(--status-error-fg);
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 12px 0;
  border: 1px solid transparent;
  font-weight: 500;
}

.alert-success {
  background: var(--status-verified-bg);
  color: var(--status-verified-fg);
  border-color: #86efac;
}

.alert-warning {
  background: var(--status-review-bg);
  color: var(--status-review-fg);
  border-color: #fde047;
}

.alert-danger {
  background: var(--status-error-bg);
  color: var(--status-error-fg);
  border-color: #fca5a5;
}

.alert-info {
  background: #e0f2fe;
  color: #075985;
  border-color: #7dd3fc;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}

/* Admin Layout */
.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 60px);
}

@media (min-width: 960px) {
  .admin-shell {
    grid-template-columns: 240px 1fr;
  }
}

.admin-sidebar {
  background: #0f172a;
  color: #f8fafc;
  padding: 16px;
}

.admin-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none !important;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: #1e293b;
  color: #ffffff;
}

.admin-main {
  padding: 20px;
  max-width: 100%;
  overflow-x: hidden;
}

.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-card-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.2;
}

.stat-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 32px 0;
  margin-top: 48px;
  font-size: 0.85rem;
}

/* Honeypot hidden field */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Search Results Multi-Channel Sharing (WhatsApp, Email, Copy, Preview)
   ========================================================================== */
.search-share-strip {
  background: linear-gradient(135deg, #0b162c 0%, #15274d 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(11, 22, 44, 0.16);
  border-left: 4px solid var(--brand-crimson);
}

.search-share-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 280px;
}

.search-share-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201, 29, 36, 0.22);
  color: #f87171;
  flex-shrink: 0;
}

.search-share-title-text {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.search-share-desc-text {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 2px 0 0 0;
  line-height: 1.35;
}

.search-share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-share-wa {
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.84rem;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
  text-decoration: none !important;
}

.btn-share-wa:hover {
  background: #20ba59;
  transform: translateY(-1px);
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

.btn-share-email {
  background: #ffffff;
  color: var(--brand-navy) !important;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.84rem;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.btn-share-email:hover {
  background: #f1f5f9;
  color: var(--brand-navy) !important;
  transform: translateY(-1px);
}

.btn-share-copy {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.84rem;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.btn-share-copy:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn-share-preview {
  background: transparent;
  color: #cbd5e1 !important;
  font-weight: 500;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.btn-share-preview:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}

@media (max-width: 600px) {
  .search-share-strip {
    padding: 12px 14px;
  }
  .search-share-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .search-share-buttons button,
  .search-share-buttons a {
    width: 100%;
    justify-content: center;
  }
  .search-share-buttons .btn-share-wa {
    grid-column: 1 / -1;
    font-size: 0.88rem;
    padding: 10px;
  }
}

/* Toast alert popup */
.share-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 99999;
  border-left: 4px solid #22c55e;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.share-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Share preview modal */
.share-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 22, 44, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}

.share-modal-backdrop.show {
  display: flex;
}

.share-modal-content {
  background: #ffffff;
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.share-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
}

.share-modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.share-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.share-textarea-preview {
  width: 100%;
  height: 240px;
  font-family: monospace, ui-monospace, sans-serif;
  font-size: 0.84rem;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: #1e293b;
  resize: vertical;
  line-height: 1.5;
}

.share-modal-footer {
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}



/* --------------------------------------------------------------------------
   Export PDF and Language Selector Styles
   -------------------------------------------------------------------------- */
.btn-share-pdf {
  background: var(--brand-crimson, #b91c1c);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.84rem;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.btn-share-pdf:hover {
  background: #991b1b;
  transform: translateY(-1px);
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(185, 28, 28, 0.4);
}

/* ==========================================================================
   Executive Language Selector Component
   ========================================================================== */
.lang-dropdown {
  position: relative;
  display: inline-block;
  user-select: none;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.lang-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.16) 100%);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.lang-dropdown.open .lang-btn {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.lang-globe-icon {
  display: inline-flex;
  align-items: center;
  color: #93c5fd;
  opacity: 0.95;
}

.lang-flag-current {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.lang-name-current {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.lang-chevron-icon {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.22s ease;
  margin-left: 2px;
}

.lang-dropdown.open .lang-chevron-icon {
  transform: rotate(180deg);
  color: #ffffff;
}

/* Floating Dropdown Menu Card */
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 18px 38px -4px rgba(15, 23, 42, 0.22), 0 6px 16px -2px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  min-width: 250px;
  z-index: 1050;
  overflow: hidden;
  animation: langMenuPop 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes langMenuPop {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lang-dropdown.open .lang-menu {
  display: block;
}

.lang-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.lang-menu-header-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.lang-menu-header-code {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #334155;
}

.lang-menu-list {
  padding: 6px 0;
  max-height: 340px;
  overflow-y: auto;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #1e293b;
  text-decoration: none !important;
  transition: all 0.15s ease;
  position: relative;
}

.lang-item:hover {
  background: #f1f5f9;
  transform: translateX(3px);
}

.lang-item.active {
  background: #eff6ff;
}

.lang-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand-crimson, #b91c1c);
}

.lang-item-flag {
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.lang-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.lang-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
}

.lang-item:hover .lang-item-name {
  color: var(--brand-crimson, #b91c1c);
}

.lang-item-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 1px;
}

.lang-item-check {
  color: var(--brand-crimson, #b91c1c);
  font-weight: 800;
  font-size: 0.95rem;
  margin-left: 6px;
}

/* Mobile Language Grid */
.mobile-lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 8px 0;
}

.mobile-lang-chip {
  padding: 10px 10px;
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  transition: all 0.15s ease;
}

.mobile-lang-chip:hover {
  border-color: var(--brand-crimson, #b91c1c);
}

.mobile-lang-chip.active {
  background: var(--brand-navy, #0f2952);
  color: #ffffff;
  border-color: var(--brand-navy, #0f2952);
  box-shadow: 0 2px 6px rgba(15, 41, 82, 0.25);
}


/* ==========================================================================
   Product Image Zoom & Lightbox Styles
   ========================================================================== */
.detail-main-img-wrap {
  position: relative !important;
  overflow: hidden !important;
  cursor: zoom-in !important;
}
.detail-main-img-wrap img {
  transition: transform 0.15s ease-out;
  transform-origin: center center;
  pointer-events: none;
}
.detail-main-img-wrap.is-hover-zoomed img {
  transform: scale(2.2);
}
.zoom-badge-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}
.zoom-badge-hint:hover {
  background: var(--brand-navy, #0f172a);
  transform: scale(1.05);
}

/* Fullscreen Zoom Modal */
.zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zoom-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.zoom-modal-container {
  position: relative;
  z-index: 2;
  width: 95vw;
  max-width: 1200px;
  height: 90vh;
  max-height: 850px;
  display: flex;
  flex-direction: column;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.zoom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #1f2937;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.zoom-modal-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.zoom-btn {
  background: #374151;
  color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.zoom-btn:hover {
  background: #4b5563;
  color: #ffffff;
}
.zoom-close-btn {
  background: #ef4444;
  border-color: #ef4444;
  margin-left: 6px;
}
.zoom-close-btn:hover {
  background: #dc2626;
}
.zoom-modal-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #0b0f19;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
}
.zoom-modal-body.is-dragging {
  cursor: grabbing;
}
#zoom-modal-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.05s linear;
  will-change: transform;
}
.zoom-modal-footer {
  padding: 8px 16px;
  background: #1f2937;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: #9ca3af;
  text-align: center;
}

/* Floating Scroll To Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-navy, #0f2952);
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(15, 41, 82, 0.3), 0 2px 6px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.9);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-to-top-btn svg {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-to-top-btn:hover {
  background: var(--brand-red, #b91c1c);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(185, 28, 28, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px) scale(1.05);
}

.scroll-to-top-btn:hover svg {
  transform: translateY(-2.5px);
}

.scroll-to-top-btn:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.25);
}

@media (max-width: 768px) {
  .scroll-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}



/* ==========================================================================
   IMAGE PROTECTION & ANTI-COPY LAYER
   Prevents dragging, image context-menus, ghost selection and mobile long-press
   ========================================================================== */
img,
.product-card-img,
.detail-main-img-wrap img,
.detail-thumb img,
.zoom-modal-img,
.brand-logo-img,
picture {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
  -webkit-touch-callout: none !important; /* Disables iOS long-press save image sheet */
}

/* ==========================================================================
   RELEASE IMAGE RESTRICTIONS FOR ADMIN ONLY
   Allows administrators to right-click, copy, save, and drag images freely
   ========================================================================== */
body.is-admin img,
body.is-admin .product-card-img,
body.is-admin .detail-main-img-wrap img,
body.is-admin .detail-thumb img,
body.is-admin .zoom-modal-img,
body.is-admin .brand-logo-img,
body.is-admin picture,
body[data-is-admin="true"] img,
body[data-is-admin="true"] .product-card-img,
body[data-is-admin="true"] .detail-main-img-wrap img,
body[data-is-admin="true"] .detail-thumb img,
body[data-is-admin="true"] .zoom-modal-img,
body[data-is-admin="true"] .brand-logo-img,
body[data-is-admin="true"] picture,
.admin-shell img {
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;
  user-select: auto !important;
  -webkit-user-drag: auto !important;
  -khtml-user-drag: auto !important;
  -moz-user-drag: auto !important;
  -o-user-drag: auto !important;
  user-drag: auto !important;
  -webkit-touch-callout: default !important;
  pointer-events: auto !important;
}

/* Subtle protection toast notification */
.copy-protect-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.copy-protect-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
