/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Oct 16 2026 | 13:24:35 */
/* =========================================================
   Shop-Ping — Structured Catalog
   ========================================================= */

.shop-catalog {
    width: 100%;
    max-width: none;
    margin: 0 0 50px;
    padding: 0 16px;
    box-sizing: border-box;
}

/* ---------- Main grid ---------- */

.shop-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

/* ---------- Top category card ---------- */

.shop-catalog-card {
    background: #3d5368;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: none;
    color: #fff;
}

/* Text inside catalog cards */

.shop-catalog-card .shop-catalog-title,
.shop-catalog-card .shop-catalog-title a,
.shop-catalog-card .shop-catalog-link,
.shop-catalog-card .shop-catalog-name {
    color: #fff;
}

.shop-catalog-card .shop-catalog-title {
    border-bottom-color: rgba(255, 255, 255, 0.22);
}

.shop-catalog-card .shop-catalog-count {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.shop-catalog-card .shop-catalog-toggle,
.shop-catalog-card .shop-catalog-toggle-placeholder {
    color: #fff;
}

.shop-catalog-card .shop-catalog-view-all {
    color: #fff;
}

.shop-catalog-card a:hover,
.shop-catalog-card .shop-catalog-link:hover .shop-catalog-name {
    color: #dbe9ff;
}


.shop-catalog-card-content {
    padding: 16px 18px 18px;
}


/* ---------- Category image ---------- */

.shop-catalog-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 170px;
    padding: 10px;

    box-sizing: border-box;
    overflow: hidden;
}

.shop-catalog-image img {
    display: block;

    width: 150px;
    height: 150px;
    max-width: 100%;

    object-fit: contain;
    transition: transform 0.25s ease;
}

.shop-catalog-image:hover img {
    transform: scale(1.03);
}

/* ---------- Top category title ---------- */

.shop-catalog-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin: 0 0 16px;
    padding-bottom: 12px;

    font-size: 26px;
    line-height: 1.2;

    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.shop-catalog-title a {
    color: inherit;
    text-decoration: none;
}

.shop-catalog-title a:hover {
    color: var(--theme-link-hover-color, #2872fa);
}


/* ---------- Product counts ---------- */

.shop-catalog-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 25px;
    height: 25px;
    padding: 0 7px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    border-radius: 20px;
    background: rgba(0, 0, 0, 0.06);
    color: #59636e;
}


/* ---------- Category tree ---------- */

.shop-catalog-level {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-catalog-level .shop-catalog-level {
    margin: 5px 0 7px 17px;
    padding-left: 14px;
    border-left: 1px solid rgba(0, 0, 0, 0.10);
}

.shop-catalog-item {
    margin: 0;
    padding: 0;
}

.shop-catalog-link {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 5px 0;

    color: inherit;
    text-decoration: none;
    line-height: 1.35;
}

.shop-catalog-link:hover .shop-catalog-name {
    color: var(--theme-link-hover-color, #2872fa);
}

.shop-catalog-level-1 > .shop-catalog-item > .shop-catalog-link {
    font-size: 16px;
    font-weight: 600;
}

.shop-catalog-level-2 .shop-catalog-link {
    font-size: 14px;
}

.shop-catalog-level-3 .shop-catalog-link,
.shop-catalog-level-4 .shop-catalog-link {
    font-size: 13px;
}


/* Little arrow for categories */

.shop-catalog-link::before {
    content: "›";
    flex: 0 0 auto;
    opacity: 0.55;
}

.shop-catalog-name {
    transition: color 0.15s ease;
}


/* ---------- View all ---------- */

.shop-catalog-view-all {
    display: inline-block;
    margin-top: 17px;

    font-weight: 600;
    text-decoration: none;
}

/* =========================================================
   Expand / Collapse
   ========================================================= */

.shop-catalog-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.shop-catalog-row .shop-catalog-link {
    flex: 1;
}

.shop-catalog-toggle,
.shop-catalog-toggle-placeholder {
    width: 22px;
    min-width: 22px;
    height: 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    font-size: 16px;
    line-height: 1;

    color: inherit;
}

.shop-catalog-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: 0.65;
}

.shop-catalog-toggle:hover {
    opacity: 1;
}

.shop-catalog-toggle-placeholder {
    opacity: 0.45;
}

/* We now provide the arrow separately */
.shop-catalog-row .shop-catalog-link::before {
    display: none;
}

.shop-catalog-children.is-collapsed {
    display: none;
}

/* =========================================================
   Catalog card height & internal scrolling
   ========================================================= */

/*
 * Верх карточек находится ниже header + заголовка "Каталог".
 * Карточка занимает оставшуюся высоту viewport.
 */
.shop-catalog-card {
    min-height: 390px;
    height: auto;
    max-height: calc(100dvh - 300px);

    display: flex;
    flex-direction: column;
}

/* Внутренняя часть карточки */
.shop-catalog-card-content {
    flex: 1;
    min-height: 0;

    display: flex;
    flex-direction: column;
}

/*
 * Дерево занимает всё свободное место.
 * Если раскрытые категории не помещаются —
 * прокручивается только дерево.
 */
.shop-catalog-card-content > .shop-catalog-level {
    flex: 1;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 8px;
}

/* "Смотреть все" всегда видно внизу */
.shop-catalog-view-all {
    flex-shrink: 0;
    margin-top: 14px;
}

/* scrollbar */
.shop-catalog-card-content > .shop-catalog-level {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.shop-catalog-card-content > .shop-catalog-level::-webkit-scrollbar {
    width: 6px;
}

.shop-catalog-card-content > .shop-catalog-level::-webkit-scrollbar-track {
    background: transparent;
}

.shop-catalog-card-content > .shop-catalog-level::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 10px;
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {

    .shop-catalog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .shop-catalog-card-content {
        padding: 18px;
    }
	
	.shop-catalog-card {
        min-height: 0;
        max-height: calc(100vh - 100px);
    }

    .shop-catalog-title {
        font-size: 22px;
    }

    .shop-catalog-level .shop-catalog-level {
        margin-left: 10px;
        padding-left: 10px;
    }
}

