/**
 * Car Configurator — search (shortcode) + detail page styles.
 */

.cc-page {
  max-width: 100%;
  width: 100%;
}

.cc-configurator {
  --cc-accent: #2b60ff;
  --cc-accent-hover: #1e4fd8;
  --cc-dark: #0a1628;
  --cc-navy-light: rgba(255, 255, 255, 0.06);
  --cc-muted: #64748b;
  --cc-border: #e2e8f0;
  --cc-surface: #ffffff;
  --cc-bg: #f1f5f9;
  --cc-success: #16a34a;
  --cc-radius: 12px;
  --cc-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --cc-container: 1140px;
  --cc-panel-start: #1e4fd8;
  --cc-panel-end: #0ea5e9;
  width: 100%;
  font-family: inherit;
  color: #0f172a;
}

.cc-container {
  width: 100%;
  max-width: var(--cc-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.cc-vehicle-bar .cc-container {
  padding-left: 24px;
  padding-right: 24px;
}

.cc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cc-icon svg {
  display: block;
}

/* ── Shared vehicle bar (search + detail) ── */

.cc-vehicle-bar {
  width: 100%;
  background: transparent;
  border-bottom: 0;
  padding: 24px 0;
  overflow: visible;
}

.cc-configurator--detail .cc-vehicle-bar {
  padding-top: 0;
}

.cc-search-panel {
  background: var(--cc-dark);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 12px 32px rgba(10, 22, 40, 0.35);
}

.cc-search-fields {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  overflow: visible;
}

/* Dark dropdown triggers (search + detail) */

.cc-vehicle-bar .cc-field__label {
  display: none;
}

.cc-vehicle-bar .cc-dropdown__trigger {
  min-height: 62px;
  padding: 10px 40px 10px 12px;
  gap: 10px;
  align-items: flex-start;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #fff;
}

.cc-vehicle-bar .cc-dropdown__trigger:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.28);
}

.cc-vehicle-bar .cc-dropdown.is-open .cc-dropdown__trigger,
.cc-vehicle-bar .cc-dropdown__trigger:focus {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 2px rgba(43, 96, 255, 0.35);
}

.cc-vehicle-bar .cc-step-num {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.8125rem;
}

.cc-vehicle-bar .cc-dropdown__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.cc-vehicle-bar .cc-dropdown__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.cc-vehicle-bar .cc-dropdown__value {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  white-space: normal;
  line-height: 1.35;
}

.cc-vehicle-bar .cc-dropdown__chevron {
  border-color: #fff;
  top: 50%;
}

