/*
 * DonCen Unified Storefront Pages Bundle (Sitereal Design System)
 * Covers: Search, Compare, Specials, Brands, Sitemap, GDPR, 404, Checkout Failure, Maintenance, Status pages.
 * Consumes tokens.css exclusively — zero :root token duplication.
 */

.dc-page {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding: var(--space-l) var(--site-padding) var(--section-space-m);
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: var(--text-s);
  line-height: var(--text-line-height);
}

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

.dc-page :where(a) {
  color: var(--link-color);
  text-decoration: none;
}

.dc-page :where(a:hover) {
  color: var(--link-color-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Shared page header */
.dc-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-s) var(--space-l);
  margin-bottom: var(--space-l);
  padding-bottom: var(--space-m);
  border-bottom: 1px solid var(--border-subtle);
}

.dc-page-head__title {
  margin: 0;
  color: var(--heading-color);
  font: 700 var(--h1)/1.2 var(--font-heading);
  letter-spacing: -0.02em;
  text-wrap: var(--heading-text-wrap);
}

.dc-page-head__sub {
  margin: var(--space-xs) 0 0;
  color: var(--text-muted);
  font-size: var(--text-s);
}

.dc-page-head__meta {
  color: var(--text-muted);
  font-size: var(--text-s);
  font-weight: 600;
}

/* Shared Sitereal buttons */
.dc-page .dc-btn,
.dc-status-shell .dc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  font-family: var(--btn-font-family);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--btn-transition);
}

.dc-page .dc-btn:hover,
.dc-status-shell .dc-btn:hover {
  text-decoration: none;
}

.dc-page .dc-btn--lg,
.dc-status-shell .dc-btn--lg {
  min-height: var(--btn-height);
  padding: 0 24px;
}

.dc-page .dc-btn--sm,
.dc-status-shell .dc-btn--sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.dc-page .dc-btn--primary,
.dc-status-shell .dc-btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.dc-page .dc-btn--primary:hover,
.dc-status-shell .dc-btn--primary:hover {
  background: var(--primary-300);
  border-color: var(--primary-300);
  color: var(--white);
}

.dc-page .dc-btn--secondary,
.dc-status-shell .dc-btn--secondary {
  background: var(--surface);
  border-color: var(--border-light);
  color: var(--text-color);
}

.dc-page .dc-btn--secondary:hover,
.dc-status-shell .dc-btn--secondary:hover {
  background: var(--surface-muted);
  border-color: var(--border-dark);
  color: var(--heading-color);
}

.dc-page .dc-btn--danger-ghost,
.dc-status-shell .dc-btn--danger-ghost {
  background: var(--surface);
  border-color: var(--border-subtle);
  color: var(--danger-text);
}

.dc-page .dc-btn--danger-ghost:hover,
.dc-status-shell .dc-btn--danger-ghost:hover {
  background: var(--danger-surface);
  border-color: var(--danger);
  color: var(--danger-text);
}

.dc-page .dc-btn--icon {
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text-secondary);
}

.dc-page .dc-btn--icon:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-100);
}

/* Alerts */
.dc-alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-s);
  margin-bottom: var(--space-l);
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  font-size: var(--text-s);
}

.dc-alert--success {
  border-color: #bbf7d0;
  background: var(--success-surface);
  color: var(--success-text);
}

.dc-alert--warning {
  border-color: #fde68a;
  background: var(--warning-surface);
  color: var(--warning-text);
}

.dc-alert--danger {
  border-color: #fecaca;
  background: var(--danger-surface);
  color: var(--danger-text);
}

/* ==========================================================================
 * 1. Centered Status / 404 / Failure / Maintenance / GDPR Shell
 * ========================================================================== */
.dc-status-shell {
  min-height: clamp(460px, 60vh, 680px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--site-padding) var(--section-space-m);
  background: var(--surface-subtle);
}

.dc-status-container {
  width: 100%;
  max-width: 580px;
  margin-inline: auto;
}

.dc-status-container--wide {
  max-width: 680px;
}

.dc-status-card {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  text-align: center;
}

.dc-status-card__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-s);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dc-status-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-m);
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success-text);
}

.dc-status-card__icon--info {
  background: var(--primary-100);
  color: var(--primary);
}

.dc-status-card__icon--danger {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.dc-status-card__icon--warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.dc-status-card h1 {
  margin: 0 0 var(--space-s);
  color: var(--heading-color);
  font: 700 var(--h2)/1.25 var(--font-heading);
  letter-spacing: -0.02em;
}

.dc-status-card__body {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.dc-status-card__body p {
  margin: 0 0 12px;
}

.dc-status-card__body p:last-child {
  margin-bottom: 0;
}

.dc-status-card__body ul,
.dc-status-card__body ol {
  display: inline-block;
  text-align: left;
  margin: 0 auto 14px;
  padding-left: 1.25rem;
}

.dc-status-card__body li {
  margin-bottom: 4px;
}

.dc-status-card__body a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dc-status-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

/* 404 inline search + quick categories */
.dc-404-search {
  display: flex;
  gap: var(--space-xs);
  margin: var(--space-l) auto 0;
  max-width: 460px;
}

.dc-404-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: var(--text-s);
}

.dc-404-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

.dc-quick-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-m);
}

