/**
 * Jibal Modern storefront skin.
 * Loaded last in <head> (see Smartwave_Porto/templates/html/head.phtml) so it
 * sits on top of Porto's compiled LESS and its generated design/settings CSS.
 *
 * Palette is taken from the logo: brown leads, coral is kept for small
 * accents only (cart count, discount chips, "deals" marker).
 */
:root {
    --jb-ink: #2b2222;
    --jb-brown: #4b3b3b;
    --jb-brown-600: #5c4a4a;
    --jb-brown-800: #3a2d2d;
    --jb-coral: #ff6b6b;
    --jb-text: #2b2222;
    --jb-muted: #7c6f6c;
    --jb-line: #ebe5e0;
    --jb-line-strong: #ddd4cd;
    --jb-page: #f7f5f3;
    --jb-surface: #ffffff;
    --jb-soft: #f3efeb;
    --jb-green: #1f8a52;
    --jb-green-soft: #e6f4ec;
    --jb-gold: #f0a92e;
    --jb-radius: 14px;
    --jb-radius-sm: 10px;
    --jb-shadow: 0 1px 2px rgba(43, 34, 34, .05), 0 6px 20px rgba(43, 34, 34, .06);
    --jb-shadow-lg: 0 18px 50px rgba(43, 34, 34, .16);
    --jb-wrap: 1320px;
    --jb-font: 'Tajawal', 'Segoe UI', Arial, sans-serif;
}