.cc-vehicle-bar .cc-dropdown.is-disabled .cc-dropdown__trigger {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.cc-vehicle-bar .cc-dropdown.is-disabled .cc-dropdown__value,
.cc-vehicle-bar .cc-dropdown.is-disabled .cc-dropdown__label {
  color: rgba(255, 255, 255, 0.35);
}

/* Legacy aliases kept for compatibility */
.cc-search-panel--detail,
.cc-configurator--detail .cc-search-panel,
.cc-search-panel--search,
.cc-configurator--search .cc-search-panel {
  background: var(--cc-dark);
  padding: 16px;
  box-shadow: 0 12px 32px rgba(10, 22, 40, 0.35);
}

.cc-search-fields--detail,
.cc-configurator--detail .cc-search-fields,
.cc-search-fields--search,
.cc-configurator--search .cc-search-fields {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.cc-field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.cc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cc-field__label--spacer {
  visibility: hidden;
}

/* ── Custom searchable dropdown ── */

.cc-dropdown {
  position: relative;
  min-width: 0;
}

.cc-dropdown.is-disabled .cc-dropdown__trigger {
  opacity: 1;
  cursor: not-allowed;
}

.cc-dropdown__control {
  position: relative;
}

.cc-dropdown__trigger {
  width: 100%;
  min-height: 52px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 1rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cc-dropdown__trigger:hover:not(:disabled) {
  border-color: #94a3b8;
}

.cc-dropdown.is-open .cc-dropdown__trigger,
.cc-dropdown__trigger:focus {
  outline: none;
  border-color: var(--cc-accent);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.cc-dropdown__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-dropdown__chevron {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #475569;
  border-bottom: 2px solid #475569;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.cc-dropdown.is-open .cc-dropdown__chevron {
  transform: translateY(-30%) rotate(-135deg);
}

.cc-dropdown__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.cc-dropdown__panel[hidden] {
  display: none !important;
}

.cc-dropdown__search-wrap {
  padding: 8px;
  border-bottom: 1px solid var(--cc-border);
  background: #f8fafc;
}

.cc-dropdown__search {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--cc-border);
  border-radius: 6px;
  font-size: 0.9375rem;
  font-family: inherit;
  box-sizing: border-box;
}

.cc-dropdown__search:focus {
  outline: none;
  border-color: var(--cc-accent);
  box-shadow: 0 0 0 2px rgba(26, 86, 219, 0.12);
}

.cc-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cc-dropdown__list li[hidden] {
  display: none;
}

.cc-dropdown__option {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 0.9375rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: block;
}

.cc-dropdown__option:hover,
.cc-dropdown__option.is-selected {
  background: #eff6ff;
  color: var(--cc-accent);
}

.cc-dropdown__empty {
  padding: 12px 14px;
  color: var(--cc-muted);
  font-size: 0.875rem;
}

.cc-search-btn {
  width: 100%;
  min-height: 52px;
  min-width: 148px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--cc-dark);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.cc-search-btn:hover {
  background: #1e293b;
}

/* ── Search page (shortcode) ── */

.cc-configurator--search {
  width: 100%;
}

.cc-search-hero {
  width: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 48px 0;
  text-align: center;
  color: #fff;
}

.cc-search-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ── Detail page ── */

.cc-configurator--detail {
  width: 100%;
  background: var(--cc-bg);
  padding: 32px 0 64px;
}

.cc-detail-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cc-detail-wrap + .cc-vehicle-bar {
  margin-top: 0;
}

.cc-detail-wrap:not(:first-child) {
  margin-top: 24px;
}

.cc-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cc-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.cc-detail-back:hover {
  color: var(--cc-accent);
}

.cc-configurator--detail .cc-vehicle-bar {
  border-top: 0;
}

/* ── Active Sound block (reference layout) ── */

.cc-active-sound {
  margin-bottom: 24px;
}

.cc-product-block {
  margin-bottom: 24px;
}

.cc-products--lead {
  margin-bottom: 20px;
}

.cc-active-sound-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px 24px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.cc-active-sound-block__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
}

.cc-active-sound-block__media {
  width: 100%;
  min-height: 200px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--cc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  align-self: stretch;
}

.cc-active-sound-block__media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  display: block;
}

.cc-active-sound-block__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-active-sound-block__head {
  flex: 1;
  min-width: 0;
}

.cc-active-sound-block__badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  background: var(--cc-dark);
  color: #fff;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cc-active-sound-block__title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cc-active-sound-block__price {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 6px;
  min-height: 1.35rem;
  line-height: 1.35;
}

.cc-active-sound-block__price del {
  opacity: 0.65;
  font-size: 1rem;
  font-weight: 500;
  margin-right: 8px;
}

.cc-active-sound-block__availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cc-success);
  font-size: 0.875rem;
  font-weight: 600;
}

.cc-active-sound-block__availability[hidden] {
  display: none !important;
}

.cc-as-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px;
  flex-shrink: 0;
}

