/* Магазин WebCross */

.shop-page {
    padding: 56px 0 80px;
}

.shop-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
}

.shop-title {
    margin: 12px 0 14px;
}

.shop-subtitle {
    color: #5b6b76;
    line-height: 1.7;
}

/* Вкладки типов */
.shop-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.shop-tab {
    display: inline-block;
    padding: 11px 22px;
    border: 1px solid #e3e8ec;
    border-radius: 999px;
    background: #fff;
    color: #5b6b76;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .18s;
}

.shop-tab:hover {
    border-color: #7c5cf0;
    color: #7c5cf0;
}

.shop-tab.is-active {
    background: #7c5cf0;
    border-color: #7c5cf0;
    color: #fff;
}

.shop-count {
    text-align: center;
    color: #8a97a0;
    font-size: 14px;
    margin-bottom: 24px;
}

/* Кнопка "В корзину" на карточках */
.plugin-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #f0f2f4;
}

.shop-buy-btn {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    background: #7c5cf0;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s;
}

.shop-buy-btn:hover {
    background: #6a4de0;
}

.shop-buy-btn:disabled {
    background: #46a758;
    cursor: default;
}

.shop-detail-link {
    color: #7c5cf0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.shop-detail-link:hover {
    text-decoration: underline;
}

/* Карточка: кликабельная обложка */
a.plugin-card-image {
    display: block;
}

/* Корзина */
.shop-cart {
    max-width: 920px;
    margin: 0 auto;
}

.shop-cart-empty {
    text-align: center;
    padding: 70px 20px;
    color: #8a97a0;
}

.shop-cart-empty .h4 {
    font-weight: 700;
    color: #1f2937;
}

/* Шапка корзины */
.shop-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.shop-cart-head-title {
    font-size: 22px;
    font-weight: 800;
    color: #1f2937;
}

.shop-cart-head-count {
    font-size: 13px;
    color: #8a97a0;
}

/* список */
.shop-cart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: box-shadow .18s ease, border-color .18s ease;
}

.shop-cart-item:hover {
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
    border-color: #d4dbe2;
}

.shop-cart-item-img {
    width: 76px;
    height: 58px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f2f4f7;
    border: 1px solid #eef1f4;
}

.shop-cart-item-info {
    flex: 1;
    min-width: 0;
}

.shop-cart-item-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
    line-height: 1.35;
}

.shop-cart-item-type {
    font-size: 13px;
    color: #8a97a0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.shop-cart-item-price {
    font-weight: 800;
    color: #1f2937;
    white-space: nowrap;
    font-size: 16px;
}

.shop-cart-item-qty {
    color: #6b7683;
    font-size: 13px;
}

.shop-cart-remove {
    border: none;
    background: none;
    color: #e5484d;
    cursor: pointer;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}

.shop-cart-remove:hover {
    background: #fdecec;
    color: #c93a3f;
}

/* Итог */
.shop-cart-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding: 20px 4px 4px;
    border-top: 1px solid #e8edf1;
}

.shop-cart-total {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-cart-total-label {
    font-size: 13px;
    color: #8a97a0;
}

.shop-cart-total-value {
    font-size: 26px;
    font-weight: 800;
    color: #1f2937;
}

.shop-checkout-btn {
    border: none;
    border-radius: 11px;
    padding: 14px 32px;
    background: #7c5cf0;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(124, 92, 240, 0.25);
    transition: background .15s, transform .15s, box-shadow .15s;
}

.shop-checkout-btn:hover {
    background: #6a4de0;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(124, 92, 240, 0.3);
    color: #fff;
}

.shop-checkout-btn:disabled {
    background: #c5bfe8;
    cursor: default;
    box-shadow: none;
    transform: none;
}

@media (max-width: 575.98px) {
    .shop-cart-item {
        flex-wrap: wrap;
    }
    .shop-cart-item-price {
        margin-left: auto;
    }
    .shop-cart-foot {
        flex-direction: column;
        align-items: stretch;
    }
    .shop-checkout-btn {
        justify-content: center;
    }
}