/*!
 * Jafu Hardware — storefront styles
 * Colors come from CSS variables printed by theme_css_vars() (Admin → Design & colors).
 */

:root {
    --jh-primary-dark: color-mix(in srgb, var(--jh-primary) 80%, #000);
    --jh-primary-soft: color-mix(in srgb, var(--jh-primary) 9%, var(--jh-surface));
    --jh-accent-dark: color-mix(in srgb, var(--jh-accent) 86%, #000);
    --jh-media-bg: color-mix(in srgb, var(--jh-body-bg) 55%, var(--jh-surface));
    --jh-radius-sm: max(2px, calc(var(--jh-radius) - 2px));
    --jh-gap: 16px;
    --bs-body-font-family: var(--jh-font-body);
    --bs-link-color-rgb: 0, 0, 0;
}

/* --------------------------------------------------------------- base */

body {
    background: var(--jh-body-bg);
    color: var(--jh-text);
    font-family: var(--jh-font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4, .h5 {
    font-family: var(--jh-font-heading);
    font-stretch: 85%;
    font-weight: 700;
    color: var(--jh-heading);
    line-height: 1.25;
}

a { color: var(--jh-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--jh-primary-dark); }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--jh-accent); outline-offset: 2px; }
.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: var(--jh-primary);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--jh-primary) 22%, transparent);
}
.form-check-input:checked { background-color: var(--jh-primary); border-color: var(--jh-primary); }
.form-label { font-weight: 600; font-size: .92rem; color: var(--jh-heading); margin-bottom: .35rem; }
.form-control, .form-select { border-color: var(--jh-border); border-radius: var(--jh-radius-sm); }

.jh-skip { position: absolute; z-index: 1100; left: 12px; top: 8px; background: var(--jh-accent); color: var(--jh-accent-text); padding: 8px 14px; }

/* ------------------------------------------------------------ buttons */

.jh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .62rem 1.15rem; border: 1.5px solid transparent; border-radius: var(--jh-radius-sm);
    font-weight: 600; font-size: .95rem; line-height: 1.3; text-decoration: none; cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.jh-btn:disabled { opacity: .55; cursor: not-allowed; }