.cc-as-tabs__btn {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.cc-as-tabs__btn:hover:not(:disabled) {
  color: var(--cc-accent);
}

.cc-as-tabs__btn.is-active {
  background: var(--cc-accent);
  color: #fff;
}

.cc-as-tabs__btn:disabled,
.cc-as-tabs__btn.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.cc-as-tier-panel[hidden] {
  display: none !important;
}

/* ── Bundle / Set pick cards (reference design) ── */

.cc-tier-picks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.cc-active-sound-block .cc-pick-card,
.cc-active-sound-block .cc-tier-pick {
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
}

.cc-active-sound-block .cc-pick-card__box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.cc-active-sound-block .cc-pick-card.is-selected .cc-pick-card__box {
  box-shadow: inset 0 0 0 2px #fff;
}

.cc-active-sound-block .cc-pick-card__title {
  font-size: 0.9375rem;
}

.cc-active-sound-block .cc-pick-card__subtitle {
  font-size: 0.8125rem;
}

.cc-active-sound-block .cc-pick-card__price {
  font-size: 0.8125rem;
}

.cc-active-sound-block .cc-pick-card__thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.cc-active-sound-block .cc-pick-card__badge {
  top: -8px;
  right: 12px;
  padding: 3px 10px;
  font-size: 0.5625rem;
}

.cc-active-sound-block .cc-pick-cards {
  gap: 8px;
}

.cc-tier-picks .cc-tier-pick {
  margin: 0;
}

.cc-tier-picks .cc-tier-pick.is-disabled {
  opacity: 0.42;
  pointer-events: none;
  filter: grayscale(0.35);
}

.cc-tier-picks .cc-tier-pick.is-unavailable:not(.is-disabled) {
  opacity: 0.55;
  pointer-events: none;
}

.cc-pick-card__price {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
}

.cc-pick-card__price del {
  opacity: 0.65;
  font-weight: 500;
  margin-right: 6px;
}

.cc-active-sound-block__desc {
  margin-bottom: 12px;
  color: var(--cc-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.cc-active-sound-block__desc p {
  margin: 0 0 10px;
}

.cc-active-sound-block__desc p:last-child {
  margin-bottom: 0;
}

.cc-ext-card__price del,
.cc-product-row__price del,
.cc-sidebar__item-price del {
  opacity: 0.65;
  margin-right: 6px;
}

.cc-sidebar__item-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.cc-btn[data-cc-add-bundle] .cc-icon {
  flex-shrink: 0;
}

.cc-tier-variants {
  margin-bottom: 16px;
}

.cc-tier-variants[hidden] {
  display: none !important;
}

.cc-pick-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-pick-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  margin: 0;
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cc-pick-card:hover {
  border-color: #94a3b8;
}

.cc-pick-card.is-selected {
  border: 2px solid var(--cc-accent);
  background: #eef4ff;
  box-shadow: 0 0 0 1px rgba(43, 96, 255, 0.08);
}

.cc-pick-card__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.cc-pick-card__box {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cc-pick-card.is-selected .cc-pick-card__box {
  border-color: var(--cc-accent);
  background: var(--cc-accent);
  box-shadow: inset 0 0 0 3px #fff;
}

.cc-pick-card__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cc-pick-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.cc-pick-card__subtitle {
  font-size: 0.875rem;
  color: var(--cc-muted);
  line-height: 1.4;
}

.cc-pick-card__thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--cc-border);
  flex-shrink: 0;
}

.cc-pick-card__badge {
  position: absolute;
  top: -10px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cc-accent);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cc-as-variants {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  overflow: hidden;
}

.cc-as-variants__item {
  border-bottom: 1px solid var(--cc-border);
}

.cc-as-variants__item:last-child {
  border-bottom: 0;
}

.cc-as-variants__label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  margin: 0;
}

.cc-as-variants__radio {
  flex-shrink: 0;
  accent-color: var(--cc-accent);
}

.cc-as-variants__name {
  flex: 1;
  font-weight: 600;
  font-size: 0.9375rem;
}

.cc-as-variants__price {
  font-weight: 700;
  color: var(--cc-muted);
}

.cc-active-sound-block__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.cc-active-sound-block__actions .cc-btn--block {
  grid-column: 1 / -1;
}

/* ── Optional extensions grid ── */

.cc-extensions {
  margin-top: 0;
}

.cc-active-sound-block .cc-extensions--block-footer {
  width: 100%;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--cc-border);
}

