/* === Design tokens === */
:root {
  --color-bg: #0B0C10;
  --color-surface: #141720;
  --color-surface-alt: #1E2230;
  --color-accent: #FFC300;
  --color-accent-hover: #FFD633;
  --color-danger: #F05454;
  --color-success: #1EB980;
  --color-warning: #FF9F1C;
  --color-text: #F5F7FA;
  --color-text-muted: #A0A4B8;
  --color-border: #2B3040;
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --header-height: 80px;
}

/* === Base === */
html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.cct-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.cct-section {
  padding: var(--space-xxl) 0;
}

.cct-section--alt {
  background: var(--color-surface);
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', system-ui, sans-serif;
  margin-top: 0;
}

h1.cct-page-title {
  font-size: 40px;
  margin-bottom: var(--space-md);
}

/* === Header === */
.cct-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 12, 16, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  transition: background 0.25s ease, transform 0.2s ease, height 0.25s ease;
}

.cct-header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cct-header--scrolled .cct-header-inner {
  height: 64px;
}

.cct-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
}

.cct-logo:hover {
  opacity: 0.9;
}

.cct-logo-image {
  max-height: 60px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.cct-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-accent), #FF9F1C);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #141720;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.cct-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: 14px;
}

.cct-nav a {
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 13px;
}

.cct-nav a:hover,
.cct-nav a.cct-nav__link--active {
  color: var(--color-accent);
}

.cct-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cct-lang-switch {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.cct-lang-switch a {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.cct-lang-switch a.cct-lang--active {
  color: var(--color-accent);
}

/* Mobile nav toggle */
.cct-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(20,23,32,0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cct-nav-toggle span,
.cct-nav-toggle span::before,
.cct-nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cct-nav-toggle span::before,
.cct-nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}

.cct-nav-toggle span::before {
  top: -6px;
}

.cct-nav-toggle span::after {
  top: 6px;
}

.cct-nav-toggle--open span {
  transform: rotate(45deg);
}

.cct-nav-toggle--open span::before {
  transform: rotate(-90deg);
  top: 0;
}

.cct-nav-toggle--open span::after {
  opacity: 0;
}

/* Mobile nav panel */
.cct-nav-panel {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 8, 0.97);
  backdrop-filter: blur(18px);
  display: none;
  flex-direction: column;
  padding: var(--space-xl);
  z-index: 40;
}

.cct-nav-panel--open {
  display: flex;
}

.cct-nav-panel__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.cct-nav-panel__links a {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text);
}

.cct-nav-panel__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* === Buttons === */
.cct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.cct-btn--primary {
  background: var(--color-accent);
  color: #141720;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.cct-btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.cct-btn--secondary {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.cct-btn--secondary:hover {
  background: var(--color-accent);
  color: #141720;
}

.cct-btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
}

.cct-btn--ghost:hover {
  color: var(--color-text);
}

/* === Hero (Home) === */
.cct-hero {
  position: relative;
  padding: calc(var(--space-xxl) + 20px) 0 var(--space-xxl);
  overflow: hidden;
}

.cct-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,195,0,0.14), transparent 55%),
              radial-gradient(circle at bottom right, rgba(255,159,28,0.15), transparent 55%);
  pointer-events: none;
}

.cct-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-xxl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.cct-hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.cct-hero-title {
  font-size: 42px;
  margin-bottom: var(--space-md);
}

.cct-hero-subtitle {
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: var(--space-lg);
}

.cct-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.cct-hero-stats {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.cct-hero-stat {
  min-width: 120px;
}

.cct-hero-stat__value {
  font-size: 24px;
  font-weight: 700;
}

.cct-hero-stat__label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

.cct-hero-media {
  position: relative;
  width: 100%;
}

.cct-hero-media-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  min-height: 300px;
}

/* === Machine card === */
.cct-machine-grid {
  display: grid;
  gap: 28px;
}

/* Responsive grid: 4 columns (≥1200px), 3 (≥992px), 2 (≥768px), 1 (<768px) */
/* In catalog: 3 columns (≥1200px) to match home page card sizes */
@media (min-width: 1200px) {
  .cct-machine-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Catalog page: 3 columns per row */
  .cct-catalog-layout .cct-machine-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .cct-machine-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .cct-machine-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .cct-machine-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Brand logo badge on card - in footer, next to price */
.cct-card__brand-badge--footer {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(20, 23, 32, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: none; /* Temporarily hidden - will be improved later */
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  padding: 4px;
  box-sizing: border-box;
}

.cct-card__brand-badge--footer.cct-card__brand-badge--image {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 255, 255, 0.3);
}

.cct-card__brand-badge--footer.cct-card__brand-badge--initials {
  background: rgba(20, 23, 32, 0.95);
  border-color: rgba(255, 255, 255, 0.15);
}

.cct-card__brand-badge--footer.cct-card__brand-badge--image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  margin: 0;
  padding: 0;
}

