/* TRAVIL Market Pro UI v2
   Shared industrial BTPH storefront and admin foundation. */

:root {
  --bg-primary: #0E1116;
  --bg-secondary: #151A21;
  --bg-tertiary: #1C232C;
  --border-subtle: rgba(255,255,255,0.06);
  --border-medium: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  --text-primary: #E7ECEF;
  --text-secondary: #A7B0BA;
  --text-muted: #6B7682;
  --accent: #FF6A00;
  --accent-hover: #FF7A1A;
  --accent-soft: rgba(255,106,0,0.12);
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-subtle: 0 1px 2px rgba(0,0,0,0.22), 0 10px 24px rgba(0,0,0,0.16);
  --shadow-medium: 0 14px 34px rgba(0,0,0,0.28);
  --shadow-strong: 0 24px 60px rgba(0,0,0,0.42);

  --container: 1220px;
  --font-main: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Compatibility aliases for older module CSS selectors. */
  --ui-primary: var(--text-primary);
  --ui-primary-strong: #FFFFFF;
  --ui-primary-soft: var(--text-secondary);
  --ui-accent: var(--accent);
  --ui-accent-strong: var(--accent-hover);
  --ui-bg: var(--bg-primary);
  --ui-surface: var(--bg-secondary);
  --ui-surface-soft: var(--bg-tertiary);
  --ui-surface-alt: #222B35;
  --ui-ink: var(--text-primary);
  --ui-ink-soft: var(--text-secondary);
  --ui-muted: var(--text-muted);
  --ui-line: var(--border-medium);
  --ui-line-strong: var(--border-strong);
  --ui-shadow-xs: var(--shadow-subtle);
  --ui-shadow-sm: var(--shadow-subtle);
  --ui-shadow-md: var(--shadow-medium);
  --ui-shadow-lg: var(--shadow-strong);
  --ui-radius-sm: var(--radius-sm);
  --ui-radius-md: var(--radius-md);
  --ui-radius-lg: var(--radius-md);
  --ui-radius-xl: var(--radius-lg);
  --ui-section-space: var(--space-12);
  --ui-grid-gap: var(--space-6);
  --ui-card-padding: var(--space-6);
  --ui-card-gap: var(--space-4);
  --ui-field-gap: var(--space-2);
  --ui-field-height: 44px;
  --ui-table-cell-padding: 12px 14px;
  --ui-table-head-size: 0.74rem;
  --ui-button-height: 42px;
  --ui-button-padding: 0 18px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-primary);
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,106,0,0.05) 0%, rgba(14,17,22,0) 240px),
    var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.rtl {
  direction: rtl;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

p,
h1,
h2,
h3,
h4,
ul,
ol {
  overflow-wrap: anywhere;
}

::selection {
  background: var(--accent);
  color: #11151B;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: var(--ui-section-space) 0;
}

.section-tight {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.section-light,
.section-soft {
  background: #11161D;
  border-block: 1px solid var(--border-subtle);
}

.hero,
.hero-stage,
.hero-page-mini {
  position: relative;
  overflow: hidden;
}

.product-hero-section,
.product-content-pro,
.review-form-pro,
.b2b-fields {
  min-width: 0;
}

.muted,
.summary-note,
.page-head p,
.section-head p,
.content-copy p,
.guide-bullets,
.guide-bullets li,
.simple-list li,
.small {
  color: var(--text-muted);
}

.page-head,
.section-head,
.panel-head,
.compact-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.compact-head,
.section-head.compact-head {
  flex-direction: row;
  justify-content: space-between;
  align-items: end;
}

.section-head-tight {
  margin-bottom: var(--space-4);
}

.page-head h1,
.section-head h1,
.section-head h2,
.panel-head h1,
.panel-head h2,
.panel-head h3,
.hero-stage-copy h1,
.hero-page-mini h1,
.product-summary-clean h1,
.product-summary-pro h1 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-heading);
  line-height: 1.08;
  letter-spacing: 0;
}

.page-head h1,
.section-head h1,
.hero-stage-copy h1,
.hero-page-mini h1,
.product-summary-clean h1,
.product-summary-pro h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  text-wrap: balance;
}

.section-head h2,
.panel-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 850;
}

