.oc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; margin: 20px 0; }
.oc-card { border: 1px solid #eaeaea; border-radius: 8px; background: #fff; text-decoration: none !important; color: inherit; display: flex; flex-direction: column; transition: 0.2s; overflow: hidden; }
.oc-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.oc-card-img { height: 220px; display: flex; align-items: center; justify-content: center; background: #f9f9f9; padding: 15px; }
.oc-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.oc-card-body { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; text-align: center; }
.oc-card-title { font-size: 16px; font-weight: 600; margin: 0 0 10px; color: #333; }
.oc-price { font-size: 18px; font-weight: 700; color: #222; margin-top: auto; }

/* Single Product */
.oc-single-wrap { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 20px; }
.oc-gallery { flex: 0 0 450px; max-width: 100%; }
.oc-gallery img { border-radius: 8px; width: 100%; border: 1px solid #eee; }
.oc-info { flex: 1; min-width: 300px; }
.oc-price-box { font-size: 28px; font-weight: bold; margin: 20px 0; color: #222; }
.oc-meta-table { width: 100%; border-collapse: collapse; margin-top: 30px; }
.oc-meta-table th, .oc-meta-table td { border-bottom: 1px solid #eee; padding: 12px 0; text-align: left; }
.oc-meta-table th { color: #777; width: 40%; font-weight: normal; }

/* Сетка и лейаут */
.oc-archive-wrapper { display: flex; gap: 30px; margin: 40px 0; font-family: 'Inter', sans-serif; }
.oc-sidebar { width: 280px; flex-shrink: 0; }
.oc-content { flex-grow: 1; }

/* Сетка товаров */
.oc-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.oc-card-product { border: 1px solid #eee; padding: 15px; border-radius: 8px; transition: 0.2s; position: relative; }
.oc-card-product:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.08); border-color: transparent; }
.oc-card-product .oc-img-wrap img { width: 100%; height: auto; object-fit: contain; aspect-ratio: 1/1; margin-bottom: 10px; }
.oc-card-title { font-size: 14px; line-height: 1.4; margin: 0 0 10px; font-weight: 500; min-height: 40px; }
.oc-card-price { font-size: 16px; font-weight: 700; color: #333; }
.oc-order-text { color: #e67e22; font-weight: 600; text-transform: uppercase; font-size: 14px; letter-spacing: 0.5px; }

/* Подкатегории */
.oc-subcategories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; margin-bottom: 30px; }
.oc-card-term { text-align: center; text-decoration: none; color: inherit; }
.oc-card-term .oc-img-wrap { width: 100%; aspect-ratio: 1; background: #f9f9f9; border-radius: 50%; overflow: hidden; margin-bottom: 10px;  display:flex;}
.oc-card-term .oc-img-wrap img {object-fit: contain;object-position: center;}
.oc-card-term h3 { font-size: 14px; margin: 0; }

/* Фильтры */
.oc-filters-form { background: #fcfcfc; padding: 20px; border: 1px solid #eee; border-radius: 8px; }
.oc-filter-group { margin-bottom: 25px; border-bottom: 1px solid #f0f0f0; padding-bottom: 20px; }
.oc-filter-group:last-child { border: 0; }
.oc-filter-title { margin: 0 0 15px; font-size: 16px; font-weight: 600; }

/* Цены инпуты */
.oc-price-inputs { display: flex; align-items: center; gap: 10px; }
.oc-price-inputs input { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.oc-price-inputs .sep { color: #999; }

/* Поиск в фильтрах */
.oc-filter-search { margin-bottom: 10px; position: relative; }
.oc-filter-search-input { width: 100%; padding: 6px 10px; border: 1px solid #e0e0e0; border-radius: 4px; font-size: 13px; background: #fff; }

/* Список чекбоксов */
.oc-filter-list { max-height: 180px; overflow-y: auto; padding-right: 5px; }
.oc-filter-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; font-size: 14px; user-select: none; }
.oc-filter-item:hover { color: #0073aa; }
.oc-term-count { margin-left: auto; font-size: 11px; color: #bbb; background: #f5f5f5; padding: 2px 6px; border-radius: 10px; }

/* Скроллбар кастомный */
.custom-scroll::-webkit-scrollbar { width: 4px; }
.custom-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* Кнопки */
.oc-btn-apply { width: 100%; background: #222; color: #fff; border: 0; padding: 12px; border-radius: 4px; cursor: pointer; font-weight: 600; margin-bottom: 10px; transition: 0.2s; }
.oc-btn-apply:hover { background: #444; }
.oc-btn-reset { display: block; text-align: center; color: #888; text-decoration: none; font-size: 14px; }
.oc-btn-reset:hover { color: #d63031; }

/* Тулбар */
.oc-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 10px 0; border-bottom: 1px solid #eee; }
.oc-result-count { font-size: 14px; color: #666; }
.oc-select { padding: 8px; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; }

/* Пагинация */
.oc-pagination ul { display: flex; gap: 5px; justify-content: center; list-style: none; padding: 0; margin: 40px 0; }
.oc-pagination .page-numbers { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #eee; border-radius: 4px; color: #333; text-decoration: none; font-weight: 600; transition: 0.2s; }
.oc-pagination .page-numbers.current, .oc-pagination .page-numbers:hover { background: #222; color: #fff; border-color: #222; }
.oc-pagination .dots { border: 0; }

/* Адаптив */
@media (max-width: 900px) {
    .oc-archive-wrapper { flex-direction: column; }
    .oc-sidebar { width: 100%; }
    .oc-filters-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .oc-filter-group { border: 0; }
}
@media (max-width: 600px) {
    .oc-filters-form { display: block; }
    .oc-toolbar { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* Стили для формы вариаций, чтобы она не разваливалась */
.variations td {
    display: block;
    padding-bottom: 10px;
}

.variations label {
    font-weight: bold;
}

.variations select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 300px;
}

.single_variation_wrap {
    margin-top: 20px;
}

.woocommerce-variation-price {
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: bold;
}