.cct-card__brand-badge--footer.cct-card__brand-badge--initials span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: transparent;
}

.cct-machine-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cct-machine-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(255,195,0,0.5);
}

/* Brand badge hover effect removed - logo stays visible in footer */

.cct-machine-card__image-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(circle at center, #2b3244, #0b0c10);
  min-height: 200px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

/* Brand badge removed from image wrapper - now in footer */

.cct-machine-card__image-wrapper > div,
.cct-machine-card__image-wrapper .cct-machine-card__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cct-machine-card__image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.cct-machine-card__placeholder {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1d29 0%, #0f1118 100%) !important;
  z-index: 1;
  position: relative;
}

.cct-machine-card__placeholder svg {
  opacity: 0.6;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

/* Logo placeholder in bottom right corner of image placeholder */
.cct-machine-card__placeholder-logo {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(20, 23, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: 7px;
  box-sizing: border-box;
}

.cct-machine-card__placeholder-logo svg {
  width: 100%;
  height: 100%;
  opacity: 0.4;
  color: rgba(255, 255, 255, 0.6);
}

.cct-machine-card:hover .cct-machine-card__image-wrapper img {
  transform: scale(1.04);
}

.cct-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cct-badge--category {
  background: rgba(5,6,8,0.9);
  color: var(--color-text-muted);
}

.cct-badge--availability {
  right: var(--space-sm);
  left: auto;
}

.cct-badge--dealer,
.cct-badge--available,
.cct-badge--dealer {
  background: #FFC300;
  color: #000000;
}

.cct-badge--ordered,
.cct-badge--reserved {
  background: rgba(255,159,28,0.95);
  color: #2b1800;
}

.cct-badge--sold {
  background: rgba(160,160,160,0.9);
  color: #1a1a1a;
}

.cct-machine-card__body {
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.cct-machine-card__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.cct-machine-card__subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
}

.cct-machine-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 12px;
  color: var(--color-text-muted);
}

.cct-machine-card__meta-item strong {
  color: var(--color-text);
}

.cct-machine-card__footer {
  margin-top: auto;
  padding-top: var(--space-md);
}

.cct-machine-card__footer-content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
}

/* Logo placeholder without visual borders - positioned in top-left corner */
.cct-card__brand-badge--placeholder {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border-radius: 8px;
  overflow: visible;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: none;
  padding: 0;
  box-sizing: border-box;
}

.cct-card__brand-badge--placeholder svg {
  width: 24px;
  height: 24px;
  opacity: 0.3;
  color: rgba(255, 255, 255, 0.4);
}

.cct-machine-card__price {
  flex: 1;
  min-width: 0;
}

.cct-machine-card__price-main {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cct-machine-card__price--on-request {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.cct-machine-card__price-secondary {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* === Single machine === */
.cct-machine-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: var(--space-xxl);
}

.cct-machine-media {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cct-machine-summary {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  align-self: flex-start;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-soft);
}

.cct-machine-summary__title {
  font-size: 24px;
  margin-bottom: var(--space-sm);
}

.cct-machine-summary__meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.cct-machine-summary__price-main {
  font-size: 24px;
  font-weight: 700;
}

.cct-machine-summary__price-secondary {
  font-size: 13px;
  color: var(--color-text-muted);
}

.cct-machine-summary__specs {
  margin: var(--space-md) 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm) var(--space-md);
  font-size: 13px;
}

.cct-machine-summary__spec-label {
  color: var(--color-text-muted);
}

.cct-machine-summary__spec-value {
  font-weight: 500;
}

.cct-machine-summary__actions {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Sections under single */
.cct-machine-section {
  margin-top: var(--space-xl);
}

.cct-machine-section__title {
  font-size: 18px;
  margin-bottom: var(--space-md);
}

/* CTA Group in main content area */
.cct-machine-section .cct-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.cct-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cct-specs-table tr:nth-child(odd) {
  background: rgba(255,255,255,0.01);
}

.cct-specs-table th,
.cct-specs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.cct-specs-table th {
  text-align: left;
  width: 30%;
  color: var(--color-text-muted);
}

/* === Forms === */
.cct-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cct-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.cct-field label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.cct-field input,
.cct-field textarea,
.cct-field select {
  background: #0f1118;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 12px;
  color: var(--color-text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cct-field input:focus,
.cct-field textarea:focus,
.cct-field select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(255,195,0,0.5);
}

.cct-field--error input,
.cct-field--error textarea,
.cct-field--error select {
  border-color: var(--color-danger);
}

.cct-field-error {
  font-size: 12px;
  color: var(--color-danger);
}

/* === Alerts === */
.cct-alert {
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
  font-size: 14px;
}

.cct-alert--success {
  background: rgba(30,185,128,0.1);
  border: 1px solid rgba(30,185,128,0.7);
  color: var(--color-success);
}

.cct-alert--error {
  background: rgba(240,84,84,0.1);
  border: 1px solid rgba(240,84,84,0.7);
  color: var(--color-danger);
}

/* === Footer === */
.cct-footer {
  background: #050608;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: var(--space-xxl) 0 var(--space-lg);
  margin-top: var(--space-xxl);
}

.cct-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1.2fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.cct-footer-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.cct-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.cct-footer-links a {
  color: var(--color-text-muted);
  font-size: 14px;
}

.cct-footer-links a:hover {
  color: var(--color-accent);
}

.cct-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* === Scroll reveal === */
.cct-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.cct-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Prose (content) === */
.cct-prose {
  color: var(--color-text);
  line-height: 1.7;
}

.cct-prose p {
  margin-bottom: var(--space-md);
}

.cct-prose h2,
.cct-prose h3,
.cct-prose h4 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.cct-prose ul,
.cct-prose ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.cct-prose li {
  margin-bottom: var(--space-xs);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .cct-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .cct-machine-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cct-footer-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 768px) {
  .cct-header-inner {
    gap: var(--space-md);
  }

  .cct-nav {
    display: none;
  }

  .cct-nav-toggle {
    display: none; /* Hide hamburger menu on mobile */
  }

  /* Reduce CTA button size on mobile */
  .cct-header-right .cct-btn--secondary {
    font-size: 12px;
    padding: 6px 12px;
    min-height: 32px;
  }

  .cct-hero {
    padding-top: calc(var(--space-xl) + var(--space-lg));
  }

  .cct-hero-title {
    font-size: 30px;
  }

  .cct-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cct-hero-stats {
    flex-direction: column;
  }

  .cct-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cct-footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  /* Archive responsive */
  .cct-section > .cct-container > div[style*="grid-template-columns:280px"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .cct-section > .cct-container > div[style*="grid-template-columns:280px"] > aside {
    position: relative !important;
    top: auto !important;
    margin-bottom: var(--space-lg);
  }
}

/* Page header (като на home hero, но по-скромно) */
.cct-page-header {
  margin-bottom: 32px;
}

.cct-page-title {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.2;
  margin: 8px 0 4px;
}

.cct-page-lead {
  max-width: 720px;
  opacity: 0.75;
}

/* Layout: filters + grid */
.cct-catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

/* Filters box */
.cct-catalog-filters {
  position: sticky;
  top: calc(var(--cct-header-height, 72px) + 16px);
  background: radial-gradient(circle at top, rgba(70,106,255,0.12), transparent 55%) #050815;
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(255,255,255,0.06);
}

.cct-filters-title {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 12px;
}

/* Form fields */
.cct-form .cct-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

/* Ensure fields in filter rows are aligned */
.cct-filter-row .cct-field {
  margin-bottom: 0; /* Remove bottom margin when in a row */
}

.cct-form .cct-field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

.cct-form input,
.cct-form select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,8,21,0.9);
  color: #fff;
  padding: 8px 10px;
  font-size: 14px;
  min-height: 38px; /* Ensure consistent height */
  box-sizing: border-box;
}

/* Remove spin buttons from number inputs */
.cct-number-input::-webkit-inner-spin-button,
.cct-number-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cct-number-input[type="number"] {
  -moz-appearance: textfield;
}

.cct-form input::placeholder {
  opacity: 0.45;
}

/* Two-column grid за полета */
.cct-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Buttons в лявата колона */
.cct-filters-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* Results */
.cct-catalog-results__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cct-text-muted {
  font-size: 13px;
  opacity: 0.75;
}

/* Pagination */
.cct-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.cct-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin: 0 4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}

.cct-pagination .page-numbers.current {
  background: linear-gradient(135deg, #4e8cff, #8f5bff);
  border-color: transparent;
}

/* Mobile filters toggle */
.cct-filter-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  width: 100%;
}

.cct-filter-toggle__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 960px) {
  .cct-catalog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .cct-catalog-filters {
    position: static;
    display: none;
    margin-bottom: 4px;
  }

  .cct-catalog-filters.is-open {
    display: block;
  }

  .cct-filter-toggle {
    display: inline-flex;
  }

  .cct-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .cct-machine-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Filter toggle mobile button */
.cct-filter-toggle-mobile {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--color-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cct-filter-toggle-mobile:hover {
  background: var(--color-surface-alt);
  border-color: rgba(255,255,255,0.12);
}

.cct-filter-toggle-mobile .cct-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 960px) {
  .cct-filter-toggle-mobile {
    display: flex;
  }
}

/* Contact page layout */
.cct-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: flex-start;
}

.cct-contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cct-contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cct-contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cct-contact-item strong {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 4px;
}

.cct-contact-item p {
  margin: 0;
  color: var(--color-text);
}

.cct-contact-form-wrapper {
  position: sticky;
  top: calc(var(--header-height, 80px) + 16px);
}

@media (max-width: 960px) {
  .cct-contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cct-contact-form-wrapper {
    position: static;
  }
}

/* Filter row (two columns) */
.cct-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end; /* Align fields to bottom for consistent height */
}