.cc-active-sound-block .cc-extensions--block-footer .cc-extensions__title {
  margin: 0 0 14px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cc-active-sound-block .cc-extensions--block-footer .cc-extensions-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cc-active-sound-block .cc-extensions--block-footer .cc-ext-card__thumb {
  min-height: 100px;
  padding: 12px;
}

.cc-active-sound-block .cc-extensions--block-footer .cc-ext-card__thumb img {
  max-height: 80px;
}

.cc-active-sound-block .cc-extensions--block-footer .cc-ext-card__body {
  padding: 12px 14px 0;
}

.cc-active-sound-block .cc-extensions--block-footer .cc-ext-card__actions {
  padding: 10px 14px 14px;
  gap: 8px;
}

.cc-extensions[hidden] {
  display: none !important;
}

.cc-extensions__title {
  margin: 0 0 16px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cc-extensions__notice {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
}

.cc-extensions__notice[hidden] {
  display: none !important;
}

.cc-extensions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cc-ext-card {
  display: flex;
  flex-direction: column;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cc-ext-card.is-selected {
  border-color: var(--cc-accent);
  box-shadow: 0 0 0 1px var(--cc-accent);
}

.cc-ext-card[hidden] {
  display: none !important;
}

.cc-ext-card__thumb {
  padding: 16px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--cc-border);
}

.cc-ext-card__thumb img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.cc-ext-card__body {
  padding: 14px 16px 0;
  flex: 1;
}

.cc-ext-card__title {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
}

.cc-ext-card__price {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.cc-ext-card__availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cc-success);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.cc-ext-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 16px;
  margin-top: auto;
}

.cc-btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.8125rem;
}

.cc-products--extra {
  margin-top: 24px;
}

.cc-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.cc-detail-main {
  min-width: 0;
}

/* ── Compact product rows ── */

.cc-products {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cc-product-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cc-product-row.is-selected {
  border-color: var(--cc-accent);
  box-shadow: 0 0 0 1px var(--cc-accent);
}

.cc-product-row__thumb {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--cc-border);
}

.cc-product-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cc-product-row__body {
  min-width: 0;
}

.cc-product-row__badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  background: var(--cc-dark);
  color: #fff;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cc-product-row__title {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.cc-product-row__price {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.cc-product-row__availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cc-success);
  font-size: 0.875rem;
  font-weight: 600;
}

.cc-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cc-success);
  flex-shrink: 0;
}

.cc-product-row__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 148px;
}

/* ── Buttons ── */

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cc-btn--ghost {
  background: transparent;
  color: #0f172a;
  border: 1px solid var(--cc-border);
}

.cc-btn--ghost:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.cc-btn--primary {
  background: var(--cc-dark);
  color: #fff;
}

.cc-btn--primary:hover,
.cc-btn--primary.is-selected {
  background: var(--cc-accent);
}

.cc-btn--block {
  width: 100%;
}

/* ── Sidebar ── */

.cc-sidebar {
  position: static;
}

@media (min-width: 1025px) {
  .cc-sidebar {
    position: sticky;
    top: 24px;
  }
}

.cc-sidebar__inner {
  background: var(--cc-dark);
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.28);
}

.cc-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 20px 14px;
}

.cc-sidebar__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.cc-sidebar__count {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 600;
}

.cc-sidebar__items {
  padding: 0 16px 16px;
  min-height: 80px;
}

.cc-sidebar__empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cc-sidebar__item-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--cc-navy-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.cc-sidebar__item-card:last-child {
  margin-bottom: 0;
}

.cc-sidebar__item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-sidebar__item:last-child {
  border-bottom: 0;
}