.jh-btn-lg { padding: .8rem 1.4rem; font-size: 1.02rem; }
.jh-btn-primary { background: var(--jh-primary); color: #fff; }
.jh-btn-primary:hover { background: var(--jh-primary-dark); color: #fff; }
.jh-btn-accent { background: var(--jh-accent); color: var(--jh-accent-text); }
.jh-btn-accent:hover { background: var(--jh-accent-dark); color: var(--jh-accent-text); }
.jh-btn-outline { border-color: var(--jh-primary); color: var(--jh-primary); background: transparent; }
.jh-btn-outline:hover { background: var(--jh-primary); color: #fff; }
.jh-btn-light { background: #fff; color: var(--jh-primary); }
.jh-btn-light:hover { background: var(--jh-body-bg); }
.jh-btn-wa { background: var(--jh-whatsapp); color: #fff; }
.jh-btn-wa:hover { background: color-mix(in srgb, var(--jh-whatsapp) 85%, #000); color: #fff; }
.jh-btn-wa-outline { border-color: var(--jh-whatsapp); color: var(--jh-whatsapp); background: transparent; }
.jh-btn-wa-outline:hover { background: var(--jh-whatsapp); color: #fff; }
.jh-link { font-weight: 600; text-decoration: none; }
.jh-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------- topbar */

.jh-topbar { background: var(--jh-topbar-bg); color: var(--jh-topbar-text); font-size: .82rem; }
.jh-topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 36px; }
.jh-topbar a { color: inherit; text-decoration: none; }
.jh-topbar a:hover { color: #fff; }
.jh-topbar-left, .jh-topbar-right { display: flex; align-items: center; gap: 1.25rem; white-space: nowrap; }
.jh-topbar i { margin-right: .3rem; opacity: .8; }
.jh-lang { display: inline-flex; border: 1px solid color-mix(in srgb, var(--jh-topbar-text) 30%, transparent); border-radius: 30px; overflow: hidden; }
.jh-lang a { padding: 2px 10px; }
.jh-lang a.active { background: var(--jh-accent); color: var(--jh-accent-text); font-weight: 600; }

/* ------------------------------------------------------------- header */

.jh-header { background: var(--jh-header-bg); color: var(--jh-header-text); position: relative; z-index: 1020; }
.jh-header-main {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
    gap: 1.5rem; padding-top: 14px; padding-bottom: 14px;
}
.jh-brand img { display: block; max-height: 56px; width: auto; max-width: 220px; }
.jh-icon-btn { background: none; border: 0; font-size: 1.35rem; color: var(--jh-header-text); padding: 4px 6px; }

.jh-search {
    position: relative; display: flex; align-items: stretch; height: 48px;
    border: 2px solid var(--jh-primary); border-radius: var(--jh-radius); background: #fff;
}
.jh-search-cat {
    border: 0; border-right: 1px solid var(--jh-border); background-color: var(--jh-primary-soft);
    padding: 0 2rem 0 .9rem; max-width: 190px; font-size: .9rem; color: var(--jh-heading);
    border-radius: calc(var(--jh-radius) - 2px) 0 0 calc(var(--jh-radius) - 2px);
    appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right .7rem center; background-size: 12px;
}
.jh-search input { flex: 1; min-width: 0; border: 0; padding: 0 1rem; font-size: .98rem; background: transparent; }
.jh-search input:focus { outline: none; }
.jh-search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--jh-primary) 20%, transparent); }
.jh-search button { border: 0; background: var(--jh-primary); color: #fff; width: 56px; font-size: 1.05rem; border-radius: 0 calc(var(--jh-radius) - 2px) calc(var(--jh-radius) - 2px) 0; }
.jh-search button:hover { background: var(--jh-primary-dark); }

.jh-suggest {
    position: absolute; top: calc(100% + 6px); left: -2px; right: -2px; z-index: 1050;
    background: var(--jh-surface); border: 1px solid var(--jh-border); border-radius: var(--jh-radius);
    box-shadow: 0 16px 40px rgba(20, 26, 24, .16); overflow: hidden;
}
.jh-suggest a { display: grid; grid-template-columns: 44px 1fr auto; gap: .75rem; align-items: center; padding: .5rem .8rem; color: var(--jh-text); text-decoration: none; font-size: .92rem; }
.jh-suggest a:hover, .jh-suggest a.is-active { background: var(--jh-primary-soft); }
.jh-suggest img { width: 44px; height: 44px; object-fit: contain; background: var(--jh-media-bg); border-radius: 4px; }
.jh-suggest small { color: var(--jh-muted); white-space: nowrap; }
.jh-suggest .jh-suggest-all { display: block; text-align: center; font-weight: 600; border-top: 1px solid var(--jh-border); color: var(--jh-primary); }
.jh-suggest .jh-suggest-empty { padding: .8rem 1rem; color: var(--jh-muted); }

.jh-header-actions { display: flex; align-items: center; gap: 1.25rem; }
.jh-action { display: flex; align-items: center; gap: .6rem; color: var(--jh-header-text); text-decoration: none; }
.jh-action:hover { color: var(--jh-primary); }
.jh-action > i, .jh-cart-icon > i { font-size: 1.45rem; }
.jh-action-text { display: flex; flex-direction: column; line-height: 1.2; }
.jh-action-text small { font-size: .75rem; color: var(--jh-muted); }
.jh-action-text strong { font-size: .9rem; font-weight: 600; }
.jh-cart-icon { position: relative; margin-right: .35rem; }
.jh-cart-count {
    position: absolute; top: -8px; right: -10px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 10px; background: var(--jh-accent); color: var(--jh-accent-text);
    font-size: .72rem; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.jh-cart-count.is-bump { animation: jh-bump .45s ease; }
@keyframes jh-bump { 40% { transform: scale(1.35); } }

/* ------------------------------------------------------------ menubar */

.jh-menubar { background: var(--jh-menu-bg); color: var(--jh-menu-text); }
.jh-menubar-inner { display: flex; align-items: stretch; min-height: 48px; }
.jh-allcats-btn {
    height: 100%; display: flex; align-items: center; gap: .6rem; padding: 0 1.2rem; border: 0;
    background: var(--jh-accent); color: var(--jh-accent-text); font-weight: 700; min-width: 240px;
}
.jh-catmenu { width: 280px; padding: .4rem 0; border-radius: 0 0 var(--jh-radius) var(--jh-radius); border-color: var(--jh-border); margin-top: 0 !important; }
.jh-catmenu > li { position: relative; }
.jh-catmenu .dropdown-item { display: flex; align-items: center; gap: .7rem; padding: .55rem 1rem; font-size: .94rem; }
.jh-catmenu .dropdown-item:hover, .jh-catmenu .dropdown-item:focus { background: var(--jh-primary-soft); color: var(--jh-primary); }
.jh-catmenu-icon { width: 24px; text-align: center; color: var(--jh-primary); display: inline-flex; justify-content: center; }
.jh-catmenu-icon img { width: 22px; height: 22px; object-fit: contain; }
.jh-submenu { display: none; position: absolute; left: 100%; top: 0; min-width: 220px; list-style: none; padding: .4rem 0; margin: 0; background: var(--jh-surface); border: 1px solid var(--jh-border); border-radius: var(--jh-radius); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.jh-catmenu > li.has-children:hover > .jh-submenu, .jh-catmenu > li.has-children:focus-within > .jh-submenu { display: block; }
.jh-menu { display: flex; list-style: none; margin: 0 0 0 .5rem; padding: 0; flex: 1; }
.jh-menu a { display: flex; align-items: center; height: 100%; padding: 0 .95rem; color: var(--jh-menu-text); text-decoration: none; font-weight: 500; }
.jh-menu a:hover { background: rgba(255, 255, 255, .08); color: var(--jh-menu-text); }
.jh-menu a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--jh-accent); }
.jh-menubar-wa { display: flex; align-items: center; gap: .45rem; color: var(--jh-menu-text); text-decoration: none; font-weight: 600; padding-left: 1rem; }
.jh-menubar-wa i { font-size: 1.25rem; color: var(--jh-accent); }
.jh-menubar-wa:hover { color: var(--jh-accent); }

.jh-offcanvas { max-width: 86vw; }
.jh-mnav { list-style: none; padding: 0; margin: 0 0 1rem; }
.jh-mnav a { display: flex; align-items: center; gap: .6rem; padding: .7rem .25rem; border-bottom: 1px solid var(--jh-border); color: var(--jh-heading); text-decoration: none; font-weight: 500; }
.jh-mnav-title { font-size: 1rem; margin: 1.25rem 0 .25rem; color: var(--jh-muted); }
.jh-mnav-lang { display: flex; gap: .5rem; margin-top: 1rem; }

/* --------------------------------------------------------------- hero */

.jh-hero { padding-top: 18px; }
.jh-hero-carousel { border-radius: var(--jh-radius); overflow: hidden; background: var(--jh-primary-dark); }
.jh-hero-carousel .carousel-item img { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.jh-hero-caption { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 clamp(1.25rem, 6vw, 5rem); }
.jh-hero-caption.has-overlay { background: linear-gradient(90deg, color-mix(in srgb, var(--jh-primary-dark) 88%, transparent) 0%, color-mix(in srgb, var(--jh-primary-dark) 55%, transparent) 45%, transparent 75%); }
.jh-hero-caption.is-center { justify-content: center; text-align: center; }
.jh-hero-caption.is-center.has-overlay { background: color-mix(in srgb, var(--jh-primary-dark) 55%, transparent); }
.jh-hero-caption.is-right { justify-content: flex-end; text-align: right; }
.jh-hero-caption.is-right.has-overlay { background: linear-gradient(270deg, color-mix(in srgb, var(--jh-primary-dark) 88%, transparent) 0%, transparent 75%); }
.jh-hero-text { max-width: 560px; color: #fff; }
.jh-hero-title { color: #fff; font-size: clamp(1.5rem, 1rem + 2.6vw, 3.1rem); font-stretch: 78%; font-weight: 800; line-height: 1.12; margin-bottom: .6rem; text-wrap: balance; }
.lang-bn .jh-hero-title { line-height: 1.25; }
.jh-hero-sub { font-size: clamp(.95rem, .85rem + .4vw, 1.15rem); opacity: .92; margin-bottom: 1.25rem; max-width: 46ch; }
.jh-hero-caption.is-center .jh-hero-sub { margin-inline: auto; }
.jh-hero .carousel-indicators { margin-bottom: .9rem; }
.jh-hero .carousel-indicators [data-bs-target] { width: 26px; height: 4px; border-radius: 2px; border: 0; background: #fff; opacity: .45; }
.jh-hero .carousel-indicators .active { opacity: 1; background: var(--jh-accent); }
.jh-hero .carousel-control-prev, .jh-hero .carousel-control-next { width: 64px; opacity: 1; }
.jh-hero-arrow { width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .35); display: grid; place-items: center; color: #fff; }
.jh-hero .carousel-control-prev:hover .jh-hero-arrow, .jh-hero .carousel-control-next:hover .jh-hero-arrow { background: var(--jh-accent); color: var(--jh-accent-text); }

/* ----------------------------------------------------------- sections */

.jh-section { padding-top: 34px; padding-bottom: 8px; }
.jh-section:last-of-type { padding-bottom: 40px; }
.jh-section-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 18px; }
.jh-section-title { margin: 0; font-size: clamp(1.3rem, 1.05rem + .9vw, 1.75rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
/* Ruler: fine ticks every 8px, long ticks every 40px — a measuring tape under every section */
.jh-ruler {
    flex: 1; height: 13px; min-width: 40px; align-self: center;
    background:
        linear-gradient(var(--jh-border), var(--jh-border)) left bottom / 100% 1px no-repeat,
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--jh-muted) 55%, transparent) 0 1px, transparent 1px 40px) left bottom / 100% 13px no-repeat,
        repeating-linear-gradient(90deg, var(--jh-border) 0 1px, transparent 1px 8px) left bottom / 100% 6px no-repeat;
}
.jh-view-all { font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.jh-view-all:hover { text-decoration: underline; }

/* Category strip under the slider */
.jh-cats-section { padding-top: 18px; }
.jh-catstrip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; }
.jh-catstrip-item {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; height: 100%;
    padding: 16px 10px 14px; background: var(--jh-surface); border: 1px solid var(--jh-border);
    border-radius: var(--jh-radius); text-decoration: none; color: var(--jh-heading);
}
.jh-catstrip-icon {
    width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: .45rem;
    background: var(--jh-primary-soft); color: var(--jh-primary); border-radius: var(--jh-radius); font-size: 1.6rem;
    transition: background-color .15s, color .15s;
}
.jh-catstrip-icon img { width: 44px; height: 44px; object-fit: contain; }
.jh-catstrip-name { font-weight: 600; font-size: .93rem; line-height: 1.3; }
.jh-catstrip-count { font-size: .78rem; color: var(--jh-muted); }
.jh-catstrip-item:hover { border-color: var(--jh-primary); color: var(--jh-primary); }
.jh-catstrip-item:hover .jh-catstrip-icon { background: var(--jh-primary); color: #fff; }

/* -------------------------------------------------------- product grid */

.jh-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--jh-gap); }
.jh-grid-shop { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.jh-card {
    position: relative; display: flex; flex-direction: column; background: var(--jh-surface);
    border: 1px solid var(--jh-border); border-radius: var(--jh-radius); overflow: hidden;
    transition: border-color .15s;
}
.jh-card:hover { border-color: color-mix(in srgb, var(--jh-primary) 55%, var(--jh-border)); }
.jh-card-media { display: block; background: var(--jh-media-bg); aspect-ratio: 1 / 1; padding: 12px; }
.jh-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.jh-card:hover .jh-card-media img { transform: scale(1.04); }
.jh-card-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--jh-sale); color: #fff;
    font-size: .76rem; font-weight: 700; padding: 3px 8px; border-radius: var(--jh-radius-sm);
}
.jh-card-badge.is-out { left: auto; right: 10px; background: var(--jh-heading); }
.jh-card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.jh-card-brand { font-size: .76rem; color: var(--jh-muted); font-weight: 600; letter-spacing: .02em; }
.jh-card-title { font-family: var(--jh-font-body); font-stretch: normal; font-size: .96rem; font-weight: 600; line-height: 1.4; margin: .15rem 0 .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.jh-card-title a { color: var(--jh-heading); text-decoration: none; }
.jh-card-title a:hover { color: var(--jh-primary); }
.jh-card-title a::after { content: ""; position: absolute; inset: 0 0 64px 0; }
.jh-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; margin-bottom: .75rem; }
.jh-card-price strong { font-family: var(--jh-font-heading); font-stretch: 90%; font-size: 1.2rem; color: var(--jh-price); }
.jh-card-price del { font-size: .85rem; color: var(--jh-muted); }
.jh-card-price.is-hidden { font-weight: 600; font-size: .9rem; color: var(--jh-primary); min-height: 1.85rem; align-items: center; }
.jh-card-actions { margin-top: auto; position: relative; z-index: 2; }
.jh-btn-cart, .jh-card .jh-btn-wa {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .55rem .5rem; border: 0; border-radius: var(--jh-radius-sm); font-weight: 600; font-size: .88rem; text-decoration: none;
}
.jh-btn-cart { background: var(--jh-accent); color: var(--jh-accent-text); }
.jh-btn-cart:hover { background: var(--jh-accent-dark); }
.jh-btn-cart.is-loading { opacity: .65; pointer-events: none; }
.jh-card .jh-btn-wa { background: var(--jh-whatsapp); color: #fff; }

/* -------------------------------------------------------- page header */

.jh-pagehead { background: var(--jh-surface); border-bottom: 1px solid var(--jh-border); padding: 18px 0 22px; }
.jh-pagehead-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); margin: 0; }
.jh-pagehead-sub { color: var(--jh-muted); margin: .4rem 0 0; max-width: 70ch; }
.breadcrumb { --bs-breadcrumb-divider: '›'; font-size: .85rem; margin-bottom: .5rem; }
.breadcrumb a { color: var(--jh-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--jh-primary); }
.breadcrumb-item.active { color: var(--jh-text); }
.jh-page-h1 { font-size: 1.6rem; margin-bottom: 1rem; }

.jh-panel { background: var(--jh-surface); border: 1px solid var(--jh-border); border-radius: var(--jh-radius); padding: 20px; margin-bottom: 16px; }
fieldset.jh-panel { min-width: 0; }
.jh-panel-title { font-size: 1.12rem; margin: 0 0 14px; float: none; width: auto; }

/* --------------------------------------------------------------- shop */

.jh-filter-cats, .jh-filter-cats ul { list-style: none; margin: 0; padding: 0; }
.jh-filter-cats ul { padding-left: .9rem; border-left: 2px solid var(--jh-border); margin: .2rem 0 .4rem .5rem; }
.jh-filter-cats a { display: flex; justify-content: space-between; padding: .38rem .5rem; color: var(--jh-text); text-decoration: none; border-radius: var(--jh-radius-sm); font-size: .94rem; }
.jh-filter-cats a span { color: var(--jh-muted); font-size: .82rem; }
.jh-filter-cats a:hover { background: var(--jh-primary-soft); color: var(--jh-primary); }
.jh-filter-cats a.active { background: var(--jh-primary); color: #fff; font-weight: 600; }
.jh-filter-cats a.active span { color: rgba(255,255,255,.75); }
.jh-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 14px; background: var(--jh-surface); border: 1px solid var(--jh-border); border-radius: var(--jh-radius); font-size: .92rem; }
.jh-toolbar select { width: auto; }
.jh-pagination { justify-content: center; gap: 6px; }
.jh-pagination .page-link { border-radius: var(--jh-radius-sm) !important; color: var(--jh-heading); border-color: var(--jh-border); min-width: 40px; text-align: center; }
.jh-pagination .active .page-link { background: var(--jh-primary); border-color: var(--jh-primary); color: #fff; }

.jh-empty { text-align: center; padding: 56px 20px; background: var(--jh-surface); border: 1px dashed var(--jh-border); border-radius: var(--jh-radius); }
.jh-empty > i { font-size: 2.6rem; color: var(--jh-muted); margin-bottom: 1rem; }
.jh-empty h2, .jh-empty h1 { font-size: 1.4rem; }
.jh-empty p { color: var(--jh-muted); max-width: 46ch; margin: 0 auto 1.25rem; }

/* ------------------------------------------------------------ product */

.jh-product { padding-bottom: 12px; }
.jh-gallery-main { position: relative; background: var(--jh-surface); border: 1px solid var(--jh-border); border-radius: var(--jh-radius); aspect-ratio: 1 / 1; padding: 24px; }
.jh-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.jh-gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.jh-gallery-thumbs button { background: var(--jh-surface); border: 2px solid var(--jh-border); border-radius: var(--jh-radius-sm); padding: 4px; aspect-ratio: 1; }
.jh-gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.jh-gallery-thumbs button.active { border-color: var(--jh-primary); }

.jh-pinfo-brand { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--jh-primary); background: var(--jh-primary-soft); padding: 2px 10px; border-radius: 20px; text-decoration: none; margin-bottom: .6rem; }
.jh-pinfo-title { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2.1rem); margin-bottom: .5rem; text-wrap: balance; }
.jh-pinfo-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; padding: 0; margin: 0 0 1rem; font-size: .9rem; color: var(--jh-muted); }
.jh-pinfo-meta .is-in { color: #1d7a45; font-weight: 600; }
.jh-pinfo-meta .is-out { color: var(--jh-sale); font-weight: 600; }
.jh-pinfo-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem; padding: 14px 0; border-top: 1px solid var(--jh-border); border-bottom: 1px solid var(--jh-border); margin-bottom: 1rem; }
.jh-pinfo-price strong { font-family: var(--jh-font-heading); font-stretch: 88%; font-size: 2.1rem; color: var(--jh-price); line-height: 1.1; }
.jh-pinfo-price del { color: var(--jh-muted); font-size: 1.05rem; }
.jh-save { font-size: .82rem; font-weight: 700; color: var(--jh-sale); background: color-mix(in srgb, var(--jh-sale) 10%, transparent); padding: 2px 8px; border-radius: 4px; }
.jh-askprice {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: 16px 18px; margin-bottom: 1rem; border-radius: var(--jh-radius);
    background: color-mix(in srgb, var(--jh-whatsapp) 8%, var(--jh-surface)); border: 1px solid color-mix(in srgb, var(--jh-whatsapp) 35%, transparent);
}
.jh-askprice strong { font-family: var(--jh-font-heading); font-size: 1.3rem; color: var(--jh-heading); }
.jh-askprice p { margin: 0; font-size: .88rem; color: var(--jh-muted); max-width: 34ch; }
.jh-pinfo-short { color: var(--jh-text); }
.jh-pinfo-warranty { font-size: .95rem; }
.jh-pinfo-warranty i { color: var(--jh-primary); }
.jh-buy { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.1rem 0 .4rem; }
.jh-buy .jh-btn { flex: 1 1 160px; }
.jh-qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--jh-border); border-radius: var(--jh-radius-sm); background: var(--jh-surface); height: 50px; }
.jh-qty button { width: 42px; border: 0; background: transparent; color: var(--jh-heading); }
.jh-qty button:hover { background: var(--jh-primary-soft); }
.jh-qty input { width: 52px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; background: transparent; }
.jh-qty input::-webkit-outer-spin-button, .jh-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.jh-qty-sm { height: 38px; }
.jh-qty-sm button { width: 34px; }
.jh-qty-sm input { width: 42px; }
.jh-note { font-size: .88rem; color: var(--jh-muted); }
.jh-pinfo-delivery { list-style: none; padding: 14px 16px; margin: 1.1rem 0; background: var(--jh-surface); border: 1px solid var(--jh-border); border-radius: var(--jh-radius); font-size: .9rem; }
.jh-pinfo-delivery li { display: flex; gap: .6rem; padding: .2rem 0; }
.jh-pinfo-delivery i { color: var(--jh-primary); margin-top: .35rem; font-size: .8rem; }
.jh-share { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--jh-muted); }
.jh-share a, .jh-share button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--jh-border); background: var(--jh-surface); color: var(--jh-heading); text-decoration: none; }
.jh-share a:hover, .jh-share button:hover { background: var(--jh-primary); color: #fff; border-color: var(--jh-primary); }

/* Machine nameplate: the spec sheet is drawn like the riveted rating plate on a real machine */
.jh-plate {
    --rivet: radial-gradient(circle, #f4f6f5 0 1.5px, #8e9894 2.2px 3.6px, #5e6764 4px 4.6px, transparent 5px);
    position: relative; padding: 26px 30px 22px; border-radius: 6px; color: #262c29;
    background:
        var(--rivet) 6px 6px / 14px 14px no-repeat,
        var(--rivet) calc(100% - 6px) 6px / 14px 14px no-repeat,
        var(--rivet) 6px calc(100% - 6px) / 14px 14px no-repeat,
        var(--rivet) calc(100% - 6px) calc(100% - 6px) / 14px 14px no-repeat,
        repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 3px),
        linear-gradient(170deg, #eef1f0 0%, #dde2df 55%, #cfd5d2 100%);
    border: 1px solid #a9b2ae;
    box-shadow: inset 0 0 0 5px rgba(255,255,255,.35), inset 0 0 0 6px #b9c1bd, 0 1px 0 rgba(0,0,0,.05);
}
.jh-plate-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px solid #2b322f; padding-bottom: 8px; margin-bottom: 4px; }
.jh-plate-head h2 { font-size: 1.15rem; margin: 0; color: #1f2522; }
.jh-plate-head span { font-family: var(--jh-font-heading); font-stretch: 80%; font-weight: 700; font-size: .95rem; letter-spacing: .04em; color: #4b5450; font-variant-numeric: tabular-nums; }
.jh-plate-rows { margin: 0; }
.jh-plate-rows > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; padding: 7px 0; border-bottom: 1px dotted #8f9995; }
.jh-plate-rows > div:last-child { border-bottom: 0; }
.jh-plate-rows dt { font-weight: 500; color: #4b5450; font-size: .92rem; }
.jh-plate-rows dd { margin: 0; font-weight: 700; color: #1b201e; font-variant-numeric: tabular-nums; }
.jh-plate-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid #a9b2ae; text-align: right; font-family: var(--jh-font-heading); font-stretch: 75%; font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; color: #69736f; text-shadow: 0 1px 0 rgba(255,255,255,.6); }

.jh-prose { line-height: 1.8; max-width: 75ch; }
.jh-prose-lg { font-size: 1.05rem; }
.jh-prose h2 { font-size: 1.35rem; margin: 1.6rem 0 .6rem; }
.jh-prose h3 { font-size: 1.15rem; margin: 1.3rem 0 .5rem; }
.jh-prose ul, .jh-prose ol { padding-left: 1.3rem; }
.jh-prose li { margin-bottom: .3rem; }
.jh-prose img { border-radius: var(--jh-radius); margin: .5rem 0; }
.jh-prose blockquote { border-left: 4px solid var(--jh-accent); padding: .4rem 1rem; background: var(--jh-surface); }
.jh-prose table { width: 100%; border-collapse: collapse; }
.jh-prose td, .jh-prose th { border: 1px solid var(--jh-border); padding: .45rem .6rem; }

.jh-sticky-buy {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--jh-surface); border-top: 1px solid var(--jh-border); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.jh-sticky-buy small { display: block; color: var(--jh-muted); font-size: .78rem; line-height: 1.2; }
.jh-sticky-buy strong { font-family: var(--jh-font-heading); font-size: 1.15rem; }

/* --------------------------------------------------- cart & checkout */

.jh-cart-lines { list-style: none; margin: 0; padding: 0; }
.jh-cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto 110px 40px; align-items: center; gap: 1rem; padding: 14px 18px; border-bottom: 1px solid var(--jh-border); }
.jh-cart-thumb img { width: 76px; height: 76px; object-fit: contain; background: var(--jh-media-bg); border-radius: var(--jh-radius-sm); padding: 4px; }
.jh-cart-name { display: block; color: var(--jh-heading); font-weight: 600; text-decoration: none; line-height: 1.35; }
.jh-cart-unit { font-size: .88rem; color: var(--jh-muted); }
.jh-cart-total { text-align: right; font-family: var(--jh-font-heading); font-size: 1.05rem; }
.jh-cart-remove { border: 0; background: none; color: var(--jh-muted); font-size: 1.05rem; padding: 6px; }
.jh-cart-remove:hover { color: var(--jh-sale); }
.jh-cart-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }

.jh-summary dl { margin: 0 0 1rem; }
.jh-summary dl > div, dl.jh-summary > div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; }
.jh-summary dt { font-weight: 400; color: var(--jh-muted); }
.jh-summary dd { margin: 0; font-weight: 600; }
.jh-summary .is-total { border-top: 2px solid var(--jh-heading); margin-top: .4rem; padding-top: .7rem !important; }
.jh-summary .is-total dt { color: var(--jh-heading); font-weight: 700; }
.jh-summary .is-total dd { font-family: var(--jh-font-heading); font-size: 1.35rem; }
.jh-summary-items { list-style: none; margin: 0 0 .75rem; padding: 0; }
.jh-summary-items li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--jh-border); font-size: .92rem; }
.jh-summary-items img { width: 52px; height: 52px; object-fit: contain; background: var(--jh-media-bg); border-radius: 4px; }
.jh-summary-items small { color: var(--jh-muted); white-space: nowrap; }
.jh-sticky { position: sticky; top: 16px; }

.jh-options { display: grid; gap: 10px; }
.jh-option { display: flex; align-items: center; gap: .75rem; padding: 12px 14px; border: 1.5px solid var(--jh-border); border-radius: var(--jh-radius-sm); cursor: pointer; background: var(--jh-surface); margin: 0; }
.jh-option input { accent-color: var(--jh-primary); width: 18px; height: 18px; flex: none; }
.jh-option-main { font-weight: 600; color: var(--jh-heading); }
.jh-option-main i { color: var(--jh-primary); width: 20px; text-align: center; margin-right: .2rem; }
.jh-option-side { margin-left: auto; font-weight: 600; white-space: nowrap; }
.jh-option:has(input:checked) { border-color: var(--jh-primary); background: var(--jh-primary-soft); }
.jh-pay-detail { margin: 8px 0 4px; padding: 12px 14px; background: var(--jh-body-bg); border-left: 3px solid var(--jh-accent); border-radius: 0 var(--jh-radius-sm) var(--jh-radius-sm) 0; font-size: .92rem; }
.jh-pay-number { margin-bottom: .4rem; }

/* ---------------------------------------------- success / tracking */

.jh-success { max-width: 980px; margin: 0 auto; }
.jh-success-head { text-align: center; padding: 32px 20px; margin-bottom: 20px; background: var(--jh-surface); border: 1px solid var(--jh-border); border-top: 5px solid var(--jh-primary); border-radius: var(--jh-radius); }
.jh-success-head > i { font-size: 3rem; color: var(--jh-primary); margin-bottom: .75rem; }
.jh-success-head.is-warn { border-top-color: var(--jh-accent); }
.jh-success-head.is-warn > i { color: var(--jh-accent-dark); }
.jh-success-head h1 { font-size: 1.8rem; }
.jh-success-head p { color: var(--jh-muted); max-width: 52ch; margin: 0 auto 1rem; }
.jh-order-no { display: inline-block; padding: 8px 16px; background: var(--jh-primary-soft); border-radius: var(--jh-radius-sm); font-size: 1.05rem; }

.jh-order-track-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--jh-border); margin-bottom: 20px; }
.jh-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0; margin: 0 0 8px; counter-reset: step; }
.jh-steps li { position: relative; text-align: center; padding-top: 38px; font-size: .9rem; color: var(--jh-muted); }
.jh-steps li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--jh-border); }
.jh-steps li:first-child::before { display: none; }
.jh-steps li.is-done::before, .jh-steps li.is-current::before { background: var(--jh-primary); }
.jh-step-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--jh-surface); border: 3px solid var(--jh-border); display: grid; place-items: center; font-size: .72rem; z-index: 1; }
.jh-steps .is-done .jh-step-dot { background: var(--jh-primary); border-color: var(--jh-primary); color: #fff; }
.jh-steps .is-current .jh-step-dot { border-color: var(--jh-primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--jh-accent) 45%, transparent); background: var(--jh-accent); }
.jh-steps .is-done, .jh-steps .is-current { color: var(--jh-heading); font-weight: 600; }
.jh-step-label, .jh-step-date { display: block; }
.jh-step-date { font-size: .76rem; font-weight: 400; color: var(--jh-muted); }
.jh-courier { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 20px; padding: 14px 16px; background: var(--jh-primary-soft); border-radius: var(--jh-radius-sm); }
.jh-courier > i { font-size: 1.6rem; color: var(--jh-primary); }
.jh-history { list-style: none; padding: 0; margin: 0 0 1rem; }
.jh-history li { display: grid; grid-template-columns: 190px 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--jh-border); font-size: .92rem; }
.jh-history time { color: var(--jh-muted); }

