/**
 * Kaabo Suppliers — Frontend Styles v2.1
 * Image: 50% width, 100vh height, ZERO gaps. Content: right side.
 */

/* ── Hide WordPress page title ── */
.page .entry-title,
.page .page-title,
.page-header .entry-title,
.elementor-page-title,
body.page .entry-header,
body.page article > header,
body.page .page-header,
.page-header {
    display: none !important;
}

/* ── NUKE all parent padding/margins/max-width ── */
body.page,
body.page .page-content,
body.page .site-content,
body.page .entry-content,
body.page .post-content,
body.page article,
body.page .site-main,
body.page .content-area,
body.page .main-content,
body.page #content,
body.page #primary,
body.page .container,
body.page .site-content > .container,
body.page .content-area > .container {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

/* ── Section Container — full viewport height ── */
.kaabo-suppliers-section {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
}

/* ── Hero Image — FIXED to viewport edges, 0 gaps guaranteed ── */
.kaabo-suppliers-hero {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 50vw !important;
    height: 100vh !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    z-index: 0;
}

/* ── Content — right 50%, scrollable independently ── */
.kaabo-suppliers-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    overflow-y: auto;
    padding: 80px 0 80px 40px;
    background: #fff;
    box-sizing: border-box;
    direction: rtl;
    z-index: 2;
}

/* ── Inner Content — 200px from right edge ── */
.kaabo-suppliers-inner {
    width: 100%;
    direction: rtl;
    text-align: right;
    padding-right: 200px;
    padding-left: 50px;
    box-sizing: border-box;
}

/* ── Breadcrumbs ── */
.kaabo-breadcrumbs {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    text-align: right;
    direction: rtl;
}

.kaabo-breadcrumbs a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kaabo-breadcrumbs a:hover {
    color: #C9161E;
}

.kaabo-breadcrumb-sep {
    margin: 0 6px;
    color: #bbb;
}

.kaabo-breadcrumb-current {
    color: #333;
}

/* ── Title ── */
.kaabo-suppliers-title {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    text-align: right;
    margin: 0 0 25px 0;
    padding: 0;
    line-height: 1.3;
}

/* ── Tabs — only #C9161E ── */
.kaabo-suppliers-tabs {
    display: flex;
    direction: rtl;
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    padding: 0;
}

.kaabo-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.25s ease;
    background-color: #e5e5e5;
    color: #000;
    min-width: 80px;
    line-height: 1.4;
}

.kaabo-tab:hover {
    background-color: #d4d4d4;
}

.kaabo-tab--active,
.kaabo-tab--active:hover,
.kaabo-tab--active:focus,
.kaabo-tab--active:active {
    background-color: #C9161E !important;
    color: #fff !important;
}

/* ── Supplier List Wrapper ── */
.kaabo-suppliers-list-wrapper {
    position: relative;
    display: flex;
    direction: ltr;
    gap: 20px;
    align-items: stretch;
}

/* ── Custom Scrollbar Track ── */
.kaabo-custom-scrollbar {
    width: 2px;
    flex: 0 0 2px;
    background: rgba(217, 217, 217, 0.5);
    position: relative;
    border-radius: 0;
    min-height: 100%;
    order: 1;
}

/* ── Custom Scrollbar Thumb ── */
.kaabo-custom-scrollbar-thumb {
    width: 2px;
    height: 50px;
    background: #C9161E;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0;
    cursor: pointer;
    transition: top 0.05s linear;
}

/* ── Supplier List — native scrollbar completely hidden ── */
.kaabo-suppliers-list {
    flex: 1;
    order: 2;
    margin-top: 0;
    min-height: 100px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    transition: opacity 0.3s ease;
    direction: rtl;
    text-align: right;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.kaabo-suppliers-list::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.kaabo-suppliers-list.is-loading {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Supplier Item — padding-left for separator gap from scrollbar ── */
.kaabo-supplier-item {
    padding: 22px 0 22px 30px;
    border-bottom: 1px solid #eee;
    text-align: right;
    direction: rtl;
}

.kaabo-supplier-item:last-child {
    border-bottom: none;
}

/* ── Supplier Name ── */
.kaabo-supplier-name {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0 0 6px 0;
    padding: 0;
    line-height: 1.3;
    text-align: right;
}

.kaabo-supplier-name a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kaabo-supplier-name a:hover {
    color: #C9161E;
}

/* ── Supplier Address ── */
.kaabo-supplier-address {
    font-size: 15px;
    color: #555;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    text-align: right;
}

/* ── Supplier Phone ── */
.kaabo-supplier-phone {
    font-size: 14px;
    color: #555;
    margin: 4px 0 0 0;
    padding: 0;
    text-align: right;
}

.kaabo-supplier-phone a {
    color: #C9161E;
    text-decoration: none;
}

.kaabo-supplier-phone a:hover {
    text-decoration: underline;
}

/* ── Empty State ── */
.kaabo-supplier-empty {
    padding: 40px 0;
    text-align: center;
    color: #999;
    font-size: 16px;
    direction: rtl;
}

/* ── Footer spacing ── */
.kaabo-suppliers-section + *,
.page-content + footer,
.site-main + footer,
.site-footer {
    margin-top: 0;
}

/* ── Tablet ── */
@media (max-width: 991px) {
    .kaabo-suppliers-section {
        height: auto;
        min-height: auto;
        width: 100% !important;
        max-width: 100% !important;
    }

    .kaabo-suppliers-hero {
        position: relative !important;
        width: 100% !important;
        right: auto !important;
        height: 350px !important;
        min-height: 350px !important;
    }

    .kaabo-suppliers-content {
        position: relative;
        width: 100%;
        height: auto;
        overflow-y: visible;
        padding: 30px 0 40px;
    }

    .kaabo-suppliers-inner {
        padding-right: 20px;
        padding-left: 20px;
    }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .kaabo-suppliers-hero {
        height: 300px !important;
        min-height: 300px !important;
    }

    .kaabo-suppliers-content {
        padding: 25px 0 30px;
    }

    .kaabo-suppliers-title {
        font-size: 28px;
    }

    .kaabo-suppliers-tabs {
        justify-content: center;
    }

    .kaabo-tab {
        padding: 8px 18px;
        font-size: 14px;
        min-width: 60px;
    }

    .kaabo-supplier-item {
        padding: 18px 0 18px 15px;
    }

    .kaabo-supplier-name {
        font-size: 18px;
    }

    .kaabo-supplier-address {
        font-size: 14px;
    }

    .kaabo-breadcrumbs {
        font-size: 13px;
    }
}
