/**
 * DRD Engineers Category Listing Page CSS
 * Matching Screenshot 2 Design System Reference
 */

.section-gray {
  background-color: #f2f4f5;
  padding-top: 40px;
  padding-bottom: 60px;
}

.category-listing-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 992px) {
  .category-listing-container {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Styles */
.cat-sidebar-card {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e1e3e4;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.sidebar-header {
  border-bottom: 1px solid #e1e3e4;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.sidebar-tag {
  color: #954a00;
  font-size: 13px;
  font-weight: 600;
  display: block;
}

.sidebar-sub {
  font-size: 12px;
  color: #5c5f5e;
  margin: 4px 0 0 0;
}

.sidebar-cat-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-cat-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #191c1d;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.sidebar-cat-item.is-active .sidebar-cat-link,
.sidebar-cat-link:hover {
  background-color: var(--color-primary-container); /* Industrial Orange */
  color: #ffffff !important;
  font-weight: 600;
}

.sidebar-cat-item.is-active .sidebar-cat-link .cat-icon,
.sidebar-cat-link:hover .cat-icon {
  color: #ffffff;
}

.sidebar-cta-card {
  margin-top: 20px;
  background-color: #954a00; /* Deep Orange / Brown */
  color: #ffffff;
  padding: 20px;
  border-radius: 8px;
}

.sidebar-cta-card h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 8px;
}

.sidebar-cta-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.sidebar-download-btn {
  width: 100%;
  text-align: center;
  background-color: #ffffff;
  color: #954a00;
  font-weight: 600;
  border: none;
}

/* Right Main Content Column */
.category-main-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.category-listing-heading {
  margin: 0;
  color: var(--color-on-surface);
}

.product-empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  background-color: #ffffff;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  color: var(--color-secondary);
}

/* Bestseller Featured Product Hero Card */
.bestseller-hero-card {
  background-color: #ffffff;
  border: 1px solid #e1e3e4;
  border-radius: 12px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .bestseller-hero-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

.bestseller-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.badge-bestseller {
  background-color: #954a00;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
}

.model-tag {
  color: #5c5f5e;
  font-size: 13px;
}

.bestseller-title {
  font-size: 32px;
  line-height: 40px;
  color: #191c1d;
  margin-bottom: 12px;
}

.bestseller-desc {
  font-size: 15px;
  line-height: 24px;
  color: #5c5f5e;
  margin-bottom: 24px;
}

.bestseller-specs-row {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
}

.spec-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f8fafb;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid #e1e3e4;
}

.spec-pill svg {
  color: #f4821f;
}

.spec-pill strong {
  display: block;
  font-size: 16px;
  color: #191c1d;
}

.spec-pill span {
  font-size: 12px;
  color: #5c5f5e;
}

.bestseller-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.bestseller-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.bestseller-img-placeholder {
  width: 100%;
  height: 220px;
  background-color: #f2f4f5;
  border: 1px dashed #c1c4c5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5c5f5e;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Product Cards Grid (3 Columns) */
.category-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .category-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .category-product-grid {
    grid-template-columns: 1fr;
  }
}

.cat-prod-card {
  background-color: #ffffff;
  border: 1px solid #e1e3e4;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  color: inherit;
  text-decoration: none;
}

.cat-prod-card:focus-visible {
  outline: 3px solid var(--color-primary-container);
  outline-offset: 3px;
}

.cat-prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.cat-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #954a00;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 2;
}

.cat-card-badge.badge-hot { background-color: #d9381e; }
.cat-card-badge.badge-new { background-color: #00875a; }

.cat-card-image {
  height: 180px;
  background-color: #f8fafb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-card-image .img-placeholder {
  color: #5c5f5e;
  font-family: var(--font-mono);
  font-size: 11px;
}

.cat-card-body {
  padding: 20px;
  flex-grow: 1;
}

.cat-card-title {
  font-size: 18px;
  color: #191c1d;
  margin-bottom: 8px;
}

.cat-card-desc {
  font-size: 13px;
  line-height: 20px;
  color: #5c5f5e;
  margin: 0;
}

.cat-card-footer {
  padding: 14px 20px;
  border-top: 1px solid #f2f4f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
}

.cat-card-spec {
  font-size: 12px;
  color: #5c5f5e;
  font-weight: 500;
}

.cat-card-link {
  font-size: 13px;
  font-weight: 600;
  color: #954a00;
}

/* Custom Filling Solutions Panel (Dark Card) */
.cat-custom-solutions-card {
  background-color: #2e3132;
  color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cat-custom-solutions-card h3 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 12px;
}

.cat-custom-solutions-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

/* Action Cards Row (3 Cards) */
.action-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .action-cards-row {
    grid-template-columns: 1fr;
  }
}

.action-card {
  background-color: #ffffff;
  border: 1px solid #e1e3e4;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--transition-fast);
}

.action-card:hover {
  transform: translateY(-3px);
}

.action-card-icon {
  width: 48px;
  height: 48px;
  background-color: #f8fafb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4821f;
  flex-shrink: 0;
}

.action-card-content h4 {
  font-size: 15px;
  color: #191c1d;
  margin-bottom: 4px;
}

.action-card-content p {
  font-size: 12px;
  color: #5c5f5e;
  margin: 0;
}

/* Bottom Stats Strip */
.category-stats-strip {
  background-color: #ffffff;
  border-top: 1px solid #e1e3e4;
  padding: 40px 0;
  margin-top: 40px;
}

.stats-strip-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .stats-strip-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-icon {
  color: #954a00;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  color: #191c1d;
  font-weight: 700;
}

.stat-label {
  font-size: 13px;
  color: #5c5f5e;
}