@media (max-width: 640px) {
  .cct-filter-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Catalog header */
.cct-catalog-header {
  margin-bottom: 24px;
}

.cct-catalog-count {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* Empty state */
.cct-empty-state {
  text-align: center;
  padding: 64px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.cct-empty-state__icon {
  margin: 0 auto 24px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  opacity: 0.6;
}

.cct-empty-state__icon svg {
  width: 100%;
  height: 100%;
}

.cct-empty-state__title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--color-text);
  font-family: 'Montserrat', system-ui, sans-serif;
}

.cct-empty-state__message {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cct-empty-state__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .cct-empty-state {
    padding: 48px 20px;
  }
  
  .cct-empty-state__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }
  
  .cct-empty-state__title {
    font-size: 20px;
  }
  
  .cct-empty-state__message {
    font-size: 15px;
  }
  
  .cct-empty-state__actions {
    flex-direction: column;
  }
  
  .cct-empty-state__actions .cct-btn {
    width: 100%;
  }
}

/* Active menu state */
.cct-nav__link--active {
  color: var(--color-accent);
  position: relative;
}

.cct-nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

/* === Focus States (Commit 6 & 7: a11y) === */
.cct-btn:focus,
.cct-form input:focus,
.cct-form select:focus,
.cct-form textarea:focus,
.cct-gallery__main-btn:focus,
.cct-gallery__thumb:focus,
.cct-lightbox__close:focus,
.cct-lightbox__prev:focus,
.cct-lightbox__next:focus,
.cct-contact-bar__btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Machine grid responsive - removed duplicate definition, using main one at line 414 */

