/**
 * Производители и Бренды PRO (company_catalog 2): storefront styles
 * Author: timofeev.code
 */

:root {
  --cc-primary: #0066cc;
  --cc-primary-hover: #0052a3;
  --cc-verified: #10b981;
  --cc-star: #f59e0b;
  --cc-star-empty: #d1d5db;
  --cc-bg-card: #ffffff;
  --cc-bg-pill: #f1f5f9;
  --cc-text-main: #0f172a;
  --cc-text-muted: #64748b;
  --cc-text-sub: #475569;
  --cc-border: #e2e8f0;
  --cc-radius-sm: 8px;
  --cc-radius-md: 12px;
  --cc-radius-lg: 16px;
  --cc-radius-xl: 20px;
  --cc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --cc-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --cc-shadow-hover: 0 10px 25px -4px rgba(0, 0, 0, 0.1);
  --cc-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cc-container {
  font-family: var(--cc-font);
  color: var(--cc-text-main);
  margin-bottom: 50px;
}

/* --- Catalog Grid Page --- */
.cc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.cc-grid.cc-grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cc-grid.cc-grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

/* 4-column compact styling */
.cc-grid-cols-4 .cc-card {
  padding: 18px;
}
.cc-grid-cols-4 .cc-card-title {
  font-size: 16px;
}
.cc-grid-cols-4 .cc-card-desc {
  font-size: 13px;
  -webkit-line-clamp: 2;
  min-height: 40px;
}

/* Responsive Grid */
@media (max-width: 1199px) {
  .cc-grid.cc-grid-cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .cc-grid.cc-grid-cols-4,
  .cc-grid.cc-grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .cc-grid.cc-grid-cols-4,
  .cc-grid.cc-grid-cols-3,
  .cc-grid.cc-grid-cols-2,
  .cc-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.cc-card {
  background: var(--cc-bg-card);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-md);
  padding: 24px;
  box-shadow: var(--cc-shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  text-decoration: none;
}

.cc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cc-shadow-hover);
  border-color: #cbd5e1;
}

.cc-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.cc-card-logo-wrap {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: var(--cc-radius-md);
  border: 1px solid #f1f5f9;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.cc-card-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cc-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cc-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--cc-text-main);
  margin: 0;
  line-height: 1.3;
}

.cc-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #10b981 !important;
  font-size: 16px;
}

.cc-card-desc {
  font-size: 14px;
  color: var(--cc-text-sub);
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 65px;
}

.cc-card-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--cc-primary);
  font-weight: 500;
  margin-bottom: 12px;
}

.cc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-top: auto;
}

.cc-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--cc-star);
  font-size: 15px;
}

.cc-stars .cc-star-empty {
  color: var(--cc-star-empty);
}

.cc-card-reviews {
  margin-left: 6px;
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
}

.cc-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--cc-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.cc-card:hover .cc-card-link {
  color: var(--cc-primary-hover);
  transform: translateX(3px);
}

/* --- Company Detail Header (Hero Banner) --- */
.cc-hero-wrap {
  position: relative;
  border-radius: var(--cc-radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  background: #ffffff;
  border: 1px solid var(--cc-border);
}

.cc-hero-banner {
  width: 100%;
  max-height: 350px;
  aspect-ratio: 1200 / 350;
  position: relative;
  background-color: #f8fafc;
  overflow: hidden;
}

.cc-hero-banner-placeholder {
  min-height: 220px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  position: relative;
  overflow: hidden;
}

.cc-hero-banner-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  opacity: 0.8;
}

.cc-hero-banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 600px) {
  .cc-hero-rating-link {
    font-size: 10px !important;
  }
}

.cc-hero-rating-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--cc-primary);
  text-decoration: none;
  cursor: pointer;
}

.cc-hero-content {
  padding: 0 32px 28px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cc-hero-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -50px;
  flex-wrap: wrap;
  gap: 20px;
}

.cc-hero-logo-box {
  width: 100px;
  height: 100px;
  border-radius: var(--cc-radius-lg);
  background: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.cc-hero-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cc-primary);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--cc-radius-sm);
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: none;
  cursor: pointer;
}

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

