/* ═══════════════════════════════════════
   Logixpress Category Grid
   ═══════════════════════════════════════ */

/* ── Tabs ── */
.lxp-cg-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.lxp-cg-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #333333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    outline: none;
}

.lxp-cg-tab:hover {
    border-color: #EAA638;
    color: #EAA638;
}

.lxp-cg-tab.active {
    background: #EAA638;
    border-color: #EAA638;
    color: #ffffff;
}

/* ── Slider Row ── */
.lxp-cg-slider-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lxp-cg-swiper {
    overflow: hidden;
    flex: 1;
    min-width: 0;
    padding: 8px 0 12px;
    margin: -8px 0 -12px;
}

.lxp-cg-swiper .swiper-wrapper {
    align-items: stretch;
}

.lxp-cg-swiper .swiper-slide {
    height: auto;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

.lxp-cg-swiper .swiper-slide:hover {
    z-index: 5;
}

/* ── Card ── */
.lxp-cg-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.lxp-cg-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

a.lxp-cg-card:hover {
    color: inherit;
}

/* ── Image Area ── */
.lxp-cg-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 16px 16px 0 0;
}

.lxp-cg-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.lxp-cg-card:hover .lxp-cg-image img {
    transform: scale(1.03);
}

/* ── Info Area ── */
.lxp-cg-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
}

.lxp-cg-icon {
    flex-shrink: 0;
}

.lxp-cg-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.lxp-cg-text {
    flex: 1;
    min-width: 0;
}

.lxp-cg-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 4px;
    color: #1a1a2e;
}

.lxp-cg-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #666666;
    margin: 0;
}

/* ── Navigation Arrows ── */
.lxp-cg-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
    z-index: 2;
    flex-shrink: 0;
}

.lxp-cg-nav svg {
    width: 18px;
    height: 18px;
    fill: #EAA638;
    transition: fill 0.3s ease;
}

.lxp-cg-nav:hover {
    background: #EAA638;
    border-color: #EAA638;
}

.lxp-cg-nav:hover svg {
    fill: #fff;
}

.lxp-cg-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .lxp-cg-tabs {
        gap: 6px;
    }

    .lxp-cg-tab {
        padding: 8px 16px;
        font-size: 12px;
    }

    .lxp-cg-slider-row {
        gap: 8px;
    }

    .lxp-cg-nav {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .lxp-cg-nav svg {
        width: 14px;
        height: 14px;
    }

    .lxp-cg-title {
        font-size: 13px;
    }

    .lxp-cg-desc {
        font-size: 12px;
    }
}