.cc-sidebar__item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.cc-sidebar__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-sidebar__item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cc-sidebar__item-info strong {
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cc-sidebar__item-info span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.cc-sidebar__remove {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.cc-sidebar__remove span {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 400;
}

.cc-sidebar__remove:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cc-sidebar__footer {
  padding: 18px 20px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-sidebar__subtotal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.cc-sidebar__subtotal-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.cc-sidebar__subtotal-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.cc-sidebar__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cc-sidebar__total-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
}

.cc-sidebar__total-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.cc-sidebar__cart-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--cc-accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease;
}

.cc-sidebar__cart-btn:hover:not(:disabled) {
  background: var(--cc-accent-hover);
}

.cc-sidebar__cart-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cc-sidebar .added_to_cart,
.cc-sidebar a.wc-forward {
  display: none !important;
}

.cc-sidebar__trust {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cc-sidebar__trust li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.cc-sidebar__trust .cc-icon {
  color: var(--cc-accent);
}

/* ── Modal ── */

body.cc-modal-open {
  overflow: hidden;
}

.cc-modal[hidden] {
  display: none !important;
}

.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cc-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(2px);
}

.cc-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--cc-radius);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
}

.cc-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cc-dark);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  box-sizing: border-box;
  transition: background 0.2s ease;
}

.cc-modal__close .cc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.cc-modal__close .cc-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.cc-modal__close:hover {
  background: #334155;
}

.cc-modal__content {
  padding: 28px;
  overflow: auto;
}

.cc-modal__loading {
  padding: 32px 24px;
  text-align: center;
  color: var(--cc-muted);
}

.cc-modal__dialog--compact {
  width: min(400px, calc(100% - 32px));
}

.cc-modal__dialog--compact .cc-modal__content {
  padding: 0;
}

.cc-modal__dialog--compact .cc-modal__close {
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
}

.cc-message-modal--compact {
  padding: 18px 20px 16px;
}

.cc-message-modal--compact .cc-message-modal__title {
  margin: 0 0 8px;
  padding-right: 28px;
  font-size: 1rem;
}

.cc-message-modal--compact .cc-message-modal__body {
  font-size: 0.875rem;
  line-height: 1.5;
}

.cc-message-modal--compact .cc-message-modal__actions {
  margin-top: 14px;
}

.cc-message-modal {
  padding: 28px 28px 24px;
}

