/* ==========================================
   ОБЩИЙ КОНТЕЙНЕР
   ========================================== */
.ces-shop-wrapper {
    max-width: 1000px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.ces-shop-main-category {
    margin-bottom: 40px;
}

.ces-shop-main-category > h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #0082c8;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.ces-shop-sub-category {
    margin-bottom: 25px;
}

.ces-shop-sub-category > h3 {
    font-size: 18px;
    font-weight: bold;
    color: #555;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #ccc;
}

/* ==========================================
   СТРОКА ТОВАРА
   ========================================== */
.ces-shop-row-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: box-shadow 0.2s;
    overflow: hidden;
}

.ces-shop-row-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.ces-shop-row-main {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 20px;
}

/* Колонки */
.ces-shop-col-img {
    width: 60px;
    flex-shrink: 0;
}
.ces-shop-col-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.ces-shop-col-name {
    flex: 1;
    font-size: 15px;
    font-weight: bold;
}
.ces-shop-col-name a {
    color: #333;
    text-decoration: none;
}
.ces-shop-col-name a:hover {
    color: #0082c8;
}

.ces-shop-col-price {
    width: 100px;
    text-align: right;
    font-weight: bold;
    color: #0082c8;
    font-size: 16px;
    flex-shrink: 0;
}

.ces-shop-col-btn {
    width: 100px;
    flex-shrink: 0;
    text-align: center;
}

.ces-shop-buy-btn {
    display: inline-block;
    background-color: #2563eb !important; /* Яркий синий (цвет темы) */
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 14px !important;
    transition: background 0.2s;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.ces-shop-buy-btn:hover {
    background-color: #1d4ed8 !important; /* Чуть темнее при наведении */
    color: #ffffff !important;
}

.ces-shop-col-arrow {
    width: 30px;
    text-align: center;
    flex-shrink: 0;
    cursor: pointer;
    color: #888;
    transition: transform 0.2s;
}

.ces-shop-toggle-btn {
    display: inline-block;
    font-size: 16px;
    user-select: none;
}

/* Поворот стрелки при раскрытии */
.ces-shop-row-item.is-open .ces-shop-toggle-btn {
    transform: rotate(180deg);
    color: #0082c8;
}

/* ==========================================
   РАСКРЫВАЮЩИЙСЯ БЛОК
   ========================================== */
.ces-shop-row-expand {
    background: #f9f9f9;
    border-top: 1px solid #eee;
    padding: 0;
}

.ces-shop-expand-inner {
    padding: 20px;
}

.ces-shop-short-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ces-shop-meta-info {
    font-size: 13px;
    color: #777;
    background: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.ces-shop-meta-info p {
    margin: 5px 0;
}
.ces-shop-meta-info strong {
    color: #333;
}

/* ==========================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================== */
@media (max-width: 768px) {
    .ces-shop-row-main {
        flex-wrap: wrap;
        padding: 15px;
        gap: 10px;
    }
    .ces-shop-col-img {
        width: 50px;
    }
    .ces-shop-col-name {
        width: calc(100% - 60px);
        flex: none;
    }
    .ces-shop-col-price {
        width: auto;
        text-align: left;
        flex: 1;
    }
    .ces-shop-col-btn {
        width: auto;
    }
    .ces-shop-buy-btn {
        padding: 8px 15px !important;
    }
}
/* ==========================================
   ХАБ-СТРАНИЦА SHOP (4 КАТЕГОРИИ)
   ========================================== */
/* Стиль для иконки в строке категории */
.ces-shop-col-icon {
    width: 40px;
    flex-shrink: 0;
    text-align: center;
    font-size: 24px;
    line-height: 1;
}

/* Делаем кнопку Select синей (на всякий случай, если стили Buy не применились) */
.ces-category-row .ces-shop-buy-btn {
    background-color: #0082c8 !important;
}
.ces-category-row .ces-shop-buy-btn:hover {
    background-color: #00679e !important;
}

.ces-shop-hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.ces-hub-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.ces-hub-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}

.ces-hub-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1; /* Чтобы кнопки были на одном уровне */
}

.ces-shop-hub-card .ces-shop-buy-btn {
    width: 100%;
    max-width: 180px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .ces-shop-hub-grid {
        grid-template-columns: 1fr; /* По одной карточке в ряд на телефоне */
        gap: 15px;
    }
}