/* ------------------------------------------------------------ content */

.jh-post-card { height: 100%; display: flex; flex-direction: column; background: var(--jh-surface); border: 1px solid var(--jh-border); border-radius: var(--jh-radius); overflow: hidden; }
.jh-post-media img { width: 100%; aspect-ratio: 1.9; object-fit: cover; display: block; }
.jh-post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.jh-post-body time { font-size: .82rem; color: var(--jh-muted); }
.jh-post-title { font-size: 1.15rem; margin: .3rem 0 .5rem; line-height: 1.35; }
.jh-post-title a { color: var(--jh-heading); text-decoration: none; }
.jh-post-title a:hover { color: var(--jh-primary); }
.jh-post-body p { color: var(--jh-muted); font-size: .93rem; flex: 1; }
.jh-post-head time { color: var(--jh-muted); font-size: .9rem; }
.jh-post-head h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); margin: .3rem 0 1.2rem; text-wrap: balance; }
.jh-post-cover { width: 100%; border-radius: var(--jh-radius); margin-bottom: 1.5rem; }
.jh-recent { list-style: none; padding: 0; margin: 0; }
.jh-recent a { display: grid; grid-template-columns: 80px 1fr; gap: .75rem; padding: .5rem 0; color: var(--jh-heading); text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.35; }
.jh-recent img { width: 80px; height: 54px; object-fit: cover; border-radius: 4px; }
.jh-recent small { display: block; color: var(--jh-muted); font-weight: 400; margin-top: .2rem; }
.jh-help-box { background: color-mix(in srgb, var(--jh-whatsapp) 7%, var(--jh-surface)); }