/* ===== Base ============================================================ */
body {
    background: var(--jb-page);
    color: var(--jb-text);
    font-family: var(--jb-font);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
body, p, li, td, th, label, input, select, textarea, button {
    font-family: var(--jb-font);
}
p, li { font-weight: 400; }
h1, h2, h3, h4, h5, h6 { color: var(--jb-ink); font-weight: 700; letter-spacing: 0; }
a, a:visited { color: var(--jb-brown); }
a:hover { color: var(--jb-ink); }
.page-wrapper { background: var(--jb-page); }
.page-main { max-width: var(--jb-wrap); padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
.cms-index-index .page-main { max-width: none; padding: 0; }
.cms-index-index .page-main .columns, .cms-index-index .column.main { padding: 0; }

.jb-wrap { max-width: var(--jb-wrap); margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* Buttons: brown primary everywhere (overrides Porto's coral config) */
html body .action.primary,
html body button.action.primary,
html body .btn-primary,
html body .action.tocart.primary {
    background: var(--jb-brown);
    border: 1px solid var(--jb-brown);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}
html body .action.primary:hover,
html body button.action.primary:hover,
html body .btn-primary:hover,
html body .action.tocart.primary:hover,
html body .action.primary:focus {
    background: var(--jb-ink);
    border-color: var(--jb-ink);
    color: #fff;
}
.jb-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--jb-brown); color: #fff !important;
    padding: 12px 24px; border-radius: 999px;
    font-weight: 700; font-size: 15px; line-height: 1;
    transition: background .2s, transform .2s;
}
.jb-btn--light { background: #fff; color: var(--jb-ink) !important; }

/* Breadcrumbs: quiet, inline, no grey band */
.page-wrapper > .breadcrumbs,
.breadcrumbs {
    background: transparent !important;
    border: 0 !important;
    margin: 0 auto !important;
    max-width: var(--jb-wrap);
    padding: 16px 20px 0 !important;
    box-sizing: border-box;
}
.page-wrapper > .breadcrumbs::after { display: none !important; }
.breadcrumbs .items { font-size: 13px; color: var(--jb-muted); padding: 0 !important; text-transform: none; }
.breadcrumbs .items > li { font-weight: 500; text-transform: none; }
.breadcrumbs .items a { color: var(--jb-muted); }
.breadcrumbs .items strong { color: var(--jb-ink); font-weight: 600; }

/* ===== Header ========================================================== */
.page-header.jb-header {
    background: var(--jb-surface);
    border: 0;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 200;
    box-shadow: none;
}
.jb-header a { text-decoration: none; }

/* Top strip */
.jb-topbar { background: var(--jb-ink); color: #e8dfd9; font-size: 13px; }
.jb-topbar-row { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 16px; }
.jb-topbar-note { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.jb-topbar-note svg { color: #f2d3b7; flex: none; }
.jb-topbar-dot { width: 4px; height: 4px; border-radius: 50%; background: #8d7b75; display: inline-block; }
.jb-topbar-links { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.jb-topbar-links li { margin: 0; font-weight: 500; }
.jb-topbar-links a, .jb-topbar-links a:visited { color: #e8dfd9; }
.jb-topbar-links a:hover { color: #fff; }
.jb-topbar-switchers:empty { display: none; }
.jb-topbar-switchers .switcher { margin: 0; }

/* Main row */
.jb-header-main { background: var(--jb-surface); border-bottom: 1px solid var(--jb-line); }
.jb-header-row { display: flex; align-items: center; gap: 22px; min-height: 84px; }
.jb-logo { flex: none; }
.jb-logo .logo { display: block; margin: 0 !important; padding: 0 !important; float: none !important; max-width: none; position: static; }
.jb-logo .logo img { width: 132px; height: auto; display: block; }

/* Burger (mobile) */
.jb-header .action.nav-toggle.jb-burger { display: none; }

/* Shop by category trigger + panel */
.jb-catmenu { position: relative; flex: none; }
.jb-catmenu-trigger {
    display: flex; align-items: center; gap: 10px;
    background: transparent; border: 0; padding: 8px 10px; margin: 0;
    color: var(--jb-ink); cursor: pointer; border-radius: 12px;
    box-shadow: none; font: inherit;
}
.jb-catmenu-trigger:hover, .jb-catmenu.is-open .jb-catmenu-trigger { background: var(--jb-soft); color: var(--jb-ink); border: 0; }
.jb-catmenu-grid { color: var(--jb-brown); }
.jb-catmenu-label { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.jb-catmenu-label small { font-size: 12px; color: var(--jb-muted); font-weight: 500; }
.jb-catmenu-label strong { font-size: 15px; font-weight: 700; color: var(--jb-ink); }
.jb-chevron { color: var(--jb-muted); transition: transform .2s; }
.jb-catmenu.is-open .jb-chevron { transform: rotate(180deg); }

.jb-catpanel {
    position: absolute; top: calc(100% + 14px); left: 0;
    width: min(1040px, calc(100vw - 40px));
    display: grid; grid-template-columns: 270px 1fr;
    background: var(--jb-surface); border-radius: 18px;
    box-shadow: var(--jb-shadow-lg); border: 1px solid var(--jb-line);
    overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    z-index: 400;
}
.jb-catpanel::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.jb-catmenu.is-open .jb-catpanel { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease; }
.jb-catpanel-list { margin: 0; padding: 10px; list-style: none; background: var(--jb-page); max-height: 70vh; overflow: auto; }
.jb-catpanel-list li { margin: 0; }
.jb-catpanel-list a {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 12px; border-radius: 10px;
    color: var(--jb-text); font-size: 14px; font-weight: 500;
}
.jb-catpanel-list img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.jb-catpanel-list li.is-active a { background: var(--jb-surface); color: var(--jb-ink); font-weight: 700; box-shadow: 0 1px 3px rgba(43, 34, 34, .08); }
.jb-catpanel-body { padding: 24px 28px; max-height: 70vh; overflow: auto; }
.jb-catpanel-pane { display: none; }
.jb-catpanel-pane.is-active { display: block; }
.jb-catpanel-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--jb-line); padding-bottom: 12px; margin-bottom: 16px; }
.jb-catpanel-head h4 { margin: 0; font-size: 19px; }
.jb-catpanel-head a { font-size: 14px; font-weight: 700; color: var(--jb-brown); }
.jb-catpanel-content { display: grid; grid-template-columns: 1fr 230px; gap: 24px; }
.jb-catpanel-links { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 24px; }
.jb-catpanel-links li { margin: 0 0 4px; break-inside: avoid; }
.jb-catpanel-links a { display: block; padding: 6px 0; color: var(--jb-muted); font-size: 14px; font-weight: 500; }
.jb-catpanel-links a:hover { color: var(--jb-ink); }
.jb-catpanel-promo {
    display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
    background: var(--jb-soft); border-radius: 14px; padding: 16px; min-height: 230px; text-align: center;
}
.jb-catpanel-promo img { width: 150px; height: 150px; object-fit: contain; margin-bottom: 10px; transition: transform .3s; }
.jb-catpanel-promo:hover img { transform: scale(1.05); }
.jb-catpanel-promo span { font-weight: 700; color: var(--jb-ink); font-size: 14px; }

/* Search */
.jb-search { flex: 1 1 auto; min-width: 0; margin: 0 !important; }
.jb-search .search-toggle-icon { display: none !important; }
.jb-header .jb-search .block-search {
    float: none !important; width: 100% !important; max-width: none !important;
    margin: 0 !important; padding: 0 !important; position: relative; border: 0 !important; display: block !important;
}
.jb-header .jb-search .block-search .block-content { margin: 0; }
.jb-header .jb-search .block-search .label { display: none !important; }
.jb-header .jb-search .block-search .control { display: block !important; position: static !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.jb-header .jb-search .block-search .nested { display: none; }
.jb-header .jb-search .block-search input {
    position: static !important; left: auto !important; margin: 0 !important;
    width: 100% !important; height: 48px !important;
    background: var(--jb-soft) !important;
    border: 1.5px solid transparent !important; border-radius: 999px !important;
    padding: 0 60px 0 22px !important;
    font-size: 15px !important; font-weight: 500; color: var(--jb-ink) !important;
    box-shadow: none !important; transition: border-color .2s, background .2s;
}
.jb-header .jb-search .block-search input::placeholder { color: #9b8f8b; }
.jb-header .jb-search .block-search input:focus { background: #fff !important; border-color: var(--jb-brown) !important; }
.jb-header .jb-search .block-search .actions { position: absolute; top: 4px; right: 4px; bottom: auto; left: auto; margin: 0; padding: 0; height: auto; display: block; }
.jb-header .jb-search .block-search .action.search {
    position: static !important; display: flex !important; align-items: center; justify-content: center;
    width: 40px !important; height: 40px !important; min-width: 0; padding: 0 !important;
    background: var(--jb-brown) !important; border: 0 !important; border-radius: 50% !important;
    color: #fff !important; opacity: 1 !important; box-shadow: none !important;
}
.jb-header .jb-search .block-search .action.search:hover { background: var(--jb-ink) !important; }
.jb-header .jb-search .block-search .action.search > span { display: none; }
.jb-header .jb-search .block-search .action.search::before {
    content: ''; display: block; width: 18px; height: 18px; margin: 0;
    font-family: none !important;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.jb-header .search-autocomplete { border-radius: 14px; overflow: hidden; box-shadow: var(--jb-shadow-lg); border: 1px solid var(--jb-line); margin-top: 6px; z-index: 500; }

/* Actions: account / wishlist / cart */
.jb-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.jb-action { position: relative; display: flex; align-items: center; gap: 8px; color: var(--jb-ink) !important; padding: 8px 10px; border-radius: 12px; }
.jb-action:hover { background: var(--jb-soft); }
.jb-action-text { display: flex; flex-direction: column; line-height: 1.15; pointer-events: none; }
.jb-action-text small { font-size: 12px; color: var(--jb-muted); font-weight: 500; }
.jb-action-text strong { font-size: 15px; font-weight: 700; color: var(--jb-ink); }
.jb-account .my-account,
.jb-account .my-account-menu .account-toggle { color: var(--jb-ink) !important; display: flex; align-items: center; }
.jb-account .my-account i,
.jb-account .my-account-menu .account-toggle i { font-size: 26px; color: var(--jb-ink); line-height: 1; }
.jb-account .my-account::after { content: ''; position: absolute; inset: 0; }
.jb-account .my-account-menu { position: static; }
.jb-account .my-account-menu .customer-name { cursor: pointer; display: flex; }
.jb-account .my-account-menu .hi-text { display: none; }
.jb-account .my-account-menu ~ .jb-action-text small { visibility: hidden; }
.jb-account .my-account-menu .customer-menu {
    position: absolute; top: calc(100% + 8px); right: 0; left: auto; min-width: 230px;
    background: #fff; border-radius: 14px; border: 1px solid var(--jb-line); box-shadow: var(--jb-shadow-lg);
    padding: 8px; z-index: 500;
}
.jb-account .my-account-menu .customer-menu ul { margin: 0; padding: 0; list-style: none; display: block; }
.jb-account .my-account-menu .customer-menu li { margin: 0; display: block; }
.jb-account .my-account-menu .customer-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--jb-text) !important; font-size: 14px; font-weight: 500; }
.jb-account .my-account-menu .customer-menu a:hover { background: var(--jb-soft); }
.jb-wishlist svg { display: block; }

.jb-cart { padding: 0; }
.jb-header .minicart-wrapper { margin: 0 !important; float: none; position: relative; }
.jb-header .minicart-wrapper .action-subtotal { display: none !important; }
.jb-header .minicart-wrapper .action.showcart {
    display: flex !important; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px;
    color: var(--jb-ink) !important; position: relative; text-decoration: none;
}
.jb-header .minicart-wrapper .action.showcart:hover { background: var(--jb-soft); }
.jb-header .minicart-wrapper .action.showcart::before { display: none !important; }
.jb-header .minicart-wrapper .minicart-icon { font-size: 26px !important; color: var(--jb-ink) !important; line-height: 1; margin: 0 !important; }
.jb-header .minicart-wrapper .action.showcart .text { display: inline !important; position: static !important; width: auto; height: auto; clip: auto; overflow: visible; font-size: 15px; font-weight: 700; color: var(--jb-ink); margin: 0; }
.jb-header .minicart-wrapper .action.showcart .counter.qty {
    position: absolute !important; top: 2px !important; left: 26px !important; right: auto !important;
    min-width: 19px; height: 19px; line-height: 19px !important; padding: 0 5px !important; margin: 0 !important;
    border-radius: 999px; background: var(--jb-coral) !important; color: #fff !important;
    font-size: 11px !important; font-weight: 700; text-align: center; box-shadow: 0 0 0 2px #fff;
}
.jb-header .minicart-wrapper .action.showcart .counter-label { display: none; }
.jb-header .minicart-wrapper .block-minicart {
    right: 0 !important; left: auto !important; top: calc(100% + 10px) !important; margin-top: 0;
    border-radius: 16px; border: 1px solid var(--jb-line); box-shadow: var(--jb-shadow-lg); padding: 20px;
}
.jb-header .minicart-wrapper .block-minicart::before,
.jb-header .minicart-wrapper .block-minicart::after { display: none; }

/* Category bar */
.jb-catbar { background: var(--jb-surface); border-bottom: 1px solid var(--jb-line); }
.jb-catbar-list {
    display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.jb-catbar-list::-webkit-scrollbar { display: none; }
.jb-catbar-list li { margin: 0; flex: none; }
.jb-catbar-list a {
    display: block; padding: 13px 12px; font-size: 14px; font-weight: 500; color: var(--jb-text) !important;
    white-space: nowrap; position: relative;
}
.jb-catbar-list a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--jb-brown); transform: scaleX(0); transition: transform .2s; }
.jb-catbar-list a:hover { color: var(--jb-ink) !important; }
.jb-catbar-list a:hover::after { transform: scaleX(1); }
.jb-catbar-deals a { font-weight: 700; color: var(--jb-ink) !important; padding-left: 26px; }
.jb-catbar-deals a::before { content: ''; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--jb-coral); }

/* Porto's own navigation is only used as the mobile off-canvas menu */
.jb-mobile-nav { display: none; }

/* Sticky: Porto's JS toggles .sticky-header and freezes .page-header height */
.page-header.jb-header.sticky-header { position: relative; box-shadow: none; }
.page-header.jb-header.sticky-header .jb-header-main {
    position: fixed; top: 0; left: 0; right: 0; z-index: 300;
    box-shadow: 0 6px 24px rgba(43, 34, 34, .1);
    animation: jbSlideDown .25s ease;
}
.page-header.jb-header.sticky-header .jb-header-row { min-height: 70px; }
@keyframes jbSlideDown { from { transform: translateY(-100%); } to { transform: none; } }

/* ===== Header: tablet & mobile ========================================= */
@media (max-width: 1199px) {
    .jb-action-text, .jb-header .minicart-wrapper .action.showcart .text { display: none !important; }
    .jb-header-row { gap: 14px; }
}
@media (max-width: 991px) {
    .jb-hide-sm, .jb-topbar-dot, .jb-topbar-links, .jb-catmenu { display: none !important; }
    .jb-topbar-row { justify-content: center; min-height: 32px; font-size: 12px; }
    .jb-header-row { flex-wrap: wrap; gap: 8px 10px; min-height: 0; padding-top: 10px; padding-bottom: 12px; }
    .jb-header .action.nav-toggle.jb-burger {
        display: flex !important; align-items: center; justify-content: center; order: 0;
        width: 42px; height: 42px; margin: 0; padding: 0; border-radius: 12px; cursor: pointer;
        position: relative; float: none;
    }
    .jb-header .action.nav-toggle.jb-burger::before {
        content: '' !important; font-family: none !important; display: block; width: 20px; height: 2px; border-radius: 2px;
        background: var(--jb-ink); box-shadow: 0 -6px 0 var(--jb-ink), 0 6px 0 var(--jb-ink);
    }
    .jb-header .action.nav-toggle.jb-burger > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .jb-logo { order: 1; flex: 1 1 auto; }
    .jb-logo .logo img { width: 104px; }
    .jb-actions { order: 2; gap: 0; }
    .jb-action { padding: 8px; }
    .jb-wishlist { display: none !important; }
    .jb-search { order: 3; flex: 1 0 100%; }
    .jb-header .jb-search .block-search input { height: 44px !important; }
    .jb-header .jb-search .block-search .action.search { width: 36px !important; height: 36px !important; }
    .jb-catbar-list a { padding: 11px 10px; font-size: 13px; }
    .jb-mobile-nav { display: block; height: 0; }
    .page-header.jb-header.sticky-header .jb-header-row { min-height: 0; }
    .page-header.jb-header.sticky-header .jb-search { display: none; }
}

/* ===== Home ============================================================= */
.jb-home { padding-bottom: 24px; }
.jb-section { max-width: var(--jb-wrap); margin: 44px auto 0; padding: 0 20px; box-sizing: border-box; }
.jb-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.jb-section-head h2 { margin: 0; font-size: 24px; font-weight: 800; color: var(--jb-ink); display: flex; align-items: center; gap: 10px; }
.jb-section-head a { font-size: 14px; font-weight: 700; color: var(--jb-brown) !important; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.jb-section-head a::after { content: '›'; font-size: 20px; line-height: 1; }
.jb-flash { width: 10px; height: 10px; border-radius: 50%; background: var(--jb-coral); box-shadow: 0 0 0 5px rgba(255, 107, 107, .18); }

/* Hero slider */
.jb-hero { position: relative; padding-top: 22px; }
.jb-hero-viewport {
    container-type: inline-size;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.jb-hero-viewport::-webkit-scrollbar { display: none; }
.jb-hero-track {
    --jb-slide-w: min(1240px, calc(100cqw - 180px));
    --jb-gap: 18px;
    display: flex; gap: var(--jb-gap);
    padding: 0 calc((100cqw - var(--jb-slide-w)) / 2);
    width: max-content;
}
.jb-slide {
    flex: 0 0 var(--jb-slide-w); width: var(--jb-slide-w);
    position: relative; overflow: hidden; scroll-snap-align: center;
    height: 420px; border-radius: 22px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 70px; box-sizing: border-box; text-decoration: none !important;
    opacity: .45; transition: opacity .5s ease;
}
.jb-slide.is-active, .jb-hero:not(.is-ready) .jb-slide:first-child { opacity: 1; }
.jb-slide::before {
    content: ''; position: absolute; width: 520px; height: 520px; right: 6%; top: 50%; margin-top: -260px;
    border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}
.jb-slide--ink { background: linear-gradient(115deg, #2b2222 0%, #4b3b3b 100%); }
.jb-slide--sand { background: linear-gradient(115deg, #f4ece4 0%, #e3d5c8 100%); }
.jb-slide--cocoa { background: linear-gradient(115deg, #3b2b29 0%, #6a4f48 100%); }
.jb-slide--stone { background: linear-gradient(115deg, #efebe7 0%, #d9d1ca 100%); }
.jb-slide--night { background: linear-gradient(115deg, #1b1616 0%, #3a2f2f 100%); }
.jb-slide--sand::before, .jb-slide--stone::before { background: radial-gradient(circle, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 0) 70%); }
.jb-slide-copy { position: relative; z-index: 1; max-width: 470px; }
.jb-slide-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; color: #e7d3c1; }
.jb-slide-title { font-size: 46px; line-height: 1.06; font-weight: 800; margin: 0 0 14px; color: #fff; }
.jb-slide-text { font-size: 17px; line-height: 1.5; margin: 0 0 26px; color: #e9e0da; max-width: 420px; }
.jb-slide--sand .jb-slide-title, .jb-slide--stone .jb-slide-title { color: var(--jb-ink); }
.jb-slide--sand .jb-slide-text, .jb-slide--stone .jb-slide-text { color: #5f504c; }
.jb-slide--sand .jb-slide-eyebrow, .jb-slide--stone .jb-slide-eyebrow { color: #8a6c5d; }
.jb-slide-img {
    position: relative; z-index: 1; width: 360px; height: 360px; object-fit: contain; flex: none;
    filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .28));
    transform: translateY(14px) scale(.96); transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.jb-slide.is-active .jb-slide-img { transform: none; }
.jb-slide:hover .jb-btn { transform: translateX(3px); }
.jb-hero-arrow {
    position: absolute; top: calc(50% + 11px - 26px); z-index: 3;
    width: 52px; height: 52px; border-radius: 50%; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--jb-ink); border: 0; cursor: pointer;
    box-shadow: 0 6px 20px rgba(43, 34, 34, .18);
    transition: transform .2s, background .2s;
}
.jb-hero-arrow:hover { background: #fff; color: var(--jb-ink); transform: scale(1.06); border: 0; }
.jb-hero-arrow--prev { left: calc((100% - min(1240px, 100% - 180px)) / 2 - 26px); }
.jb-hero-arrow--next { right: calc((100% - min(1240px, 100% - 180px)) / 2 - 26px); }
.jb-hero-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; min-height: 8px; }
.jb-hero-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #d3c9c3; cursor: pointer; transition: width .3s, background .3s; box-shadow: none; }
.jb-hero-dot:hover { background: #b9aca6; border: 0; }
.jb-hero-dot.is-active { width: 30px; background: var(--jb-brown); }

/* Category tiles (Jarir) */
.jb-cats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.jb-cats li { margin: 0; }
.jb-cat {
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    height: 100%; min-height: 168px; padding: 16px 10px 14px; box-sizing: border-box;
    border-radius: 18px; text-align: center; text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease;
}
.jb-cat:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(43, 34, 34, .1); }
.jb-cat-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 104px; }
.jb-cat-img img { max-width: 92px; max-height: 100px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(43, 34, 34, .15)); transition: transform .3s; }
.jb-cat:hover .jb-cat-img img { transform: scale(1.07); }
.jb-cat-name { font-size: 14px; font-weight: 700; color: var(--jb-ink); line-height: 1.25; margin-top: 8px; }
.jb-tint-1 { background: #f3ece5; }
.jb-tint-2 { background: #ebe7e2; }
.jb-tint-3 { background: #e7edf0; }
.jb-tint-4 { background: #ebefe6; }
.jb-tint-5 { background: #f1eae3; }
.jb-tint-6 { background: #ebe8f0; }
.jb-tint-7 { background: #eaeeec; }
.jb-cat--all { background: var(--jb-brown); }
.jb-cat--all .jb-cat-name { color: #fff; }
.jb-cat-img--icon { color: #fff; }

/* Promo trio + wide banners */
.jb-promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.jb-promo, .jb-wide-banner {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between;
    border-radius: 20px; text-decoration: none !important; transition: transform .25s ease, box-shadow .25s ease;
}
.jb-promo:hover, .jb-wide-banner:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(43, 34, 34, .12); }
.jb-promo { min-height: 200px; padding: 24px 18px 24px 26px; }
.jb-promo img { width: 46%; max-height: 165px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .2)); transition: transform .4s; }
.jb-promo:hover img, .jb-wide-banner:hover img { transform: scale(1.05) rotate(-2deg); }
.jb-promo-copy, .jb-wide-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.jb-promo-copy small, .jb-wide-copy small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a6c5d; margin-bottom: 8px; }
.jb-promo-copy strong { font-size: 21px; line-height: 1.2; font-weight: 800; color: var(--jb-ink); margin-bottom: 14px; }
.jb-promo-copy em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--jb-brown); border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.jb-promo--sand { background: #f3ebe3; }
.jb-promo--mist { background: #e8edf0; }
.jb-promo--ink { background: linear-gradient(120deg, #2b2222, #4b3b3b); }
.jb-promo--ink small { color: #e7d3c1; }
.jb-promo--ink strong, .jb-promo--ink em { color: #fff; }

.jb-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.jb-wide-banner { min-height: 250px; padding: 30px 26px 30px 40px; }
.jb-wide-banner img { width: 42%; max-height: 210px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .25)); transition: transform .4s; }
.jb-wide-copy strong { font-size: 28px; line-height: 1.15; font-weight: 800; color: var(--jb-ink); margin-bottom: 20px; max-width: 320px; }
.jb-wide-banner--night { background: linear-gradient(120deg, #1b1616, #3f3232); }
.jb-wide-banner--night small { color: #e7d3c1; }
.jb-wide-banner--night strong { color: #fff; }
.jb-wide-banner--stone { background: linear-gradient(120deg, #efebe7, #ddd5ce); }

/* Product rails (owl carousels on the home page) */
.jb-rail { background: var(--jb-surface); border-radius: 22px; padding: 24px 24px 18px; border: 1px solid var(--jb-line); }
.jb-rail .porto-products, .jb-rail .slider-wrapper { margin: 0; }
.jb-rail .owl-carousel .owl-stage-outer { padding: 4px 0 10px; }
.jb-rail .owl-carousel .owl-item .product-item { padding: 0 !important; margin: 0 !important; width: 100% !important; }
.jb-rail .owl-nav { margin: 0 !important; }
.jb-rail .owl-carousel .owl-nav button.owl-prev,
.jb-rail .owl-carousel .owl-nav button.owl-next,
.jb-rail .owl-carousel .owl-nav > div {
    position: absolute; top: 38%; width: 42px !important; height: 42px !important; margin: 0 !important;
    border-radius: 50% !important; background: #fff !important; color: var(--jb-ink) !important;
    box-shadow: 0 4px 16px rgba(43, 34, 34, .16) !important; border: 0 !important;
    display: flex !important; align-items: center; justify-content: center; font-size: 18px !important; opacity: 1;
}
.jb-rail .owl-carousel .owl-nav .owl-prev { left: -14px; }
.jb-rail .owl-carousel .owl-nav .owl-next { right: -14px; }
.jb-rail .owl-carousel .owl-nav .disabled { opacity: 0 !important; pointer-events: none; }
.jb-rail .owl-dots { display: none !important; }
.jb-rail--deals { background: linear-gradient(180deg, #fbf6f2 0%, #fff 120px); }

/* Brands */
.jb-brands { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.jb-brands::-webkit-scrollbar { display: none; }
.jb-brands .jibal-brand-item { flex: 1 0 128px; margin: 0; }
.jb-brands .jibal-brand-tile {
    display: flex !important; align-items: center; justify-content: center; height: 86px; padding: 14px 18px;
    background: #fff; border: 1px solid var(--jb-line); border-radius: 16px; box-shadow: none;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.jb-brands .jibal-brand-tile:hover { border-color: var(--jb-line-strong); transform: translateY(-2px); box-shadow: var(--jb-shadow); }
.jb-brands .jibal-brand-tile img { max-height: 34px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.jb-brands .jibal-brand-tile:hover img { filter: none; opacity: 1; }
.jb-brands .jibal-brand-word { font-size: 18px; font-weight: 800; color: var(--jb-brown); }

/* ===== Product card (home rails, category grid, related) ================ */
.product-item-info.jibal-card-v2,
.product-item-info.type6 {
    background: var(--jb-surface) !important;
    border: 1px solid var(--jb-line) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    padding: 10px 10px 14px !important;
    height: 100%; box-sizing: border-box;
    display: flex; flex-direction: column;
    transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.product-item-info.jibal-card-v2:hover,
.product-item-info.type6:hover { border-color: var(--jb-line-strong) !important; box-shadow: 0 14px 30px rgba(43, 34, 34, .1) !important; transform: translateY(-2px); }
.product-item-info.jibal-card-v2 .product-item-photo,
.product-item-info.type6 .product-item-photo {
    background: #f8f6f4; border-radius: 12px; overflow: hidden; margin: 0 0 10px !important; padding: 0 !important; position: relative; display: block;
}
.product-item-info.jibal-card-v2 .product-image-photo,
.product-item-info.type6 .product-image-photo { mix-blend-mode: multiply; transition: transform .4s ease; }
.product-item-info:hover .product-image-photo { transform: scale(1.04); }
.product-item-info .jibal-brand-badge {
    position: absolute; top: 8px; right: 8px; z-index: 2; left: auto;
    background: #fff !important; border-radius: 999px !important; box-shadow: 0 1px 4px rgba(43, 34, 34, .12) !important;
    padding: 4px 9px !important; color: var(--jb-ink) !important; font-size: 10px; font-weight: 700;
}
.product-item-info .jibal-brand-badge img { max-height: 14px; width: auto; }
.product-item-info .product-item-inner .towishlist,
.product-item-info .actions-secondary.towishlist {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%; background: #fff !important; color: var(--jb-ink) !important;
    display: flex !important; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(43, 34, 34, .12); border: 0 !important;
}
.product-item-info .product-item-details { padding: 0 4px !important; display: flex; flex-direction: column; flex: 1 1 auto; text-align: left !important; }
.product-item-info .product-item-name { margin: 0 0 6px !important; min-height: 40px; }
.product-item-info .product-item-name a,
.product-item-info .product-item-link {
    font-size: 14px !important; line-height: 1.4 !important; font-weight: 500 !important; color: var(--jb-ink) !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal !important;
}
.product-item-info .product-color-chip { font-size: 12px; color: var(--jb-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.product-item-info .product-color-chip .product-color-label { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-item-info .price-box { margin: auto 0 10px !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; justify-content: flex-start !important; text-align: left; }
.product-item-info .price-box .price { font-size: 17px !important; font-weight: 800 !important; color: var(--jb-ink) !important; }
.product-item-info .price-box .special-price { order: 0; margin: 0 !important; }
.product-item-info .price-box .old-price { order: 1; margin: 0 !important; }
.product-item-info .price-box .old-price .price { font-size: 13px !important; font-weight: 500 !important; color: #a3958f !important; text-decoration: line-through; }
.product-item-info .price-box .price-label { display: none !important; }
.product-item-info .actions-primary { margin-top: 0; }
.product-item-info .actions-primary form { display: block !important; }
.product-item-info .action.tocart.primary,
.product-item-info .actions-primary .action.tocart {
    width: 100%; height: 42px; min-height: 0; padding: 0 12px !important; margin: 0 !important;
    background: var(--jb-soft) !important; color: var(--jb-ink) !important; border: 0 !important;
    border-radius: 10px !important; font-size: 14px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0;
    display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: none !important;
}
.product-item-info .action.tocart.primary:hover,
.product-item-info .actions-primary .action.tocart:hover { background: var(--jb-brown) !important; color: #fff !important; }
.product-item-info .action.tocart > span { display: inline !important; }
.product-item-info .action.tocart::before { font-size: 15px; }
.product-item-info .jibal-name-wishlist { color: var(--jb-muted) !important; }
.product-item-info .stock.unavailable { font-size: 13px; color: var(--jb-muted); font-weight: 600; }

/* Labels (sale/new) */
.product-labels .product-label, .product-label { border-radius: 999px !important; font-weight: 700 !important; font-size: 11px !important; padding: 4px 9px !important; }
.product-label.sale-label { background: var(--jb-coral) !important; color: #fff !important; }
.product-label.new-label { background: var(--jb-ink) !important; color: #fff !important; }

/* ===== Category / search listing ======================================= */
.page-products .page-title-wrapper, .catalogsearch-result-index .page-title-wrapper { margin: 18px 0 6px; padding: 0; text-align: left; }
.page-products .page-title-wrapper .page-title,
.catalogsearch-result-index .page-title { font-size: 28px; font-weight: 800; color: var(--jb-ink); margin: 0; text-transform: none; }
.page-products .page-title-wrapper .page-title .base { font-weight: 800; }

/* Sub-category tiles at the top of a category (Jarir tiles) */
.category-icons-horizontal { margin: 14px 0 24px; }
.category-icons-horizontal .category-icons-list {
    display: flex !important; gap: 12px; margin: 0; padding: 2px 2px 6px; list-style: none;
    overflow-x: auto; scrollbar-width: none; justify-content: flex-start !important;
}
.category-icons-horizontal .category-icons-list::-webkit-scrollbar { display: none; }
.category-icons-horizontal .category-icon-item { flex: 0 0 132px; margin: 0 !important; width: auto !important; }
.category-icons-horizontal .category-icon-item a {
    display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px 14px;
    background: var(--jb-surface); border: 1px solid var(--jb-line); border-radius: 16px; text-align: center; height: 100%; box-sizing: border-box;
    transition: transform .2s, box-shadow .2s;
}
.category-icons-horizontal .category-icon-item a:hover { transform: translateY(-3px); box-shadow: var(--jb-shadow); }
.category-icons-horizontal .category-icon-thumb {
    width: 58px !important; height: 58px !important; border-radius: 16px !important; border: 0 !important;
    background: var(--jb-soft) !important; color: var(--jb-brown) !important;
    display: flex !important; align-items: center; justify-content: center; font-size: 22px; box-shadow: none !important;
}
.category-icons-horizontal .category-icon-item:nth-child(7n+2) .category-icon-thumb { background: #e7edf0 !important; }
.category-icons-horizontal .category-icon-item:nth-child(7n+3) .category-icon-thumb { background: #ebefe6 !important; }
.category-icons-horizontal .category-icon-item:nth-child(7n+4) .category-icon-thumb { background: #ebe8f0 !important; }
.category-icons-horizontal .category-icon-item:nth-child(7n+5) .category-icon-thumb { background: #f3ece5 !important; }
.category-icons-horizontal .category-icon-label { font-size: 13px !important; font-weight: 600 !important; color: var(--jb-ink) !important; line-height: 1.3; white-space: normal !important; }

/* Sidebar / layered navigation as cards */
.page-products .sidebar-main .block,
.page-products .sidebar-main .filter-options-item,
.page-products .sidebar-main .side-custom-block {
    background: var(--jb-surface); border: 1px solid var(--jb-line) !important; border-radius: var(--jb-radius); box-shadow: none !important;
}
.page-products .sidebar-main .block.filter { background: transparent; border: 0 !important; }
.page-products .sidebar-main .filter-options-item { margin-bottom: 12px !important; padding: 0 !important; overflow: hidden; }
.page-products .sidebar-main .filter-options-title {
    font-size: 15px !important; font-weight: 700 !important; color: var(--jb-ink) !important; text-transform: none !important;
    padding: 15px 18px !important; margin: 0 !important; border: 0 !important; letter-spacing: 0;
}
.page-products .sidebar-main .filter-options-content { padding: 0 18px 14px !important; }
.page-products .sidebar-main .filter-options-content a { color: var(--jb-muted) !important; font-weight: 500; font-size: 14px; }
.page-products .sidebar-main .filter-options-content a:hover { color: var(--jb-ink) !important; }
.page-products .sidebar-main .filter-options-content .count { color: #b2a59f; }
.page-products .sidebar-main .block-title strong,
.page-products .sidebar-main .filter-title strong { font-size: 16px; font-weight: 800; color: var(--jb-ink); text-transform: none; }
.page-products .filter-current .items, .page-products .filter-actions { padding: 0 18px; }
.page-products .filter-actions .filter-clear { color: var(--jb-brown) !important; font-weight: 700; }
.ui-slider .ui-slider-range, .price-slider .ui-slider-range { background: var(--jb-brown) !important; }
.ui-slider .ui-slider-handle { background: var(--jb-brown) !important; border-color: var(--jb-brown) !important; }

/* Toolbar */
.page-products .toolbar-products, .catalogsearch-result-index .toolbar-products {
    background: var(--jb-surface); border: 1px solid var(--jb-line); border-radius: var(--jb-radius);
    padding: 10px 14px !important; margin-bottom: 18px !important; display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.toolbar-products .toolbar-amount { font-size: 14px; color: var(--jb-muted); font-weight: 500; margin: 0 auto 0 0; padding: 0; }
.toolbar-products .sorter-label, .toolbar-products .limiter-label, .toolbar-products .limiter-text { font-size: 13px; color: var(--jb-muted); font-weight: 600; text-transform: none; }
.toolbar-products select, .toolbar-products .sorter-options, .toolbar-products .limiter-options {
    height: 38px; border: 1px solid var(--jb-line-strong) !important; border-radius: 10px !important; background-color: #fff;
    font-weight: 600; color: var(--jb-ink); padding: 0 34px 0 12px; box-shadow: none;
}
.toolbar-products .modes-mode { border-radius: 10px !important; border: 1px solid var(--jb-line-strong) !important; color: var(--jb-muted) !important; width: 38px; height: 38px; display: inline-flex !important; align-items: center; justify-content: center; }
.toolbar-products .modes-mode.active { background: var(--jb-brown) !important; border-color: var(--jb-brown) !important; color: #fff !important; }
.toolbar-products .sorter-action { color: var(--jb-brown) !important; }

/* Grid */
.page-products .products-grid ol.product-items,
.catalogsearch-result-index .products-grid ol.product-items {
    display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 !important; padding: 0 !important;
}
.page-layout-1column.page-products .products-grid ol.product-items { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.page-products .products-grid ol.product-items > li.product-item,
.catalogsearch-result-index .products-grid ol.product-items > li.product-item {
    width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; float: none !important;
}
.page-products .products-grid ol.product-items::before, .page-products .products-grid ol.product-items::after { display: none !important; }
.page-products .products.wrapper.divider-line .product-item { border: 0 !important; }

/* Pager */
.toolbar .pages .items { display: flex; gap: 6px; justify-content: center; }
.toolbar .pages .item a, .toolbar .pages .item strong {
    min-width: 38px; height: 38px; line-height: 38px; border-radius: 10px !important; border: 1px solid var(--jb-line-strong) !important;
    background: #fff !important; color: var(--jb-ink) !important; font-weight: 700; padding: 0 10px;
}
.toolbar .pages .item.current strong { background: var(--jb-brown) !important; border-color: var(--jb-brown) !important; color: #fff !important; }

.page-products .message.info.empty, .message.info.empty {
    background: var(--jb-surface) !important; border: 1px dashed var(--jb-line-strong) !important; border-radius: var(--jb-radius);
    color: var(--jb-muted) !important; padding: 26px !important; font-weight: 600; text-align: center;
}
.message.info.empty > *:first-child::before { display: none !important; }

/* ===== Product page ===================================================== */
.catalog-product-view .column.main { padding-top: 18px; }
.catalog-product-view .product.media {
    background: var(--jb-surface); border: 1px solid var(--jb-line); border-radius: 20px; padding: 18px; box-sizing: border-box;
}
.catalog-product-view .fotorama__stage, .catalog-product-view .fotorama__wrap { border-radius: 14px; }
.catalog-product-view .fotorama__nav__frame--thumb .fotorama__thumb { border-radius: 10px; }
.catalog-product-view .fotorama__thumb-border { border-color: var(--jb-brown) !important; border-radius: 10px; }
.catalog-product-view .product-info-main {
    background: var(--jb-surface); border: 1px solid var(--jb-line); border-radius: 20px; padding: 28px 30px !important; box-sizing: border-box;
}
.catalog-product-view .product-info-main .page-title-wrapper .page-title {
    font-size: 28px !important; line-height: 1.25 !important; font-weight: 800 !important; color: var(--jb-ink) !important; margin: 0 40px 12px 0 !important;
    text-transform: none !important; letter-spacing: 0 !important;
}
.catalog-product-view .product-info-main .page-title .base { font-weight: 800; }
.catalog-product-view .jibal-brand-tag { margin-bottom: 14px; }
.catalog-product-view .jibal-brand-tag-label { color: var(--jb-muted) !important; letter-spacing: .06em; }
.catalog-product-view .jibal-brand-tag-value, .catalog-product-view .jibal-brand-tag-logo { background: var(--jb-soft) !important; color: var(--jb-ink) !important; }
.catalog-product-view .product-info-price {
    border: 0 !important; margin: 0 0 14px !important; padding: 18px 20px !important; background: var(--jb-page); border-radius: 14px;
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px; width: 100%; box-sizing: border-box;
}
.catalog-product-view .product-info-price .price-box { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 !important; padding: 0 !important; }
.catalog-product-view .product-info-price .price-box .price { font-size: 30px !important; font-weight: 800 !important; color: var(--jb-ink) !important; }
.catalog-product-view .product-info-price .price-box .special-price { order: 0; margin: 0 !important; }
.catalog-product-view .product-info-price .price-box .old-price { order: 1; margin: 0 !important; }
.catalog-product-view .product-info-price .price-box .old-price .price { font-size: 17px !important; color: #a3958f !important; font-weight: 500 !important; text-decoration: line-through; }
.catalog-product-view .product-info-price .price-label { display: none !important; }
.catalog-product-view .product-info-stock-sku { display: flex; align-items: center; gap: 10px; margin: 0 0 16px !important; padding: 0 !important; }
.catalog-product-view .stock.available,
.catalog-product-view .stock.unavailable {
    display: inline-flex !important; align-items: center; gap: 6px; padding: 6px 12px !important; border-radius: 999px;
    font-size: 13px !important; font-weight: 700 !important; text-transform: none !important; margin: 0 !important;
}
.catalog-product-view .stock.available { background: var(--jb-green-soft); color: var(--jb-green) !important; }
.catalog-product-view .stock.available span, .catalog-product-view .stock.available .label { color: inherit !important; font-weight: 700 !important; text-transform: none !important; }
.catalog-product-view .stock.unavailable { background: var(--jb-soft); color: var(--jb-muted) !important; }

/* Countdown */
.catalog-product-view .sw-dailydeal { margin: 6px 0 18px; }
.catalog-product-view .sw-dailydeal .dailydeal-label { font-size: 13px !important; font-weight: 800 !important; color: var(--jb-ink) !important; text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 8px; }
.catalog-product-view .sw-dailydeal .countdowncontainer { display: flex; gap: 8px; }
.catalog-product-view .sw-dailydeal .number-wrapper {
    background: var(--jb-ink) !important; color: #fff !important; border-radius: 12px !important; min-width: 62px; padding: 8px 6px !important;
    margin: 0 !important; text-align: center; box-shadow: none !important;
}
.catalog-product-view .sw-dailydeal .number-wrapper .line { display: none; }
.catalog-product-view .sw-dailydeal .number p { color: #fff !important; font-size: 22px !important; font-weight: 800 !important; margin: 0 !important; line-height: 1.1; }
.catalog-product-view .sw-dailydeal .caption { color: #d8cbc4 !important; font-size: 10px !important; font-weight: 700; text-transform: uppercase; }

/* Add to cart */
.catalog-product-view .box-tocart { margin: 0 0 16px !important; padding: 0 !important; width: 100%; }
.catalog-product-view .box-tocart .fieldset { display: flex !important; align-items: stretch; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.catalog-product-view .box-tocart .field.qty { margin: 0 !important; padding: 0 !important; }
.catalog-product-view .box-tocart .field.qty .control,
.catalog-product-view .box-tocart .qty-changer { height: 52px; }
.catalog-product-view .box-tocart .field.qty .control {
    border: 1px solid var(--jb-line-strong) !important; border-radius: 12px !important; display: flex; align-items: center; overflow: hidden; background: #fff;
}
.catalog-product-view .box-tocart .input-text.qty { border: 0 !important; height: 50px !important; width: 46px !important; font-weight: 800; font-size: 16px; color: var(--jb-ink); box-shadow: none !important; background: transparent !important; }
.catalog-product-view .box-tocart .qty-changer a { color: var(--jb-ink) !important; }
.catalog-product-view .box-tocart .actions { display: flex !important; flex: 1 1 260px; gap: 10px; margin: 0 !important; padding: 0 !important; }
.catalog-product-view .box-tocart .action.tocart,
.catalog-product-view .mageprince-buy-now-btn {
    height: 52px !important; line-height: 1 !important; border-radius: 12px !important; font-size: 16px !important; font-weight: 800 !important;
    padding: 0 22px !important; text-transform: none !important; letter-spacing: 0 !important; margin: 0 !important; width: 100% !important;
    display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
}
.catalog-product-view .box-tocart .action.tocart { flex: 1 1 auto; background: var(--jb-brown) !important; border-color: var(--jb-brown) !important; color: #fff !important; }
.catalog-product-view .box-tocart .action.tocart:hover { background: var(--jb-ink) !important; border-color: var(--jb-ink) !important; }
.catalog-product-view .mageprince-buynow { flex: 1 1 auto; margin: 0 !important; display: flex; }
.catalog-product-view .mageprince-buy-now-btn { background: #fff !important; color: var(--jb-ink) !important; border: 1.5px solid var(--jb-ink) !important; box-shadow: none !important; }
.catalog-product-view .mageprince-buy-now-btn:hover { background: var(--jb-ink) !important; color: #fff !important; }
.catalog-product-view .product-social-links { margin: 0 !important; }
.catalog-product-view .product-addto-links .action.towishlist {
    width: 52px; height: 52px; border-radius: 12px !important; border: 1px solid var(--jb-line-strong) !important; color: var(--jb-ink) !important;
    display: inline-flex !important; align-items: center; justify-content: center; background: #fff !important;
}
.catalog-product-view .product-addto-links .action.towishlist:hover { border-color: var(--jb-ink) !important; }

/* Trust strip under the buy box */
.catalog-product-view .jibal-trust-badges { gap: 10px; }
.catalog-product-view .jibal-shipping-badge { background: var(--jb-page) !important; color: var(--jb-ink) !important; border-radius: 12px !important; border: 1px solid var(--jb-line); }
.catalog-product-view .jibal-shipping-badge svg, .catalog-product-view .jibal-shipping-badge i { color: var(--jb-brown) !important; }
.catalog-product-view .jibal-payment-methods-label { color: var(--jb-muted) !important; }

/* Prev/next arrows */
.catalog-product-view .prev-next-products .product-nav > a {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--jb-line-strong); display: flex; align-items: center; justify-content: center; color: var(--jb-ink);
}

/* Detail tabs */
.catalog-product-view .product.info.detailed { margin-top: 26px; }
.catalog-product-view .product.data.items { border: 0 !important; }
.catalog-product-view .product.data.items > .item.title > .switch {
    background: transparent !important; border: 0 !important; border-bottom: 3px solid transparent !important;
    color: var(--jb-muted) !important; font-size: 16px !important; font-weight: 700 !important; text-transform: none !important;
    padding: 12px 4px !important; margin-right: 22px; letter-spacing: 0;
}
.catalog-product-view .product.data.items > .item.title.active > .switch,
.catalog-product-view .product.data.items > .item.title > .switch:hover { color: var(--jb-ink) !important; border-bottom-color: var(--jb-brown) !important; }
.catalog-product-view .product.data.items > .item.content {
    background: var(--jb-surface) !important; border: 1px solid var(--jb-line) !important; border-radius: 20px !important;
    padding: 26px 28px !important; margin-top: -1px; box-shadow: none !important;
}
.catalog-product-view .jibal-specs-title, .catalog-product-view .jibal-warranty-returns-title { font-size: 18px !important; font-weight: 800 !important; color: var(--jb-ink) !important; padding-left: 0 !important; }
.catalog-product-view .jibal-specs-title::before, .catalog-product-view .jibal-warranty-returns-title::before { display: none !important; }
.catalog-product-view .jibal-specs-grid { border: 1px solid var(--jb-line) !important; border-radius: 14px !important; overflow: hidden; background: #fff; }
.catalog-product-view .jibal-specs-row { border-left: 0 !important; border-bottom: 1px solid var(--jb-line) !important; }
.catalog-product-view .jibal-specs-row:nth-child(odd) { background: var(--jb-page); }
.catalog-product-view .jibal-specs-row:last-child { border-bottom: 0 !important; }
.catalog-product-view .jibal-specs-label { color: var(--jb-muted) !important; font-weight: 600 !important; }
.catalog-product-view .jibal-specs-value { color: var(--jb-ink) !important; font-weight: 700 !important; }
.catalog-product-view .jibal-warranty-returns { background: var(--jb-surface) !important; border: 1px solid var(--jb-line) !important; border-radius: 20px !important; }
.catalog-product-view .jibal-warranty-returns-icon { background: var(--jb-soft) !important; color: var(--jb-brown) !important; }
.catalog-product-view .jibal-warranty-returns-text a { color: var(--jb-brown) !important; }

/* Related / upsell blocks */
.catalog-product-view .block.related, .catalog-product-view .block.upsell, .catalog-product-view .block.brand {
    background: var(--jb-surface); border: 1px solid var(--jb-line); border-radius: 22px; padding: 22px 24px 16px; margin-top: 28px;
}
.catalog-product-view .block .section-title, .catalog-product-view .block .slider-title {
    font-size: 22px !important; font-weight: 800 !important; color: var(--jb-ink) !important; text-transform: none !important;
    border: 0 !important; padding: 0 !important; margin: 0 0 16px !important; letter-spacing: 0;
}
.catalog-product-view .block .section-title::before, .catalog-product-view .block .section-title::after { display: none !important; }

/* ===== Footer =========================================================== */
.page-footer { background: var(--jb-ink); margin-top: 56px; padding: 0; }
.page-footer .footer.jb-footer { background: transparent; color: #cfc3bd; padding: 0; }
.jb-footer a, .jb-footer a:visited { color: #cfc3bd; text-decoration: none; }
.jb-footer a:hover { color: #fff; }

.jb-services { background: var(--jb-surface); border-top: 1px solid var(--jb-line); border-bottom: 1px solid var(--jb-line); }
.jb-services-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.jb-service { display: flex; align-items: center; gap: 14px; }
.jb-service-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--jb-soft); color: var(--jb-brown); display: flex; align-items: center; justify-content: center; }
.jb-service-text { display: flex; flex-direction: column; line-height: 1.3; }
.jb-service-text strong { font-size: 15px; font-weight: 800; color: var(--jb-ink); }
.jb-service-text small { font-size: 13px; color: var(--jb-muted); font-weight: 500; }

.jb-newsletter { background: var(--jb-brown); }
.jb-newsletter-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 30px; padding-bottom: 30px; }
.jb-newsletter-copy h3 { color: #fff; font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.jb-newsletter-copy p { color: #dccfc8; margin: 0; font-size: 14px; }
.jb-newsletter-form { flex: 0 1 480px; }
.jb-newsletter-form .block.newsletter { margin: 0; width: 100%; max-width: none; float: none; }
.jb-newsletter-form .block.newsletter .block-title,
.jb-newsletter-form .block.newsletter .content > p,
.jb-newsletter-form .block.newsletter .content > label,
.jb-newsletter-form .block.newsletter .field .label { display: none !important; }
.jb-newsletter-form .block.newsletter .form.subscribe { display: flex; width: 100%; background: #fff; border-radius: 999px; padding: 5px; box-sizing: border-box; }
.jb-newsletter-form .block.newsletter .field { flex: 1 1 auto; margin: 0; }
.jb-newsletter-form .block.newsletter .control { margin: 0; }
.jb-newsletter-form .block.newsletter .control::before { display: none; }
.jb-newsletter-form .block.newsletter input {
    height: 46px; border: 0 !important; background: transparent !important; padding: 0 18px !important; font-size: 15px; box-shadow: none !important; width: 100%; color: var(--jb-ink); border-radius: 999px;
}
.jb-newsletter-form .block.newsletter .actions { display: block; width: auto; margin: 0; }
.jb-newsletter-form .block.newsletter .action.subscribe {
    height: 46px; border-radius: 999px !important; padding: 0 26px !important; margin: 0 !important;
    background: var(--jb-ink) !important; border: 0 !important; color: #fff !important; font-weight: 800; font-size: 15px; text-transform: none; white-space: nowrap;
}
.jb-newsletter-form .block.newsletter .action.subscribe:hover { background: #000 !important; }
.jb-newsletter-form div.mage-error { color: #ffd6cf; padding-left: 18px; margin-top: 6px; position: absolute; }

.jb-footer-main { padding: 46px 0 0; }
.jb-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.jb-footer-brand img { width: 128px; height: auto; margin-bottom: 16px; display: block; }
.jb-footer-brand p { color: #b9aca6; font-size: 14px; line-height: 1.7; max-width: 300px; margin: 0; }
.jb-footer-col h4 { color: #fff; font-size: 15px; font-weight: 800; margin: 0 0 16px; text-transform: none; letter-spacing: 0; }
.jb-footer-col ul { margin: 0; padding: 0; list-style: none; }
.jb-footer-col li { margin: 0 0 10px; font-size: 14px; }
.jb-footer-col a { font-weight: 500; }
.jb-footer-pay { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.jb-footer-pay > span { font-size: 13px; font-weight: 700; color: #b9aca6; text-transform: uppercase; letter-spacing: .08em; }
.jb-footer-pay ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.jb-footer-pay li { margin: 0; background: #fff; border-radius: 10px; height: 40px; width: 70px; display: flex; align-items: center; justify-content: center; padding: 6px 10px; box-sizing: border-box; }
.jb-footer-pay img { max-height: 26px; max-width: 100%; object-fit: contain; }
.jb-footer-bottom { background: #211a1a; }
.jb-footer-bottom .jb-wrap { padding-top: 16px; padding-bottom: 16px; }
.jb-footer-bottom address { font-style: normal; font-size: 13px; color: #9d8f89; margin: 0; text-align: center; }

/* ===== Responsive ======================================================= */
@media (max-width: 1199px) {
    .jb-cats { grid-template-columns: repeat(5, 1fr); }
    .jb-slide { padding: 0 48px; }
    .jb-slide-title { font-size: 38px; }
    .jb-slide-img { width: 300px; height: 300px; }
    .page-products .products-grid ol.product-items, .catalogsearch-result-index .products-grid ol.product-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .jb-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
    .jb-section { margin-top: 32px; }
    .jb-section-head h2 { font-size: 20px; }
    .jb-hero { padding-top: 14px; }
    .jb-hero-track { --jb-slide-w: calc(100cqw - 48px); --jb-gap: 10px; }
    .jb-slide { height: 300px; padding: 0 28px; border-radius: 18px; }
    .jb-slide-title { font-size: 30px; }
    .jb-slide-text { font-size: 15px; margin-bottom: 18px; }
    .jb-slide-img { width: 220px; height: 220px; }
    .jb-hero-arrow { display: none; }
    .jb-promos { grid-template-columns: 1fr; gap: 12px; }
    .jb-promo { min-height: 160px; }
    .jb-wide { grid-template-columns: 1fr; gap: 12px; }
    .jb-rail { padding: 18px 14px 12px; border-radius: 18px; }
    .jb-services-row { grid-template-columns: 1fr 1fr; }
    .jb-newsletter-row { flex-direction: column; align-items: stretch; text-align: center; }
    .jb-newsletter-form { flex: none; }
    .catalog-product-view .product-info-main { padding: 20px !important; margin-top: 14px; }
    .catalog-product-view .product-info-main .page-title-wrapper .page-title { font-size: 22px !important; }
}
@media (max-width: 767px) {
    .page-main { padding-left: 14px; padding-right: 14px; }
    .jb-wrap, .jb-section { padding-left: 14px; padding-right: 14px; }
    .jb-hero-track { --jb-slide-w: calc(100cqw - 36px); --jb-gap: 8px; }
    .jb-slide { height: 220px; padding: 0 0 0 20px; border-radius: 16px; align-items: center; }
    .jb-slide::before { width: 260px; height: 260px; margin-top: -130px; right: -40px; }
    .jb-slide-copy { max-width: 60%; }
    .jb-slide-eyebrow { font-size: 11px; margin-bottom: 8px; }
    .jb-slide-title { font-size: 21px; margin-bottom: 8px; }
    .jb-slide-text { display: none; }
    .jb-slide .jb-btn { padding: 9px 16px; font-size: 13px; }
    .jb-slide-img { width: 150px; height: 150px; margin-right: -6px; }
    .jb-cats {
        grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 30%;
        overflow-x: auto; scrollbar-width: none; gap: 10px; padding-bottom: 4px; scroll-snap-type: x proximity;
    }
    .jb-cats::-webkit-scrollbar { display: none; }
    .jb-cats li { scroll-snap-align: start; }
    .jb-cat { min-height: 128px; padding: 12px 6px 10px; border-radius: 14px; }
    .jb-cat-img { height: 72px; }
    .jb-cat-img img { max-width: 64px; max-height: 68px; }
    .jb-cat-name { font-size: 12px; }
    .jb-promo-copy strong { font-size: 18px; }
    .jb-wide-banner { min-height: 190px; padding: 22px 16px 22px 22px; }
    .jb-wide-copy strong { font-size: 21px; }
    .jb-rail .owl-carousel .owl-nav { display: none !important; }
    .product-item-info.jibal-card-v2, .product-item-info.type6 { padding: 8px 8px 10px !important; border-radius: 14px !important; }
    .product-item-info .price-box .price { font-size: 15px !important; }
    .product-item-info .action.tocart.primary, .product-item-info .actions-primary .action.tocart { height: 38px; font-size: 13px !important; }
    .page-products .products-grid ol.product-items, .catalogsearch-result-index .products-grid ol.product-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .page-products .page-title-wrapper .page-title { font-size: 22px; }
    .category-icons-horizontal .category-icon-item { flex-basis: 104px; }
    .jb-services-row { gap: 14px 10px; padding-top: 18px; padding-bottom: 18px; }
    .jb-service { gap: 10px; }
    .jb-service-icon { width: 42px; height: 42px; border-radius: 12px; }
    .jb-service-text strong { font-size: 13px; }
    .jb-service-text small { font-size: 12px; }
    .jb-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
    .jb-footer-brand { grid-column: 1 / -1; }
    .catalog-product-view .product.media { padding: 10px; border-radius: 16px; }
    .catalog-product-view .product-info-price .price-box .price { font-size: 24px !important; }
    .catalog-product-view .box-tocart .actions { flex-basis: 100%; flex-wrap: wrap; }
    .catalog-product-view .product.data.items > .item.content { padding: 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .jb-hero-viewport { scroll-behavior: auto; }
    .jb-slide, .jb-slide-img, .jb-cat, .jb-promo, .jb-wide-banner, .product-item-info { transition: none !important; }
}

/* Porto styles every <button> (padding, border, radius, colour); reset ours. */
html body .jb-hero button.jb-hero-arrow,
html body .jb-hero button.jb-hero-dot,
html body .jb-header button.jb-catmenu-trigger {
    min-width: 0 !important; min-height: 0 !important; line-height: 1 !important;
    text-transform: none !important; letter-spacing: 0 !important; box-shadow: none;
}
html body .jb-hero button.jb-hero-arrow {
    width: 52px !important; height: 52px !important; padding: 0 !important; border: 0 !important;
    border-radius: 50% !important; background: #fff !important; color: var(--jb-ink) !important;
    box-shadow: 0 6px 20px rgba(43, 34, 34, .18) !important;
}
html body .jb-hero button.jb-hero-arrow svg { width: 20px; height: 20px; flex: none; }
html body .jb-hero button.jb-hero-dot {
    width: 8px !important; height: 8px !important; padding: 0 !important; border: 0 !important;
    border-radius: 999px !important; background: #d3c9c3 !important;
}
html body .jb-hero button.jb-hero-dot.is-active { width: 30px !important; background: var(--jb-brown) !important; }
html body .jb-header button.jb-catmenu-trigger {
    padding: 8px 12px !important; border: 0 !important; border-radius: 12px !important;
    background: transparent !important; color: var(--jb-ink) !important; height: auto !important;
}
html body .jb-header .jb-catmenu.is-open button.jb-catmenu-trigger,
html body .jb-header button.jb-catmenu-trigger:hover { background: var(--jb-soft) !important; }

/* ---- Fixes after first visual pass ---- */
/* Porto pins the minicart absolutely in sticky mode; keep it in the flex row */
html body .page-header.jb-header .minicart-wrapper,
html body .page-header.jb-header.sticky-header .minicart-wrapper {
    position: relative !important; top: auto !important; right: auto !important; left: auto !important; bottom: auto !important;
    transform: none !important; display: block !important;
}
.page-header.jb-header.sticky-header .jb-action-text,
.page-header.jb-header.sticky-header .minicart-wrapper .action.showcart .text { display: none !important; }

/* Cards in rails: no Porto divider lines, roomy add-to-cart */
.jb-rail .owl-item, .jb-rail .owl-item > .item, .jb-rail .owl-item .product-item,
.products.divider-line .product-item { border: 0 !important; }
.jb-rail .owl-item::before, .jb-rail .owl-item::after, .jb-rail .product-item::before, .jb-rail .product-item::after { display: none !important; }
html body .product-item-info .action.tocart.primary,
html body .product-item-info .actions-primary .action.tocart {
    height: 42px !important; min-height: 42px !important; line-height: 42px !important;
}
@media (max-width: 767px) {
    html body .product-item-info .action.tocart.primary,
    html body .product-item-info .actions-primary .action.tocart { height: 38px !important; min-height: 38px !important; line-height: 38px !important; }
}

/* Wishlist moves to the bottom-right of the image so it never collides with NEW/SALE labels */
.product-item-info .product-item-inner .towishlist,
.product-item-info .actions-secondary.towishlist { top: auto !important; bottom: 8px !important; left: auto !important; right: 8px !important; }
.product-item-info .product-labels { top: 8px !important; left: 8px !important; }

/* Deal countdown inside cards: compact dark pill instead of a coral bar */
.product-item-info .sw-dailydeal-wrapper { position: absolute !important; left: 8px !important; right: auto !important; bottom: 8px !important; top: auto !important; width: auto !important; margin: 0 !important; z-index: 2; }
.product-item-info .sw-dailydeal { background: transparent !important; padding: 0 !important; margin: 0 !important; }
.product-item-info .sw-dailydeal .countdowncontainer {
    display: inline-flex !important; align-items: center; gap: 2px; background: rgba(43, 34, 34, .9) !important; color: #fff !important;
    border-radius: 999px !important; padding: 5px 10px !important; font-size: 11px !important; line-height: 1 !important; width: auto !important; margin: 0 !important;
}
.product-item-info .sw-dailydeal .dailydeal-label { font-size: 10px !important; font-weight: 700 !important; color: #e7d3c1 !important; margin: 0 4px 0 0 !important; text-transform: uppercase; }
.product-item-info .sw-dailydeal .number-wrapper { background: transparent !important; padding: 0 !important; margin: 0 !important; min-width: 0 !important; display: inline-flex !important; align-items: center; }
.product-item-info .sw-dailydeal .number-wrapper .line { display: none !important; }
.product-item-info .sw-dailydeal .number p { color: #fff !important; font-size: 11px !important; font-weight: 800 !important; margin: 0 !important; line-height: 1 !important; }
.product-item-info .sw-dailydeal .caption { color: #cdbfb8 !important; font-size: 10px !important; margin: 0 2px !important; padding: 0 !important; line-height: 1 !important; text-transform: none !important; }
.product-item-info .sw-dailydeal .number-wrapper:first-child .caption { font-size: 0 !important; }
.product-item-info .sw-dailydeal .number-wrapper:first-child .caption::after { content: 'd'; font-size: 10px; margin-right: 4px; }

/* Category bar: soft fade where it scrolls */
@media (min-width: 992px) {
    .jb-catbar-list { -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent); mask-image: linear-gradient(90deg, #000 94%, transparent); padding-right: 40px; }
}
.page-footer { margin-top: 36px; }
.cms-index-index .page-footer { margin-top: 20px; }

/* ---- Fixes after mobile pass ---- */
.product-item-info .jibal-brand-badge { height: auto !important; max-height: 28px; width: auto !important; min-width: 0 !important; bottom: auto !important; line-height: 1.2 !important; display: inline-flex !important; align-items: center; }
.jb-header .minicart-wrapper .action.showcart::after,
.jb-header .minicart-wrapper > .action.showcart + .action-subtotal::after { display: none !important; }
.jb-catpanel-list a > span:first-child { margin-left: 40px; }
.jb-catpanel-list a > img + span { margin-left: 0; }
@media (max-width: 991px) {
    .jb-catbar-list li.jb-catbar-deals a { padding-left: 24px; }
    .jb-catbar-list li.jb-catbar-deals a::before { left: 10px; }
}
@media (max-width: 767px) {
    .jb-rail { background: transparent !important; border: 0 !important; padding: 0 14px !important; border-radius: 0; }
    .product-item-info .sw-dailydeal .dailydeal-label { display: none !important; }
    .product-item-info .sw-dailydeal .countdowncontainer { padding: 4px 8px !important; }
    .product-item-info .sw-dailydeal-wrapper { right: 46px !important; overflow: hidden; }
}

/* ---- Mobile off-canvas menu (Porto navigation.sections) ---- */
@media (max-width: 991px) {
    html body .jb-mobile-nav .navigation.sw-megamenu { display: block !important; background: #fff; padding: 6px 0; }
    .jb-mobile-nav .nav-sections { background: #fff; }
    .jb-mobile-nav .nav-sections-item-title {
        background: var(--jb-page) !important; border: 0 !important; border-bottom: 1px solid var(--jb-line) !important;
    }
    .jb-mobile-nav .nav-sections-item-title.active { background: #fff !important; }
    .jb-mobile-nav .nav-sections-item-title a, .jb-mobile-nav .nav-sections-item-switch { color: var(--jb-ink) !important; font-weight: 700; }
    .jb-mobile-nav .nav-sections-item-title.active a { color: var(--jb-brown) !important; }
    .jb-mobile-nav .navigation .level0 > a.level-top {
        display: flex !important; align-items: center; gap: 10px; padding: 12px 18px !important;
        font-size: 15px !important; font-weight: 600 !important; color: var(--jb-ink) !important; text-transform: none !important;
        border-bottom: 1px solid var(--jb-line) !important;
    }
    .jb-mobile-nav .navigation .level0 > a.level-top .menu-thumb-icon { width: 26px; height: 26px; object-fit: contain; margin: 0 !important; }
    .jb-mobile-nav .navigation .submenu a { color: var(--jb-muted) !important; font-weight: 500 !important; font-size: 14px !important; }
    .jb-mobile-nav .navigation .open-children-toggle { height: 50px !important; }
    .jb-mobile-nav .header.links li a { color: var(--jb-ink) !important; font-weight: 600; }
}

/* ---- Product page fixes ---- */
html body.catalog-product-view .box-tocart .fieldset > .actions { flex: 1 1 200px; }
html body.catalog-product-view .mageprince-buynow { flex: 1 1 100%; order: 5; }
html body.catalog-product-view .mageprince-buynow button.mageprince-buy-now-btn,
html body.catalog-product-view button.action.primary.mageprince-buy-now-btn {
    width: 100% !important; background: #fff !important; color: var(--jb-ink) !important;
    border: 1.5px solid var(--jb-ink) !important; height: 52px !important;
}
html body.catalog-product-view .mageprince-buynow button.mageprince-buy-now-btn span { color: inherit !important; }
html body.catalog-product-view .mageprince-buynow button.mageprince-buy-now-btn:hover { background: var(--jb-ink) !important; color: #fff !important; }
@media (min-width: 768px) {
    .catalog-product-view .product.data.items > .item.content { margin-top: 56px !important; }
}
.catalog-product-view .product.data.items > .item.title { margin-bottom: 0 !important; }
.catalog-product-view .owl-carousel .owl-nav button.owl-prev,
.catalog-product-view .owl-carousel .owl-nav button.owl-next {
    width: 40px !important; height: 40px !important; border-radius: 50% !important; background: #fff !important;
    color: var(--jb-ink) !important; border: 0 !important; box-shadow: 0 4px 16px rgba(43, 34, 34, .16) !important; opacity: 1;
}
.catalog-product-view .owl-carousel .owl-nav .disabled { opacity: 0 !important; pointer-events: none; }
.catalog-product-view .product-info-stock-sku .stock > span:first-child:not(:only-child) { display: none; }
/* Fotorama measures the stage before paint; keep the gallery frame padding-free */
html body.catalog-product-view .product.media { padding: 0 !important; overflow: hidden; }

/* ---- Category page: promo banner, sidebar ---- */
html body .category-promo-banner { border-radius: 20px !important; overflow: hidden; border: 1px solid var(--jb-line) !important; background: var(--jb-surface) !important; box-shadow: none !important; margin-bottom: 22px !important; }
html body .category-promo-banner .promo-banner-header {
    background: linear-gradient(115deg, #2b2222, #4b3b3b) !important; color: #fff !important;
    font-size: 17px !important; font-weight: 800 !important; padding: 14px 24px !important; border-radius: 0 !important;
}
html body .category-promo-banner .promo-banner-grid { background: transparent !important; }
html body .category-promo-banner .promo-banner-card { background: transparent !important; border-color: var(--jb-line) !important; }
html body .category-promo-banner .promo-banner-card-image { background: var(--jb-page) !important; border-radius: 14px !important; }
html body .category-promo-banner .promo-banner-card-image img { mix-blend-mode: multiply; }
html body .category-promo-banner .promo-banner-eyebrow { color: #8a6c5d !important; font-weight: 700 !important; }
html body .category-promo-banner .promo-banner-title { color: var(--jb-ink) !important; font-weight: 800 !important; }
html body .category-promo-banner .promo-banner-text { color: var(--jb-muted) !important; font-weight: 500 !important; }
html body .category-promo-banner .promo-banner-btn {
    background: var(--jb-brown) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
    padding: 10px 20px !important; font-weight: 700 !important; box-shadow: none !important;
}
html body .category-promo-banner .promo-banner-btn:hover { background: var(--jb-ink) !important; }

.page-products .sidebar-main .block-category-list,
.page-products .sidebar-main .side-custom-block .custom-block {
    background: var(--jb-surface); border: 1px solid var(--jb-line); border-radius: var(--jb-radius); padding: 16px 18px; margin-bottom: 14px;
}
.page-products .sidebar-main .side-custom-block { background: transparent !important; border: 0 !important; }
.page-products .sidebar-main .side-custom-block .custom-block + .custom-block { display: none; } /* Porto demo "Custom HTML Block" */
.page-products .sidebar-main .block-category-list .block-title { background: transparent !important; padding: 0 0 10px !important; margin: 0 0 6px !important; border-bottom: 1px solid var(--jb-line) !important; }
.page-products .sidebar-main .block-category-list .block-title strong { font-size: 16px !important; font-weight: 800 !important; color: var(--jb-ink) !important; }
.page-products .sidebar-main .block-category-list .items { margin: 0; padding: 0; list-style: none; }
.page-products .sidebar-main .block-category-list .item { border: 0 !important; margin: 0 !important; padding: 0 !important; }
.page-products .sidebar-main .block-category-list .item a { display: block; padding: 8px 0 !important; font-size: 14px; font-weight: 500; color: var(--jb-muted) !important; border: 0 !important; }
.page-products .sidebar-main .block-category-list .item a:hover { color: var(--jb-ink) !important; }
.page-products .sidebar-main .sidebar-title { font-size: 16px !important; font-weight: 800 !important; color: var(--jb-ink) !important; border: 0 !important; padding: 0 !important; margin: 0 0 12px !important; text-transform: none !important; }
.page-products .sidebar-main .sidebar-filterproducts .product-item-info { border: 0 !important; padding: 6px 0 !important; transform: none !important; box-shadow: none !important; flex-direction: row; gap: 12px; align-items: center; }
.page-products .sidebar-main .sidebar-filterproducts .product-item-photo { width: 72px; flex: none; margin: 0 !important; }
.page-products .sidebar-main .sidebar-filterproducts .product-item-details a { font-size: 13px; font-weight: 600; color: var(--jb-ink) !important; }
.page-products .sidebar-main .sidebar-filterproducts .price-box { margin: 4px 0 0 !important; }
.page-products .sidebar-main .sidebar-filterproducts .price-box .price { font-size: 14px !important; }
.category-icons-horizontal .category-icon-thumb i { color: var(--jb-brown) !important; }
html body .category-icons-horizontal .category-icon-item { flex: 0 0 132px !important; max-width: none !important; min-width: 0 !important; }
@media (max-width: 767px) { html body .category-icons-horizontal .category-icon-item { flex-basis: 100px !important; } }

/* ---- Auth card (WhatsApp login/register) & generic pages ---- */
.page-main { margin-left: auto !important; margin-right: auto !important; }
html body .jibal-auth-card { border-radius: 22px !important; border: 1px solid var(--jb-line) !important; box-shadow: 0 20px 60px rgba(43, 34, 34, .08) !important; }
html body .jibal-auth-card .action.primary,
html body .jibal-auth-card button.primary,
html body .jibal-auth-card .jibal-btn:not(.jibal-btn-link) {
    background: var(--jb-brown) !important; border-color: var(--jb-brown) !important; color: #fff !important;
    border-radius: 12px !important; box-shadow: none !important;
}
html body .jibal-auth-card .action.primary:hover,
html body .jibal-auth-card .jibal-btn:not(.jibal-btn-link):hover { background: var(--jb-ink) !important; border-color: var(--jb-ink) !important; }
html body .jibal-auth-card .jibal-btn-link,
html body .jibal-auth-card a.action.create,
html body .jibal-auth-card .action.secondary {
    color: var(--jb-ink) !important; border: 1.5px solid var(--jb-line-strong) !important; border-radius: 12px !important; background: #fff !important;
}
html body .jibal-auth-card .jibal-btn-link:hover,
html body .jibal-auth-card a.action.create:hover { border-color: var(--jb-ink) !important; }
html body .jibal-auth-card .jibal-auth-title-accent { background: var(--jb-brown) !important; }
html body .jibal-auth-card input:focus { border-color: var(--jb-brown) !important; box-shadow: 0 0 0 3px rgba(75, 59, 59, .12) !important; }
html body .jibal-otp-digit:focus { border-color: var(--jb-brown) !important; }

.page-title-wrapper .page-title, .page-title-wrapper .page-title .base { color: var(--jb-ink) !important; font-weight: 800 !important; }
.checkout-cart-index .page-title-wrapper { margin: 22px 0 14px; }
.cart-empty .action, .cart-empty a.action.primary, .checkout-cart-index .cart-empty a { border-radius: 12px !important; }
.checkout-cart-index .cart-empty a.action.primary, .checkout-cart-index .cart-empty .btn { background: var(--jb-brown) !important; border-color: var(--jb-brown) !important; }
html body .page-wrapper > main.page-main {
    max-width: var(--jb-wrap) !important; margin-left: auto !important; margin-right: auto !important;
    padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box;
}
html body.cms-index-index .page-wrapper > main.page-main { max-width: none !important; padding: 0 !important; }
@media (max-width: 767px) { html body .page-wrapper > main.page-main { padding-left: 14px !important; padding-right: 14px !important; } }
html body .jibal-auth-card a.action.create.primary {
    background: #fff !important; color: var(--jb-ink) !important; border: 1.5px solid var(--jb-line-strong) !important; border-radius: 12px !important;
}
html body .jibal-auth-card a.action.create.primary:hover { border-color: var(--jb-ink) !important; background: var(--jb-page) !important; }

/* ---- Banner layout: image on the left, copy on the right (all banners) ---- */
.jb-slide, .jb-promo, .jb-wide-banner { flex-direction: row-reverse; }
.jb-slide-copy, .jb-promo-copy, .jb-wide-copy { text-align: right; align-items: flex-end; margin-left: auto; }
.jb-slide-copy { display: flex; flex-direction: column; align-items: flex-end; }
.jb-slide-text { margin-left: auto; }
.jb-slide::before { right: auto; left: 6%; }
.jb-promo { padding: 24px 26px 24px 18px; }
.jb-wide-banner { padding: 30px 40px 30px 26px; }
.jb-promo:hover img, .jb-wide-banner:hover img { transform: scale(1.05) rotate(2deg); }
.jb-slide:hover .jb-btn { transform: translateX(-3px); }
@media (max-width: 767px) {
    .jb-slide { padding: 0 20px 0 0; }
    .jb-slide::before { right: auto; left: -40px; }
    .jb-slide-img { margin-right: 0; margin-left: -6px; }
    .jb-wide-banner { padding: 22px 22px 22px 16px; }
}

/* ---- Daily deals page (Smartwave_Dailydeals list.phtml) ----
   The template nests add-to-cart inside the (clipped) photo box as a hover
   overlay; flatten the wrappers with display:contents and re-order instead. */
html body #dailydealproduct {
    display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 30px !important; padding: 0 !important;
}
html body #dailydealproduct > li.product-item { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; float: none !important; }
#dailydealproduct .product-item-info { position: relative; }
html body #dailydealproduct .product-item-photo,
html body #dailydealproduct .product-item-inner,
html body #dailydealproduct .product-item-inner .product-item-actions,
html body #dailydealproduct .sw-dailydeal,
html body #dailydealproduct .sw-dailydeal #CDT { display: contents !important; }
#dailydealproduct .product-item-photo > a { order: 1; display: block; background: #f8f6f4; border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
#dailydealproduct .sw-dailydeal-wrapper { order: 2; position: static !important; display: block !important; margin: 0 4px 8px !important; }
#dailydealproduct .product-item-details { order: 3; }
html body #dailydealproduct .actions-primary { order: 4; position: static !important; display: block !important; margin: 0 4px !important; padding: 0 !important; }
html body #dailydealproduct .action.tocart {
    position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; width: 100% !important;
}
html body #dailydealproduct .action.towishlist { position: absolute !important; top: 18px !important; right: 18px !important; bottom: auto !important; left: auto !important; z-index: 3; }
#dailydealproduct [id^="expired_"]:empty { display: none; }
.product-item-info [class*="countdowncontainer"] {
    display: inline-flex; align-items: center; gap: 2px; background: rgba(43, 34, 34, .9) !important; color: #fff !important;
    border-radius: 999px !important; padding: 5px 10px !important; font-size: 11px !important; line-height: 1 !important; margin: 0 !important;
}
.product-item-info [class*="countdowncontainer"][style*="none"] { display: none !important; }
@media (max-width: 1199px) { html body #dailydealproduct { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    html body #dailydealproduct { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    #dailydealproduct .dailydeal-label { display: none !important; }
}

/* Layered nav "Go" and toolbar "Filter" toggle: brown instead of Porto coral */
html body .page-products .ln_range_apply.action.primary {
    background: var(--jb-brown) !important; border-color: var(--jb-brown) !important; color: #fff !important; border-radius: 10px !important;
}
html body .page-products .ln_range_apply.action.primary:hover { background: var(--jb-ink) !important; border-color: var(--jb-ink) !important; }
html body .page-products .filter-toggle {
    background: var(--jb-soft) !important; color: var(--jb-ink) !important; border: 0 !important; border-radius: 10px !important;
    padding: 9px 14px !important; font-weight: 700 !important; display: inline-flex !important; align-items: center; gap: 6px;
}
html body .page-products .filter-toggle.active { background: var(--jb-brown) !important; color: #fff !important; }
html body .page-products .filter-toggle i { color: inherit !important; }
/* Mageplaza/Porto use ID selectors here, so match with IDs */
html body #layered-filter-block .ln_range_apply,
html body #layered-filter-block-container .ln_range_apply { background: var(--jb-brown) !important; border-color: var(--jb-brown) !important; color: #fff !important; border-radius: 10px !important; }
html body #layered-filter-block .ln_range_apply:hover { background: var(--jb-ink) !important; }
html body #maincontent .filter-toggle { background: var(--jb-soft) !important; color: var(--jb-ink) !important; }
html body #maincontent .filter-toggle.active { background: var(--jb-brown) !important; color: #fff !important; }

/* Category tile discount badge (Extra style "Save up to X%") */
.jb-cat { position: relative; }
.jb-cat-badge {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1;
    background: var(--jb-ink); color: #fff; white-space: nowrap;
    font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .01em;
    padding: 6px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(43, 34, 34, .18);
}
.jb-cat-badge::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--jb-coral); margin-right: 6px; vertical-align: 1px; }
.jb-cat:has(.jb-cat-badge) .jb-cat-img { margin-top: 18px; }
@media (max-width: 767px) {
    .jb-cat-badge { font-size: 9.5px; padding: 5px 7px; top: 7px; }
    .jb-cat-badge::before { width: 5px; height: 5px; margin-right: 4px; }
    .jb-cat:has(.jb-cat-badge) .jb-cat-img { margin-top: 14px; }
}

/* ---- Hero: 3D coverflow (Extra style), driven by initSlider() ---- */
.jb-hero.is-3d { --jb-w: min(880px, 58vw); --jb-h: 400px; padding-top: 22px; overflow: hidden; }
.jb-hero.is-3d .jb-hero-viewport {
    position: relative; height: calc(var(--jb-h) + 20px); overflow: visible; container-type: normal;
    scroll-snap-type: none; perspective: 1600px; perspective-origin: 50% 50%; touch-action: pan-y; user-select: none;
}
.jb-hero.is-3d .jb-hero-track { position: relative; width: 100%; height: 100%; padding: 0; display: block; transform-style: preserve-3d; }
.jb-hero.is-3d .jb-slide {
    position: absolute; top: 10px; left: 50%; width: var(--jb-w); height: var(--jb-h); margin-left: calc(var(--jb-w) / -2);
    flex: none; padding: 0 56px; opacity: 1; scroll-snap-align: none;
    box-shadow: 0 24px 50px rgba(43, 34, 34, .22);
    transform-origin: 50% 50%; backface-visibility: hidden; will-change: transform, opacity;
}
.jb-hero.is-3d.is-ready .jb-slide { transition: transform .75s cubic-bezier(.22, .75, .24, 1), opacity .6s ease, box-shadow .6s ease; }
.jb-hero.is-3d .jb-slide::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(27, 22, 22, .32);
    opacity: 0; transition: opacity .6s ease; pointer-events: none; z-index: 2;
}
.jb-hero.is-3d .jb-slide.is-side { box-shadow: 0 12px 26px rgba(43, 34, 34, .14); cursor: pointer; }
.jb-hero.is-3d .jb-slide.is-side::after { opacity: 1; }
.jb-hero.is-3d .jb-slide-img { width: 300px; height: 300px; }
.jb-hero.is-3d .jb-slide-title { font-size: 40px; }
.jb-hero.is-3d .jb-slide-copy { max-width: 400px; }
html body .jb-hero.is-3d button.jb-hero-arrow { top: calc(22px + 10px + var(--jb-h) / 2 - 26px); z-index: 30; }
html body .jb-hero.is-3d button.jb-hero-arrow--prev { left: calc(50% - var(--jb-w) / 2 - 26px); right: auto; }
html body .jb-hero.is-3d button.jb-hero-arrow--next { right: calc(50% - var(--jb-w) / 2 - 26px); left: auto; }
@media (max-width: 1199px) {
    .jb-hero.is-3d { --jb-w: min(760px, 66vw); --jb-h: 340px; }
    .jb-hero.is-3d .jb-slide-img { width: 230px; height: 230px; }
    .jb-hero.is-3d .jb-slide-title { font-size: 32px; }
}
@media (max-width: 767px) {
    .jb-hero.is-3d { --jb-w: calc(100vw - 64px); --jb-h: 210px; padding-top: 14px; }
    .jb-hero.is-3d .jb-hero-viewport { perspective: 900px; }
    .jb-hero.is-3d .jb-slide { padding: 0 18px 0 6px; border-radius: 16px; }
    .jb-hero.is-3d .jb-slide-img { width: 130px; height: 130px; }
    .jb-hero.is-3d .jb-slide-title { font-size: 20px; }
    .jb-hero.is-3d .jb-slide-copy { max-width: 62%; }
}
@media (prefers-reduced-motion: reduce) { .jb-hero.is-3d.is-ready .jb-slide { transition: none; } }

/* ---- Category tiles v2: identical size; image, then "Save up to", then name ---- */
.jb-cats { grid-auto-rows: 1fr; }
.jb-cat {
    justify-content: flex-start; height: 100%; min-height: 0; aspect-ratio: auto;
    padding: 14px 10px 16px; gap: 0;
}
.jb-cat .jb-cat-img { height: 108px; flex: none; margin: 0 !important; }
.jb-cat .jb-cat-img img { max-width: 96px; max-height: 100px; }
.jb-cat-off {
    display: block; margin-top: 10px; min-height: 16px; line-height: 16px;
    font-size: 12.5px; font-weight: 800; color: #b5483f; letter-spacing: .01em; white-space: nowrap;
}
.jb-cat-off.is-empty { visibility: hidden; }
.jb-cat .jb-cat-name {
    margin-top: 4px; min-height: 36px; display: flex; align-items: flex-start; justify-content: center; line-height: 1.3;
}
.jb-cat--all .jb-cat-off { color: #e7d3c1; }
.jb-cat-badge { display: none !important; }
@media (max-width: 767px) {
    .jb-cats { grid-auto-rows: auto; }
    .jb-cat { padding: 10px 6px 12px; }
    .jb-cat .jb-cat-img { height: 70px; }
    .jb-cat .jb-cat-img img { max-width: 62px; max-height: 66px; }
    .jb-cat-off { font-size: 10.5px; margin-top: 6px; min-height: 14px; line-height: 14px; }
    .jb-cat .jb-cat-name { font-size: 11.5px; min-height: 30px; }
}
.jb-hero.is-3d { background: var(--jb-page); isolation: isolate; }
.jb-hero.is-3d { background: linear-gradient(180deg, #ece6e0 0%, var(--jb-page) 100%); padding-bottom: 6px; }

/* Bigger centre slide, smaller side slides (feedback 2026-10-14) */
.jb-hero.is-3d { --jb-w: min(1120px, 72vw); --jb-h: 460px; }
.jb-hero.is-3d .jb-slide { padding: 0 70px; }
.jb-hero.is-3d .jb-slide-img { width: 380px; height: 380px; }
.jb-hero.is-3d .jb-slide-title { font-size: 48px; }
.jb-hero.is-3d .jb-slide-copy { max-width: 480px; }
@media (max-width: 1199px) {
    .jb-hero.is-3d { --jb-w: min(860px, 76vw); --jb-h: 380px; }
    .jb-hero.is-3d .jb-slide-img { width: 280px; height: 280px; }
    .jb-hero.is-3d .jb-slide-title { font-size: 36px; }
}
@media (max-width: 767px) {
    .jb-hero.is-3d { --jb-w: calc(100vw - 48px); --jb-h: 230px; }
    .jb-hero.is-3d .jb-slide { padding: 0 18px 0 6px; }
    .jb-hero.is-3d .jb-slide-img { width: 140px; height: 140px; }
    .jb-hero.is-3d .jb-slide-title { font-size: 21px; }
}

/* ---- Category cards v3: Extra sizing (4 per row, 2 rows, scroll for more) ---- */
.jb-cats-wrap { position: relative; }
.jb-cats.jb-cats--cards {
    display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-template-columns: none;
    grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; grid-auto-rows: auto;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 0 6px;
}
.jb-cats.jb-cats--cards::-webkit-scrollbar { display: none; }
.jb-cats--cards > li { scroll-snap-align: start; }
.jb-cats--cards .jb-cat {
    height: 242px; padding: 18px 16px 18px; border-radius: 18px; justify-content: flex-end;
}
.jb-cats--cards .jb-cat .jb-cat-img { height: auto; flex: 1 1 auto; min-height: 0; margin: 0 0 12px !important; }
.jb-cats--cards .jb-cat .jb-cat-img img { max-width: 72%; max-height: 140px; width: auto; height: auto; }
.jb-cats--cards .jb-cat-img--icon svg { width: 64px; height: 64px; }
.jb-cats--cards .jb-cat-off { margin: 0; font-size: 15px; line-height: 20px; min-height: 20px; }
.jb-cats--cards .jb-cat .jb-cat-name { margin-top: 2px; min-height: 0; font-size: 18px; font-weight: 800; line-height: 1.25; }
html body .jb-cats-wrap button.jb-cats-arrow {
    position: absolute; top: 50%; z-index: 3; width: 44px !important; height: 44px !important; margin-top: -22px;
    padding: 0 !important; border: 0 !important; border-radius: 50% !important; min-width: 0 !important;
    background: #fff !important; color: var(--jb-ink) !important; box-shadow: 0 6px 18px rgba(43, 34, 34, .16) !important;
    display: flex; align-items: center; justify-content: center; transition: opacity .2s;
}
html body .jb-cats-wrap button.jb-cats-arrow--prev { left: -22px; }
html body .jb-cats-wrap button.jb-cats-arrow--next { right: -22px; }
html body .jb-cats-wrap button.jb-cats-arrow.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 1199px) {
    .jb-cats.jb-cats--cards { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; }
    .jb-cats--cards .jb-cat { height: 220px; }
}
@media (max-width: 767px) {
    .jb-cats.jb-cats--cards { grid-auto-columns: calc((100% - 10px) / 2.15); gap: 10px; }
    .jb-cats--cards .jb-cat { height: 178px; padding: 12px 10px 14px; border-radius: 14px; }
    .jb-cats--cards .jb-cat .jb-cat-img img { max-height: 92px; }
    .jb-cats--cards .jb-cat-off { font-size: 12px; line-height: 16px; min-height: 16px; }
    .jb-cats--cards .jb-cat .jb-cat-name { font-size: 14px; }
    html body .jb-cats-wrap button.jb-cats-arrow { display: none !important; }
}

/* ---- Category cards v4: Extra layout (text top-left, image bottom-centre) ---- */
.jb-cats--cards .jb-cat,
.jb-cats--cards .jb-cat[class*="jb-tint-"] {
    background: #ebe6e1; height: auto; aspect-ratio: 441 / 378;
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 26px 26px 22px; border-radius: 22px; text-align: left; overflow: hidden;
}
.jb-cats--cards .jb-cat:hover { transform: none; box-shadow: 0 14px 30px rgba(43, 34, 34, .1); }
.jb-cat-text { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; }
.jb-cat-title { font-size: 20px; line-height: 1.2; font-weight: 800; color: var(--jb-ink); }
.jb-cat-sub { font-size: 16px; line-height: 1.35; font-weight: 400; color: #4f4343; }
.jb-cats--cards .jb-cat .jb-cat-img {
    flex: 1 1 auto; min-height: 0; margin: 10px 0 0 !important; height: auto;
    display: flex; align-items: flex-end; justify-content: center;
}
.jb-cats--cards .jb-cat .jb-cat-img img {
    max-width: 78%; max-height: 100%; width: auto; height: auto; object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(43, 34, 34, .16)); transition: transform .35s ease;
}
.jb-cats--cards .jb-cat:hover .jb-cat-img img { transform: scale(1.06); }
.jb-cats--cards .jb-cat--all { background: var(--jb-brown); }
.jb-cats--cards .jb-cat--all .jb-cat-title { color: #fff; }
.jb-cats--cards .jb-cat--all .jb-cat-sub { color: #e7d3c1; }
.jb-cats--cards .jb-cat--all .jb-cat-img { color: #fff; align-items: center; }
.jb-cats--cards .jb-cat-off, .jb-cats--cards .jb-cat-name { display: none; }
@media (max-width: 1199px) {
    .jb-cats--cards .jb-cat { padding: 20px 20px 18px; }
    .jb-cat-title { font-size: 18px; }
    .jb-cat-sub { font-size: 14px; }
}
@media (max-width: 767px) {
    .jb-cats--cards .jb-cat { padding: 14px 14px 12px; border-radius: 16px; }
    .jb-cat-title { font-size: 15px; }
    .jb-cat-sub { font-size: 12.5px; }
    .jb-cats--cards .jb-cat .jb-cat-img { margin-top: 6px !important; }
}
html body .jb-cats--cards .jb-cat-sub { font-weight: 400 !important; }
html body .jb-cats--cards .jb-cat-title { font-weight: 800 !important; }
@media (max-width: 767px) {
    .jb-cats.jb-cats--cards { grid-auto-columns: calc((100% - 10px) / 1.6); }
    .jb-cats--cards .jb-cat, .jb-cats--cards .jb-cat[class*="jb-tint-"] { aspect-ratio: 1 / 0.95; }
    .jb-cats--cards .jb-cat .jb-cat-img img { max-width: 70%; max-height: 100%; }
}

/* ===== Category landing (Extra style) =====================================
   Banner slider > Shop by Family > Top Brands > Top Sellers > products.
   Markup: Jibal_Catalog::category/landing.phtml, data from Catalog > Category
   Banners and the category's "Landing Page" settings. */
.jb-cl { margin: 4px 0 8px; }
.jb-cl-section { margin-top: 38px; }
.jb-cl-section .jb-section-head { margin-bottom: 16px; }

/* Banner slider */
.jb-clb { position: relative; }
.jb-clb-viewport { overflow: hidden; border-radius: 24px; touch-action: pan-y; }
.jb-clb-track { display: flex; will-change: transform; }
.jb-clb.is-ready .jb-clb-track { transition: transform .7s cubic-bezier(.22, .75, .24, 1); }
.jb-clb-slide {
    position: relative; flex: 0 0 100%; min-width: 0; height: 340px; box-sizing: border-box; overflow: hidden;
    display: flex; flex-direction: row-reverse; align-items: center; gap: 32px; padding: 0 90px;
    text-decoration: none !important; user-select: none;
}
.jb-clb-slide--brown { background: linear-gradient(115deg, #2b2222 0%, #4b3b3b 100%); }
.jb-clb-slide--sand { background: linear-gradient(115deg, #f4ece4 0%, #e3d5c8 100%); }
.jb-clb-slide--image { padding: 0; background: var(--jb-soft); }
.jb-clb-slide--brown::before, .jb-clb-slide--sand::before {
    content: ''; position: absolute; top: 50%; left: 8%; width: 420px; height: 420px; margin-top: -210px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 70%); pointer-events: none;
}
.jb-clb-slide--sand::before { background: radial-gradient(circle, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, 0) 70%); }
.jb-clb-copy { position: relative; z-index: 1; max-width: 520px; display: flex; flex-direction: column; align-items: flex-end; text-align: right; margin-left: auto; }
.jb-clb-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #e7d3c1; margin-bottom: 12px; }
.jb-clb-title { display: block; font-size: 42px; line-height: 1.08; font-weight: 800; color: #fff; margin-bottom: 12px; }
.jb-clb-text { display: block; font-size: 16px; line-height: 1.5; color: #e9e0da; margin-bottom: 24px; max-width: 440px; }
.jb-clb-slide--sand .jb-clb-eyebrow { color: #8a6c5d; }
.jb-clb-slide--sand .jb-clb-title { color: var(--jb-ink); }
.jb-clb-slide--sand .jb-clb-text { color: #5f504c; }
.jb-clb-img { position: relative; z-index: 1; flex: 0 1 44%; height: 100%; display: flex; align-items: center; justify-content: center; }
.jb-clb-img img { max-width: 100%; max-height: 270px; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .22)); transition: transform .5s ease; }
.jb-clb-slide:hover .jb-clb-img img { transform: scale(1.04); }
.jb-clb-full, .jb-clb-full img { display: block; width: 100%; height: 100%; }
.jb-clb-full img { object-fit: cover; }
html body .jb-clb button.jb-clb-arrow {
    position: absolute; top: 50%; z-index: 3; width: 44px !important; height: 44px !important; margin-top: -40px;
    padding: 0 !important; border: 0 !important; border-radius: 50% !important; min-width: 0 !important;
    background: rgba(255, 255, 255, .92) !important; color: var(--jb-ink) !important; box-shadow: 0 6px 18px rgba(43, 34, 34, .18) !important;
    display: flex; align-items: center; justify-content: center; transition: transform .2s;
}
html body .jb-clb button.jb-clb-arrow:hover { transform: scale(1.06); }
html body .jb-clb button.jb-clb-arrow--prev { left: 16px; }
html body .jb-clb button.jb-clb-arrow--next { right: 16px; }
.jb-clb-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
html body .jb-clb button.jb-clb-dot {
    width: 8px !important; height: 8px !important; min-width: 0 !important; padding: 0 !important; border: 0 !important;
    border-radius: 999px !important; background: #d3c9c3 !important; box-shadow: none !important; cursor: pointer; transition: width .3s, background .3s;
}
html body .jb-clb button.jb-clb-dot.is-active { width: 30px !important; background: var(--jb-brown) !important; }

/* Horizontal card rows (families, brands) with the home page's round arrows */
.jb-cl-scroll { position: relative; }
.jb-fams, .jb-tbrands {
    list-style: none; margin: 0; padding: 2px 0 6px; display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.jb-fams::-webkit-scrollbar, .jb-tbrands::-webkit-scrollbar { display: none; }
.jb-fams > li, .jb-tbrands > li { margin: 0; scroll-snap-align: start; }
html body .jb-cl-scroll button.jb-cats-arrow {
    position: absolute; top: 50%; z-index: 3; width: 44px !important; height: 44px !important; margin-top: -30px;
    padding: 0 !important; border: 0 !important; border-radius: 50% !important; min-width: 0 !important;
    background: #fff !important; color: var(--jb-ink) !important; box-shadow: 0 6px 18px rgba(43, 34, 34, .16) !important;
    display: flex; align-items: center; justify-content: center; transition: opacity .2s;
}
html body .jb-cl-scroll button.jb-cats-arrow--prev { left: -22px; }
html body .jb-cl-scroll button.jb-cats-arrow--next { right: -22px; }
html body .jb-cl-scroll button.jb-cats-arrow.is-hidden { opacity: 0; pointer-events: none; }

/* Shop by Family */
.jb-fams > li { flex: 0 0 calc((100% - 5 * 16px) / 6); }
.jb-fam { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none !important; }
.jb-fam-img {
    width: 100%; aspect-ratio: 1; border-radius: 22px; background: #ebe6e1; overflow: hidden;
    display: flex; align-items: center; justify-content: center; transition: box-shadow .25s, transform .25s;
}
.jb-fam-img img { max-width: 72%; max-height: 72%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s ease; }
.jb-fam:hover .jb-fam-img { box-shadow: 0 12px 26px rgba(43, 34, 34, .12); }
.jb-fam:hover .jb-fam-img img { transform: scale(1.06); }
.jb-fam-initial { font-size: 46px; font-weight: 800; color: var(--jb-brown); opacity: .55; }
.jb-fam-name { margin-top: 12px; font-size: 16px; line-height: 1.25; font-weight: 700; color: var(--jb-ink); }
.jb-fam-count { margin-top: 3px; font-size: 13px; color: var(--jb-muted); }

/* Top Brands */
.jb-tbrands > li { flex: 0 0 calc((100% - 5 * 16px) / 6); }
.jb-tbrand {
    height: 120px; box-sizing: border-box; padding: 16px; border-radius: 20px; background: var(--jb-surface); border: 1px solid var(--jb-line);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none !important; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.jb-tbrand:hover { border-color: var(--jb-line-strong); box-shadow: var(--jb-shadow); transform: translateY(-2px); }
.jb-tbrand-logo { height: 52px; width: 100%; display: flex; align-items: center; justify-content: center; }
.jb-tbrand-logo img { max-height: 100%; max-width: 70%; object-fit: contain; }
.jb-tbrand-word { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--jb-ink); }
.jb-tbrand-count { font-size: 12px; color: var(--jb-muted); }

/* Top Sellers rail sits flush with the other sections */
.jb-cl .jb-rail { margin-top: 38px; }

/* "All <category>" heading above the product list */
.jb-cl-products-head { display: flex; align-items: baseline; gap: 12px; margin: 40px 0 18px; }
.jb-cl-products-head h2 { margin: 0; font-size: 24px; font-weight: 800; color: var(--jb-ink); }
.jb-cl-products-head span { font-size: 14px; color: var(--jb-muted); }

@media (max-width: 1199px) {
    .jb-clb-slide { height: 300px; padding: 0 48px; }
    .jb-clb-title { font-size: 34px; }
    .jb-fams > li, .jb-tbrands > li { flex-basis: calc((100% - 4 * 16px) / 5); }
}
@media (max-width: 767px) {
    .jb-cl-section, .jb-cl .jb-rail { margin-top: 28px; }
    .jb-clb-viewport { border-radius: 18px; }
    .jb-clb-slide { height: 210px; padding: 0 18px; gap: 10px; }
    .jb-clb-slide--image { padding: 0; }
    .jb-clb-copy { max-width: 58%; }
    .jb-clb-eyebrow { font-size: 11px; margin-bottom: 6px; }
    .jb-clb-title { font-size: 22px; margin-bottom: 10px; }
    .jb-clb-text { display: none; }
    .jb-clb .jb-btn { padding: 9px 16px; font-size: 13px; }
    .jb-clb-img { flex-basis: 42%; }
    .jb-clb-img img { max-height: 150px; }
    html body .jb-clb button.jb-clb-arrow, html body .jb-cl-scroll button.jb-cats-arrow { display: none !important; }
    .jb-fams, .jb-tbrands { gap: 10px; }
    .jb-fams > li { flex-basis: calc((100% - 2 * 10px) / 3.2); }
    .jb-fam-img { border-radius: 16px; }
    .jb-fam-name { margin-top: 8px; font-size: 13px; }
    .jb-fam-count { font-size: 11px; }
    .jb-tbrands > li { flex-basis: calc((100% - 2 * 10px) / 3.2); }
    .jb-tbrand { height: 90px; padding: 10px; border-radius: 16px; }
    .jb-tbrand-logo { height: 38px; }
    .jb-tbrand-word { font-size: 16px; }
    .jb-cl-products-head { margin: 30px 0 12px; }
    .jb-cl-products-head h2 { font-size: 20px; }
}
@media (max-width: 767px) {
    html body .jb-cl .jb-rail { padding-left: 0 !important; padding-right: 0 !important; }
}

/* ---- Hero v3 (Extra, Oct 2026): wide main slide, flat neighbours peeking at the
   edges, arrows and dots inside the main slide ---- */
.jb-hero.is-3d { --jb-w: min(1680px, calc(100vw - 200px)); --jb-h: clamp(420px, calc(var(--jb-w) * .38), 580px); padding-top: 20px; padding-bottom: 20px; }
.jb-hero.is-3d .jb-hero-viewport { perspective: none; }
.jb-hero.is-3d .jb-hero-track { transform-style: flat; }
.jb-hero.is-3d .jb-slide { padding: 0 120px; border-radius: 26px; box-shadow: 0 18px 40px rgba(43, 34, 34, .16); }
.jb-hero.is-3d .jb-slide.is-side { box-shadow: none; }
.jb-hero.is-3d .jb-slide::after { background: rgba(27, 22, 22, .18); }
.jb-hero.is-3d .jb-slide-img { width: calc(var(--jb-h) * .82); height: calc(var(--jb-h) * .82); }
.jb-hero.is-3d .jb-slide-title { font-size: 54px; }
.jb-hero.is-3d .jb-slide-text { font-size: 18px; }
.jb-hero.is-3d .jb-slide-copy { max-width: 540px; }
html body .jb-hero.is-3d button.jb-hero-arrow { top: calc(20px + 10px + var(--jb-h) / 2 - 26px); }
html body .jb-hero.is-3d button.jb-hero-arrow--prev { left: calc(50% - var(--jb-w) / 2 + 22px); }
html body .jb-hero.is-3d button.jb-hero-arrow--next { right: calc(50% - var(--jb-w) / 2 + 22px); }
.jb-hero.is-3d .jb-hero-dots { position: absolute; left: 0; right: 0; top: calc(20px + 10px + var(--jb-h) - 28px); margin: 0; z-index: 30; }
html body .jb-hero.is-3d button.jb-hero-dot { background: rgba(255, 255, 255, .55) !important; }
html body .jb-hero.is-3d button.jb-hero-dot.is-active { background: #fff !important; }
@media (max-width: 1199px) {
    .jb-hero.is-3d { --jb-w: calc(100vw - 120px); --jb-h: clamp(320px, calc(var(--jb-w) * .4), 440px); }
    .jb-hero.is-3d .jb-slide { padding: 0 90px; }
    .jb-hero.is-3d .jb-slide-title { font-size: 40px; }
}
@media (max-width: 767px) {
    .jb-hero.is-3d { --jb-w: calc(100vw - 40px); --jb-h: 240px; padding-top: 14px; padding-bottom: 14px; }
    html body .jb-hero.is-3d .jb-slide { padding: 0 18px 0 6px; border-radius: 18px; }
    .jb-hero.is-3d .jb-slide-img { width: 150px; height: 150px; }
    .jb-hero.is-3d .jb-slide-title { font-size: 22px; }
    .jb-hero.is-3d .jb-slide-text { display: none; }
    .jb-hero.is-3d .jb-hero-dots { top: calc(14px + 10px + var(--jb-h) - 22px); }
}
.jb-hero.is-3d .jb-hero-dots { width: fit-content; margin: 0 auto; padding: 6px 10px; border-radius: 999px; background: rgba(43, 34, 34, .32); backdrop-filter: blur(4px); }