.dc-quick-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.dc-quick-pill:hover {
  border-color: var(--primary);
  background: var(--primary-100);
  color: var(--primary);
  text-decoration: none;
}

/* Maintenance standalone card header */
.dc-maint-brand {
  margin-bottom: var(--space-l);
  text-align: center;
}

.dc-maint-brand img {
  height: 36px;
  width: auto;
}

/* ==========================================================================
 * 2. Search Controls, Toolbar & Product Grid
 * ========================================================================== */
.dc-search-panel {
  margin-bottom: var(--space-l);
  padding: var(--space-l);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  background: var(--surface-subtle);
}

.dc-search-panel__row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
  gap: var(--space-s);
  align-items: end;
}

.dc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dc-field label {
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
}

.dc-input,
.dc-select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: var(--text-s);
}

.dc-input:focus,
.dc-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

.dc-search-panel__checks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) var(--space-l);
  margin-top: var(--space-m);
}

.dc-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
}

.dc-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* Toolbar */
.dc-listing-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s) var(--space-m);
  margin-bottom: var(--space-l);
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  background: var(--surface);
}

.dc-listing-toolbar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-m);
}

.dc-listing-toolbar__count {
  color: var(--text-muted);
  font-size: 13px;
}

.dc-listing-toolbar__compare {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
}

.dc-listing-toolbar__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s);
}

.dc-toolbar-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dc-toolbar-select label {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.dc-toolbar-select select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text-color);
  font-size: 13px;
}

/* Product Grid & Unified Product Thumb Card */
.dc-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-m);
}

.dc-product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.dc-product-card:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-s);
}

.dc-product-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: var(--space-m);
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.dc-product-card__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.dc-product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: var(--space-m);
  gap: var(--space-xs);
}

.dc-product-card__title {
  margin: 0;
  font: 700 15px/1.35 var(--font-heading);
  color: var(--heading-color);
}

.dc-product-card__title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dc-product-card__title a:hover {
  color: var(--primary);
}

.dc-product-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dc-product-card__price {
  margin: auto 0 0;
  padding-top: var(--space-xs);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}

.dc-product-card__price-now {
  color: var(--heading-color);
  font: 700 18px/1.2 var(--font-heading);
}

.dc-product-card__price-old {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: line-through;
}

.dc-product-card__price-tax {
  flex: 0 0 100%;
  color: var(--text-muted);
  font-size: 12px;
}

.dc-product-card__actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-s);
  padding-top: var(--space-s);
  border-top: 1px solid var(--border-subtle);
}

.dc-product-card__actions .dc-btn--primary {
  flex: 1 1 auto;
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

/* Pagination Bar */
.dc-pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid var(--border-subtle);
}

.dc-pagination-bar .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dc-pagination-bar .page-link,
.dc-pagination-bar .pagination li a,
.dc-pagination-bar .pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.dc-pagination-bar .page-item.active .page-link,
.dc-pagination-bar .pagination li.active span {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.dc-pagination-bar__results {
  color: var(--text-muted);
  font-size: 13px;
}

/* Empty State */
.dc-empty-state {
  padding: var(--space-xxl) var(--space-l);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-xl);
  background: var(--surface-subtle);
  text-align: center;
}

.dc-empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-m);
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.dc-empty-state h2 {
  margin: 0 0 var(--space-xs);
  color: var(--heading-color);
  font: 700 var(--h3)/1.3 var(--font-heading);
}

.dc-empty-state p {
  margin: 0 auto;
  max-width: 480px;
  color: var(--text-muted);
}

.dc-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

/* ==========================================================================
 * 3. Product Comparison Table (modern-web-guidance: responsive-table)
 * ========================================================================== */
.dc-compare-region {
  position: relative;
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.dc-compare-region:focus-visible {
  outline: var(--focus-width) var(--focus-style) var(--focus-color);
  outline-offset: 2px;
}

.dc-compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.dc-compare-table th,
.dc-compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  vertical-align: top;
  text-align: left;
  background: var(--surface);
}

.dc-compare-table tr > :last-child {
  border-right: 0;
}

.dc-compare-table tbody:last-of-type tr:last-child th,
.dc-compare-table tbody:last-of-type tr:last-child td {
  border-bottom: 0;
}

.dc-compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-subtle);
  border-bottom: 2px solid var(--border-light);
}

.dc-compare-table th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 180px;
  min-width: 150px;
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
}