/* Breadcrumbs */
/* === Breadcrumbs (Commit 6: spacing) === */
.cct-breadcrumbs {
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .cct-breadcrumbs {
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-8);
  }
}

.cct-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.cct-breadcrumbs__item {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
}

.cct-breadcrumbs__item:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--color-text-muted);
  opacity: 0.5;
}

.cct-breadcrumbs__item a {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.cct-breadcrumbs__item a:hover {
  color: var(--color-accent);
}

.cct-breadcrumbs__item--current span {
  color: var(--color-text);
  font-weight: 500;
}

@media (max-width: 768px) {
  .cct-breadcrumbs {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  
  .cct-breadcrumbs__list {
    font-size: 13px;
  }
}

/* Removed: .cct-machine-summary__actions-mobile - replaced by .cct-contact-bar */

/* === Single Machine Title (Commit 6 & 7) === */
.cct-machine-title {
  margin: var(--space-16) 0 var(--space-24);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .cct-machine-title {
    margin-top: var(--space-12);
    font-size: 24px;
  }
}

/* === Price Bar (Mobile Only) === */
.cct-price-bar {
  display: none; /* Hidden by default (desktop) */
}

.cct-price-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.5;
}

/* Show price bar only on mobile */
@media (max-width: 767px) {
  .cct-price-bar {
    display: block;
    margin-top: 10px;
    margin-bottom: 14px;
  }
}

/* Hide on desktop */
@media (min-width: 768px) {
  .cct-price-bar {
    display: none !important;
  }
}

/* === Single Machine Layout (Commit 6: spacing) === */
.cct-machine-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-32);
  align-items: flex-start;
  margin-top: var(--space-24);
}

