:root {
  --jj-primary: #176b57;
  --jj-primary-dark: #0f4d3f;
  --jj-accent: #e2a84b;
  --jj-ink: #17252b;
  --jj-muted: #52636a;
  --jj-canvas: #f4f7f5;
  --jj-surface: #ffffff;
  --jj-soft: #eaf2ee;
  --jj-border: #d6e1dc;
  --jj-danger: #b42318;
  --jj-radius: 8px;
  --jj-shadow: 0 12px 32px rgba(20, 54, 45, .08);
  --jj-container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--jj-ink); background: var(--jj-canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; letter-spacing: 0; }
a { color: var(--jj-primary-dark); text-decoration: none; }
a:hover { color: var(--jj-primary); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(23, 107, 87, .35); outline-offset: 2px; }
button, input, select, textarea { font: inherit; }
button, .btn { min-height: 44px; touch-action: manipulation; }
h1, h2, h3, h4 { color: var(--jj-ink); letter-spacing: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }
img { max-width: 100%; }
.container, .jj-container { width: min(var(--jj-container), calc(100% - 40px)); margin-inline: auto; }

#top { min-height: 38px; background: var(--jj-primary-dark); color: #fff; border: 0; padding: 4px 0; }
#top a, #top .btn-link { color: #fff; font-size: 14px; }
#top .dropdown-menu a { color: var(--jj-ink); }
header { background: var(--jj-surface); padding: 18px 0; border-bottom: 1px solid var(--jj-border); }
header .row { align-items: center; }
#logo img { width: min(240px, 100%); height: auto; max-height: 64px; object-fit: contain; object-position: left center; }
#search { margin-bottom: 0; }
#search .form-control { min-height: 48px; border: 1px solid var(--jj-border); border-radius: 6px 0 0 6px; background: #fbfcfb; }
#search .btn { border-radius: 0 6px 6px 0; background: var(--jj-primary); color: #fff; border-color: var(--jj-primary); min-width: 52px; }
#cart > .btn { min-height: 48px; width: 100%; border-radius: 6px; background: var(--jj-primary-dark); color: #fff; border: 0; }
body #menu { width: 100%; max-width: none; margin-bottom: 0; padding: 0; background: var(--jj-surface) !important; border: 0; border-bottom: 1px solid var(--jj-border); border-radius: 0; min-height: 52px; }
body #menu .navbar-nav { width: min(var(--jj-container), calc(100% - 40px)); margin-inline: auto; justify-content: center; }
body #menu .nav > li > a { color: var(--jj-ink); font-weight: 700; padding: 14px 16px; min-height: 52px; text-shadow: none; }
body #menu .nav > li > a:hover { color: var(--jj-primary); background: var(--jj-soft); }
main { min-height: 55vh; }