.dc-compare-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
}

.dc-compare-group-row th {
  background: var(--neutral-100);
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dc-compare-head-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  min-width: 190px;
}

.dc-compare-head-card__img {
  width: 112px;
  height: 84px;
  padding: 6px;
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dc-compare-head-card__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.dc-compare-head-card__name {
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.dc-compare-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dc-compare-actions .dc-btn {
  width: 100%;
}

/* ==========================================================================
 * 4. Brands Directory (manufacturer_list)
 * ========================================================================== */
.dc-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-l);
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  background: var(--surface-subtle);
}

.dc-alpha-nav__label {
  margin-right: 4px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
}

.dc-alpha-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
}

.dc-alpha-nav a:hover {
  border-color: var(--primary);
  background: var(--primary-100);
  color: var(--primary);
  text-decoration: none;
}

.dc-brand-group {
  margin-bottom: var(--space-xl);
}

.dc-brand-group__heading {
  margin: 0 0 var(--space-s);
  color: var(--heading-color);
  font: 700 var(--h3)/1.2 var(--font-heading);
}

.dc-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: var(--space-s);
}

.dc-brand-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-weight: 700;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.dc-brand-card:hover {
  border-color: var(--primary);
  background: var(--primary-100);
  color: var(--primary);
  text-decoration: none;
}

/* ==========================================================================
 * 5. HTML Sitemap
 * ========================================================================== */
.dc-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-l);
  align-items: start;
}

.dc-sitemap-card {
  padding: var(--space-l);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.dc-sitemap-card h2 {
  margin: 0 0 var(--space-m);
  padding-bottom: var(--space-s);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--heading-color);
  font: 700 18px/1.3 var(--font-heading);
}

.dc-sitemap-tree,
.dc-sitemap-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dc-sitemap-tree > li {
  margin-bottom: 10px;
}

.dc-sitemap-tree > li > a {
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
}

.dc-sitemap-tree ul {
  margin-top: 6px;
  padding-left: 16px;
  border-left: 2px solid var(--border-subtle);
}

.dc-sitemap-tree ul li {
  margin-bottom: 6px;
}

.dc-sitemap-tree ul a {
  color: var(--text-secondary);
  font-size: 13.5px;
}

.dc-sitemap-tree a:hover {
  color: var(--primary);
}

/* ==========================================================================
 * 6. GDPR Data Rights Form
 * ========================================================================== */
.dc-gdpr-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  text-align: left;
}

.dc-gdpr-card__head {
  margin-bottom: var(--space-l);
}

.dc-gdpr-card__head h1 {
  margin: 0 0 var(--space-xs);
  color: var(--heading-color);
  font: 700 var(--h2)/1.25 var(--font-heading);
}

.dc-gdpr-card__head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.dc-gdpr-card fieldset {
  margin: 0 0 var(--space-l);
  padding: 0;
  border: 0;
}

.dc-gdpr-card legend {
  margin-bottom: var(--space-s);
  color: var(--heading-color);
  font: 700 15px/1.3 var(--font-heading);
}

.dc-radio-stack {
  display: grid;
  gap: var(--space-s);
}

.dc-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  background: var(--surface-subtle);
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.dc-radio-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-100);
}

.dc-radio-card input[type="radio"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.dc-radio-card__title {
  display: block;
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
}

.dc-radio-card__desc {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 13px;
}

.dc-gdpr-warning {
  margin-top: var(--space-m);
  padding: 14px 16px;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-m);
  background: var(--warning-surface);
  color: var(--warning-text);
  font-size: 13.5px;
}

.dc-gdpr-warning ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.dc-gdpr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding-top: var(--space-m);
  border-top: 1px solid var(--border-subtle);
}

.dc-invalid-feedback {
  display: none;
  margin-top: 6px;
  color: var(--danger-text);
  font-size: 13px;
  font-weight: 600;
}

.dc-invalid-feedback.d-block {
  display: block;
}

/* ==========================================================================
 * 7. Responsive Breakpoints
 * ========================================================================== */
@media (max-width: 1199px) {
  .dc-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .dc-search-panel__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .dc-search-panel__row > .dc-btn {
    grid-column: 1 / -1;
  }
  .dc-sitemap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .dc-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-s);
  }
  .dc-search-panel__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .dc-sitemap-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dc-404-search {
    flex-direction: column;
  }
  .dc-404-search input {
    flex: none;
    width: 100%;
  }
  .dc-compare-table th[scope="row"],
  .dc-compare-table thead th:first-child {
    width: 120px;
    min-width: 120px;
    padding: 12px 10px;
  }
  .dc-compare-table td {
    padding: 12px;
  }
  .dc-listing-toolbar {
    padding: 12px;
  }
  .dc-listing-toolbar__controls {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 479px) {
  .dc-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