.cct-machine-section {
  margin-bottom: var(--space-32);
}

.cct-machine-section__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-16);
  color: var(--color-text);
}

@media (max-width: 1023px) {
  .cct-machine-layout {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }
  
  .cct-machine-section {
    margin-bottom: var(--space-24);
  }
}

/* === Gallery === */
.cct-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* === Gallery (Commit 3) === */
.cct-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--color-surface-alt);
  margin-bottom: var(--space-16);
}

.cct-gallery__main-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cct-gallery__main-btn:hover {
  opacity: 0.9;
}

.cct-gallery__main-btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.cct-gallery__main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Desktop: grid layout */
.cct-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-12);
  padding: var(--space-16) 0;
}

/* Mobile: horizontal scroll with scroll-snap */
@media (max-width: 768px) {
  .cct-gallery__thumbs {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: var(--space-12);
    gap: var(--space-12);
    padding: var(--space-12) 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
    -webkit-overflow-scrolling: touch;
  }
  
  .cct-gallery__thumbs::-webkit-scrollbar {
    height: 6px;
  }
  
  .cct-gallery__thumbs::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .cct-gallery__thumbs::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
  }
}

.cct-gallery__thumb {
  width: 100%;
  aspect-ratio: 1;
  min-width: 160px;
  max-width: 200px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface-alt);
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cct-gallery__thumb {
    scroll-snap-align: start;
    min-width: 120px;
    max-width: 120px;
  }
}

.cct-gallery__thumb:hover {
  opacity: 0.8;
}

.cct-gallery__thumb.is-active {
  border-color: var(--color-accent);
}

.cct-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* === Machine Summary Card === */
.cct-machine-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  align-self: start;
  /* Remove inner scroll - let content flow naturally */
}

/* Desktop: sticky summary */
@media (min-width: 1024px) {
  .cct-machine-summary {
    position: sticky;
    top: calc(var(--header-height, 72px) + var(--space-16));
  }
}

/* Mobile: hide summary card completely - use sticky CTA bar instead (P0) */
@media (max-width: 1023px) {
  .cct-machine-summary {
    display: none;
  }
  
  /* Show mobile CTA bar */
  body.single-machine .cct-contact-bar {
    display: flex;
  }
}

.cct-machine-summary__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
}

.cct-machine-summary__meta {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cct-machine-summary__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cct-machine-summary__price-main {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
}

.cct-machine-summary__price-secondary {
  font-size: 18px;
  color: var(--color-text-muted);
}

.cct-machine-summary__specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cct-machine-summary__spec-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.cct-machine-summary__spec-label {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.cct-machine-summary__spec-value {
  font-size: 14px;
  color: var(--color-text);
  text-align: right;
  flex: 1;
}

.cct-machine-summary__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* === Specs Table (Commit 4) === */
.cct-specs-table-wrapper {
  overflow-x: auto;
  margin-top: var(--space-16);
}

.cct-specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
}

.cct-specs-table tbody tr:nth-child(even) {
  background: var(--color-surface-alt);
}

.cct-specs-table tbody tr:nth-child(odd) {
  background: var(--color-surface);
}

.cct-specs-table th,
.cct-specs-table td {
  padding: var(--space-12) var(--space-16);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

.cct-specs-table th {
  font-weight: 600;
  color: var(--color-text);
  width: 40%;
  min-width: 120px;
}

.cct-specs-table td {
  color: var(--color-text-muted);
  word-wrap: break-word;
  word-break: break-word;
}

.cct-specs-table tbody tr:last-child th,
.cct-specs-table tbody tr:last-child td {
  border-bottom: none;
}

/* Mobile: stack layout */
@media (max-width: 640px) {
  .cct-specs-table-wrapper {
    display: block;
  }
  
  .cct-specs-table {
    display: block;
  }
  
  .cct-specs-table tbody {
    display: block;
  }
  
  .cct-specs-table tr {
    display: block;
    margin-bottom: var(--space-12);
    background: var(--color-surface-alt);
    border-radius: 8px;
    padding: var(--space-12);
    border: 1px solid var(--color-border);
  }
  
  .cct-specs-table th,
  .cct-specs-table td {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
  }
  
  .cct-specs-table th {
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--color-text);
  }
  
  .cct-specs-table td {
    color: var(--color-text-muted);
  }
}

/* Removed: .cct-sticky-cta - replaced by .cct-contact-bar */

@media (max-width: 768px) {
  .cct-gallery__thumb {
    width: 120px;
    height: 120px;
    min-width: 120px;
    max-width: 120px;
  }
  
  .cct-machine-summary {
    padding: var(--space-20);
  }
  
  .cct-machine-summary__title {
    font-size: 20px;
  }
  
  .cct-machine-summary__price-main {
    font-size: 24px;
  }
  
  /* Ensure CTA bar doesn't overlap cookie widget (Commit 6) */
  body.single-machine .cct-contact-bar {
    z-index: 1000;
  }
}

/* === Lightbox (Commit 3 & 7) === */
.cct-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-20);
  backdrop-filter: blur(4px);
}

