/* ── Shared header enhancements (reused from home) ─────── */
.jt-header-enhanced { box-shadow: 0 2px 20px rgba(0,0,0,0.07); }
.jt-header-right { display:flex; align-items:center; justify-content:flex-end; gap:18px; }
.jt-cart-btn {
    position:relative; display:inline-flex; align-items:center; justify-content:center;
    width:42px; height:42px; border-radius:50%; background:#f0f7e8; color:#3a7d44; font-size:18px; transition:background 0.2s;
}
.jt-cart-btn:hover { background:#d6f39a; color:#1f351d; }
.jt-cart-badge {
    position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; border-radius:999px;
    background:#e05c2a; color:#fff; font-size:10px; font-weight:700;
    display:flex; align-items:center; justify-content:center; padding:0 4px; line-height:1;
}
.jt-loading-spinner {
    width:40px; height:40px; border:3px solid #e6ebe4; border-top-color:#3a7d44;
    border-radius:50%; animation:jt-spin 0.7s linear infinite; margin:0 auto;
}
@keyframes jt-spin { to { transform:rotate(360deg); } }

/* ── Product card category label ───────────────────────── */
.jt-product-cat {
    display:inline-block; font-size:11px; font-weight:700; letter-spacing:1px;
    text-transform:uppercase; color:#5e8740; margin-bottom:4px;
}

/* ── Active filter bar ─────────────────────────────────── */
.jt-active-filter {
    display:flex; align-items:center; gap:12px;
    background:#f0f7e8; border:1px solid #d4ecc0; border-radius:8px;
    padding:10px 16px; margin-bottom:18px; font-size:14px; color:#1f351d;
}
.jt-clear-filter { color:#e05c2a; font-weight:700; margin-left:auto; }
.jt-clear-filter:hover { color:#c04010; }

/* ── Sidebar category list ─────────────────────────────── */
.sidebar__item ul .jt-cat-link { color:#333; transition:color 0.2s; }
.sidebar__item ul .jt-cat-link:hover,
.sidebar__item ul .jt-cat-link.active { color:#3a7d44; font-weight:700; }
.jt-cat-loading { color:#aaa; font-size:13px; }

/* ── Sidebar category image cards ──────────────────────── */
.jt-sidebar-cat-cards {
    display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; margin-top:8px;
}
.jt-sidebar-cat-card {
    display:flex; flex-direction:column; align-items:center; gap:6px;
    text-decoration:none; border-radius:12px; overflow:hidden;
    border:2px solid #e4f0d8; transition:border-color 0.2s, transform 0.2s;
    padding-bottom:8px; background:#fafff6;
}
.jt-sidebar-cat-card:hover { border-color:#3a7d44; transform:translateY(-3px); }
.jt-sidebar-cat-card img {
    width:100%; height:70px; object-fit:cover; display:block;
}
.jt-sidebar-cat-card__fallback {
    width:100%; height:70px; display:flex; align-items:center; justify-content:center;
    background:linear-gradient(135deg,#d6f39a,#a8d870); color:#2d6a35; font-size:24px;
}
.jt-sidebar-cat-card span {
    font-size:11px; font-weight:700; color:#1f351d; text-align:center;
    padding:0 6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%;
}

/* ── View toggle ───────────────────────────────────────── */
.jt-view-toggle { cursor:pointer; opacity:0.4; transition:opacity 0.2s; }
.jt-view-toggle.active { opacity:1; color:#3a7d44; }

/* ── Cart table image ──────────────────────────────────── */
.cart-product-img {
    width:70px; height:70px; object-fit:cover; border-radius:8px;
    border:1px solid #e4f0d8;
}

/* ── Product details rating ────────────────────────────── */
.product__details__rating { margin-bottom:10px; }
.product__details__rating i { color:#f5a623; font-size:14px; }

/* ── RWF Price Range Filter ────────────────────────────── */
.jt-price-filter { padding: 4px 0 8px; }

.jt-price-filter__track {
    position: relative;
    height: 6px;
    background: #e4f0d8;
    border-radius: 999px;
    margin: 28px 0 14px;
}

.jt-price-filter__fill {
    position: absolute;
    height: 100%;
    background: #3a7d44;
    border-radius: 999px;
    pointer-events: none;
}

.jt-range {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    outline: none;
    margin: 0;
}

.jt-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3a7d44;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(58,125,68,0.35);
    cursor: pointer;
    pointer-events: all;
    transition: transform 0.15s;
}

.jt-range::-webkit-slider-thumb:hover { transform: scale(1.2); }

.jt-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3a7d44;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(58,125,68,0.35);
    cursor: pointer;
    pointer-events: all;
}

.jt-price-filter__labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #1f351d;
    margin-bottom: 10px;
}

.jt-price-filter__btn {
    width: 100%;
    padding: 7px 0;
    border-radius: 999px;
    background: #3a7d44;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}
.jt-price-filter__btn:hover { background: #2d6235; }

/* ── Shared storefront shells ──────────────────────────── */
.jt-eyebrow {
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    font-weight:800;
    letter-spacing:0.18em;
    text-transform:uppercase;
    color:#4c7a38;
}

.jt-shop-shell,
.jt-product-shell,
.jt-cart-shell {
    background:
        radial-gradient(circle at top left, rgba(222, 241, 190, 0.55), transparent 26%),
        linear-gradient(180deg, #fbfdf7 0%, #ffffff 100%);
}

.jt-section-head {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
}

.jt-section-head h3 {
    font-size:22px;
    color:#1e3c20;
    margin:4px 0 0;
}

.jt-section-link {
    color:#3a7d44;
    font-weight:700;
    font-size:14px;
}

/* ── Shop card (product) ───────────────────────────────── */
.jt-shop-card {
    height:100%;
    border-radius:20px;
    overflow:hidden;
    background:#fff;
    border:1px solid #eef2e8;
    box-shadow:0 14px 36px rgba(31, 51, 18, 0.06);
}

.jt-shop-card__image {
    display:block;
    height:180px;
    overflow:hidden;
    background:#f5f8ef;
}

.jt-shop-card__body {
    padding:16px 18px 18px;
    text-align:left;
}

.jt-shop-card__meta {
    display:flex;
    justify-content:space-between;
    gap:8px;
    align-items:center;
    margin-bottom:8px;
}

.jt-stock-pill {
    display:inline-flex;
    align-items:center;
    padding:4px 8px;
    border-radius:999px;
    background:#eff7e1;
    color:#3c6d31;
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:0.06em;
}

.jt-shop-card__body h6 {
    font-size:16px;
    margin:0 0 6px;
    line-height:1.3;
}

.jt-shop-card__body p {
    color:#687867;
    margin-bottom:14px;
    font-size:13px;
    line-height:1.4;
    min-height:36px;
}

.jt-shop-card__footer {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:10px;
}

.jt-shop-card__footer h5 {
    margin:0;
    font-size:18px;
    color:#143019;
}

.jt-shop-card__footer small {
    color:#7e8a79;
    font-weight:700;
    font-size:12px;
}

.jt-section-head h3 {
    font-size:22px;
    color:#1e3c20;
    margin:4px 0 0;
}

.jt-section-link {
    color:#3a7d44;
    font-weight:700;
}

/* ── Shop grid redesign ────────────────────────────────── */
.jt-shop-intro {
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-end;
    padding:20px 24px;
    border-radius:20px;
    background:linear-gradient(135deg, #ffffff 0%, #f3f9ea 100%);
    border:1px solid #edf4e1;
    box-shadow:0 16px 40px rgba(42, 73, 28, 0.06);
    margin-bottom:20px;
}

.jt-shop-intro h2 {
    font-size:26px;
    line-height:1.15;
    margin:6px 0 10px;
    color:#17311b;
    max-width:600px;
}

.jt-shop-intro p {
    max-width:560px;
    margin:0;
    color:#617162;
    font-size:14px;
    line-height:1.5;
}

.jt-shop-intro__stats {
    display:grid;
    grid-template-columns:repeat(2, minmax(100px, 1fr));
    gap:10px;
    min-width:200px;
}

.jt-shop-stat {
    padding:14px 16px;
    border-radius:18px;
    background:#17311b;
    color:#fff;
    display:flex;
    flex-direction:column;
    gap:4px;
}

.jt-shop-stat strong {
    font-size:20px;
    line-height:1;
}

.jt-shop-stat span {
    color:rgba(255,255,255,0.72);
    font-size:11px;
    letter-spacing:0.10em;
    text-transform:uppercase;
}

.jt-category-showcase,
.jt-filter-panel,
.jt-product-details-board,
.jt-cart-items-panel,
.jt-cart-summary-card,
.jt-cart-support-card {
    border-radius:28px;
    background:#fff;
    border:1px solid #eef2e8;
    box-shadow:0 18px 48px rgba(32, 57, 25, 0.07);
}

.jt-category-showcase {
    padding:18px 16px 12px;
    margin-bottom:18px;
}

.jt-top-category-frames {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(100px, 1fr));
    gap:10px;
}

.jt-top-category-frame {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
    text-decoration:none;
    color:#17311b;
    padding:6px 4px 8px;
    border-radius:18px;
    transition:transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.jt-top-category-frame:hover,
.jt-top-category-frame.is-active {
    transform:translateY(-3px);
    background:#f6fbef;
    box-shadow:0 8px 20px rgba(67, 110, 48, 0.10);
}

.jt-top-category-frame__image {
    width:80px;
    height:80px;
    border-radius:50%;
    overflow:hidden;
    border:4px solid #edf6df;
    background:#eff7e1;
    display:flex;
    align-items:center;
    justify-content:center;
}

.jt-top-category-frame__image img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.jt-top-category-frame__fallback {
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg, #d8efb0, #95c95d);
    color:#24542b;
    font-size:22px;
}

.jt-top-category-frame__name {
    font-weight:700;
    text-align:center;
    line-height:1.3;
    font-size:12px;
}

.jt-shop-toolbar {
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    margin-bottom:14px;
}

.jt-shop-toolbar__search form {
    display:flex;
    align-items:center;
    gap:10px;
    background:#fff;
    border:1px solid #edf2e6;
    border-radius:999px;
    padding:8px 10px 8px 14px;
    box-shadow:0 12px 28px rgba(32, 57, 25, 0.04);
}

.jt-shop-toolbar__search i {
    color:#4c7a38;
    font-size:14px;
}

.jt-shop-toolbar__search input {
    flex:1 1 auto;
    border:0;
    outline:0;
    background:transparent;
    font-size:14px;
}

.jt-shop-toolbar__controls {
    display:flex;
    align-items:center;
    gap:12px;
}

.jt-filter-panel {
    display:grid;
    grid-template-columns:1.4fr 1fr;
    gap:16px;
    padding:18px 20px;
    margin-bottom:16px;
}

.jt-filter-label {
    display:block;
    font-size:11px;
    font-weight:800;
    letter-spacing:0.12em;
    text-transform:uppercase;
    color:#5d755f;
    margin-bottom:10px;
}

.jt-filter-pillbox {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.jt-pill-link {
    padding:8px 12px;
    border-radius:999px;
    background:#f4f7ef;
    color:#304832;
    text-decoration:none;
    font-weight:700;
    font-size:12px;
    transition:background 0.2s ease, color 0.2s ease;
}

.jt-pill-link:hover,
.jt-pill-link.active {
    background:#17311b;
    color:#fff;
}

.jt-shop-card {
    height:100%;
    border-radius:24px;
    overflow:hidden;
    background:#fff;
    border:1px solid #eef2e8;
    box-shadow:0 20px 48px rgba(31, 51, 18, 0.07);
}

.jt-shop-card__image {
    display:block;
    height:260px;
    overflow:hidden;
    background:#f5f8ef;
}

.jt-shop-card__image img {
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform 0.35s ease;
}

.jt-shop-card:hover .jt-shop-card__image img {
    transform:scale(1.06);
}

.jt-shop-card__body {
    padding:20px 22px 22px;
    text-align:left;
}

.jt-shop-card__meta {
    display:flex;
    justify-content:space-between;
    gap:8px;
    align-items:center;
    margin-bottom:10px;
}

.jt-stock-pill {
    display:inline-flex;
    align-items:center;
    padding:5px 10px;
    border-radius:999px;
    background:#eff7e1;
    color:#3c6d31;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:0.08em;
}

.jt-shop-card__body h6 {
    font-size:20px;
    margin:0 0 10px;
}

.jt-shop-card__body p {
    color:#687867;
    margin-bottom:18px;
    min-height:48px;
}

.jt-shop-card__footer {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:14px;
}

.jt-shop-card__footer h5 {
    margin:0;
    font-size:24px;
    color:#143019;
}

.jt-shop-card__footer small {
    color:#7e8a79;
    font-weight:700;
}

.jt-shop-card__cta {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:60px;
    padding:8px 14px;
    border-radius:999px;
    background:#3a7d44;
    color:#fff;
    font-weight:700;
    text-decoration:none;
    font-size:13px;
}

/* ── Product details redesign ─────────────────────────── */
.jt-product-hero {
    display:grid;
    grid-template-columns:minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap:28px;
    align-items:start;
    margin-bottom:28px;
}

.jt-product-media-card,
.jt-product-summary-card {
    border-radius:28px;
    background:#fff;
    border:1px solid #edf2e8;
    box-shadow:0 24px 60px rgba(32, 57, 25, 0.08);
}

.jt-product-media-card {
    overflow:hidden;
    padding:16px;
}

.jt-product-media-card img {
    width:100%;
    height:540px;
    object-fit:cover;
    border-radius:24px;
    background:#f5f7ef;
}

.jt-product-gallery {
    margin-top:16px;
}

.jt-product-gallery img {
    height:110px;
    object-fit:cover;
    border-radius:18px;
    border:1px solid #edf2e8;
}

.jt-product-summary-card {
    padding:28px 30px;
}

.jt-product-summary-card__eyebrow {
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    margin-bottom:14px;
}

.jt-product-summary-card__tag,
.jt-product-summary-card__stock {
    display:inline-flex;
    align-items:center;
    padding:8px 14px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    letter-spacing:0.08em;
    text-transform:uppercase;
}

.jt-product-summary-card__tag {
    background:#eff7e1;
    color:#2c5c2c;
}

.jt-product-summary-card__stock {
    background:#17311b;
    color:#fff;
}

.jt-product-summary-card h1 {
    font-size:40px;
    line-height:1.08;
    color:#17311b;
    margin-bottom:14px;
}

.jt-product-summary-card p {
    color:#667566;
    font-size:16px;
    margin-bottom:16px;
}

.jt-product-purchase-row {
    display:flex;
    align-items:center;
    gap:14px;
    margin:24px 0 28px;
}

.jt-product-buy-btn {
    flex:1 1 auto;
    text-align:center;
    border-radius:999px;
}

.jt-product-cart-link {
    margin-left:0;
}

.jt-product-spec-grid {
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
    margin-bottom:24px;
}

.jt-product-spec {
    padding:16px 18px;
    border-radius:18px;
    background:#f7faf2;
    border:1px solid #edf2e7;
}

.jt-product-spec span {
    display:block;
    font-size:12px;
    font-weight:800;
    letter-spacing:0.12em;
    text-transform:uppercase;
    color:#7b8874;
    margin-bottom:6px;
}

.jt-product-spec strong {
    color:#17311b;
    font-size:18px;
}

.jt-product-service-strip {
    display:grid;
    gap:10px;
    color:#466247;
    font-weight:600;
}

.jt-product-service-strip i {
    color:#3a7d44;
    margin-right:8px;
}

.jt-product-details-board {
    padding:28px 30px;
}

.jt-related-shell .section-title h2 {
    font-size:34px;
}

.jt-related-card {
    border-radius:24px;
    overflow:hidden;
    background:#fff;
    border:1px solid #edf2e7;
    box-shadow:0 18px 44px rgba(32, 57, 25, 0.07);
    height:100%;
}

.jt-related-card__image {
    display:block;
    height:220px;
    overflow:hidden;
}

.jt-related-card__image img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.jt-related-card__body {
    padding:18px 20px 22px;
}

.jt-related-card__body span {
    display:block;
    color:#5b755b;
    font-size:12px;
    font-weight:800;
    letter-spacing:0.12em;
    text-transform:uppercase;
    margin-bottom:8px;
}

.jt-related-card__body h6 {
    font-size:18px;
    margin-bottom:10px;
}

.jt-related-card__body strong {
    color:#17311b;
    font-size:22px;
}

/* ── Cart redesign ─────────────────────────────────────── */
.jt-cart-intro {
    display:flex;
    justify-content:space-between;
    gap:24px;
    align-items:flex-end;
    margin-bottom:26px;
}

.jt-cart-intro h2 {
    font-size:36px;
    margin:8px 0 10px;
    color:#17311b;
}

.jt-cart-intro p {
    color:#667566;
    margin:0;
    max-width:680px;
}

.jt-cart-intro__stats {
    min-width:170px;
    padding:20px 24px;
    border-radius:24px;
    background:#17311b;
    color:#fff;
    text-align:center;
}

.jt-cart-intro__stats strong {
    display:block;
    font-size:36px;
    line-height:1;
}

.jt-cart-intro__stats span {
    display:block;
    margin-top:6px;
    color:rgba(255,255,255,0.7);
    font-size:12px;
    letter-spacing:0.12em;
    text-transform:uppercase;
}

.jt-cart-layout {
    display:grid;
    grid-template-columns:minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap:28px;
}

.jt-cart-items-panel {
    padding:28px;
}

.jt-cart-panel-head {
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:center;
    margin-bottom:24px;
}

.jt-cart-panel-head h3 {
    margin:0;
    color:#17311b;
    font-size:30px;
}

.jt-cart-panel-actions {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.jt-cart-items-list {
    display:grid;
    gap:18px;
}

.jt-cart-item {
    display:grid;
    grid-template-columns:140px minmax(0, 1fr);
    gap:20px;
    padding:18px;
    border-radius:22px;
    background:#fbfcf8;
    border:1px solid #edf2e7;
}

.jt-cart-item__media img {
    width:100%;
    height:140px;
    border-radius:18px;
    object-fit:cover;
}

.jt-cart-item__header {
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-bottom:18px;
}

.jt-cart-item__category {
    display:inline-block;
    color:#5b755b;
    font-size:12px;
    font-weight:800;
    letter-spacing:0.12em;
    text-transform:uppercase;
    margin-bottom:8px;
}

.jt-cart-item__header h5 {
    font-size:22px;
    color:#17311b;
    margin-bottom:6px;
}

.jt-cart-item__header p {
    margin:0;
    color:#7a8674;
}

.jt-cart-remove {
    width:42px;
    height:42px;
    border:0;
    border-radius:50%;
    background:#f6e7df;
    color:#c25528;
}

.jt-cart-item__footer {
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:16px;
    align-items:center;
}

.jt-cart-price-block {
    padding:14px 16px;
    border-radius:18px;
    background:#fff;
    border:1px solid #edf2e7;
}

.jt-cart-price-block span {
    display:block;
    font-size:12px;
    font-weight:800;
    letter-spacing:0.1em;
    text-transform:uppercase;
    color:#7d8978;
    margin-bottom:6px;
}

.jt-cart-price-block strong {
    font-size:22px;
    color:#17311b;
}

.jt-cart-summary-card,
.jt-cart-support-card {
    padding:28px;
}

.jt-cart-summary-note {
    color:#667566;
    font-size:14px;
    margin:16px 0 20px;
}

.jt-cart-support-card {
    margin-top:18px;
}

.jt-cart-support-card h5 {
    color:#17311b;
    margin-bottom:18px;
}

.jt-cart-support-card ul {
    margin:0;
    padding:0;
    list-style:none;
}

.jt-cart-support-card li {
    display:flex;
    align-items:flex-start;
    gap:10px;
    color:#536453;
    margin-bottom:12px;
}

.jt-cart-support-card i {
    color:#3a7d44;
    margin-top:2px;
}

.jt-cart-empty {
    padding:44px 24px;
    text-align:center;
    border:1px dashed #dce7cf;
    border-radius:24px;
    background:#fbfcf8;
}

.jt-cart-empty__icon {
    width:78px;
    height:78px;
    margin:0 auto 16px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#eff7e1;
    color:#3a7d44;
    font-size:30px;
}

/* ── Responsive adjustments ───────────────────────────── */
@media (max-width: 991px) {
    .jt-shop-intro,
    .jt-cart-intro,
    .jt-shop-toolbar,
    .jt-cart-panel-head {
        flex-direction:column;
        align-items:flex-start;
    }

    .jt-filter-panel,
    .jt-product-hero,
    .jt-cart-layout {
        grid-template-columns:1fr;
    }

    .jt-product-media-card img {
        height:420px;
    }
}

@media (max-width: 767px) {
    .jt-shop-intro,
    .jt-category-showcase,
    .jt-filter-panel,
    .jt-product-summary-card,
    .jt-product-details-board,
    .jt-cart-items-panel,
    .jt-cart-summary-card,
    .jt-cart-support-card {
        padding:20px;
        border-radius:22px;
    }

    .jt-shop-intro h2,
    .jt-cart-intro h2,
    .jt-product-summary-card h1 {
        font-size:28px;
    }

    .jt-top-category-frames {
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .jt-product-purchase-row,
    .jt-cart-item {
        grid-template-columns:1fr;
        display:grid;
    }

    .jt-product-spec-grid,
    .jt-cart-item__footer {
        grid-template-columns:1fr;
    }
}