.panel-head h3 {
  font-size: 1.12rem;
  font-weight: 800;
}

.pill,
.eyebrow,
.promo-pill,
.tag-light,
.asset-chip,
.purchase-assurance-list span,
.cart-reassurance span,
.application-linked-list .tag-light,
.badge,
.brand-badge,
.product-inline-meta span,
.panel-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

.pill,
.eyebrow,
.promo-pill,
.badge,
.brand-badge {
  background: var(--accent);
  color: #11151B;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.pill,
.eyebrow,
.promo-pill,
.tag-light,
.asset-chip,
.badge {
  align-self: flex-start;
}

.tag-light,
.asset-chip,
.purchase-assurance-list span,
.cart-reassurance span,
.application-linked-list .tag-light,
.panel-summary {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
}

.badge-success,
.success {
  --status: var(--success);
}

.badge-warning,
.warning {
  --status: var(--warning);
}

.badge-danger,
.danger,
.badge-error,
.error {
  --status: var(--danger);
}

.badge-info,
.info {
  --status: var(--info);
}

.badge[class*="badge-"],
.notice.success,
.notice.error {
  border-color: color-mix(in srgb, var(--status, var(--border-medium)) 55%, transparent);
}

.btn,
.btn-secondary,
.btn-danger,
.btn-link-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--ui-button-height);
  padding: var(--ui-button-padding);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #11151B;
  box-shadow: 0 10px 22px rgba(255,106,0,0.18), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255,106,0,0.22), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--bg-tertiary);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.36);
  color: #FCA5A5;
}

.btn-danger:hover,
.btn-danger:focus-visible {
  background: rgba(239,68,68,0.18);
  transform: translateY(-1px);
}

.btn-link-inline {
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
}

.btn-small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.84rem;
}

.panel,
.card,
.empty,
.hero-panel-card,
.compact-card,
.help-panel,
.support-card,
.purchase-box-clean,
.purchase-box-pro,
.review-card-clean,
.review,
.video-card-clean,
.summary-box-clean,
.quick-link,
.stat-card,
.summary-item,
.value-chip,
.category-card-clean,
.category-card-solid,
.promo-banner-card,
.confirmation-card-ultra,
.icon-card,
.application-card-pro {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025));
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

.panel,
.card,
.empty,
.hero-panel-card,
.purchase-box-clean,
.purchase-box-pro,
.confirmation-card-ultra {
  padding: var(--ui-card-padding);
}

.panel::before,
.card::before,
.hero-panel-card::before,
.purchase-box-clean::before,
.purchase-box-pro::before,
.summary-box-clean::before,
.promo-banner-card::before,
.confirmation-card-ultra::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  border-radius: inherit inherit 0 0;
  background: linear-gradient(90deg, rgba(255,106,0,0.85), rgba(255,106,0,0.08));
}

.panel:hover,
.card:hover,
.support-card:hover,
.review-card-clean:hover,
.quick-link:hover,
.value-chip:hover,
.product-card-clean:hover,
.product-card-strong:hover,
.category-card-clean:hover,
.application-card-pro:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-1px);
}

.card-body,
.content-copy,
.content-rich-text,
.product-side-stack,
.simple-form,
.expanded-form {
  display: grid;
  gap: var(--ui-card-gap);
}

.content-rich-text p:first-child,
.content-copy p:first-child {
  margin-top: 0;
}

.content-rich-text p:last-child,
.content-copy p:last-child {
  margin-bottom: 0;
}

.empty {
  text-align: center;
  color: var(--text-secondary);
}

.notice {
  margin: var(--space-4) auto 0;
  padding: 14px 16px;
  border-left: 4px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  box-shadow: var(--shadow-subtle);
}

.notice.success {
  --status: var(--success);
}

.notice.error {
  --status: var(--danger);
}

.notice.success,
.notice.error {
  border-left-color: var(--status);
}