.cc-hero-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.cc-hero-h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--cc-text-main);
  margin: 0;
  letter-spacing: -0.5px;
}

.cc-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.cc-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--cc-bg-pill);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cc-text-sub);
  letter-spacing: -0.1px;
}

.cc-hero-summary {
  font-size: 15px;
  color: var(--cc-text-sub);
  line-height: 1.6;
  max-width: 900px;
  margin-top: 6px;
}

/* --- Two-Column Layout --- */
.cc-layout-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.cc-layout-main {
  flex: 1 1 68%;
  min-width: 0;
}

.cc-layout-side {
  flex: 0 0 320px;
  position: sticky;
  top: 24px;
}

@media (max-width: 991px) {
  .cc-layout-row {
    flex-direction: column;
  }
  .cc-layout-side {
    width: 100%;
    flex: 1 1 100%;
    position: static;
  }
}

/* --- Tabs Navigation & Panes --- */
.cc-tabs-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cc-tabs-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cc-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 2px 14px 2px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 15px;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
  box-shadow: none;
}

.cc-tab-btn:hover {
  color: #0f172a;
  background: transparent;
}

.cc-tab-btn.active {
  background: transparent;
  color: var(--cc-primary);
  border-bottom-color: var(--cc-primary);
  font-weight: 600;
  box-shadow: none;
}

.cc-tab-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 7px;
  border-radius: 9999px;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1;
}

.cc-tab-btn.active .cc-tab-counter {
  background: #f1f5f9;
  color: var(--cc-primary);
}

.cc-tab-pane {
  display: none;
  background: #ffffff;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  animation: ccFadeIn 0.25s ease-out;
}

.cc-tab-pane.active {
  display: block;
}

/* Products without an outer frame: cards start flush with the tabs (setting "Frame around products") */
.cc-tab-pane.cc-tab-pane--flat {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

@keyframes ccFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.cc-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--cc-text-main);
  margin: 0;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
}

/* --- Overview Content --- */
.cc-overview-content {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
}

.cc-overview-content h2, .cc-overview-content h3 {
  color: var(--cc-text-main);
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
}

.cc-overview-content ul {
  list-style: none;
  padding-left: 0;
}

.cc-overview-content li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.cc-overview-content li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--cc-primary);
  font-size: 14px;
}

/* --- Video Tab: grid / list / media grid --- */
.cc-videos-heading {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
}

.cc-videos {
  --cc-video-cols: 2;
  display: grid;
  grid-template-columns: repeat(var(--cc-video-cols), minmax(0, 1fr));
  gap: 20px;
}

.cc-videos--single {
  grid-template-columns: minmax(0, 1fr);
}

.cc-video {
  min-width: 0;
}

.cc-video__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--cc-radius-md);
  background: #111827;
  isolation: isolate;
}

.cc-video__media iframe,
.cc-video__media video,
.cc-video__poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cc-video__media video {
  background: #000;
}

.cc-video__poster {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #172033, #263854);
  color: #fff;
  cursor: pointer;
}

.cc-video__poster::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background: rgba(9, 18, 31, .18);
  transition: background-color .25s ease;
}

.cc-video__image {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s cubic-bezier(.2, .75, .25, 1);
}

.cc-video__play {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(15, 23, 42, .58);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
  transition: transform .25s ease, background-color .25s ease;
}

