:root {
  --brand-solid: #067597;
  --brand-light: #e6f4f8;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(6, 117, 151, 0.1);
}

/* layout & typography */
.products-layout { 
  max-width: 1400px; 
  padding-top: 65px;
}
.custom-breadcrumb .breadcrumb-item a { text-decoration: none; color: var(--brand-solid); font-weight: 500; }

/* sidebar design */
.catalog-sidebar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.sidebar-title { font-weight: 800; color: #1a2733; margin-bottom: 20px; font-size: 1.1rem; }
.brand-sidebar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.brand-logo-card {
  height: 60px;
  background: #f9fafb;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: all 0.2s;
}
.brand-logo-card img { max-height: 100%; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.6; }
.brand-logo-card:hover, .brand-logo-card.active {
  border-color: var(--brand-solid);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.brand-logo-card:hover img, .brand-logo-card.active img { filter: grayscale(0); opacity: 1; }

.custom-list .list-group-item {
  border-radius: 10px !important;
  border: 0;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
}
.custom-list .list-group-item.active {
  background: var(--brand-light);
  color: var(--brand-solid);
}

/* product cards in list */
.product-card {
  border: 0;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  background: #fff;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
}
.product-img-wrapper {
  background: #f8fafc;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.product-img-wrapper img { max-height: 180px; object-fit: contain; }
.product-body { padding: 24px; display: flex; flex-direction: column; }
.product-name { font-size: 1.1rem; font-weight: 700; color: #1f2937; margin-bottom: 12px; }
.product-text { font-size: 0.85rem; color: #6b7280; line-height: 1.6; }

.btn-modern-primary {
  border: 1.5px solid var(--brand-solid);
  color: var(--brand-solid);
  border-radius: 50px;
  font-weight: 600;
  padding: 10px 20px;
  transition: 0.3s;
}
.btn-modern-primary:hover {
  background: var(--brand-solid);
  color: #fff;
}

/* Brand header */
.brand-header-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border-left: 6px solid var(--brand-solid);
}
.brand-hero-logo { max-height: 80px; }

/* Product detail page */
.product-detail-card {
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: visible;
  border: 0;
}
.product-visual-zone {
  background: #f8fafc;
  display: flex;
  align-items: flex-start; 
  justify-content: center;
  min-height: 400px;
  padding: 40px;
  position: relative;
}

.product-visual-zone {
  position: relative;
}

.product-main-image {
  position: sticky;
  top: 100px; /* отступ сверху (учитывает navbar) */
}

.product-main-image img {
  width: 100%;
  border-radius: 16px;
}

.product-title-large { font-size: 2.2rem; font-weight: 800; color: #111827; }
.bg-soft-primary { background: var(--brand-light); }
.product-full-description { line-height: 1.8; color: #4b5563; }

.btn-primary-gradient {
  background: linear-gradient(135deg, #067597 0%, #045a74 100%);
  color: #fff;
  border: 0;
  transition: 0.3s;
}
.btn-primary-gradient:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 117, 151, 0.3);
}

/* mobile fixes */
@media (max-width: 991px) {
  .catalog-sidebar { position: static; margin-bottom: 30px; }
  .product-detail-card .row > div:first-child { order: 1; }
  .product-detail-card .row > div:last-child { order: 2; }
}