.cc-message-modal__title {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.cc-message-modal__body {
  color: #334155;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.cc-message-modal__body p {
  margin: 0;
}

.cc-message-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.cc-modal-product {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
}

.cc-modal-product--content {
  display: block;
  max-width: 720px;
}

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

.cc-modal-product__content {
  line-height: 1.65;
  color: #334155;
  font-size: 0.9375rem;
}

.cc-modal-product__content > :last-child {
  margin-bottom: 0;
}

.cc-modal-product__content img {
  max-width: 100%;
  height: auto;
}

.cc-modal-product__gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-modal-product__main-image {
  background: #f8fafc;
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cc-modal-product__main-image img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.cc-modal-product__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-modal-product__thumb {
  width: 68px;
  height: 68px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: #f8fafc;
  cursor: pointer;
  overflow: hidden;
}

.cc-modal-product__thumb.is-active {
  border-color: var(--cc-accent);
}

.cc-modal-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-modal-product__info {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cc-modal-product__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  background: var(--cc-dark);
  color: #fff;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cc-modal-product__title {
  margin: 0 0 10px;
  padding-right: 48px;
  font-size: 1.375rem;
  line-height: 1.3;
}

.cc-modal-product__price {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.cc-modal-product__availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cc-success);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.cc-modal-product__scroll {
  flex: 1;
  overflow: auto;
  max-height: 280px;
  padding-right: 8px;
  margin-bottom: 20px;
}

.cc-modal-product__excerpt,
.cc-modal-product__description {
  margin-bottom: 16px;
  line-height: 1.65;
  color: #334155;
  font-size: 0.9375rem;
}

.cc-modal-product__description h3 {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.cc-modal-product__attributes table {
  width: 100%;
  border-collapse: collapse;
}

.cc-modal-product__attributes th,
.cc-modal-product__attributes td {
  border-bottom: 1px solid var(--cc-border);
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
  font-size: 0.875rem;
}

.cc-modal-product__attributes th {
  width: 40%;
  color: var(--cc-muted);
  font-weight: 600;
}

.cc-modal-product__actions {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.cc-modal-product__link {
  text-align: center;
  color: var(--cc-accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
}

.cc-empty {
  color: var(--cc-muted);
  padding: 24px;
  text-align: center;
}

/* ── Info modals (Details / Scenes) ── */

.cc-info-modal-wrap {
  max-width: 760px;
}

.cc-info-modal__title {
  margin: 0 0 20px;
  padding-right: 48px;
  font-size: 1.5rem;
  line-height: 1.3;
}

.cc-info-modal__body {
  line-height: 1.65;
  color: #334155;
  font-size: 0.9375rem;
}

.cc-info-modal__body .cc-info-modal h2 {
  margin-top: 0;
}

.cc-info-modal__body .cc-scenes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.cc-info-modal__body .cc-scenes-item {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--cc-border);
  border-radius: 8px;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .cc-detail-layout {
    grid-template-columns: 1fr;
  }

  .cc-detail-main {
    order: 1;
  }

  .cc-sidebar {
    order: 2;
    position: static;
  }
}

@media (max-width: 768px) {
  .cc-container,
  .cc-vehicle-bar .cc-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cc-configurator--detail {
    padding: 24px 0 48px;
  }

  .cc-search-fields {
    grid-template-columns: 1fr;
  }

  .cc-field--action .cc-search-btn {
    width: 100%;
  }

  .cc-search-hero {
    padding: 36px 0;
  }

  .cc-vehicle-bar {
    padding: 20px 0;
  }

  .cc-search-panel {
    padding: 12px;
  }

  .cc-active-sound-block {
    padding: 14px;
  }

  .cc-active-sound-block__main {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cc-active-sound-block__media {
    min-height: 0;
    padding: 14px;
  }

  .cc-active-sound-block__media img {
    max-height: none;
    width: 100%;
  }

  .cc-active-sound-block__title {
    font-size: 1.125rem;
  }

  .cc-active-sound-block__actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cc-active-sound-block__actions .cc-btn--block {
    grid-column: 1 / -1;
  }

  .cc-active-sound-block .cc-extensions--block-footer {
    margin-top: 16px;
    padding-top: 16px;
  }

  .cc-active-sound-block .cc-extensions--block-footer .cc-extensions-grid,
  .cc-extensions-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cc-active-sound-block .cc-extensions--block-footer .cc-ext-card__thumb,
  .cc-ext-card__thumb {
    min-height: 140px;
    padding: 20px 16px;
  }

  .cc-active-sound-block .cc-extensions--block-footer .cc-ext-card__thumb img,
  .cc-ext-card__thumb img {
    max-height: 120px;
  }

  .cc-active-sound-block .cc-extensions--block-footer .cc-ext-card__body,
  .cc-ext-card__body {
    padding: 14px 16px 0;
  }

  .cc-ext-card__title {
    font-size: 0.875rem;
  }

  .cc-ext-card__price {
    font-size: 1.125rem;
    margin-bottom: 8px;
  }

  .cc-ext-card__availability {
    font-size: 0.8125rem;
    margin-bottom: 12px;
  }

  .cc-active-sound-block .cc-extensions--block-footer .cc-ext-card__actions,
  .cc-ext-card__actions {
    flex-direction: column;
    padding: 0 16px 16px;
    gap: 10px;
  }

  .cc-ext-card__actions .cc-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .cc-ext-card__actions .cc-btn--ghost {
    background: #fff;
  }

  .cc-as-tabs {
    width: 100%;
    justify-content: center;
  }

  .cc-search-fields--detail,
  .cc-configurator--detail .cc-search-fields {
    grid-template-columns: 1fr;
  }

  .cc-pick-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .cc-pick-card__thumb {
    grid-column: auto;
    justify-self: end;
  }

  .cc-info-modal__body .cc-scenes-grid {
    grid-template-columns: 1fr;
  }

  .cc-product-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .cc-product-row__thumb {
    width: 72px;
    height: 72px;
  }

  .cc-product-row__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    min-width: 0;
  }

  .cc-product-row__actions .cc-btn {
    flex: 1;
  }

  .cc-modal {
    padding: 12px;
  }

  .cc-modal__content {
    padding: 20px 16px;
  }
}