.cct-lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cct-lightbox__content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.cct-lightbox__close,
.cct-lightbox__prev,
.cct-lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 10001;
}

.cct-lightbox__close:hover,
.cct-lightbox__prev:hover,
.cct-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-accent);
}

.cct-lightbox__close {
  top: 20px;
  right: 20px;
  font-size: 36px;
  line-height: 1;
}

.cct-lightbox__prev {
  left: 20px;
  font-size: 48px;
  line-height: 1;
}

.cct-lightbox__next {
  right: 20px;
  font-size: 48px;
  line-height: 1;
}

@media (max-width: 768px) {
  .cct-lightbox__prev,
  .cct-lightbox__next {
    width: 40px;
    height: 40px;
    font-size: 32px;
  }
  
  .cct-lightbox__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
}

/* === CTA Group === */
.cct-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-top: var(--space-16);
}

.cct-btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}

.cct-btn--icon svg {
  flex-shrink: 0;
}

.cct-btn--outline {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

.cct-btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse, #000);
}

/* === Availability Badge === */
.cct-availability-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-12);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-12);
}

.cct-availability-badge.is-available {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.cct-availability-badge.is-reserved {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.cct-availability-badge.is-sold {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.cct-availability-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* === Mobile Contact Bar (Commit 2) === */
.cct-contact-bar {
  display: none;
}

/* Mobile CTA bar - only on single machine pages, only on mobile */
@media (max-width: 1023px) {
  body.single-machine .cct-contact-bar {
    display: flex;
    gap: var(--space-8);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-radius: 0;
    padding: var(--space-12);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    /* Safe area for iOS - ensure it doesn't overlap cookie widget */
    padding-bottom: calc(var(--space-12) + env(safe-area-inset-bottom));
  }
  
  .cct-contact-bar__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-12);
    background: var(--color-accent);
    color: var(--color-text-inverse, #000);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.1s ease;
    min-height: 48px; /* Ensure tappable size */
  }
  
  .cct-contact-bar__btn:active {
    opacity: 0.8;
    transform: scale(0.98);
  }
  
  .cct-contact-bar__btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
  }
  
  /* Hide CTA group in summary panel on mobile (P0: Remove duplicate CTAs) */
  .cct-machine-summary .cct-cta-group {
    display: none !important;
  }
  
  /* Show CTA group in main content on mobile */
  .cct-machine-section .cct-cta-group {
    display: flex !important;
  }
  
  /* Hide summary card on mobile - show only compact sticky CTA bar */
  .cct-machine-summary {
    display: none !important;
  }
  
  /* Add padding to body to prevent content from being hidden behind contact bar */
  body.single-machine {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
  
  /* P0: Cookie consent banner offset when CTA bar is visible */
  body.single-machine .cc-cookie-consent-banner {
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
  }
  
  /* Adjust if cookie banner is visible */
  body.single-machine.has-cookie-banner {
    padding-bottom: calc(140px + env(safe-area-inset-bottom));
  }
}

/* === Video Wrapper === */
.cct-video-wrapper {
  aspect-ratio: 16/9;
  background: #0f1118;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
}

.cct-video-error {
  padding: var(--space-24);
  color: var(--color-text-muted);
}

.cct-description-placeholder {
  color: var(--color-text-muted);
  font-style: italic;
}

/* === Improved Specs Table === */
.cct-specs-table {
  background: var(--color-surface-alt);
  border-radius: 12px;
  overflow: hidden;
}

.cct-specs-table tbody tr:nth-child(even) {
  background: var(--color-surface-alt);
}

.cct-specs-table tbody tr:nth-child(odd) {
  background: var(--color-surface);
}

@media (max-width: 480px) {
  .cct-specs-table {
    display: block;
  }
  
  .cct-specs-table thead {
    display: none;
  }
  
  .cct-specs-table tbody,
  .cct-specs-table tr,
  .cct-specs-table td {
    display: block;
    width: 100%;
  }
  
  .cct-specs-table tr {
    margin-bottom: var(--space-12);
    background: var(--color-surface-alt);
    border-radius: 8px;
    padding: var(--space-12);
    border: 1px solid var(--color-border);
  }
  
  .cct-specs-table th {
    display: block;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    padding: 0;
    background: transparent;
    border: none;
    width: 100%;
  }
  
  .cct-specs-table td {
    padding: 0;
    border: none;
    background: transparent;
  }
}

/* Removed duplicate - using improved gallery styles above */

/* === Catalog Header === */
.cct-catalog-header {
  margin-bottom: var(--space-24);
}

.cct-catalog-header__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-16);
  margin-bottom: var(--space-16);
  flex-wrap: wrap;
}

