/* ==============================================
   CATALOG PAGE STYLES
   ============================================= */
.page-catalog {
    padding: 40px 0 60px;
}

a.nav-link.active,
.slicknav_nav a.nav-link.active,
.slicknav_nav a.active {
    color: #001111 !important;
}

/* ---- Sidebar wrapper ---- */
.service-sidebar {
    position: sticky;
    top: 30px;
}

/* ---- Category Tree Panel ---- */
.cat-panel {
    background: var(--white-color, #ffffff);
    border: 1px solid var(--divider-color, #EAF0EC);
    border-radius: 0;
    padding: 30px;
    margin-bottom: 30px;
}

/* Tree list reset */
.cat-tree-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-tree-item {
    position: relative;
}

.cat-link-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    width: 100%;
}

.cat-tree-link {
    text-decoration: none;
    color: var(--accent-color, #7C877F);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s ease-in-out;
    cursor: pointer;
    text-transform: none;
    line-height: 1rem;

}

.cat-pdf-link {
    text-decoration: none;
    color: var(--accent-color, #7C877F);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s ease-in-out;
    cursor: pointer;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    line-height: 1rem;
}

.cat-tree-link:hover,
.cat-tree-link.active,
.cat-pdf-link:hover {
    color: var(--primary-color, #192324);
}

.cat-tree-link.active {
    font-weight: 700;
}

/* Inline Chevron style */
.cat-toggle-arrow {
    cursor: pointer;
    color: var(--accent-color, #7C877F);
    font-size: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
    width: 14px;
    height: 14px;
}

.cat-toggle-arrow:hover {
    color: var(--primary-color, #192324);
}

.cat-tree-item.open>.cat-link-wrapper>.cat-toggle-arrow {
    transform: rotate(180deg);
}

/* Subcategory Indentation and Left border line */
.cat-children {
    border-left: 1px solid var(--divider-color, #EAF0EC);
    margin-left: 6px;
    padding-left: 14px;
    margin-top: 2px;
    margin-bottom: 6px;
    overflow: hidden;
}

/* Root Level Styling (bold and spaced) */
.cat-tree-list.level-0>.cat-tree-item {
    margin-bottom: 14px;
}

.cat-tree-list.level-0>.cat-tree-item:last-child {
    margin-bottom: 0;
}

.cat-tree-list.level-0>.cat-tree-item>.cat-link-wrapper>.cat-tree-link {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color, #192324);
}

.cat-tree-list.level-0>.cat-tree-item>.cat-link-wrapper>.cat-toggle-arrow {
    color: var(--primary-color, #192324);
    font-size: 10px;
}

/* ---- Sidebar CTA (Light Theme matching template) ---- */
.sidebar-cta-box {
    background: transparent;
    margin-top: 30px;
}

.sidebar-cta-image {
    position: relative;
    overflow: hidden;
}

.sidebar-cta-image img {
    width: 100%;
    aspect-ratio: 1 / 0.57;
    object-fit: cover;
}

.sidebar-cta-Body {
    border: 1px solid var(--divider-color, #EAF0EC);
    padding: 30px;
    background: var(--white-color, #ffffff);
}

.sidebar-cta-content {
    margin-bottom: 25px;
}

.sidebar-cta-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color, #192324);
    text-transform: capitalize;
    margin-bottom: 10px;
}

.sidebar-cta-content p {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color, #283132);
    margin-bottom: 0;
    line-height: 1.6em;
}

.sidebar-cta-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.sidebar-cta-contact-item:last-child {
    margin-bottom: 0;
}

.sidebar-cta-contact-item .icon-box {
    position: relative;
    height: 58px;
    width: 58px;
    background-color: var(--divider-color, #EAF0EC);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    transition: all 0.4s ease-in-out;
    flex-shrink: 0;
}

.sidebar-cta-contact-item .icon-box::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color, #192324);
    border-radius: 50%;
    height: 100%;
    width: 100%;
    transform: scale(0);
    transition: all 0.3s ease-in-out;
    z-index: 0;
}

.sidebar-cta-contact-item:hover .icon-box::before {
    transform: scale(1);
}

.sidebar-cta-contact-item .icon-box i {
    color: var(--primary-color, #192324);
    font-size: 20px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease-in-out;
}

.sidebar-cta-contact-item:hover .icon-box i {
    color: var(--white-color, #ffffff);
}

.sidebar-cta-contact-item a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color, #283132);
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-cta-contact-item a:hover {
    color: var(--primary-color, #192324);
    text-decoration: underline;
}

/* Mobile Responsive Sidebar Toggle */
.mobile-filter-btn {
    background: var(--primary-color, #192324);
    color: var(--white-color, #ffffff);
    font-size: 16px;
    font-weight: 700;
    border: none;
    padding: 14px 24px;
    width: 100%;
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.mobile-filter-btn i {
    transition: transform 0.3s ease;
}

@media (max-width: 991px) {
    .mobile-filter-btn {
        display: flex;
    }

    .service-sidebar {
        display: none;
        margin-right: 0;
        margin-bottom: 40px;
    }

    .service-sidebar.show {
        display: block;
    }
}

/* ---- Product Grid ---- */
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-count {
    font-size: 14px;
    color: var(--text-color, #283132);
}

.catalog-count strong {
    color: var(--primary-color, #192324);
}

.catalog-active-filter {
    font-size: 13px;
    color: var(--accent-color, #7db73b);
    background: rgba(125, 183, 59, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: none;
}

.catalog-active-filter.visible {
    display: inline-block;
}

.catalog-card-wrapper {
    margin-bottom: 26px;
}

.catalog-card {
    background: var(--white-color, #ffffff);
    border-radius: 14px;
    padding: 18px;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--divider-color, #EAF0EC);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(25, 35, 36, 0.03);
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(25, 35, 36, 0.08);
}

/* Image zone with shine-sweep effect (same as .image-anime in theme) */
.catalog-card-image {
    position: relative;
    background: #F5F7F6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #EEF1EF;
    transition: background 0.3s ease;
}

/* Shine sweep pseudo-element */
.catalog-card-image::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 0%;
    left: 50%;
    top: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    transform: translate(-50%, -50%) rotate(-45deg);
    z-index: 1;
    pointer-events: none;
}

.catalog-card:hover .catalog-card-image::after {
    height: 250%;
    transition: all 600ms linear;
    background-color: transparent;
}

.catalog-card-image img {
    max-height: 145px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 0;
}

.catalog-card:hover .catalog-card-image {
    background: #EDF1EE;
}

.catalog-card:hover .catalog-card-image img {
    transform: scale(1.05);
}

.catalog-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.catalog-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color, #192324) !important;
    margin-bottom: 5px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.catalog-card:hover .catalog-card-title {
    color: var(--accent-color, #7db73b) !important;
}

.catalog-card-subtitle {
    font-size: 12.5px;
    color: var(--text-color, #5a6566);
    line-height: 1.5;
    margin-bottom: 14px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: default;
    transition: all 0.3s ease;
}

.catalog-card-subtitle.is-truncated {
    cursor: pointer;
}

.catalog-card-subtitle.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    cursor: pointer;
}

.catalog-card-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--divider-color, #EAF0EC);
    padding-top: 10px;
    margin-top: auto;
}

.catalog-card-code {
    font-family: monospace;
    font-size: 11px;
    color: var(--accent-color, #7db73b);
    background: rgba(125, 183, 59, 0.08);
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
}

/* ---- Pagination ---- */
.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--divider-color, #EAF0EC);
    background: var(--white-color, #ffffff);
    color: var(--text-color, #283132);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    gap: 6px;
    font-family: inherit;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-color, #192324);
    border-color: var(--primary-color, #192324);
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Hidden cards */
.catalog-card-wrapper.hidden {
    display: none !important;
}

/* No results */
.catalog-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #7c877f;
    font-size: 16px;
    display: none;
}

.catalog-no-results.visible {
    display: block;
}

/* Breadcrumb */
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item a:hover {
    color: #fff;
}

.page-header .breadcrumb-item.active {
    color: var(--accent-color, #7db73b);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}