.cards-2,
.cards-3,
.cards-4,
.product-grid-clean,
.category-grid-clean,
.review-grid-clean,
.video-grid-clean,
.promo-banner-grid,
.support-strip,
.checkout-grid-clean,
.product-page-clean,
.product-content-grid,
.hero-page-mini-grid,
.hero-stage-grid,
.home-value-strip,
.quick-links-grid,
.footer-grid,
.footer-grid-rich,
.form-grid,
.field-grid-2,
.field-grid-3,
.field-grid-4,
.stats-grid,
.stats-grid-2,
.stats-grid-3,
.stats-grid-4,
.stats-grid-5,
.stats-grid-6,
.category-grid-6,
.confirmation-trust-row,
.admin-settings-nav {
  display: grid;
  gap: var(--ui-grid-gap);
  grid-template-columns: 1fr;
}

.cards-2 > *,
.cards-3 > *,
.cards-4 > *,
.product-grid-clean > *,
.category-grid-clean > *,
.review-grid-clean > *,
.video-grid-clean > *,
.promo-banner-grid > *,
.support-strip > *,
.checkout-grid-clean > *,
.product-page-clean > *,
.product-content-grid > *,
.hero-page-mini-grid > *,
.hero-stage-grid > *,
.home-value-strip > *,
.quick-links-grid > *,
.footer-grid > *,
.footer-grid-rich > *,
.form-grid > *,
.field-grid-2 > *,
.field-grid-3 > *,
.field-grid-4 > *,
.stats-grid > * {
  min-width: 0;
}

.form-grid-catalog,
.field-inline {
  align-items: end;
}

.field,
.simple-form {
  display: grid;
  gap: var(--ui-field-gap);
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.checkout-clean-form label,
.purchase-box-clean label {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select,
.purchase-box-clean input,
.purchase-box-clean select,
.qty-row-clean input,
.checkout-clean-form input,
.checkout-clean-form textarea,
.checkout-clean-form select {
  width: 100%;
  min-height: var(--ui-field-height);
  padding: 11px 12px;
  background: #0F141B;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field textarea,
.checkout-clean-form textarea {
  min-height: 124px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover,
.field select:hover,
.purchase-box-clean input:hover,
.purchase-box-clean select:hover {
  border-color: var(--border-strong);
  background: #111820;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.purchase-box-clean input:focus,
.purchase-box-clean select:focus,
.checkout-clean-form input:focus,
.checkout-clean-form textarea:focus,
.checkout-clean-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.checkbox-row,
.admin-settings-section label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-secondary);
  font-weight: 700;
}

.checkbox-row input,
.admin-settings-section input[type="checkbox"] {
  width: auto;
  min-height: auto;
  accent-color: var(--accent);
}

.form-actions,
.admin-inline-actions,
.admin-topbar-actions,
.admin-form-actions,
.confirmation-actions,
.product-actions,
.product-cta-row,
.product-cta-stack,
.product-share-row,
.hero-actions,
.product-meta-row,
.purchase-assurance-list,
.cart-reassurance,
.footer-cta-stack,
.footer-contact-stack,
.application-linked-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-subtle);
  -webkit-overflow-scrolling: touch;
}

.table,
.clean-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.table thead th,
.clean-table thead th {
  padding: var(--ui-table-cell-padding);
  background: #101720;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: var(--ui-table-head-size);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: left;
}

.table th,
.table td,
.clean-table th,
.clean-table td {
  padding: var(--ui-table-cell-padding);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: top;
  text-align: left;
}

.table tbody tr:hover td,
.clean-table tbody tr:hover td {
  background: rgba(255,255,255,0.035);
  color: var(--text-primary);
}

.site-header,
.site-header.minimal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14,17,22,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-medium);
  box-shadow: 0 10px 28px rgba(0,0,0,0.24);
}

.header-row,
.clean-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 68px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.brand,
.clean-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  color: #11151B;
  font-size: 0.94rem;
  font-weight: 950;
}

.brand strong,
.clean-brand strong {
  display: block;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 900;
}

.brand small,
.clean-brand small {
  display: block;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  cursor: pointer;
}

.main-nav,
.clean-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.92rem;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-tools,
.clean-header-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.clean-cart-link,
.cart-link.clean-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 850;
}