.jh-about-img { width: 100%; border-radius: var(--jh-radius); }
.jh-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 36px 0; background: var(--jh-surface); border: 1px solid var(--jh-border); border-radius: var(--jh-radius); }
.jh-stats > div { display: flex; flex-direction: column-reverse; padding: 22px 24px; border-right: 1px solid var(--jh-border); }
.jh-stats > div:last-child { border-right: 0; }
.jh-stats dd { margin: 0; font-family: var(--jh-font-heading); font-stretch: 78%; font-weight: 800; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.7rem); color: var(--jh-primary); line-height: 1.1; }
.jh-stats dt { font-weight: 500; color: var(--jh-muted); }
.jh-cta { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 28px 32px; background: var(--jh-primary); color: #fff; border-radius: var(--jh-radius); }
.jh-cta h2 { color: #fff; font-size: 1.5rem; margin-bottom: .3rem; }
.jh-cta p { margin: 0; opacity: .85; }

.jh-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.jh-contact-list li { display: flex; gap: 1rem; padding: 16px 18px; background: var(--jh-surface); border: 1px solid var(--jh-border); border-radius: var(--jh-radius); }
.jh-contact-icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--jh-radius-sm); background: var(--jh-primary-soft); color: var(--jh-primary); font-size: 1.15rem; }
.jh-contact-icon.is-wa { background: color-mix(in srgb, var(--jh-whatsapp) 12%, transparent); color: var(--jh-whatsapp); }
.jh-contact-list h2 { font-size: 1rem; margin: 0 0 .15rem; }
.jh-contact-list p { margin: 0; }
.jh-contact-list a { text-decoration: none; }
.jh-map { border-radius: var(--jh-radius); overflow: hidden; border: 1px solid var(--jh-border); line-height: 0; }
.jh-hp { position: absolute; left: -9999px; }