.cc-video__play::before {
  content: "";
  margin-left: 5px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

.cc-video__poster:hover::after,
.cc-video__poster:focus-visible::after {
  background: rgba(9, 18, 31, .06);
}

.cc-video__poster:hover .cc-video__image,
.cc-video__poster:focus-visible .cc-video__image {
  transform: scale(1.035);
}

.cc-video__poster:hover .cc-video__play,
.cc-video__poster:focus-visible .cc-video__play {
  transform: scale(1.08);
  background: var(--cc-primary);
}

.cc-video__poster:focus-visible {
  outline: 3px solid rgba(59, 130, 246, .7);
  outline-offset: -3px;
}

.cc-video__poster--empty {
  background: linear-gradient(135deg, #eef3fb, #dce6f5);
}

.cc-video__poster--empty::after {
  background: transparent;
}

.cc-video__poster--empty .cc-video__play {
  border-color: #dce5f2;
  background: #fff;
  box-shadow: 0 3px 12px rgba(40, 70, 110, .1);
}

.cc-video__poster--empty .cc-video__play::before {
  border-left-color: var(--cc-primary);
}

.cc-video__poster--empty:hover .cc-video__play::before,
.cc-video__poster--empty:focus-visible .cc-video__play::before {
  border-left-color: #fff;
}

.cc-video__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

.cc-video__body {
  padding: 10px 2px 0;
}

.cc-video__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--cc-text-main);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cc-video__provider {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

/* List: cover on the left, text on the right */
.cc-videos--list {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.cc-videos--list .cc-video {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.cc-videos--list .cc-video__body {
  padding: 0;
}

.cc-videos--list .cc-video__title {
  font-size: 17px;
  -webkit-line-clamp: 3;
}

/* Media grid: the first video large, the rest as tiles with captions on the image */
.cc-videos--media {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}

.cc-videos--media .cc-video {
  position: relative;
}

.cc-videos--media .cc-video--first {
  grid-column: span 2;
  grid-row: span 2;
}

.cc-videos--media .cc-video--first .cc-video__media {
  height: 100%;
  aspect-ratio: auto;
  min-height: 100%;
}

.cc-videos--media.cc-videos--single .cc-video--first {
  grid-column: 1 / -1;
}

.cc-videos--media.cc-videos--single .cc-video--first .cc-video__media {
  aspect-ratio: 16 / 9;
}

.cc-videos--media .cc-video__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 28px 12px 10px;
  border-radius: 0 0 var(--cc-radius-md) var(--cc-radius-md);
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.cc-videos--media .cc-video__title {
  color: #fff;
  font-size: 13px;
}

.cc-videos--media .cc-video--first .cc-video__title {
  font-size: 17px;
}

.cc-videos--media .cc-video__provider {
  color: rgba(255, 255, 255, .75);
}

.cc-videos--media .cc-video.is-playing .cc-video__body {
  display: none;
}

/* A started video in the list or a small media tile opens to the full width */
.cc-videos--list .cc-video.is-playing {
  grid-template-columns: minmax(0, 1fr);
}

.cc-videos--media .cc-video.is-playing {
  grid-column: 1 / -1;
  grid-row: auto;
}

.cc-videos--media .cc-video.is-playing .cc-video__media {
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Two videos in a media grid: two equal tiles */
.cc-videos--media.cc-videos--n2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cc-videos--media.cc-videos--n2 .cc-video--first {
  grid-column: auto;
  grid-row: auto;
}

.cc-videos--media.cc-videos--n2 .cc-video--first .cc-video__media {
  aspect-ratio: 16 / 9;
}

@media (max-width: 991px) {
  .cc-videos--cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cc-videos--media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .cc-videos,
  .cc-videos--media {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .cc-videos--media .cc-video--first {
    grid-column: auto;
    grid-row: auto;
  }

  .cc-videos--media .cc-video--first .cc-video__media {
    aspect-ratio: 16 / 9;
  }

  .cc-videos--list .cc-video {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .cc-video__play {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-video__image,
  .cc-video__play {
    transition: none;
  }
}

/* --- Products Tab --- */

.cc-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cc-products-grid.cc-prod-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cc-products-grid.cc-prod-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cc-products-grid.cc-prod-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1199px) {
  .cc-products-grid.cc-prod-cols-4 {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 991px) {
  .cc-products-grid.cc-prod-cols-4,
  .cc-products-grid.cc-prod-cols-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .cc-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .cc-products-grid.cc-prod-cols-m-1 {
    grid-template-columns: 1fr;
  }
  .cc-products-grid.cc-prod-cols-m-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cc-product-card {
  background: #ffffff;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-md);
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .cc-product-card {
    padding: 10px;
  }
  .cc-product-title {
    font-size: 13px !important;
  }
  .cc-product-desc {
    font-size: 11px !important;
  }
  .cc-product-price-special,
  .cc-product-price-regular {
    font-size: 14px !important;
  }
}

.cc-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--cc-shadow-md);
}

.cc-product-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--cc-radius-sm);
  margin-bottom: 12px;
  background: #f8fafc;
}

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

.cc-product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cc-product-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--cc-primary);
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.cc-product-title a {
  color: var(--cc-text-main);
  text-decoration: none;
  transition: color 0.15s ease;
}

.cc-product-title a:hover {
  color: var(--cc-primary);
}

/* --- Product Meta Information (Model, SKU, Stock, Attributes) --- */
.cc-product-meta-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.cc-product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  line-height: 1.4;
}

.cc-meta-lbl {
  color: var(--cc-text-muted);
  font-weight: 500;
  font-size: 11px;
}

.cc-meta-val {
  color: var(--cc-text-main);
  font-weight: 600;
  font-size: 12px;
}

.cc-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 9999px;
}

.cc-stock-badge.in-stock {
  background: #ecfdf5;
  color: #059669;
}

.cc-stock-badge.out-of-stock {
  background: #fff1f2;
  color: #e11d48;
}

.cc-stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.cc-product-attrs-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #e2e8f0;
}

.cc-product-attr-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 11px;
  color: #475569;
}