.hero-stage {
  padding: 46px 0 34px;
  background:
    linear-gradient(110deg, rgba(255,106,0,0.10), transparent 38%),
    linear-gradient(180deg, #121820 0%, #0E1116 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-page-mini {
  padding: 42px 0;
  background: #111820;
  border-bottom: 1px solid var(--border-medium);
}

.hero-page-mini.dark-hero-mini,
.clean-footer,
.clean-footer-rich {
  background: #0C1015;
  color: var(--text-primary);
}

.hero-stage-copy,
.hero-stage-media,
.hero-panel-card {
  display: grid;
  gap: var(--space-4);
  max-width: 100%;
  min-width: 0;
}

.hero-stage-copy p,
.hero-page-mini p {
  margin: 0;
  max-width: 64ch;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-stage-media {
  min-height: 316px;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: #0F141B;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-strong);
}

.hero-stage-media img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.home-value-strip {
  align-items: stretch;
}

.value-chip,
.support-card,
.quick-link,
.summary-item,
.icon-card,
.application-card-pro {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
}

.value-chip strong,
.support-card strong,
.quick-link strong,
.summary-item strong,
.stat-card strong,
.icon-card strong,
.application-card-pro strong {
  color: var(--text-primary);
}

.support-card,
.icon-card,
.application-card-pro {
  border-left: 3px solid var(--accent);
}

.promo-banner-card {
  overflow: hidden;
  min-height: 100%;
}

.promo-banner-image {
  aspect-ratio: 4 / 3;
  background: #0F141B;
}

.promo-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-banner-overlay {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6);
  background: rgba(14,17,22,0.94);
}

.promo-banner-overlay h3,
.promo-banner-overlay p {
  margin: 0;
  color: inherit;
}

.promo-banner-overlay h3 {
  font-size: 1.25rem;
  line-height: 1.15;
}

.category-card-clean,
.category-card-solid {
  display: grid;
  gap: var(--space-2);
  min-height: 100%;
  padding: var(--space-4);
}

.category-card-clean strong {
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.25;
}

.category-card-clean span {
  color: var(--text-muted);
  line-height: 1.5;
}

.product-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.product-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.product-card-clean,
.product-card-strong,
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #151A21 0%, #11161D 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card-clean:hover,
.product-card-strong:hover,
.product-card:hover {
  border-color: rgba(255,106,0,0.36);
  box-shadow: 0 16px 38px rgba(0,0,0,0.36), 0 0 0 1px rgba(255,106,0,0.08);
}

.product-card-clean::before,
.product-card-strong::before,
.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 74%);
  z-index: 1;
}

.product-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 216px;
  aspect-ratio: 4 / 3;
  padding: 18px;
  background: #0F141B;
  border-bottom: 1px solid var(--border-subtle);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.product-card-clean:hover .product-card-media img,
.product-card-strong:hover .product-card-media img,
.product-card:hover .product-card-media img {
  transform: scale(1.025);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-3);
  padding: 18px;
}

.product-card-body h3 {
  min-height: 3.1em;
  margin: 0;
  color: var(--text-primary);
  font-size: 1.03rem;
  line-height: 1.3;
  font-weight: 850;
}

.product-card-body p {
  flex: 1;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.product-card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.product-card-footer strong,
.price,
.price-display,
.purchase-box-clean strong,
.checkout-summary-clean strong {
  color: var(--text-primary);
  font-weight: 900;
}

.product-card-footer strong,
.price-display {
  font-size: 1.28rem;
  line-height: 1;
}

.breadcrumb-clean {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-6);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.breadcrumb-clean a,
.breadcrumb-clean strong {
  color: var(--text-secondary);
  font-weight: 750;
}

.product-page-clean,
.product-content-grid {
  align-items: start;
}

.product-gallery-clean,
.product-gallery-pro,
.product-summary-clean,
.product-summary-pro {
  display: grid;
  gap: var(--space-4);
}

.product-main-image,
.product-main-image-pro {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(300px, 48vw, 520px);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: #0F141B;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-medium);
}

.product-main-image img,
.product-main-image-pro img {
  width: 100%;
  height: clamp(260px, 40vw, 500px);
  object-fit: contain;
}

.thumb-grid-clean,
.thumb-grid-pro {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.thumb-clean {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: #0F141B;
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.thumb-clean:hover,
.thumb-clean:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.thumb-clean img {
  width: 100%;
  height: 64px;
  object-fit: contain;
}

.product-quick-assets {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
}

.product-inline-meta-wrap,
.product-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--text-secondary);
}

.purchase-box-clean,
.purchase-box-pro {
  display: grid;
  gap: var(--space-4);
  border-left: 3px solid var(--accent);
}

.price-band-clean {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: end;
  justify-content: space-between;
}

.price-band-note {
  max-width: 32ch;
  font-size: 0.88rem;
}

.qty-row-clean,
.qty-row-pro {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
  align-items: end;
}

.variant-info-clean strong {
  font-size: 1rem;
}

.summary-box-clean {
  display: grid;
  gap: 12px;
  padding: var(--space-4);
}

.summary-box-clean > div,
.summary-row,
.summary-row-tight {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.summary-row.total,
.summary-total-clean {
  border-top: 1px solid var(--border-medium);
  padding-top: var(--space-4);
}

.summary-total-clean {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid rgba(255,106,0,0.32);
}

.summary-total-clean strong {
  font-size: 1.55rem;
}

.stat-card {
  overflow: hidden;
  padding: 18px;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--accent);
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.stat-card small {
  color: var(--text-muted);
}

.checkout-summary-clean {
  display: grid;
  gap: var(--space-4);
  padding: var(--ui-card-padding);
}

.checkout-summary-clean h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.14rem;
}

.checkout-grid-clean,
.cart-pro-grid {
  align-items: start;
}

.checkout-clean-form,
.shipping-panel-pro,
.checkout-summary-clean {
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-subtle);
}