.jh-auth { max-width: 470px; margin: 0 auto; background: var(--jh-surface); border: 1px solid var(--jh-border); border-top: 4px solid var(--jh-primary); border-radius: var(--jh-radius); padding: 30px; }
.jh-auth h1 { font-size: 1.7rem; }
.jh-account-nav { padding: 8px; }
.jh-account-nav a { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: var(--jh-radius-sm); color: var(--jh-text); text-decoration: none; font-weight: 500; }
.jh-account-nav a i { width: 18px; color: var(--jh-muted); }
.jh-account-nav a:hover { background: var(--jh-primary-soft); }
.jh-account-nav a.active { background: var(--jh-primary); color: #fff; }
.jh-account-nav a.active i { color: #fff; }
.jh-account-user { display: flex; align-items: center; gap: .75rem; padding: .6rem .6rem 1rem; border-bottom: 1px solid var(--jh-border); margin-bottom: .4rem; }
.jh-account-user small { display: block; color: var(--jh-muted); }
.jh-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--jh-accent); color: var(--jh-accent-text); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; }
.jh-table th { font-size: .82rem; color: var(--jh-muted); font-weight: 600; background: transparent; }
.jh-table td, .jh-table th { padding: .8rem 1rem; vertical-align: middle; }

.jh-404-code { display: block; font-family: var(--jh-font-heading); font-stretch: 75%; font-weight: 800; font-size: 6rem; line-height: 1; color: var(--jh-accent); }
.jh-404-search { display: flex; gap: .5rem; max-width: 420px; margin: 0 auto; }