.cc-attr-name {
  color: var(--cc-text-muted);
  font-weight: 500;
}

.cc-attr-val {
  color: var(--cc-text-main);
  font-weight: 600;
  text-align: right;
  max-width: 65%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.cc-product-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.cc-product-price-special {
  font-size: 17px;
  font-weight: 800;
  color: #16a34a;
  letter-spacing: -0.3px;
}

.cc-product-price-old {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: line-through;
}

.cc-product-price-regular {
  font-size: 16px;
  font-weight: 700;
  color: var(--cc-text-main);
}

.cc-product-action-wrap {
  margin-top: 12px;
}

.cc-btn-product-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-primary);
  background: #f1f5f9;
  border-radius: var(--cc-radius-sm);
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.cc-btn-product-details:hover {
  background: var(--cc-primary);
  color: #ffffff !important;
}

/* --- Reviews Tab --- */
.cc-reviews-score-card {
  display: flex;
  background: #f8fafc;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-md);
  padding: 24px;
  margin-bottom: 24px;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.cc-score-left {
  display: flex;
  align-items: center;
  gap: 16px;
  border-right: 1px solid #e2e8f0;
  padding-right: 32px;
}

.cc-big-score {
  font-size: 38px;
  font-weight: 800;
  color: var(--cc-text-main);
  line-height: 1;
}

.cc-score-stars-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cc-score-ratings-count {
  font-size: 13px;
  color: var(--cc-text-muted);
}

.cc-score-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-score-right-title {
  font-size: 15px;
  font-weight: 700;
}

.cc-score-right-sub {
  font-size: 13px;
  color: var(--cc-text-muted);
}

.cc-interactive-stars {
  display: inline-flex;
  gap: 4px;
  font-size: 20px;
  cursor: pointer;
}

.cc-interactive-stars .fa-star {
  color: var(--cc-star-empty);
  transition: color 0.15s ease;
}

.cc-interactive-stars .fa-star.active,
.cc-interactive-stars .fa-star:hover {
  color: var(--cc-star);
}

.cc-reviews-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cc-reviews-toolbar h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.cc-review-form-wrap {
  display: none;
  background: #ffffff;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-md);
  padding: 24px;
  margin-bottom: 28px;
}

.cc-review-empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--cc-text-muted);
  font-size: 15px;
}

.cc-review-card {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  padding: 20px 0;
}

.cc-review-card:last-child {
  border-bottom: none;
}

.cc-review-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cc-review-author {
  font-weight: 700;
  font-size: 15px;
}

.cc-review-date {
  font-size: 13px;
  color: var(--cc-text-muted);
}

.cc-review-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--cc-text-sub);
}

/* --- Right Information Sidebar --- */
.cc-side-card {
  background: #ffffff;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-lg);
  padding: 24px;
  box-shadow: var(--cc-shadow-sm);
}

.cc-side-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--cc-primary);
  margin-top: 0;
  margin-bottom: 20px;
}

.cc-side-item {
  margin-bottom: 16px;
}

.cc-side-label {
  font-size: 12px;
  color: var(--cc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.cc-side-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--cc-text-main);
  line-height: 1.4;
}