.checkout-clean-form .summary-note,
.summary-note {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border-subtle);
}

.summary-box-clean.summary-box-accent {
  border: 1px solid rgba(255,106,0,0.22);
  background: rgba(255,106,0,0.07);
}

.summary-box-clean.summary-box-accent > div {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.summary-box-clean.summary-box-accent > div:last-child {
  border-bottom: 0;
}

.cart-lines-clean {
  display: grid;
  gap: var(--space-4);
}

.cart-line-clean {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(200px, 236px);
  align-items: start;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

.cart-line-clean::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  border-radius: inherit inherit 0 0;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.cart-line-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  height: 96px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: #0F141B;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.cart-line-media img {
  width: 100%;
  height: 74px;
  object-fit: contain;
}

.cart-line-copy {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.cart-line-copy strong {
  color: var(--text-primary);
  font-size: 1.02rem;
}

.cart-line-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.cart-line-mini span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.cart-line-side {
  display: grid;
  gap: var(--space-2);
  align-content: start;
  padding-left: var(--space-4);
  border-left: 1px solid var(--border-subtle);
}

.cart-line-side label {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.cart-line-side input[type="number"] {
  min-height: 42px;
  text-align: center;
  font-weight: 800;
}

.cart-empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
}

.clean-footer,
.clean-footer-rich,
.site-footer {
  padding: 34px 0;
  background: #0B0E13;
  border-top: 1px solid var(--border-medium);
}

.clean-footer a,
.clean-footer-rich a,
.site-footer a {
  color: inherit;
}

.clean-footer h3,
.clean-footer h4,
.clean-footer-rich h3,
.clean-footer-rich h4 {
  margin: 0 0 12px;
}

.clean-footer p,
.clean-footer li,
.clean-footer-rich p,
.clean-footer-rich li,
.clean-footer-rich small {
  color: var(--text-muted);
}

.clean-footer ul,
.clean-footer-rich ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.simple-list,
.compact-list,
.content-list {
  margin: 0;
  padding-left: 20px;
  overflow-wrap: break-word;
}

.guide-bullets {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.video-embed-clean {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: #0F141B;
  border: 1px solid var(--border-subtle);
}

.video-embed-clean iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.review-card-clean {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
}

.review-card-clean p {
  margin: 0;
  color: var(--text-secondary);
}

.confirmation-card-ultra {
  display: grid;
  gap: var(--space-4);
  max-width: 820px;
  margin-inline: auto;
}

.confirmation-trust-row {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-secondary);
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-22 { margin-bottom: 22px; }
.mb-28 { margin-bottom: 28px; }
.text-center { text-align: center; }
.justify-center { justify-content: center; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.small { font-size: 0.84rem; }
.grid-span-full { grid-column: 1 / -1; }
.panel-spacious { padding: 40px 24px; }
.catalog-count { font-size: 0.9em; }
.th-label-col { width: 32%; }
.name { font-weight: 850; color: var(--text-primary); }
.flex-wrap-gap-8,
.flex-wrap-gap-10 {
  display: flex;
  flex-wrap: wrap;
}
.flex-wrap-gap-8 { gap: 8px; }
.flex-wrap-gap-10 { gap: 10px; }

@media (min-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 40px));
  }

  .cards-2,
  .field-grid-2,
  .checkout-grid-clean,
  .product-page-clean,
  .product-content-grid,
  .review-grid-clean,
  .video-grid-clean,
  .support-strip,
  .footer-grid,
  .footer-grid-rich,
  .home-value-strip,
  .confirmation-trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-3,
  .form-grid,
  .quick-links-grid,
  .admin-settings-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-grid-3,
  .field-grid-4,
  .stats-grid-2,
  .stats-grid-3,
  .stats-grid-4,
  .stats-grid-5,
  .stats-grid-6,
  .category-grid-6,
  .summary-box-clean {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid-catalog {
    grid-template-columns: 1.4fr 1fr auto auto;
  }
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .checkout-grid-clean,
  .cart-pro-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.78fr);
  }

  .hero-page-mini-grid,
  .hero-stage-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  }

  .product-page-clean,
  .product-page-pro {
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  }

  .product-content-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  }

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

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

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

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

  .cards-3,
  .product-grid-clean,
  .review-grid-clean,
  .video-grid-clean,
  .promo-banner-grid,
  .support-strip,
  .home-value-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-4,
  .category-grid-clean,
  .product-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-grid-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .footer-grid,
  .footer-grid-rich {
    grid-template-columns: 1.2fr repeat(3, minmax(0, 0.8fr)) minmax(220px, 0.95fr);
  }
}