.cct-catalog-header__controls {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.cct-catalog-count {
  font-size: 14px;
  color: var(--color-text-muted);
}

.cct-sort-wrapper {
  position: relative;
}

.cct-sort {
  padding: var(--space-8) var(--space-12);
  padding-right: calc(var(--space-12) + 20px);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-8) center;
  background-size: 12px;
}

.cct-sort:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* === Filter Chips === */
.cct-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.cct-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-12);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--color-text);
}

.cct-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.cct-chip__remove:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse, #000);
}

.cct-chip--clear {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
  font-weight: 600;
}

.cct-chip--clear:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse, #000);
}

/* === Off-Canvas Filters Improvements === */
.cct-filter-toggle-mobile {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  width: 100%;
  padding: var(--space-12) var(--space-16);
  margin-bottom: var(--space-16);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cct-filter-toggle-mobile:hover {
  background: var(--color-surface-alt);
}

.cct-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 var(--space-6, 6px);
  background: var(--color-accent);
  color: var(--color-text-inverse, #000);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.cct-filters__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-20);
}

.cct-filters__header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.cct-filters__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.cct-filters__close:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.cct-filters__close svg {
  width: 20px;
  height: 20px;
}

.cct-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.cct-filters__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-top: var(--space-20);
}

/* === Machine Card Improvements === */
.cct-machine-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.cct-machine-card__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface-alt);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.cct-machine-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cct-badge {
  position: absolute;
  top: var(--space-12);
  left: var(--space-12);
  padding: var(--space-4) var(--space-8);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.cct-badge--category {
  background: var(--color-accent);
  color: var(--color-text-inverse, #000);
}

.cct-badge--availability {
  top: auto;
  bottom: var(--space-12);
  right: var(--space-12);
  left: auto;
}

.cct-badge--available,
.cct-badge--dealer {
  background: #FFC300;
  color: #000000;
}

.cct-badge--reserved {
  background: rgba(251, 191, 36, 0.9);
  color: #000;
}

.cct-badge--sold {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
}

.cct-ribbon {
  position: absolute;
  top: var(--space-12);
  right: -30px;
  width: 120px;
  padding: var(--space-4) 0;
  background: var(--color-accent);
  color: var(--color-text-inverse, #000);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(45deg);
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cct-ribbon--ordered,
.cct-ribbon--reserved {
  background: #fbbf24;
}

.cct-ribbon--sold {
  background: #a0a0a0;
  color: #fff;
}

.cct-machine-card__meta-line {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Machine Grid Responsive === */
/* Removed duplicate definition - using main one at line 414 */

/* === Empty State === */
/* Empty state styles are defined above (line ~1407) with full styling */

/* === Contact Page === */
.cct-contact-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-24);
}

.cct-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-20);
  color: var(--color-text);
}

.cct-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
}

.cct-steps-list li {
  counter-increment: step-counter;
  margin-bottom: var(--space-24);
  padding-left: calc(var(--space-24) + var(--space-16));
  position: relative;
}