.jj-eyebrow { display: inline-block; color: var(--jj-primary); font-size: 13px; font-weight: 750; text-transform: uppercase; margin-bottom: 10px; }
.jj-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 22px; border: 1px solid transparent; border-radius: 6px; font-weight: 700; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.jj-button:hover { transform: translateY(-1px); }
.jj-button--primary { color: #fff; background: var(--jj-primary); }
.jj-button--primary:hover { color: #fff; background: var(--jj-primary-dark); }
.jj-button--secondary { color: var(--jj-primary-dark); border-color: var(--jj-primary); background: rgba(255,255,255,.88); }
.jj-button--light { color: var(--jj-primary-dark); background: #fff; }
.jj-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.jj-hero { position: relative; min-height: 590px; overflow: hidden; background: #e7ece9; }
.jj-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.jj-hero__inner { position: relative; z-index: 1; display: flex; align-items: center; min-height: 590px; }
.jj-hero__content { width: min(570px, 54%); padding: 42px; background: rgba(255,255,255,.93); border-left: 5px solid var(--jj-accent); box-shadow: var(--jj-shadow); }
.jj-hero h1 { margin: 0; font-size: clamp(42px, 5vw, 70px); line-height: 1.03; }
.jj-hero p { max-width: 52ch; margin: 20px 0 0; color: var(--jj-muted); font-size: 18px; }
.jj-hero__assurance { display: flex; flex-wrap: wrap; gap: 12px 20px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--jj-muted); font-size: 14px; }
.jj-hero__assurance i { color: var(--jj-primary); margin-right: 6px; }

.jj-proof { background: var(--jj-primary-dark); color: #fff; }
.jj-proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.jj-proof__grid > div { display: flex; align-items: center; gap: 14px; padding: 22px 18px; border-right: 1px solid rgba(255,255,255,.16); }
.jj-proof__grid > div:last-child { border-right: 0; }
.jj-proof i { color: #f3c774; font-size: 22px; }
.jj-proof span { display: grid; }
.jj-proof strong { font-size: 14px; }
.jj-proof small { color: rgba(255,255,255,.72); }

.jj-section { padding-block: 80px; }
.jj-section--soft { max-width: none; width: 100%; background: var(--jj-soft); }
.jj-section__header { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.jj-section__header h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.jj-section__header > p { max-width: 52ch; color: var(--jj-muted); }
.jj-text-link { font-weight: 700; white-space: nowrap; }
.jj-text-link i { margin-left: 6px; }

.jj-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.jj-category { display: grid; grid-template-rows: auto 1fr; overflow: hidden; color: var(--jj-ink); background: var(--jj-surface); border: 1px solid var(--jj-border); border-radius: var(--jj-radius); transition: transform .2s ease, box-shadow .2s ease; }
.jj-category:hover { color: var(--jj-ink); transform: translateY(-3px); box-shadow: var(--jj-shadow); }
.jj-category img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #fafafa; }
.jj-category__body { display: grid; align-content: start; gap: 7px; padding: 20px; }
.jj-category__body strong { font: 700 22px/1.2 Georgia, serif; }
.jj-category__body small { min-height: 44px; color: var(--jj-muted); font-size: 14px; }
.jj-category__body > span { margin-top: 8px; color: var(--jj-primary); font-weight: 700; }

.jj-section .module-featured h3 { display: none; }
.row.row-cols-1.row-cols-sm-2.row-cols-md-3.row-cols-xl-4 { row-gap: 20px; }
.product-thumb { height: 100%; overflow: hidden; background: var(--jj-surface); border: 1px solid var(--jj-border); border-radius: var(--jj-radius); box-shadow: none; }
.product-thumb .image { background: #fbfcfb; }
.product-thumb .image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product-thumb .content { display: flex; flex-direction: column; min-height: 245px; padding: 18px; }
.product-thumb .description { flex: 1; padding: 0; }
.product-thumb h4 { min-height: 48px; margin: 0 0 8px; font: 700 18px/1.35 Georgia, serif; }
.product-thumb .description p { display: -webkit-box; overflow: hidden; min-height: 44px; color: var(--jj-muted); font-size: 14px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-thumb .price { color: var(--jj-primary-dark); font-size: 19px; font-weight: 750; font-variant-numeric: tabular-nums; }
.product-thumb .jj-vat-note { display: block; margin-bottom: 2px; color: var(--jj-muted); font-size: 11px; font-weight: 650; text-transform: uppercase; }
.product-thumb .price-tax { display: block; color: var(--jj-muted); font-size: 12px; font-weight: 400; }
.product-thumb .button { display: grid; grid-template-columns: 1fr 46px 46px; gap: 8px; padding: 0; border: 0; }
.product-thumb .button button { min-width: 44px; min-height: 44px; border: 1px solid var(--jj-border); background: #fff; color: var(--jj-primary-dark); border-radius: 5px; }
.product-thumb .button button:first-child { background: var(--jj-primary); color: #fff; border-color: var(--jj-primary); }

.jj-professional { padding-block: 68px; background: var(--jj-primary-dark); color: #fff; }
.jj-professional__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.jj-professional h2 { margin: 0; color: #fff; font-size: clamp(34px, 4vw, 52px); }
.jj-professional p { max-width: 64ch; margin: 14px 0 0; color: rgba(255,255,255,.76); }
.jj-professional .jj-eyebrow { color: #f3c774; }
.jj-guidance { display: grid; grid-template-columns: .85fr 1.5fr; gap: 64px; align-items: start; }
.jj-guidance h2 { margin: 0; font-size: 42px; }
.jj-guidance > div:first-child p { color: var(--jj-muted); }
.jj-guidance__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.jj-guidance article { padding: 22px; border-top: 3px solid var(--jj-accent); background: var(--jj-surface); }
.jj-guidance article i { color: var(--jj-primary); font-size: 24px; }
.jj-guidance article h3 { margin: 16px 0 8px; font-size: 18px; }
.jj-guidance article p { margin: 0; color: var(--jj-muted); font-size: 14px; }

.breadcrumb { margin-top: 24px; padding: 0; background: transparent; }
#product-category, #product-product, #product-search, #checkout-cart, #checkout-checkout, #account-login, #account-register { padding-block: 18px 64px; }
#product-info { padding-bottom: 72px; }
#product-info #content > .row.mb-3 { align-items: start; row-gap: 32px; margin-top: 12px; }
#product-info #content > .row.mb-3 > .col-sm { min-width: 0; }
#product-info #content > .row.mb-3 > .col-sm:first-child { padding-right: 24px; }
#product-info #content > .row.mb-3 > .col-sm:last-child { padding-left: 24px; }
#product-info .image > a:first-child { display: grid; place-items: center; overflow: hidden; background: #fbfcfb; border: 1px solid var(--jj-border); border-radius: var(--jj-radius); }
#product-info .image > a:first-child img { width: 100%; margin: 0 !important; border: 0; border-radius: 0; aspect-ratio: 1 / 1; object-fit: contain; }
#product-info .image > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
#product-info .image > div a { display: block; }
#product-info .image > div img { width: 88px; height: 88px; margin: 0; object-fit: cover; border-color: var(--jj-border); }
#product-info h1 { margin: 0 0 16px; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; }
#product-info h1 + .list-unstyled { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-bottom: 14px; color: var(--jj-muted); border-bottom: 1px solid var(--jj-border); font-size: 14px; }
#product-info .price-new { color: var(--jj-primary-dark); font: 700 34px/1.1 Georgia, serif; }
#product-info #product { margin-top: 18px; padding: 24px; background: var(--jj-surface); border: 1px solid var(--jj-border); border-radius: var(--jj-radius); box-shadow: var(--jj-shadow); }
#product-info #product h3 { margin-top: 0; font-size: 20px; }
#product-info #form-product .input-group { display: grid; grid-template-columns: auto 180px minmax(180px, 1fr); gap: 10px; }
#product-info #form-product .input-group-text { border-radius: 5px; }
#product-info .jj-quantity-stepper { display: grid; grid-template-columns: 44px minmax(54px, 1fr) 44px; min-width: 0; }
#product-info .jj-quantity-stepper button { min-width: 44px; padding: 0; border: 1px solid var(--jj-border); background: var(--jj-soft); color: var(--jj-primary-dark); font-size: 22px; font-weight: 750; line-height: 1; }
#product-info .jj-quantity-stepper button:first-child { border-radius: 5px 0 0 5px; }
#product-info .jj-quantity-stepper button:last-child { border-radius: 0 5px 5px 0; }
#product-info .jj-quantity-stepper button:hover { background: var(--jj-primary); color: #fff; }
#product-info .jj-quantity-stepper .form-control { min-width: 0; padding-inline: 4px; border-radius: 0; text-align: center; font-weight: 700; appearance: textfield; }
#product-info .jj-quantity-stepper .form-control::-webkit-inner-spin-button,
#product-info .jj-quantity-stepper .form-control::-webkit-outer-spin-button { margin: 0; appearance: none; }
#product-info #button-cart { min-height: 52px; font-weight: 750; }
#product-info .nav-tabs { margin-top: 48px; border-color: var(--jj-border); }
#product-info .nav-tabs .nav-link { min-height: 48px; padding: 13px 20px; color: var(--jj-muted); font-weight: 700; }
#product-info .nav-tabs .nav-link.active { color: var(--jj-primary-dark); border-color: var(--jj-border) var(--jj-border) var(--jj-surface); }
#product-info .tab-content { padding: 26px 4px 40px; font-size: 16px; line-height: 1.7; }
#product-category #product-list, #product-search #product-list { row-gap: 24px; }
#product-category > .breadcrumb, #product-search > .breadcrumb, #product-info > .breadcrumb { margin-bottom: 22px; }
#product-category h1, #product-product h1, #product-search h1, #checkout-cart h1, #checkout-checkout h1 { font-size: clamp(34px, 4vw, 54px); }
.btn-primary { background: var(--jj-primary); border-color: var(--jj-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--jj-primary-dark); border-color: var(--jj-primary-dark); }
.form-control, .form-select { min-height: 44px; border-color: var(--jj-border); }
.table, .card { background: var(--jj-surface); }
footer { margin-top: 0; padding: 56px 0 28px; background: #142e28; color: rgba(255,255,255,.75); border: 0; }
footer h5 { color: #fff; }
footer a { color: rgba(255,255,255,.8); }
footer a:hover { color: #fff; }
footer .row { row-gap: 28px; }
footer .jj-footer-brand img { width: 170px; height: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
footer .jj-footer-brand p { max-width: 38ch; font-size: 14px; }
footer li { margin-bottom: 8px; }
footer hr { margin-top: 32px; border-color: rgba(255,255,255,.18); }
footer p { margin-bottom: 0; font-size: 13px; }
footer .jj-footer-bottom { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 991px) {
  .jj-hero, .jj-hero__inner { min-height: 560px; }
  .jj-hero__content { width: min(620px, 70%); }
  .jj-proof__grid { grid-template-columns: repeat(2, 1fr); }
  .jj-proof__grid > div:nth-child(2) { border-right: 0; }
  .jj-category-grid { grid-template-columns: repeat(2, 1fr); }
  .jj-guidance { grid-template-columns: 1fr; gap: 32px; }
  #logo { margin-bottom: 14px; }
  body #menu .navbar-nav { width: min(100% - 28px, var(--jj-container)); justify-content: flex-start; }
}

@media (max-width: 767px) {
  .container, .jj-container { width: min(100% - 28px, var(--jj-container)); }
  header { padding: 12px 0; }
  #logo { text-align: center; }
  #logo img { width: 210px; object-position: center; }
  #search { margin-bottom: 10px; }
  .jj-hero { display: grid; min-height: 0; }
  .jj-hero__image { position: relative; height: 280px; object-position: 72% center; }
  .jj-hero__inner { min-height: 0; width: 100%; }
  .jj-hero__content { width: 100%; padding: 32px 22px 38px; border-left: 0; border-top: 4px solid var(--jj-accent); box-shadow: none; }
  .jj-hero h1 { font-size: 42px; }
  .jj-actions { display: grid; }
  .jj-button { width: 100%; }
  .jj-hero__assurance { display: grid; }
  .jj-proof__grid { grid-template-columns: 1fr; }
  .jj-proof__grid > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .jj-proof__grid > div:last-child { border-bottom: 0; }
  .jj-section { padding-block: 56px; }
  .jj-section__header { display: grid; gap: 16px; align-items: start; }
  .jj-category-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .jj-category__body { padding: 15px; }
  .jj-category__body strong { font-size: 18px; }
  .jj-category__body small { display: none; }
  .jj-professional__inner { display: grid; }
  .jj-guidance__items { grid-template-columns: 1fr; }
  .product-thumb .content { min-height: 230px; padding: 14px; }
  .product-thumb h4 { font-size: 16px; }
  #product-info #content > .row.mb-3 { row-gap: 18px; }
  #product-info #content > .row.mb-3 > .col-sm:first-child,
  #product-info #content > .row.mb-3 > .col-sm:last-child { padding-inline: calc(var(--bs-gutter-x) * .5); }
  #product-info #product { padding: 18px; }
  #product-info #form-product .input-group { grid-template-columns: auto minmax(0, 1fr); }
  #product-info #button-cart { grid-column: 1 / -1; width: 100%; }
  #checkout-cart #output-cart { overflow: visible; }
  #checkout-cart #output-cart table,
  #checkout-cart #output-cart tbody,
  #checkout-cart #output-cart tfoot { display: block; width: 100%; }
  #checkout-cart #output-cart thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #checkout-cart #output-cart tbody tr { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 0 14px; padding: 16px; background: var(--jj-surface); border: 1px solid var(--jj-border); border-radius: var(--jj-radius); }
  #checkout-cart #output-cart tbody td { display: block; width: auto; padding: 0; border: 0; text-align: left !important; }
  #checkout-cart #output-cart tbody td:first-child { grid-row: 1 / span 4; }
  #checkout-cart #output-cart tbody td:first-child img { width: 78px; height: 78px; object-fit: contain; }
  #checkout-cart #output-cart tbody td:nth-child(2) { font-weight: 700; line-height: 1.35; }
  #checkout-cart #output-cart tbody td:nth-child(2) small { color: var(--jj-muted); font-weight: 400; }
  #checkout-cart #output-cart tbody td:nth-child(3) { margin-top: 12px; }
  #checkout-cart #output-cart tbody td:nth-child(3) .input-group { width: min(190px, 100%); }
  #checkout-cart #output-cart tbody td:nth-child(4),
  #checkout-cart #output-cart tbody td:nth-child(5) { margin-top: 8px; color: var(--jj-muted); font-size: 14px; }
  #checkout-cart #output-cart tbody td:nth-child(4)::before { content: "Unit price: "; font-weight: 700; color: var(--jj-ink); }
  #checkout-cart #output-cart tbody td:nth-child(5)::before { content: "Line total: "; font-weight: 700; color: var(--jj-ink); }
  #checkout-cart #output-cart tfoot { margin-top: 16px; padding: 14px 16px; background: var(--jj-surface); border: 1px solid var(--jj-border); border-radius: var(--jj-radius); }
  #checkout-cart #output-cart tfoot tr { display: grid; grid-template-columns: 1fr auto; gap: 16px; }
  #checkout-cart #output-cart tfoot td { display: block; padding: 7px 0; border: 0; }
  #checkout-cart #output-cart tfoot td:first-child { grid-column: 1; }
  #checkout-cart #output-cart tfoot td:last-child { grid-column: 2; }
  footer .jj-footer-bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