@media (max-width: 859px) {
  .main-nav,
  .clean-nav {
    display: none;
    width: 100%;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-medium);
  }

  .main-nav.open,
  .clean-nav.open {
    display: grid;
  }

  .main-nav a {
    min-height: 42px;
    justify-content: flex-start;
  }

  .clean-header-tools,
  .header-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .cart-line-clean {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .cart-line-side {
    grid-column: 1 / -1;
    grid-template-columns: 72px minmax(100px, 116px) minmax(0, 1fr) auto;
    align-items: center;
    padding: var(--space-3) 0 0;
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
  }
}

@media (max-width: 639px) {
  :root {
    --ui-section-space: 36px;
    --ui-grid-gap: 18px;
    --ui-card-padding: 18px;
    --ui-card-gap: 14px;
    --ui-table-cell-padding: 12px 14px;
  }

  body,
  p,
  li,
  td,
  th,
  input,
  select,
  textarea,
  button {
    font-size: 0.95rem;
  }

  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .compact-head,
  .section-head.compact-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-tight {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero-page-mini,
  .hero-stage {
    padding-top: 34px;
  }

  .product-card-media {
    min-height: 190px;
  }

  .product-card-body h3 {
    min-height: 0;
  }

  .product-card-footer,
  .price-band-clean,
  .summary-row,
  .summary-row-tight,
  .summary-total-clean {
    flex-direction: column;
    align-items: stretch;
  }

  .thumb-grid-clean,
  .thumb-grid-pro {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qty-row-clean,
  .qty-row-pro,
  .cart-line-clean,
  .cart-line-mini,
  .cart-line-side {
    grid-template-columns: 1fr;
  }

  .cart-line-clean {
    gap: 14px;
    padding: 14px;
  }

  .cart-line-media {
    width: 100%;
    min-height: 120px;
    height: 120px;
  }

  .cart-line-media img {
    height: 92px;
  }

  .cart-line-side .btn-secondary,
  .checkout-clean-form .btn,
  .shipping-panel-pro .btn,
  .shipping-panel-pro .btn-secondary {
    width: 100%;
  }

  .summary-box-clean,
  .summary-box-clean.summary-box-accent {
    grid-template-columns: 1fr;
  }

  .form-actions,
  .admin-inline-actions,
  .admin-topbar-actions,
  .admin-form-actions {
    width: 100%;
  }

  .form-actions .btn,
  .form-actions .btn-secondary,
  .form-actions .btn-danger,
  .admin-form-actions .btn {
    width: 100%;
  }
}
