/* ================================================
   PAINT BRANDS PLUGIN - Дизайн как на скринах
   ================================================ */

/* Страница списка цветов (скрин 3) */
.paint-colors-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    max-width: 1440px;
    margin: 30px auto;
    padding: 0 20px;
}

.paint-colors-grid .paint-color-card {
    display: block;
    text-decoration: none;
    border: 1px solid #ddd;
    background: #fff;
    transition: all 0.2s;
}

.paint-colors-grid .color-preview {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
}

.paint-colors-grid .color-name {
    padding: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    border-top: 1px solid #ddd;
}

@media (max-width: 1200px) {
    .paint-colors-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 768px) {
    .paint-colors-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ================================================
   СТРАНИЦА ЦВЕТА (скрин 1 - точь-в-точь)
   ================================================ */

.paint-color-page {
    background: #fff;
    width: 100%;
}

.paint-color-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}

/* Хлебные крошки */
.breadcrumbs {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.breadcrumbs a {
    color: #999;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #333;
}

.breadcrumbs .sep {
    margin: 0 8px;
}

/* Заголовок */
.page-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 30px 0;
    font-style: italic;
}

/* Контент: интерьер + инфо */
.color-content {
    display: grid;
    grid-template-columns: 1fr 50%;
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 968px) {
    .color-content {
        grid-template-columns: 1fr;
    }
}

/* Левая колонка: Интерьер */
.color-left {
    width: 100%;
}

.interior-block {
    width: 100%;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    position: relative;
    min-height: 400px;
}

.interior-canvas {
    width: 100%;
    height: auto;
    display: block;
}

.canvas-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
}

.no-interior {
    padding: 100px 20px;
    text-align: center;
    color: #999;
}

/* Правая колонка: Плашка + текст */
.color-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Плашка с цветом */
.color-card {
    border: 1px solid #e0e0e0;
    background: #fff;
}

.color-preview {
    width: 100%;
    height: 150px;
    border-bottom: 1px solid #e0e0e0;
}

.color-info {
    padding: 20px;
}

.color-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.color-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Информационный блок (голубой) */
.color-note {
    background: #d4ebf7;
    padding: 20px;
    border-left: 4px solid #5dade2;
}

.color-note p {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* ================================================
   МАТЕРИАЛЫ / ТОВАРЫ (скрин 1)
   ================================================ */

.materials-section {
    margin-top: 50px;
}

.materials-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    font-style: italic;
}

/* Фильтры */
.materials-filters {
    margin: 20px 0 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-label {
    font-weight: 700;
    font-size: 14px;
    margin-right: 10px;
}

.filter-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0;
}

.filter-btn:hover,
.filter-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Сетка товаров - 4 колонки */
.products-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .products-grid-4col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Карточка товара */
.product-item {
    border: 1px solid #e0e0e0;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-img {
    width: 100%;
    height: 200px;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.no-image {
    color: #ccc;
    font-size: 14px;
}

.product-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    min-height: 38px;
}

.product-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0 0 10px 0;
    flex-grow: 1;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 0 0 15px 0;
}

/* Кнопка внизу карточки */
.product-btn {
    width: 100%;
    padding: 12px;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    margin-top: auto;
}

.product-btn:hover {
    opacity: 0.9;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
}

.page-label {
    font-size: 14px;
    color: #666;
}

.page-num {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-num:hover,
.page-num.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* ================================================
   Адаптивность
   ================================================ */

@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }
    
    .color-content {
        gap: 20px;
    }
    
    .materials-section h2 {
        font-size: 20px;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}