/* -------------------------------------------------------------- footer */

.jh-footer { background: var(--jh-footer-bg); color: var(--jh-footer-text); margin-top: 48px; font-size: .94rem; }
.jh-footer-main { padding: 48px 0 28px; }
.jh-footer-logo img { max-height: 54px; width: auto; max-width: 220px; margin-bottom: 1rem; }
.jh-footer-about { max-width: 42ch; }
.jh-footer-title { color: var(--jh-footer-heading); font-size: 1.08rem; margin-bottom: 1rem; }
.jh-footer-links, .jh-footer-contact { list-style: none; padding: 0; margin: 0; }
.jh-footer-links li { margin-bottom: .45rem; }
.jh-footer a { color: var(--jh-footer-text); text-decoration: none; }
.jh-footer a:hover { color: var(--jh-accent); }
.jh-footer-contact li { display: flex; gap: .75rem; margin-bottom: .7rem; }
.jh-footer-contact i { color: var(--jh-accent); margin-top: .3rem; width: 16px; }
.jh-social { display: flex; gap: .5rem; }
.jh-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--jh-footer-text) 30%, transparent); }
.jh-social a:hover { background: var(--jh-accent); color: var(--jh-accent-text); border-color: var(--jh-accent); }
.jh-footer-pay { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 18px 0; border-top: 1px solid color-mix(in srgb, var(--jh-footer-text) 16%, transparent); font-size: .86rem; }
.jh-pay-chip { padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--jh-footer-text) 25%, transparent); border-radius: 4px; }
.jh-pay-chip i { color: var(--jh-accent); }
.jh-footer-bottom { border-top: 1px solid color-mix(in srgb, var(--jh-footer-text) 16%, transparent); padding: 16px 0; font-size: .85rem; }
.jh-footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.jh-unlicensed { color: #ffb4a8; }

.jh-wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: flex; align-items: center; gap: .55rem;
    padding: 10px 18px 10px 12px; background: var(--jh-whatsapp); color: #fff; border-radius: 40px; text-decoration: none;
    font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.jh-wa-float i { font-size: 1.7rem; }
.jh-wa-float:hover { color: #fff; background: color-mix(in srgb, var(--jh-whatsapp) 85%, #000); }

.jh-toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 1090; transform: translate(-50%, 140%);
    display: flex; align-items: center; gap: 1rem; max-width: calc(100vw - 32px);
    padding: 12px 18px; background: #1d2321; color: #fff; border-radius: var(--jh-radius); box-shadow: 0 10px 30px rgba(0,0,0,.3);
    transition: transform .25s ease, visibility 0s .25s; font-size: .94rem; visibility: hidden;
}
.jh-toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .25s ease; }
.jh-toast a { color: var(--jh-accent); font-weight: 700; white-space: nowrap; }
.jh-toast.is-error { background: #8a2a14; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 1399.98px) { .jh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .jh-grid-shop { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1199.98px) {
    .jh-header-main { gap: 1rem; }
    .jh-search-cat { display: none; }
}
@media (max-width: 991.98px) {
    .jh-header-main { grid-template-columns: auto 1fr auto; row-gap: 10px; padding-top: 10px; padding-bottom: 12px; }
    .jh-brand img { max-height: 42px; }
    .jh-search { grid-column: 1 / -1; order: 3; height: 44px; }
    .jh-header-actions { gap: .9rem; }
    .jh-action .jh-action-text { display: none; }
    .jh-grid, .jh-grid-shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .jh-hero { padding-top: 12px; }
    .jh-stats { grid-template-columns: repeat(2, 1fr); }
    .jh-stats > div:nth-child(2) { border-right: 0; }
    .jh-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--jh-border); }
    body:has(.jh-sticky-buy) { padding-bottom: 72px; }
    body:has(.jh-sticky-buy) .jh-wa-float { bottom: 84px; }
}
@media (max-width: 767.98px) {
    :root { --jh-gap: 10px; }
    .jh-hero .container { padding-left: 0; padding-right: 0; }
    .jh-hero-carousel { border-radius: 0; }
    .jh-hero-carousel .carousel-item img { aspect-ratio: 16 / 10; }
    .jh-hero-carousel .carousel-item.has-mobile img { aspect-ratio: 1 / 1; }
    .jh-hero-sub { font-size: .9rem; margin-bottom: .9rem; }
    .jh-topbar-left, .jh-topbar-right { gap: .75rem; }
    .jh-sticky-buy strong { font-size: 1rem; }
    .jh-hero-caption.has-overlay, .jh-hero-caption.is-right.has-overlay { background: linear-gradient(0deg, color-mix(in srgb, var(--jh-primary-dark) 92%, transparent) 0%, color-mix(in srgb, var(--jh-primary-dark) 40%, transparent) 70%, transparent 100%); }
    .jh-hero-caption { align-items: flex-end; padding-bottom: 2.4rem; text-align: left; justify-content: flex-start; }
    .jh-hero .carousel-control-prev, .jh-hero .carousel-control-next { display: none; }
    .jh-catstrip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
    .jh-catstrip li { flex: 0 0 116px; scroll-snap-align: start; }
    .jh-grid, .jh-grid-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jh-card-body { padding: 10px; }
    .jh-card-title { font-size: .9rem; }
    .jh-btn-cart, .jh-card .jh-btn-wa { font-size: .8rem; padding: .5rem .3rem; }
    .jh-section-title { max-width: 62%; }
    .jh-cart-line { grid-template-columns: 64px minmax(0, 1fr) 36px; grid-template-areas: "img info rm" "img qty total"; row-gap: .5rem; padding: 12px; }
    .jh-cart-thumb { grid-area: img; } .jh-cart-thumb img { width: 64px; height: 64px; }
    .jh-cart-info { grid-area: info; } .jh-cart-line .jh-qty { grid-area: qty; justify-self: start; }
    .jh-cart-total { grid-area: total; } .jh-cart-remove { grid-area: rm; }
    .jh-steps { grid-template-columns: 1fr; gap: 0; }
    .jh-steps li { text-align: left; padding: 0 0 18px 42px; }
    .jh-steps li::before { top: -18px; left: 12px; width: 3px; height: 100%; }
    .jh-steps li:first-child::before { display: none; }
    .jh-step-dot { left: 0; transform: none; }
    .jh-history li { grid-template-columns: 1fr; gap: 0; }
    .jh-wa-float { padding: 12px; }
    .jh-wa-float span { display: none; }
    .jh-auth { padding: 22px; }
    .jh-plate { padding: 22px 20px 18px; }
    .jh-topbar-left a:first-child ~ * { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .carousel-item { transition: none !important; }
}

@media print {
    .jh-topbar, .jh-header, .jh-footer, .jh-wa-float, .jh-sticky-buy { display: none !important; }
}