.cc-side-link {
  color: var(--cc-primary);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.cc-side-link:hover {
  color: var(--cc-primary-hover);
  text-decoration: underline;
}

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

.cc-schedule-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.cc-schedule-days {
  color: var(--cc-text-muted);
}

.cc-schedule-hours {
  font-weight: 600;
  color: var(--cc-text-main);
}

.cc-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.cc-social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--cc-radius-sm);
  border: 1px solid var(--cc-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: #f8fafc;
}

.cc-social-btn:hover {
  background: var(--cc-primary) !important;
  border-color: var(--cc-primary) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cc-social-btn:hover i {
  color: #ffffff !important;
}

/* Card social links in catalog */
.cc-card-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.cc-card-social-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--cc-radius-sm, 6px);
  border: 1px solid var(--cc-border, #e2e8f0);
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc-card-social-btn:hover {
  background: var(--cc-primary, #2f7ed8) !important;
  border-color: var(--cc-primary, #2f7ed8) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.cc-card-social-btn:hover i {
  color: #ffffff !important;
}

.cc-side-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 18px 0;
}

.cc-side-section .cc-side-item:last-child {
  margin-bottom: 0;
}

.cc-actual-date {
  font-size: 12px;
  color: var(--cc-text-muted);
}

.cc-actual-date strong {
  color: var(--cc-text-main);
}

/* --- Category Filter Chips (Modern Clean Style) --- */
.cc-category-filter-wrap {
  margin: 16px 0 20px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.cc-category-filter-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cc-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cc-cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none !important;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.cc-cat-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.cc-cat-chip.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.cc-cat-chip .cc-cat-count {
  margin-left: 6px;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  font-weight: 500;
}

.cc-cat-chip.active .cc-cat-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* --- Card Category Badges --- */
.cc-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px 0;
}

.cc-card-cat-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Special Promo Price Sticker */
.cc-product-special-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
  z-index: 2;
}

/* Brand Products Pagination */
.cc-pagination-row {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--cc-line, #e2e8f0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  text-align: center;
}

.cc-pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.cc-pagination-row .pagination {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
}

.cc-pagination-row .pagination > li > a,
.cc-pagination-row .pagination > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--cc-line, #e2e8f0);
  background: #ffffff;
  color: var(--cc-ink, #0f172a);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cc-pagination-row .pagination > li > a:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--cc-primary, #0f172a);
}

.cc-pagination-row .pagination > .active > span,
.cc-pagination-row .pagination > .active > a,
.cc-pagination-row .pagination > li.active > span,
.cc-pagination-row .pagination > li.active > a,
.cc-pagination-row .pagination > .active > span:hover,
.cc-pagination-row .pagination > .active > a:hover,
.cc-pagination-row .pagination > li.active > span:hover,
.cc-pagination-row .pagination > li.active > a:hover,
.cc-pagination-row .pagination > .active > span:focus,
.cc-pagination-row .pagination > .active > a:focus,
.cc-pagination-row .pagination > li.active > span:focus,
.cc-pagination-row .pagination > li.active > a:focus {
  background: var(--cc-primary, #0f172a) !important;
  background-color: var(--cc-primary, #0f172a) !important;
  border-color: var(--cc-primary, #0f172a) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.cc-pagination-row .cc-results-wrap {
  font-size: 13px;
  color: var(--cc-ink3, #64748b);
  text-align: center;
  width: 100%;
}

/* --- Favourite brands: the heart on the cards and at the brand name (the shape of the social buttons) --- */
.cc-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm);
  background: #f8fafc;
  color: #475569;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.cc-fav:hover,
.cc-fav.is-on {
  border-color: #fecaca;
  color: #ef4444;
}

.cc-fav.is-on {
  background: #fff1f2;
}

.cc-fav:active {
  transform: scale(.92);
}

.cc-fav:focus-visible {
  outline: 2px solid var(--cc-primary);
  outline-offset: 2px;
}

/* On the card: at the right end of the logo + name row */
.cc-fav--card {
  margin-left: auto;
}

.cc-fav--hero {
  margin-left: 4px;
}

/* --- Advantages of the brand: under the directions, a green check each --- */
.cc-advantages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.cc-advantages li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.cc-advantages .fa-check {
  color: #10b981;
  font-size: 12px;
}
