.product-image-wrapper {
    position: relative;
    padding-top: 100%; /* Соотношение 1:1 */
    overflow: hidden;
    background: #f8f9fa;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.no-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #adb5bd;
    font-size: 3rem;
}

.old-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #28a745;
}

.category-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.container.catalog_main {
    margin: 80px auto 20px;
    background: #0a0a0a;
}

.breadcrumbs {
  margin: 12px 0 20px;
  font-size: 14px;
  color: #666;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "›";           /* или "»" или "/" или "→" */
  margin-right: 8px;
  color: #999;
}

.breadcrumbs a {
  color: #0066cc;          /* подбери под цвет твоих ссылок */
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  color: #004080;
}

.breadcrumbs li[aria-current="page"] {
  color: #333;
  font-weight: 500;
}

/* .header-inner {
    height: 57px;
} */


.card {
    background-color: rgb(21 34 50);
    border: 1px solid rgb(155 155 155)!important;
}

.card-body {
    border-top: 1px solid rgb(45 56 70);
    margin-top: 10px;
}

.category-image-wrapper {
    width: 100%;
    text-align: center;
    min-height: 180px;
}









/*     body {
      background: #0f1217;
      color: #e0e0e0;
      font-family: system-ui, -apple-system, sans-serif;
      padding: 40px 20px;
    }
 */
    .catalog {
      max-width: 1400px;
      margin: 0 auto 30px;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 20px;
    }

    .product-card {
      background: #1a1f27;
      border-radius: 12px;
      overflow: hidden;
      transition: all 0.22s ease;
      position: relative;
      border: 1px solid #2a3340;
    }

    .product-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 16px 32px rgba(0,0,0,0.4);
      border-color: #3a4759;
    }

    .image-container {
      height: 180px;
      background: #11151c;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 7px;
    }

    .image-container img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      transition: transform 0.35s ease;
    }

    .product-card:hover .image-container img {
      transform: scale(1.08);
    }

    .size-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      font-size: 12px;
      font-weight: 600;
      padding: 4px 10px;
      border-radius: 6px;
      color: white;
      z-index: 2;
    }

    .size-badge.green  { background: #22c55e; }
    .size-badge.blue   { background: #3b82f6; }

    .more-btn {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 28px;
      height: 28px;
      background: rgba(0,0,0,0.4);
      border-radius: 50%;
      color: #aaa;
      font-size: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
      z-index: 2;
    }

    .more-btn:hover {
      background: rgba(255,255,255,0.15);
      color: white;
    }

    .info {
      padding: 16px 14px 20px;
/*       text-align: center; */
    }

    .name_cat {
      font-size: 18px;
      font-weight: 700;
      color: #60a5fa;
      margin-bottom: 12px;
    }

    .range {
      font-size: 14px;
      color: #cbd5e1;
      margin-bottom: 8px;
    }

    .pr_data {
      font-size: 13px;
      color: #94a3b8;
      margin-bottom: 4px;
 
    }

    @media (max-width: 480px) {
      .catalog {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
      }
      .image-container {
        height: 160px;
      }
    }





    * { margin:0; padding:0; box-sizing:border-box; }
    body {
      background:#0d1117;
      color:#c9d1d9;
      font-family:system-ui, -apple-system, sans-serif;
      line-height:1.6;
      min-height:100vh;
    }

    .p_header {
      background:#161b22;
      border-bottom:1px solid #30363d;
      padding:20px 0;
    	    margin-top: 40px;
     /*  position:sticky; */ top:0; z-index:10;
    }
    .product-title {
      font-size:28px;
      font-weight:600;
      color:#e6edf3;
      margin-bottom:8px;
    }
    .badges { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
    .badge {
      font-size:13px; font-weight:600;
      padding:6px 14px; border-radius:8px; color:white;
    }
    .badge-green  { background:#238636; }
    .badge-blue   { background:#388bfd; }
    .badge-gray   { background:#444d56; color:#adbac7; }

    .main-section {
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:40px;
      padding:40px 0;
    }
    .gallery {
      display:flex;
      flex-direction:column;
      gap:16px;
    }
    .main-image {
      background:#0d1117;
      border:1px solid #30363d;
      border-radius:12px;
      overflow:hidden;
      height:500px;
      display:flex; align-items:center; justify-content:center;
    }
    .main-image img {
      max-width:95%; max-height:95%; object-fit:contain;
      transition:transform 0.4s;
    }
    .main-image:hover img { transform:scale(1.05); }
    .thumbs {
      display:grid;
      grid-template-columns:repeat(4,1fr);
      gap:12px;
    }
    table{
        width: 100%;
        display: block;
        overflow-x: auto;
    }
    .thumb {
      aspect-ratio:1/1;
      background:#11151c;
      border:1px solid #30363d;
      border-radius:8px;
      overflow:hidden;
      cursor:pointer;
      transition:all 0.2s;
    }
    .thumb img { width:100%; height:100%; object-fit:cover; }
    .thumb:hover, .thumb.active { border-color:#58a6ff; transform:scale(1.04); }

    .info {
      display:flex;
      flex-direction:column;
      gap:32px;
    }
    .price-block {
      background:#161b22;
      border:1px solid #30363d;
      border-radius:12px;
      padding:28px;
    }
    .price {
      font-size:36px;
      font-weight:700;
      color:#58a6ff;
      margin-bottom:12px;
    }
    .price-note { font-size:15px; color:#8b949e; }
    .availability { color:#238636; font-weight:600; margin:12px 0; }

    .description {
      font-size:15px;
      color:#8b949e;
    }
    .description h3 { color:#e6edf3; margin:24px 0 12px; font-size:20px; }

    table.specs, table  {
      width:100%;
      border-collapse:collapse;
      background:#0d1117;
      border:1px solid #30363d;
      border-radius:12px;
      overflow:hidden;
    }
    table.specs th, table.specs td, table th, table td {
      padding:14px 18px;
      text-align:left;
   	  color: #c9d1d9;
      border-bottom:1px solid #30363d;
    }
    table.specs th, table th {
      background:#161b22;
      color:#58a6ff;
      font-weight:600;
      width:40%;
    }
    table.specs tr:last-child td, table tr:last-child td { border-bottom:none; }

    .actions {
      display:flex;
      gap:16px;
      flex-wrap:wrap;
    }
    .btn {
      padding:14px 28px;
      font-size:16px;
      font-weight:600;
      border-radius:8px;
      cursor:pointer;
      transition:all 0.22s;
      border:none;
    }
    .btn-primary {
      background:#388bfd;
      color:white;
    }
    .btn-primary:hover { background:#1f6feb; transform:translateY(-2px); }
    .btn-outline {
      background:transparent;
      border:1px solid #58a6ff;
      color:#58a6ff;
    }
    .btn-outline:hover {
      background:rgba(88,166,255,0.1);
    }

    @media (max-width:992px) {
      .main-section { grid-template-columns:1fr; }
      .main-image { height:420px; }
    }
    @media (max-width:600px) {
      .thumbs { grid-template-columns:repeat(3,1fr); }
      .price { font-size:28px; }
      .actions { flex-direction:column; }
      .btn { width:100%; }
    }






.category-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none; /* Убираем стандартную границу */
    overflow: hidden; /* Чтобы изображение не вылезало за скругленные углы */
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.category-image-wrapper {
    position: relative;
    padding-top: 75%; /* Соотношение сторон 4:3 для единообразия */
    overflow: hidden;
    background: #f8f9fa;
}
.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обрезаем изображение, чтобы оно заполнило контейнер */
    transition: transform 0.3s ease;
}
.category-card:hover .category-image {
    transform: scale(1.05);
}
.no-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #adb5bd;
    font-size: 3rem;
}
.subcategories-list {
    font-size: 0.85rem;
    color: #6c757d;
}
.subcategory-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