.cct-steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-24);
  height: var(--space-24);
  background: var(--color-accent);
  color: var(--color-text-inverse, #000);
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
}

.cct-steps-list li strong {
  display: block;
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

.cct-steps-list li p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.cct-contact-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-12);
}

.cct-btn--contact {
  min-height: 48px;
}

.cct-business-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.cct-business-info__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cct-business-info__item strong {
  font-size: 14px;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cct-business-info__item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.cct-business-info__item a {
  color: var(--color-accent);
  text-decoration: none;
}

.cct-business-info__item a:hover {
  text-decoration: underline;
}

/* === Responsive Catalog === */
@media (max-width: 991px) {
  .cct-filter-toggle-mobile {
    display: flex;
  }
  
  .cct-catalog-layout {
    grid-template-columns: 1fr;
  }

  .cct-catalog-filters {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    max-height: 100vh;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  
  .cct-catalog-filters.is-open {
    transform: translateX(0);
  }
  
  .cct-filters__close {
    display: flex;
  }
  
  body.filters-open {
    overflow: hidden;
  }
  
  .cct-catalog-header__top {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cct-catalog-header__controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cct-sort {
    width: 100%;
  }
  
  .cct-contact-layout {
    grid-template-columns: 1fr;
  }
  
  .cct-contact-actions {
    grid-template-columns: 1fr;
  }
}

/* Single Machine Page - Layout adjustments */
.single-machine .cct-machine-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-32);
  align-items: flex-start;
  margin-top: var(--space-24);
}

.single-machine .cct-machine-media {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.single-machine .cct-machine-summary {
  position: sticky;
  top: calc(var(--header-height, 80px) + var(--space-lg));
  align-self: flex-start;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-soft);
  /* Removed max-height and overflow-y to prevent unwanted scrollbar */
}

/* Gallery styles */
.single-machine .cct-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.single-machine .cct-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--color-surface-alt);
  border: 1px solid rgba(255,255,255,0.06);
}

.single-machine .cct-gallery__main-btn {
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: block;
}

.single-machine .cct-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.single-machine .cct-gallery__main-btn:hover img {
  opacity: 0.9;
}

.single-machine .cct-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-sm);
}

.single-machine .cct-gallery__thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--color-surface-alt);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.single-machine .cct-gallery__thumb:hover {
  border-color: var(--color-accent);
}

.single-machine .cct-gallery__thumb.is-active {
  border-color: var(--color-accent);
}

.single-machine .cct-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Specs table */
.single-machine .cct-specs-table-wrapper {
  overflow-x: auto;
}

.single-machine .cct-specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.single-machine .cct-specs-table th,
.single-machine .cct-specs-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
}

.single-machine .cct-specs-table th {
  width: 35%;
  color: var(--color-text-muted);
  font-weight: 600;
}

.single-machine .cct-specs-table tr:last-child th,
.single-machine .cct-specs-table tr:last-child td {
  border-bottom: none;
}

.single-machine .cct-specs-empty {
  color: var(--color-text-muted);
  font-style: italic;
  padding: var(--space-md);
}

/* Summary box styles */
.single-machine .cct-machine-summary__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.single-machine .cct-machine-summary__price {
  margin-bottom: var(--space-md);
}

.single-machine .cct-machine-summary__price-main {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}

.single-machine .cct-machine-summary__price-secondary {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.single-machine .cct-machine-summary__meta {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.single-machine .cct-machine-summary__meta-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  font-size: 14px;
}

.single-machine .cct-machine-summary__meta-item:last-child {
  margin-bottom: 0;
}

.single-machine .cct-machine-summary__meta-label {
  color: var(--color-text-muted);
}

.single-machine .cct-machine-summary__meta-value {
  font-weight: 500;
}

.single-machine .cct-machine-summary__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Mobile layout */
@media (max-width: 1024px) {
  .single-machine .cct-machine-layout {
    grid-template-columns: 1fr;
    gap: var(--space-24);
    display: flex;
    flex-direction: column;
  }
  
  .single-machine .cct-machine-summary {
    position: static;
    max-height: none;
    order: 4; /* Show after gallery, video, specs, description */
  }
  
  .single-machine .cct-machine-media {
    gap: var(--space-24);
    order: 1;
  }
  
  .single-machine .cct-gallery__thumbs {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* Description placeholder */
.cct-description-placeholder {
  color: var(--color-text-muted);
  font-style: italic;
  padding: var(--space-md);
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

