/* Product Detail Page Styles */

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2rem;
}

.product-detail-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

/* Filter Section Styling */
.product-detail-sidebar .catalog-filters {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.product-detail-sidebar .catalog-filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #0b5563;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.product-detail-sidebar .filter-clear {
  background: none;
  border: none;
  color: #0b80a4;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  padding: 0;
}

.product-detail-sidebar .filter-clear:hover {
  color: #0b5563;
}

/* Filter Group Styling */
.product-detail-sidebar .filter-group {
  margin-bottom: 0.75rem;
}

.product-detail-sidebar .filter-group-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 0;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.product-detail-sidebar .filter-group-header:hover {
  color: #0b5563;
}

.product-detail-sidebar .filter-group-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #0b80a4;
  font-weight: bold;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.product-detail-sidebar .filter-group-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 1rem;
  padding-top: 0.5rem;
}

.product-detail-sidebar .filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  cursor: pointer;
  padding: 0.25rem 0;
}

.product-detail-sidebar .filter-checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.product-detail-sidebar .filter-checkbox label {
  cursor: pointer;
  color: #475569;
  flex: 1;
}

.product-detail-sidebar .filter-checkbox:hover label {
  color: #0b5563;
}

/* Related Products Section */
.related-products-section {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.related-products-section h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #0b5563;
  margin: 0 0 1rem;
  letter-spacing: 0.05em;
}

.related-products-grid,
.siblings-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-item.sibling-item {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: white;
}

.product-item.sibling-item:hover {
  border-color: #0b80a4;
  box-shadow: 0 2px 8px rgba(11, 128, 164, 0.1);
  background: #f8fafc;
}

.product-item.sibling-item h4 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: #0b5563;
  line-height: 1.3;
  word-break: break-word;
}

.product-item.sibling-item p {
  font-size: 11px;
  color: #64748b;
  margin: 0;
  line-height: 1.3;
}

.product-item.sibling-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.no-results-message {
  text-align: center;
  padding: 1rem;
  color: #94a3b8;
  font-size: 12px;
  display: none;
}

.no-results-message.show {
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .product-detail-container {
    grid-template-columns: 1fr 250px;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .product-detail-container {
    grid-template-columns: 1fr;
  }

  .product-detail-sidebar {
    max-height: none;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
  }

  .related-products-grid,
  .siblings-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .product-item.sibling-item {
    flex: 0 0 140px;
  }

  .product-detail-sidebar .catalog-filters {
    padding: 0.75rem;
  }

  .product-detail-sidebar .filter-group-content {
    margin-left: 0.75rem;
  }
}

/* Print Styles */
@media print {
  .product-detail-sidebar {
    display: none;
  }

  .product-detail-container {
    grid-template-columns: 1fr;
  }
}
