/* Kobadu home hero slider — inspired by made-in-china.com */

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans/PlusJakartaSans-200.ttf') format('truetype');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans/PlusJakartaSans-200.ttf') format('truetype');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans/PlusJakartaSans-300.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans/PlusJakartaSans-400.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans/PlusJakartaSans-500.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans/PlusJakartaSans-600.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans/PlusJakartaSans-700.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans/PlusJakartaSans-800.ttf') format('truetype');
    font-weight: 800;
    font-display: swap;
}

/* Alias family so font-family:"Jakarta Sans" also resolves. */
@font-face {
    font-family: 'Jakarta Sans';
    src: url('fonts/PlusJakartaSans/PlusJakartaSans-200.ttf') format('truetype');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Jakarta Sans';
    src: url('fonts/PlusJakartaSans/PlusJakartaSans-200.ttf') format('truetype');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Jakarta Sans';
    src: url('fonts/PlusJakartaSans/PlusJakartaSans-300.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Jakarta Sans';
    src: url('fonts/PlusJakartaSans/PlusJakartaSans-400.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Jakarta Sans';
    src: url('fonts/PlusJakartaSans/PlusJakartaSans-500.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Jakarta Sans';
    src: url('fonts/PlusJakartaSans/PlusJakartaSans-600.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Jakarta Sans';
    src: url('fonts/PlusJakartaSans/PlusJakartaSans-700.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Jakarta Sans';
    src: url('fonts/PlusJakartaSans/PlusJakartaSans-800.ttf') format('truetype');
    font-weight: 800;
    font-display: swap;
}

.kb-home-top-section,
.kb-home-top,
.kb-slider,
.kb-cat-sidebar,
.kb-yml {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
}

.kb-home-top {
    width: 100%;
    height: 520px;
    position: relative;
    overflow: hidden;
}

.kb-slider {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1b1b1f;
    width: 100%;
    height: 100%;
}

.kb-slider-viewport {
    overflow: hidden;
    height: 520px;
    width: 100%;
}

.kb-slider-track {
    display: flex;
    height: 520px;
    width: 100%;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.kb-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 520px;
    max-height: 520px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
}

/* Caption bar along the bottom of the slide, styled after Facebook/Alibaba
   carousel ads: product name left (one line, ellipsised), green "View more"
   button right. The bar is translucent black laid over the full-height photo
   (see .kb-slide-bg), like the old overlay panel. */
.kb-slider { --kb-caption-h: 56px; }

.kb-slide-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: var(--kb-caption-h);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    /* Translucent like the old overlay panel: the photo runs underneath and
       shows through, with enough black for the white name to stay readable. */
    background: rgba(0,0,0,.62);
}

/* Scoped under .kb-slide-info so it outranks the theme's
   ".kobadu-forked h3 { color: #fff; font-weight: 200 }". */
.kb-slide-info .kb-slide-name {
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
    color: #fff;
    font-size: 16px !important;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kb-slide-buy {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    background: #439C0F;
    color: #fff;
    border: 0;
    border-radius: 6px !important;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease;
}

.kb-slide-buy:hover {
    background: #378A0C;
}

.kb-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    /* Was .25 — dimmed deliberately so the white text/thumbnails overlaid on
       top stayed readable. Both are gone now, so the photo is the slide;
       a light wash is kept only so the glow accents still read against it. */
    opacity: .92;
    z-index: 0;
    overflow: hidden;
}

.kb-slider-arrow {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(0,0,0,.35);
    color: #fff;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .15s ease;
}

.kb-slider-arrow:hover { background: rgba(67,156,15,.85); }

.kb-slider-arrow.prev { left: 12px; }
.kb-slider-arrow.next { right: 12px; }

.kb-slider-dots {
    position: absolute;
    /* Sits on the photo just above the caption bar. */
    bottom: calc(var(--kb-caption-h) + 12px);
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.kb-slider-dot {
    width: 26px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    border: 0;
    padding: 0;
    transition: background-color .2s ease, width .2s ease;
}

.kb-slider-dot.active {
    background: #439C0F;
    width: 34px;
}

@media (max-width: 991.98px) {
    .kb-slide { height: 340px; max-height: 340px; }
    .kb-slider-viewport { height: 340px; }
    .kb-slider-track { height: 340px; }
}

@media (max-width: 767.98px) {
    .kb-slide { height: 260px; max-height: 260px; }
    .kb-slider-viewport { height: 260px; }
    .kb-slider-track { height: 260px; }
    .kb-slider-arrow { width: 32px; height: 32px; }
    .kb-slider-arrow.prev { left: 6px; }
    .kb-slider-arrow.next { right: 6px; }
    .kb-slider { --kb-caption-h: 46px; }
    .kb-slide-info { gap: 8px; padding: 0 12px; }
    .kb-slide-info .kb-slide-name { font-size: 14px !important; }
    .kb-slide-buy { padding: 6px 12px; font-size: 13px; }
}

/* ── 3-column home top section ─────────────────────────────── */
.kb-home-top-section {
    width: 100%;
    max-width: 1440px;
    /* Small bottom margin: the product showcase below brings its own
       top margin, and stacking both left a large dead gap. */
    margin: 50px auto 16px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 20% 1fr 20%;
    gap: 14px;
}

/* Homepage product sections. Mirrors .kb-home-top-section's width and
   gutters so New Arrivals / Trending / Top Deals line up flush with the
   slider above instead of sitting in a narrower Bootstrap column. */
.kb-home-sections {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.kb-home-top-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 20% 1fr 20%;
    gap: 14px;
    align-items: stretch;
    grid-auto-rows: 520px;
}

.kb-home-top-col-left {
    min-width: 0;
    height: 520px;
    align-self: start;
}

.kb-home-top-col-center {
    min-width: 0;
    overflow: hidden;
    align-self: stretch;
    height: 520px;
}

.kb-home-top-col-right {
    min-width: 0;
    height: 520px;
}

/* Categories sidebar (left) */
.kb-cat-sidebar {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 14px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.kb-cat-sidebar-title {
    font-weight: 600;
    font-size: 15px;
    color: #000;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.kb-cat-sidebar-title i { color: #439C0F; margin-right: 8px; }

.kb-cat-sidebar-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
}

.kb-cat-sidebar-list::-webkit-scrollbar { width: 4px; }
.kb-cat-sidebar-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.kobadu-forked .kb-cat-sidebar-item,
.kb-cat-sidebar-item {
    display: block;
    padding: 25px 5px;
    font-size: 13px;
    color: #444;
    border-bottom: 1px solid #f7f7f7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s ease, padding-left .15s ease;
}

.kb-cat-sidebar-item:hover {
    color: #439C0F;
    padding-left: 8px;
    text-decoration: none;
}

.kb-cat-sidebar-more {
    margin-top: auto;
    padding-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #1072F1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kb-cat-sidebar-more:hover { text-decoration: none; color: #0b5bc4; }

/* You May Like (right) */
.kb-yml {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.kb-yml-title {
    font-weight: 600;
    font-size: 15px;
    color: #000;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.kb-yml-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
}

.kb-yml-list::-webkit-scrollbar { width: 4px; }
.kb-yml-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.kb-yml-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kb-yml-item:hover { text-decoration: none; }

.kb-yml-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #ececec;
    object-fit: cover;
    flex-shrink: 0;
}

.kb-yml-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kb-yml-name {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kb-yml-count {
    font-size: 11.5px;
    color: #888;
}

/* Top Picks ticker — rows slide downward out the bottom, new rows slide down into place at top */
@keyframes kbYmlEnter { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes kbYmlExit  { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(18px); } }
.kb-yml-item.kb-yml-enter { animation: kbYmlEnter 0.3s ease forwards; }
.kb-yml-item.kb-yml-exit  { animation: kbYmlExit 0.3s ease forwards; pointer-events: none; }

/* Responsive */
@media (max-width: 1199.98px) {
    .kb-home-top-grid { grid-template-columns: 260px 1fr; }
    .kb-home-top-col-left { display: block; }
    .kb-home-top-col-right { display: none; }
}

/* The slider container, grid row and columns are hard-coded to 520px
   above. These overrides MUST live after those base rules — same
   specificity, so source order decides. Without matching them to the
   shorter slide height, the dark .kb-slider background shows through
   as a black band under the image. */
@media (max-width: 991.98px) {
    .kb-home-top-section { padding: 0 14px; margin: 14px auto 0; }
    .kb-home-sections { padding: 0 14px; }
    .kb-home-top-grid { grid-template-columns: 1fr; grid-auto-rows: 340px; }
    .kb-home-top-col-left { display: none; }
    .kb-home-top-col-right { display: none; }
    .kb-home-top { height: 340px; }
    .kb-home-top-col-center { height: 340px; }
}

@media (max-width: 767.98px) {
    .kb-home-top-grid { grid-auto-rows: 260px; }
    .kb-home-top { height: 260px; }
    .kb-home-top-col-center { height: 260px; }
}

/* ── Product showcase (made-in-china style) ─────────────────── */
.kb-showcase {
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.kb-showcase-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #ececec;
}

.kb-showcase-title {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 18px;
    /* !important on both is deliberate: css/forked/style.css defines
       `.kobadu-forked h1...h6 { font-weight: 200; color: #ffffff }`, a
       class+element selector (specificity 0-1-1) that beats this plain
       class selector (0-1-0) regardless of load order — specificity
       always wins over source order. That rule was silently forcing
       this h3 to a thin weight and white. */
    font-weight: 700 !important;
    color: #000 !important;
    line-height: 1.3;
    margin: 0;
}

.kobadu-forked .kb-showcase-cta,
.kb-showcase-cta {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 9999px;
    color: #000000;
    font-family: Arial, Helvetica, system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 7px 18px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.kb-showcase-cta:hover {
    background: #000000;
    color: #ffffff;
}

.kb-showcase-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    /* auto, not a fixed px row height — a fixed height clipped the meta/seller
       lines on cards with longer product names, since overflow:hidden below
       silently cut them off rather than growing to fit. Grid rows stretch to
       their tallest cell either way, so cards still line up. */
    grid-auto-rows: auto;
    gap: 14px;
    padding: 16px;
    min-width: 0;
}

/* !important on both: .kobadu-forked h1...h6 sets font-weight:200 and
   color:#ffffff, a class+element selector that beats this plain class
   regardless of load order — same landmine fixed elsewhere this session. */
.kb-category-title {
    color: #000 !important;
    font-size: 22px;
    font-weight: 700 !important;
    margin: 0 0 18px;
}

/* Category page uses the grid on its own, without .kb-showcase's head bar/
   border/shadow wrapping it — give it a light card frame of its own instead
   of sitting bare against the page background. */
.kb-showcase-grid-standalone {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.kb-category-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    text-align: center;
}

.kb-category-empty i {
    font-size: 40px;
    color: #ccc;
}

.kb-category-empty p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

/* Verified Suppliers directory */
.kb-supplier-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 20px;
}

.kb-supplier-grid .kb-supplier-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    border: 1px solid #F0F0F0;
    border-radius: 10px;
    cursor: pointer;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.kb-supplier-grid .kb-supplier-card:hover {
    border-color: #DADADA;
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
}

.kb-supplier-grid .kb-supplier-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ececec;
    margin-bottom: 12px;
    background: #fafafa;
}

.kb-supplier-grid .kb-supplier-name {
    font-size: 15px;
    font-weight: 700;
    color: #000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.kb-supplier-grid .kb-supplier-badge {
    color: #439C0F;
    font-size: 14px;
}

.kb-supplier-grid .kb-supplier-country {
    margin-top: 4px;
    font-size: 12.5px;
    color: #888;
}

.kb-supplier-grid .kb-supplier-count {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #439C0F;
}

@media (max-width: 991.98px) {
    .kb-supplier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.kb-showcase-cell {
    position: relative;
    padding: 10px;
    min-height: 260px;
    border: 1px solid #F0F0F0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.kb-showcase-cell:hover {
    border-color: #DADADA;
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
}

/* Product-card style, made-in-china/alibaba-inspired */
.kb-showcase-cell-img-wrap {
    position: relative;
    height: 130px;
    flex-shrink: 0;
    border: 1px solid #F0F0F0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 8px;
}

.kb-showcase-cell-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.kb-showcase-cell:hover .kb-showcase-cell-img-wrap img {
    transform: scale(1.08);
}

/* How long the product has been listed */
.kb-showcase-cell-age {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    line-height: 1.4;
}

/* Verified-vendor badge — no vendor name shown on product cards.
   Anchored to .kb-showcase-cell (position: relative), sitting at the
   card's bottom-right corner rather than inline in the text flow. */
.kb-showcase-cell-verified {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
    background: #439C0F;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    line-height: 1.4;
    box-shadow: 0 1px 5px rgba(0,0,0,.18);
}

.kb-showcase-cell-verified i {
    font-size: 10px;
}

.kb-showcase-cell-zoom {
    position: absolute;
    left: 6px;
    bottom: 6px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #444;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease, background-color .15s ease;
    cursor: pointer;
    z-index: 1;
}

.kb-showcase-cell:hover .kb-showcase-cell-zoom {
    opacity: 1;
    transform: translateY(0);
}

.kb-showcase-cell-zoom:hover {
    background: #f2f2f2;
}

.kb-showcase-cell-info {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* Disclosure label for listings ranked ahead by their package tier in a
   mixed-tier list (search/category results) — understated, like a search
   engine's "Sponsored" tag, not a colorful attention-grabbing badge. */
.kb-showcase-cell-promoted {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 2px;
}

/* Simpler label+image cell used by the product page's "Similar Products"
   section (ProductDetails.component.js), which reuses .kb-showcase-grid /
   .kb-showcase-cell but not the richer price/MOQ/seller card layout above. */
.kb-showcase-cell-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0 0;
    min-height: 0;
}

.kb-showcase-cell-img img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.kb-showcase-cell-label {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-align: left;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kb-showcase-cell-price {
    margin-top: 4px;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.kb-showcase-cell-price small {
    font-size: 10px;
    font-weight: 600;
    color: #888;
}

.kb-showcase-cell-price-old {
    margin-left: 5px;
    font-size: 11px;
    font-weight: 400;
    color: #aaa;
    text-decoration: line-through;
}

.kb-showcase-cell-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    margin-top: 3px;
    font-size: 10.5px;
    color: #888;
}


/* Image lightbox — opened by the magnifier icon on a showcase card */
.kb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, .82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity .2s ease;
}

.kb-lightbox.open { opacity: 1; }

.kb-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    transform: scale(.96);
    transition: transform .2s ease;
}

.kb-lightbox.open img { transform: scale(1); }

.kb-lightbox-close {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .15s ease;
}

.kb-lightbox-close:hover { background: rgba(255, 255, 255, .22); }

@media (max-width: 991.98px) {
    .kb-lightbox { padding: 16px; }
    .kb-lightbox-close { top: 10px; right: 10px; width: 36px; height: 36px; }
}

/* Invisible trigger for Explore More's infinite scroll — IntersectionObserver
   target, no visual footprint of its own. */
.kb-showcase-sentinel {
    height: 1px;
}

/* Pagination dots — only rendered when a showcase has more products than
   the grid shows at once */
.kb-showcase-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
    border-top: 1px solid #ececec;
}

.kb-showcase-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #DADADA;
    cursor: pointer;
    transition: background-color .15s ease, width .15s ease;
}

.kb-showcase-dot:hover { background: #b9b9b9; }

.kb-showcase-dot.active {
    width: 18px;
    background: #439C0F;
}

/* Product page — Show contact / Start chat (jiji.ng-style stacked CTAs) */
.kb-contact-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
}

.kb-contact-show-btn,
.kb-contact-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s ease;
}

.kb-contact-chat-btn {
    background: #439C0F;
    color: #fff;
    border: 0;
}

.kb-contact-chat-btn:hover { opacity: .9; color: #fff; text-decoration: none; }

.kb-contact-show-btn {
    background: #fff;
    color: #439C0F;
    border: 1px solid #439C0F;
}

.kb-contact-show-btn:hover { background: #F3FAEF; }

.kb-report-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    color: #dc3545;
    cursor: pointer;
    text-decoration: none;
    width: fit-content;
}

.kb-report-link:hover { color: #b02a37; }

/* Product page — content card. .kobadu-forked sets a global white(!) text
   color, which is why product name/price/description were invisible on a
   plain white background — this card fixes that at the source instead of
   patching every child element individually. */
.kb-product-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.kb-product-info {
    color: #333;
    border-left: 1px solid #f0f0f0;
}

.kb-product-category-pill {
    display: inline-block;
    background: #F3FAEF;
    color: #439C0F;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 4px 12px;
    border-radius: 20px;
}

.kb-product-price {
    font-size: 26px;
    font-weight: 800;
    color: #000;
    margin: 14px 0 0;
}

.kb-product-currency {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.kb-product-price-old {
    margin-left: 10px;
    font-size: 16px;
    font-weight: 400;
    color: #aaa;
    text-decoration: line-through;
}

.kb-product-divider {
    border-top: 1px solid #f0f0f0;
    margin: 20px 0;
}

.kb-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    margin-top: 10px;
}

.kb-product-meta-item {
    font-size: 13px;
    color: #666;
    display: inline-flex;
    align-items: center;
}

.kb-product-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #439C0F;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    line-height: 1.4;
}

.kb-product-description-label {
    font-size: 13px;
    font-weight: 700 !important;
    color: #000 !important;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0 0 8px;
}

.kb-product-description-text {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

.kb-product-description-text p {
    margin: 0 0 10px;
}

.kb-product-description-text p:last-child {
    margin-bottom: 0;
}

.kb-product-description-text ol,
.kb-product-description-text ul {
    margin: 0 0 10px;
    padding-left: 22px;
}

.kb-product-description-text ul.kb-bulleted-text {
    list-style-type: disc;
    list-style-position: outside;
}

.kb-product-description-text .kb-bulleted-text li {
    margin-bottom: 6px;
}

.kb-product-description-text .kb-bulleted-text li:last-child {
    margin-bottom: 0;
}

.kb-product-description-text.kb-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kb-product-description-toggle {
    background: none;
    border: 0;
    padding: 8px 0 0;
    color: #439C0F;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.kb-product-description-toggle:hover { text-decoration: underline; }

.kb-product-carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #FAFAFA;
    border: 1px solid #f0f0f0;
}

.kb-product-carousel .carousel-item img {
    object-fit: contain;
    background: #FAFAFA;
}

/* Snappier than Bootstrap's default 0.6s — the thumbnail hover-preview
   should feel closer to instant, not like a deliberate slide transition. */
.kb-product-carousel .carousel-item {
    transition: transform .15s ease;
}

/* Favorite / share / zoom icon stack overlaid on the main product image */
.kb-product-image-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kb-product-image-action {
    -webkit-appearance: none;
    appearance: none;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 1px 5px rgba(0,0,0,.18);
    color: #444;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.kb-product-image-action:hover { background: #fff; color: #000; }

.kb-product-image-action.is-active { color: #e0245e; }

/* Thumbnail strip — reuses Bootstrap's carousel-indicators <li data-slide-to>
   mechanism (so clicking prev/next keeps the active thumbnail in sync
   automatically) but overrides the default absolute-positioned dash bars
   with an in-flow row of image thumbnails. */
/* !important throughout this block: plugins/bootstrap/css/bootstrap.min.css
   AND css/forked/style.css both ship their own `.carousel-indicators li`
   (width:30px, height:3px, text-indent:-999px, border-top/bottom:10px solid
   transparent) — box-sizing:content-box means those transparent borders add
   20px of real height on top of the 3px, and text-indent shoves any nested
   content off-screen. Same specificity as these rules (one class + one type
   selector), and both stylesheets load before this one, so without
   !important the thumbnails render as Bootstrap's default dash strip. */
.kb-product-thumbs {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0 !important;
    padding: 0 4px !important;
}

.kb-product-thumbs li {
    box-sizing: border-box !important;
    width: 56px !important;
    height: 56px !important;
    flex: 0 0 auto;
    border-radius: 6px;
    border: 2px solid #ececec;
    border-top: 2px solid #ececec !important;
    border-bottom: 2px solid #ececec !important;
    overflow: hidden;
    opacity: 1 !important;
    cursor: pointer;
    text-indent: 0 !important;
    background: #FAFAFA !important;
    transition: border-color .15s ease;
}

.kb-product-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kb-product-thumbs li:hover { border-color: #c9c9c9; }
.kb-product-thumbs li.active { border-color: #439C0F; }

@media (max-width: 991.98px) {
    .kb-product-info { border-left: 0; border-top: 1px solid #f0f0f0; }
}

/* Product page — Similar Products (reuses the homepage showcase card style,
   now wrapped in its own .kb-product-card so it matches the main product card) */
.kb-similar-products {
    margin-top: 20px;
}

/* Tablet: 6 columns is tight once the sidebar hero is gone — step down to 3. */
@media (max-width: 1199.98px) {
    .kb-showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Mobile: compact header bar (title left, "View More" right) and the
   products become a 2-up grid. */
@media (max-width: 991.98px) {
    .kb-showcase {
        border-radius: 10px;
        margin: 10px 0;
    }
    /* First section sits directly under the slider — no top margin.
       <product-showcase> is replaced by its own .kb-showcase root div
       (marked via attribute, not a real tag name — see the faq-item/
       dropdown-menu-item notes above), so this must target that one
       element directly rather than treat it as a descendant. */
    .kb-showcase[product-showcase]:first-child { margin-top: 0; }
    .kb-showcase-head { padding: 12px 14px; }
    .kb-showcase-title { font-size: 16px; }
    .kb-showcase-cta {
        padding: 6px 16px;
        font-size: 12px;
        border-width: 1px;
        flex-shrink: 0;
    }
    .kb-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 10px;
        padding: 12px;
        border-top: 1px solid #ececec;
    }
    .kb-showcase-cell {
        padding: 10px;
        min-height: 222px;
    }
    .kb-showcase-cell-img-wrap { height: 110px; }
}

/* ── Gumtree-style footer ───────────────────────────────────── */
.kb-footer {
    background: #000;
    color: #fff;
    font-family: Arial, Helvetica, system-ui, sans-serif;
    margin-top: 50px;
    padding-top: 48px;
}

.kb-footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.kb-footer-top {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 24px;
    padding-bottom: 40px;
}

.kb-footer-links {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.kb-footer-links li { margin-bottom: 10px; }

.kb-footer-links a {
    color: #CCCCCC;
    font-size: 13.5px;
    text-decoration: none;
    transition: color .15s ease;
}

.kb-footer-links a:hover { color: #fff; }

.kb-footer-connect {
    margin-top: 22px;
}

.kb-footer-connect h5 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 14px;
}

.kb-footer-connect .kb-social-row { justify-content: flex-start; }

.kb-footer-col h5 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.kb-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kb-footer-col li { margin-bottom: 10px; }

.kb-footer-col a {
    color: #CCCCCC;
    font-size: 13.5px;
    text-decoration: none;
    transition: color .15s ease;
}

.kb-footer-col a:hover {
    color: #fff;
    text-decoration: none;
}

.kb-footer-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,.14);
    margin: 0;
}

.kb-social-row {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.kb-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,.5);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.kb-social-btn i {
    color: #fff !important;
}

.kb-social-btn:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; text-decoration: none; }

.kb-footer-legal {
    padding: 20px 0;
    text-align: center;
}

.kb-footer-legal-copy {
    color: #CCCCCC;
    font-size: 12.5px;
    margin: 0;
}

@media (max-width: 991.98px) {
    .kb-footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .kb-footer-top { grid-template-columns: 1fr; }
    .kb-footer-connect .kb-social-row { gap: 8px; }
    .kb-footer-connect .kb-social-btn { width: 38px; height: 38px; font-size: 15px; }
}

/* ── Nav category bar — light weight labels ─────────────────── */
.kobadu-forked .navbar-light .navbar-nav .nav-link {
    font-weight: 200;
    font-family: 'Plus Jakarta Sans', 'Jakarta Sans', 'Poppins', sans-serif;
}

.kobadu-forked .navbar-light .navbar-nav .dropdown-toggle {
    font-weight: 200;
    font-family: 'Plus Jakarta Sans', 'Jakarta Sans', 'Poppins', sans-serif;
}

/* ── Nav bar — tighten item spacing ─────────────────────────── */
.kobadu-forked .navbar-light .navbar-nav .nav-link {
    padding: 20px 6px;
}

.kobadu-forked .navbar-light .navbar-nav .dropdown-toggle {
    padding: 20px 6px;
}

/* ── Nav chevron on dropdown toggles ────────────────────────── */
.nav-chevron {
    font-size: 10px;
    color: #999;
    margin-left: 4px;
    vertical-align: middle;
}

/* ── Remove default Bootstrap caret; use Huge Icons chevron ── */
.kobadu-forked .navbar .dropdown-toggle::after {
    display: none !important;
}

/* "All Category" toggle lives in .kobadu-secondary-nav, not a .navbar,
   so the rule above never covered it — it was showing both the Huge
   Icons chevron and Bootstrap's own default caret. */
.kb-all-category-toggle::after {
    display: none !important;
}

.kobadu-forked .navbar .nav-chevron {
    font-size: 10px;
    color: #999;
    margin-left: 5px;
    vertical-align: middle;
}

/* ── Mobile: reclaim page width ──────────────────────────────────
   Content pages wrap their body in `col-11 col-md-10 col-lg-9`, which
   on a phone throws away ~8% of an already narrow screen. Go full
   width with a small gutter instead. */
@media (max-width: 767.98px) {
    .kobadu-forked .row.justify-content-center.no-gutters > .col-11 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* ── About page — legible body copy ──────────────────────────────
   `.kobadu-forked body { color: #ffffff }` makes any text on this page
   invisible white-on-white unless something overrides it — the same
   landmine already fixed on .kb-showcase-title, .kb-product-description-text
   etc. this session. !important is required for the same reason: that rule
   is a class+element-adjacent global default with nothing here outranking it
   by specificity, only by load order, which this page can't rely on. */
.kb-about-content h2 {
    color: #000 !important;
    font-size: 22px;
    font-weight: 700 !important;
    margin-bottom: 14px;
}

.kb-about-content p {
    color: #444 !important;
    font-size: 15px;
    line-height: 1.7;
}

.kb-about-content li {
    color: #444 !important;
    font-size: 15px;
    line-height: 1.9;
}

/* ── Privacy Policy / Terms & Conditions — same white-on-white
   landmine as .kb-about-content. Covers h1-h6, not just h5: Terms &
   Conditions also has h6 sub-headings that were still white. */
.kb-legal-content h1,
.kb-legal-content h2,
.kb-legal-content h3,
.kb-legal-content h4,
.kb-legal-content h5,
.kb-legal-content h6 {
    color: #000 !important;
    font-weight: 700 !important;
}

.kb-legal-content p,
.kb-legal-content li {
    color: #444 !important;
    font-size: 15px;
    line-height: 1.7;
}

/* ── Buyer-facing tables (My Favorites, etc.) — legible cells ─────
   The shared <table-view>/<table-row> components (Components.js) render
   plain <td>/<th> with no color of their own, so they inherit the same
   `.kobadu-forked body { color: #ffffff }` white-on-white default as
   everything else on this session's list. Scoped to .kobadu-forked so
   admin/seller dashboards (a different wrapper, never this class) are
   unaffected — those already render fine. */
.kobadu-forked td,
.kobadu-forked th {
    color: #333 !important;
}

/* My Favorites — product cell. `align-items-centr` (typo for -center) meant
   vertical centering was never actually applied, and unclamped long product
   names wrapped the flex row onto two lines, shoving the thumbnail up above
   the text instead of beside it. */
.kb-fav-product {
    gap: 12px;
    padding: 8px 0;
}

.kb-fav-product-img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 1px solid #eee;
    background-color: #fff;
}

.kb-fav-product-name {
    text-align: left;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* "All Category" mega-menu — subcategories were sitting side by side instead
   of stacking. PageLessComponent replaces the <dropdown-menu-item>
   placeholder tag with its own view() root (a <div> for parent items, an
   <a> for leaf/subcategory items) and marks it via
   setAttribute("dropdown-menu-item", "") rather than keeping
   "dropdown-menu-item" as the tag name (see PageLess.js
   renderComponents/addToDOM) — so a bare-tag selector never matches the
   real DOM; this needs to be an attribute selector. Leaf items render as
   <a>, which defaults to inline, hence the side-by-side layout. Scoped to
   .dropdown-container, the wrapper only DropdownMenuItem.component.js uses,
   so the shared admin-sidebar styling is untouched. */
.dropdown-container > [dropdown-menu-item] {
    display: block;
    width: 100%;
}

/* FAQs / Contact page FAQ items — same white-on-white landmine, hitting
   <faq-item>'s question and answer text (no color of their own, so they
   inherit .kobadu-forked body's white). Note: PageLessComponent replaces
   the <faq-item> placeholder tag with its rendered root div and marks it
   via setAttribute("faq-item", "") rather than keeping "faq-item" as the
   tag name (see PageLess.js renderComponents/addToDOM) — so this must be
   an attribute selector, not an element/type selector. */
.kobadu-forked [faq-item] .properties,
.kobadu-forked [faq-item] .answer-container {
    color: #333 !important;
}

/* ── Thin scrollbars, site-wide ──────────────────────────────────
   No CSS property makes Windows' native scrollbar auto-hide the way macOS's
   does — that's OS-level, not a page style. This is the closest cross-browser
   approximation: a slim, low-contrast bar instead of Windows' default thick
   grey one, so it reads similarly even though it's still always present. */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .25) transparent;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .25);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, .4);
}
