/* ═══════════════════════════════════════════════════════════════════
   ToolsJet front page — "ToolRack" (Codezeel PRS230555) design port.
   Every token below is verified against the demo skin's own CSS:
   primary #de322c · dark #111111 · yellow #ffb700 · greys #666666/
   #757575/#848484 · backgrounds #f0f0f0/#f7f7f7 · border #e5e5e5 ·
   sale badge #ef2d2d · new badge #44b367 · countdown #fef2f2/#da3f3f ·
   star #ffab00 · radius 5px · buttons 45px Archivo 14/500 UPPERCASE ·
   content 1450px · font Archivo (body 15/24, ls .6px).
   Scoped under .tj- prefixes so nothing leaks into other pages.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --tj-red: #de322c;
  --tj-dark: #111111;
  --tj-yellow: #ffb700;
  --tj-text: #111111;
  --tj-gray: #666666;
  --tj-gray-2: #757575;
  --tj-gray-3: #848484;
  --tj-bg: #f0f0f0;
  --tj-bg-soft: #f7f7f7;
  --tj-border: #e5e5e5;
  --tj-star: #ffab00;
  --tj-sale: #ef2d2d;
  --tj-new: #44b367;
  --tj-count-bg: #fef2f2;
  --tj-count-fg: #da3f3f;
  --tj-white: #ffffff;
  --tj-radius: 5px;
  --tj-content: 1450px;
  --tj-font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tj-shadow: 5px 0px 30px 0px rgba(0, 0, 0, 0.08);
}

/* ── Page scaffold ── */
.tj-front { font-family: var(--tj-font); font-size: 15px; line-height: 24px; letter-spacing: .6px; color: var(--tj-text); overflow-x: clip; }
.tj-front *, .tj-front *::before, .tj-front *::after { box-sizing: border-box; }
.tj-container { max-width: var(--tj-content); margin: 0 auto; padding: 0 15px; }
.tj-section { padding: 35px 0; }
.tj-section--soft { background: var(--tj-bg-soft); }
/* Kill parent content-area margins in case body classes don't apply */
.tj-front-page .content-area { margin-top: 0; margin-bottom: 0; }

/* Centered section heading: 30px/600 uppercase + gray sub-note */
.tj-shead { text-align: center; margin-bottom: 30px; }
.tj-shead__title { font-family: var(--tj-font); font-size: 30px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--tj-dark); margin: 0 0 10px; }
.tj-shead__sub { font-size: 15px; color: var(--tj-gray); margin: 0; }

/* Our line icons (toolsjet_icon) are stroke-only with fill:none. Force
 * fill off globally so an inherited parent-theme / Elementor rule such as
 * `svg { fill: currentColor }` or `button svg path { fill }` can't turn
 * them into filled or invisible blobs — e.g. the carousel nav balls
 * rendering with no visible arrow inside. Picked (Font Awesome / SVG)
 * icons don't carry this class, so their fill styling is unaffected. */
.tj-line-icon,
.tj-line-icon * { fill: none !important; }

/* Buttons: Archivo 14/500 uppercase, 45px, radius 5, no border */
.tj-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 45px; padding: 0 20px; border-radius: var(--tj-radius); background: var(--tj-red); color: #fff; font-family: var(--tj-font); font-size: 14px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; text-decoration: none; border: none; cursor: pointer; transition: all .4s; }
.tj-btn:hover { background: var(--tj-dark); color: #fff; }
.tj-btn--dark { background: var(--tj-dark); }
.tj-btn--dark:hover { background: var(--tj-red); }

/* ═══════════ HERO BAR: categories btn + search + shipping ═══════════ */
.tj-hero__bar { background: var(--tj-white); }
.tj-hero__bar-inner { display: flex; align-items: center; gap: 24px; padding: 14px 15px; max-width: var(--tj-content); margin: 0 auto; }
.tj-catbtn { display: inline-flex; align-items: center; gap: 10px; background: var(--tj-red); color: #fff; font-family: var(--tj-font); font-size: 14px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; padding: 11px 20px; border-radius: var(--tj-radius); text-decoration: none; flex-shrink: 0; min-width: 310px; transition: background .4s; }
.tj-catbtn:hover { background: var(--tj-dark); color: #fff; }
.tj-searchbar { flex: 1; display: flex; align-items: stretch; height: 46px; border: 2px solid var(--tj-red); border-radius: var(--tj-radius); overflow: hidden; background: #fff; max-width: 740px; margin: 0 auto; }
.tj-searchbar input[type="search"] { flex: 1; border: none; padding: 0 18px; font-family: var(--tj-font); font-size: 14px; letter-spacing: .5px; color: var(--tj-text); min-width: 0; background: #fff; }
.tj-searchbar input[type="search"]:focus { outline: none; }
.tj-searchbar button { border: none; background: var(--tj-red); color: #fff; font-family: var(--tj-font); font-size: 14px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; padding: 0 30px; min-width: 110px; cursor: pointer; transition: background .4s; }
.tj-searchbar button:hover { background: var(--tj-dark); }
.tj-hero__ship { display: flex; align-items: center; gap: 10px; font-family: var(--tj-font); font-size: 15px; font-weight: 700; color: var(--tj-dark); flex-shrink: 0; }
.tj-hero__ship svg { color: var(--tj-red); }

/* ═══════════ HERO: category menu + slider ═══════════ */
.tj-hero { position: relative; background: var(--tj-dark); margin-bottom: 35px; }
.tj-hero__grid { position: relative; max-width: var(--tj-content); margin: 0 auto; padding: 0 15px; }

/* Vertical category menu card overlaying the slider's left edge */
.tj-catmenu { position: absolute; top: 0; left: 15px; z-index: 5; width: 310px; background: var(--tj-white); border: 1px solid var(--tj-red); border-top: none; border-radius: 0 0 var(--tj-radius) var(--tj-radius); }
/* Red header cap (menu icon + label) */
.tj-catmenu__header { display: flex; align-items: center; gap: 10px; background: var(--tj-red); color: #fff; font-family: var(--tj-font); font-size: 15px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; padding: 14px 20px; }
.tj-catmenu__header svg { flex-shrink: 0; }
.tj-catmenu ul { list-style: none; margin: 0; padding: 0; }
.tj-catmenu li { border-bottom: 1px solid var(--tj-border); }
.tj-catmenu li:last-child { border-bottom: none; }
.tj-catmenu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; font-family: var(--tj-font); font-size: 15px; font-weight: 500; text-transform: capitalize; color: var(--tj-text); text-decoration: none; transition: color .3s; }
.tj-catmenu a:hover { color: var(--tj-red); }
.tj-catmenu a svg { color: var(--tj-gray-3); flex-shrink: 0; }
.tj-catmenu a:hover svg { color: var(--tj-red); }

/* Standalone vertical menu (Elementor "TJ: Tuoteryhmävalikko") — the same
   rail, but as a normal static box that fills its column. */
.tj-catmenu-wrap { max-width: var(--tj-content); margin: 0 auto; }
.tj-catmenu-heading { font-family: var(--tj-font); font-size: 22px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--tj-dark); margin: 0 0 16px; }
.tj-catmenu--standalone { position: static; width: 100%; border: 1px solid var(--tj-border); border-radius: var(--tj-radius); box-shadow: var(--tj-shadow); }
.tj-catmenu--standalone .tj-catmenu__header { border-radius: var(--tj-radius) var(--tj-radius) 0 0; }

/* Free-shipping / benefit strip (Elementor "TJ: Ilmainen toimitus") */
.tj-shipbar { max-width: var(--tj-content); margin: 0 auto; padding: 14px 15px; display: flex; }
.tj-shipbar--center { justify-content: center; }
.tj-shipbar--left { justify-content: flex-start; }
.tj-shipbar--right { justify-content: flex-end; }
.tj-shipbar__item { display: inline-flex; align-items: center; gap: 10px; font-family: var(--tj-font); font-size: 15px; font-weight: 700; letter-spacing: .3px; color: var(--tj-dark); }
.tj-shipbar__item svg { color: var(--tj-red); flex-shrink: 0; }

/* Slider */
.tj-hero__slider { position: relative; height: 600px; overflow: hidden; }
.tj-hero__slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity .6s ease; pointer-events: none; background-color: var(--tj-dark); background-size: cover; background-position: center right; }
.tj-hero__slide.is-active { opacity: 1; pointer-events: auto; }
.tj-hero__content { padding-left: 450px; max-width: 80%; }
.tj-hero__kicker { font-family: var(--tj-font); font-size: 18px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: #fff; margin-bottom: 30px; }
.tj-hero__title { font-family: var(--tj-font); margin: 0 0 50px; }
.tj-hero__title .accent { display: block; color: var(--tj-yellow); font-size: 60px; line-height: 1.08; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }
.tj-hero__title .line { display: block; color: #fff; font-size: 60px; line-height: 1.08; font-weight: 500; text-transform: uppercase; }
/* Modern minimal nav: thin chevron, no circle/ball, white → yellow */
.tj-hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 48px; height: 48px; padding: 0; border: none; background: transparent; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: color .3s, opacity .3s, visibility .3s, transform .3s; }
.tj-hero__arrow svg { width: 40px; height: 40px; stroke-width: 1.4; }
.tj-hero:hover .tj-hero__arrow, .tj-hero__arrow:focus-visible { opacity: 1; visibility: visible; }
@media (hover: none) { .tj-hero__arrow { opacity: 1; visibility: visible; } }
.tj-hero__arrow:hover { color: var(--tj-yellow); background: transparent; }
/* Prev clears the site header's left category-menu overlay (~300px)
   so it isn't hidden behind it. */
.tj-hero__arrow--prev { left: 340px; }
.tj-hero__arrow--next { right: 30px; }
.tj-hero__arrow--prev:hover { transform: translateY(-50%) translateX(-4px); }
.tj-hero__arrow--next:hover { transform: translateY(-50%) translateX(4px); }

/* ═══════════ CATEGORY TILES ═══════════ */
.tj-cats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; }

/* Icon tiles (default) — light card, centered tool icon, name + count */
.tj-cat--icon { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--tj-bg-soft); border-radius: var(--tj-radius); padding: 30px 15px; text-decoration: none; transition: box-shadow .4s, background .3s; }
.tj-cat--icon:hover { box-shadow: var(--tj-shadow); }
.tj-cat--icon .tj-cat__icon { height: 60px; display: flex; align-items: center; justify-content: center; color: var(--tj-cat-icon, var(--tj-dark)); transition: color .3s; }
.tj-cat--icon .tj-cat__icon svg { width: 46px; height: 46px; }
/* Picked icons (Font Awesome / uploaded SVG) are fill-based — force them
 * to follow the icon colour. Our own line icons (.tj-line-icon) use
 * stroke:currentColor and must keep fill:none, so they're excluded. */
.tj-cat--icon .tj-cat__icon svg:not(.tj-line-icon),
.tj-cat--icon .tj-cat__icon svg:not(.tj-line-icon) path,
.tj-cat--icon .tj-cat__icon svg:not(.tj-line-icon) * { fill: currentColor; }
.tj-cat--icon .tj-cat__icon i { color: inherit; }
.tj-cat--icon .tj-cat__icon img { max-width: 46px; max-height: 46px; object-fit: contain; }
.tj-cat--icon .tj-cat__icon i { font-size: 40px; line-height: 1; font-style: normal; }
.tj-cat--icon:hover .tj-cat__icon { color: var(--tj-red); }
.tj-cat--icon .tj-cat__name { font-family: var(--tj-font); font-size: 16px; font-weight: 500; color: var(--tj-text); margin-top: 22px; transition: color .3s; }
.tj-cat--icon:hover .tj-cat__name { color: var(--tj-red); }
.tj-cat--icon .tj-cat__count { font-size: 12px; color: var(--tj-gray-3); margin-top: 2px; }

/* Image tiles (optional style="image") — photo card + gradient + white text */
.tj-cat--image { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3/4; border-radius: var(--tj-radius); padding: 18px 16px; text-decoration: none; overflow: hidden; background: var(--tj-dark); background-size: cover; background-position: center; transition: box-shadow .4s; }
.tj-cat--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,0) 30%, rgba(17,17,17,.4) 55%, rgba(17,17,17,.88) 100%); transition: background .4s; }
.tj-cat--image:hover { box-shadow: var(--tj-shadow); }
.tj-cat--image:hover::after { background: linear-gradient(180deg, rgba(17,17,17,.15) 20%, rgba(17,17,17,.55) 55%, rgba(17,17,17,.92) 100%); }
.tj-cat--image .tj-cat__name { position: relative; z-index: 1; font-family: var(--tj-font); font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: .3px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.tj-cat--image .tj-cat__count { position: relative; z-index: 1; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.85); margin-top: 4px; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.tj-cat--noimg { justify-content: center; align-items: center; text-align: center; background: var(--tj-bg-soft); }
.tj-cat--noimg::after { display: none; }
.tj-cat--noimg .tj-cat__name { color: var(--tj-dark); text-shadow: none; }
.tj-cat--noimg .tj-cat__count { color: var(--tj-gray-3); text-shadow: none; }

/* ═══════════ SEO INTRO (H1 + citable paragraph) ═══════════ */
/* Title spans the full container so it fits on one line; paragraph is
 * capped at 760px. Both are centered, so they share the same centre
 * axis (the container's) and line up regardless of Elementor column
 * padding on the live page. */
.tj-intro__title { font-family: var(--tj-font); font-size: 28px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--tj-dark); margin: 0 0 14px; text-align: center; }
.tj-intro__text { font-size: 15px; line-height: 1.7; color: var(--tj-gray); max-width: 760px; margin: 0 auto; text-align: center; }
@media (max-width: 767px) {
  .tj-intro__title { font-size: 22px; }
  .tj-intro__text { font-size: 14px; }
}

/* ═══════════ PROMO BANNERS ═══════════ */
.tj-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.tj-banner { position: relative; border-radius: var(--tj-radius); overflow: hidden; min-height: 240px; display: flex; align-items: center; background: var(--tj-dark); background-size: cover; background-position: center; }
/* Override only the colour — the `background` shorthand would reset the
 * background-size:cover / background-position:center set above, leaving
 * any inline background-image at natural size in the top-left corner. */
.tj-banner--yellow { background-color: var(--tj-yellow); }
/* Optional legibility overlay — OFF by default. Opt in per banner via
 * the widget's "Tummennus" control, which sets --tj-overlay (0–1) inline;
 * the pseudo-element's opacity scales with it, so --tj-overlay:0 (default)
 * means no overlay at all. Left-anchored gradient so the copy (left ~72%)
 * gets a wash while the right of the image stays clear. Dark scrim for the
 * dark style, brand-yellow scrim for the yellow style. Sits above the
 * background image, below .tj-banner__inner (z-index: 1). */
.tj-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: var(--tj-overlay, 0);
	background: linear-gradient(90deg, rgba(17, 17, 17, .95) 0%, rgba(17, 17, 17, .6) 42%, rgba(17, 17, 17, 0) 80%);
}
.tj-banner--yellow::before {
	background: linear-gradient(90deg, rgba(255, 183, 0, .95) 0%, rgba(255, 183, 0, .6) 42%, rgba(255, 183, 0, 0) 80%);
}
.tj-banner__inner { position: relative; z-index: 1; padding: 30px 0 30px 6%; max-width: 72%; }
.tj-banner__kicker { display: block; font-family: var(--tj-font); font-size: 16px; font-weight: 500; letter-spacing: .8px; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.tj-banner__title { font-family: var(--tj-font); font-size: 34px; line-height: 42px; font-weight: 800; text-transform: uppercase; color: var(--tj-yellow); margin: 0; }
.tj-banner__sub { font-family: var(--tj-font); font-size: 34px; line-height: 42px; font-weight: 600; text-transform: uppercase; color: #fff; margin: 0 0 22px; }
.tj-banner--yellow .tj-banner__kicker,
.tj-banner--yellow .tj-banner__title,
.tj-banner--yellow .tj-banner__sub { color: var(--tj-dark); }

/* Wide banner */
.tj-banner--wide { min-height: 340px; }
.tj-banner--wide .tj-banner__kicker { font-size: 16px; letter-spacing: .9px; margin-bottom: 30px; }
.tj-banner--wide .tj-banner__title { font-size: 55px; line-height: 65px; }
.tj-banner--wide .tj-banner__sub { font-size: 55px; line-height: 65px; margin-bottom: 40px; }

/* ═══════════ PRODUCT TABS ═══════════ */
.tj-tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 35px; flex-wrap: wrap; }
.tj-tab { font-family: var(--tj-font); font-size: 15px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; padding: 8px 18px; border-radius: var(--tj-radius); border: 1px solid var(--tj-border); background: #fff; color: var(--tj-text); cursor: pointer; transition: all .3s; }
.tj-tab.is-active, .tj-tab:hover { background: var(--tj-red); border-color: var(--tj-red); color: #fff; }

/* ═══════════ PRODUCT CARDS ═══════════ */
.tj-products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; }
/* Inactive tab panels: the class rule above would otherwise override the
   [hidden] UA default (same specificity), leaving every panel visible and
   the tab buttons looking dead. This keeps only the active panel shown. */
.tj-products[hidden] { display: none; }
.tj-product { position: relative; background: #fff; border: 1px solid var(--tj-border); border-radius: var(--tj-radius); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .4s; }
.tj-product:hover { box-shadow: var(--tj-shadow); }
.tj-product__badge { position: absolute; top: 10px; left: 5px; z-index: 2; font-size: 12px; font-weight: 500; letter-spacing: .4px; padding: 4px 6px; border-radius: 3px; background: var(--tj-sale); color: #fbe9e7; }
.tj-product__badge--new { background: var(--tj-new); color: #fff; }
.tj-product__thumb { position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; padding: 14px; border-bottom: 1px solid var(--tj-border); }
.tj-product__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .5s; }
.tj-product:hover .tj-product__thumb img { transform: scale(1.05); }
.tj-product__body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 15px 20px; flex: 1; }
.tj-count { position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; z-index: 2; display: flex; gap: 5px; transition: opacity .3s; }
.tj-product:hover .tj-count { opacity: 0; }
.tj-count__cell { width: 38px; text-align: center; background: var(--tj-count-bg); border-radius: var(--tj-radius); padding: 4px 2px 3px; }
.tj-count__num { display: block; font-family: var(--tj-font); font-size: 14px; font-weight: 700; color: var(--tj-count-fg); }
.tj-count__label { display: block; font-size: 9px; text-transform: uppercase; color: var(--tj-count-fg); letter-spacing: .3px; }
.tj-product__cat { font-size: 12px; color: var(--tj-gray-3); margin-bottom: 4px; }
.tj-product__title { font-family: var(--tj-font); font-size: 15px; line-height: 22px; letter-spacing: .6px; font-weight: 400; text-transform: capitalize; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tj-product__title a { color: var(--tj-text); text-decoration: none; transition: color .3s; }
.tj-product__title a:hover { color: var(--tj-red); }
.tj-stars { --percent: 0%; display: inline-block; font-size: 15px; line-height: 1; margin-bottom: 8px; position: relative; letter-spacing: 2px; color: #d5d5d5; }
.tj-stars::before { content: "★★★★★"; }
.tj-stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--percent); overflow: hidden; color: var(--tj-star); white-space: nowrap; }
.tj-product__price { font-family: var(--tj-font); font-size: 18px; font-weight: 700; color: var(--tj-red); margin-bottom: 12px; }
.tj-product__price del { color: var(--tj-gray-3); font-weight: 400; font-size: 16px; margin-right: 6px; }
.tj-product__price ins { text-decoration: none; }
.tj-product__price .amount { color: inherit; }
.tj-product__buy { margin-top: auto; }
.tj-product__buy a.tj-cart, .tj-product__buy .button {
  display: inline-flex; align-items: center; justify-content: center; height: 45px; padding: 0 20px;
  border: none; border-radius: var(--tj-radius); background: var(--tj-bg); color: var(--tj-text);
  font-family: var(--tj-font); font-size: 14px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase;
  text-decoration: none; transition: all .4s; cursor: pointer;
}
.tj-product__buy a.tj-cart:hover, .tj-product__buy .button:hover { background: var(--tj-red); color: #fff; }

/* List-style product (Featured products) */
.tj-products--list { grid-template-columns: repeat(3, 1fr); }
.tj-product--list { flex-direction: row; align-items: center; }
.tj-product--list .tj-product__thumb { width: 35%; flex-shrink: 0; aspect-ratio: 1/1; border-bottom: none; border-right: 1px solid var(--tj-border); }
.tj-product--list .tj-product__body { align-items: flex-start; text-align: left; padding: 15px 18px; }
.tj-product--list .tj-product__buy a.tj-cart, .tj-product--list .tj-product__buy .button {
  height: auto; padding: 0; background: transparent; color: var(--tj-text);
  font-size: 13px; text-decoration: underline; text-underline-offset: 4px;
}
.tj-product--list .tj-product__buy a.tj-cart:hover, .tj-product--list .tj-product__buy .button:hover { background: transparent; color: var(--tj-red); }

/* Carousel wrapper — side gutters reserve room for the arrows so they
   never sit on top of the product cards. */
.tj-carousel { position: relative; padding: 0 58px; }
.tj-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 30px) / 5); gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.tj-carousel__track::-webkit-scrollbar { display: none; }
.tj-carousel__track > * { scroll-snap-align: start; }
/* Modern arrow-in-circle: white disc, dark chevron, red on hover */
.tj-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--tj-border); background: #fff; color: var(--tj-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.1); transition: background .3s, color .3s, border-color .3s; }
.tj-arrow svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2.2; }
.tj-arrow:hover { background: var(--tj-red); color: #fff; border-color: var(--tj-red); }
.tj-arrow--prev { left: 6px; }
.tj-arrow--next { right: 6px; }
/* Hide the arrows when the row isn't scrollable (few products). */
.tj-carousel:not([data-scrollable]) .tj-arrow { display: none; }

/* ═══════════ SERVICES STRIP ═══════════ */
.tj-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.tj-service { display: flex; align-items: center; justify-content: center; gap: 15px; }
.tj-service__icon { color: var(--tj-dark); flex-shrink: 0; transition: color .3s; }
.tj-service:hover .tj-service__icon { color: var(--tj-red); }
.tj-service__title { font-family: var(--tj-font); font-size: 16px; font-weight: 600; letter-spacing: .6px; color: var(--tj-dark); margin: 0 0 5px; }
.tj-service__sub { font-size: 15px; color: var(--tj-gray-2); margin: 0; }

/* ═══════════ TESTIMONIAL SLIDER ═══════════ */
.tj-testimonial-slider { position: relative; display: grid; border-radius: var(--tj-radius); overflow: hidden; }
.tj-testimonial { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s ease; }
.tj-testimonial.is-active { opacity: 1; visibility: visible; }
.tj-testimonial-slider--single .tj-testimonial { opacity: 1; visibility: visible; }
.tj-testimonial__media { display: block; min-height: 420px; background-color: var(--tj-yellow); background-size: cover; background-position: center; }
/* Fit the whole image inside the box (product PNGs) instead of cropping. */
.tj-testimonial__media--contain { background-size: contain; background-repeat: no-repeat; padding: 30px; box-sizing: border-box; }
a.tj-testimonial__media { cursor: pointer; }
.tj-testimonial__panel { padding: 70px 80px 84px; display: flex; flex-direction: column; justify-content: center; }
.tj-testimonial__heading { font-family: var(--tj-font); font-size: 30px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; margin: 0 0 30px; }
.tj-testimonial__quote-mark { font-family: var(--tj-font); font-size: 46px; line-height: 1; color: var(--tj-red); margin-bottom: 10px; }
.tj-testimonial__lead { font-family: var(--tj-font); font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.tj-testimonial__text { font-size: 15px; line-height: 1.8; color: var(--tj-gray); margin: 0 0 30px; max-width: 80%; }
.tj-testimonial__name { font-family: var(--tj-font); font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.tj-testimonial__role { font-size: 14px; color: var(--tj-gray); }
.tj-testimonial__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-family: var(--tj-font); font-size: 14px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--tj-red); text-decoration: none; transition: gap .3s ease, opacity .3s ease; }
.tj-testimonial__link:hover { gap: 12px; opacity: .8; }
.tj-testimonial__stars { display: inline-flex; gap: 3px; margin-bottom: 18px; color: var(--tj-star); }
.tj-testimonial__stars .tj-star { display: inline-flex; }
.tj-testimonial__stars svg { width: 20px; height: 20px; }
.tj-testimonial__stars .tj-star--empty { color: #d9d9d9; }
/* Dots sit over the text column's lower edge */
.tj-testimonial__dots { position: absolute; z-index: 2; left: 50%; bottom: 30px; display: flex; gap: 10px; padding-left: 80px; }
.tj-testimonial__dot { width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0; background: #d7d7d7; cursor: pointer; transition: background .3s, transform .3s; }
.tj-testimonial__dot.is-active { background: var(--tj-red); transform: scale(1.2); }

/* ═══════════ BRANDS ═══════════ */
.tj-brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; }
.tj-brand { display: flex; align-items: center; justify-content: center; min-height: 100px; background: #fff; border: 1px solid var(--tj-border); border-radius: var(--tj-radius); padding: 18px; transition: box-shadow .4s; text-decoration: none; }
.tj-brand:hover { box-shadow: var(--tj-shadow); }
.tj-brand img { max-height: 52px; max-width: 100%; object-fit: contain; }
.tj-brand__name { font-family: var(--tj-font); font-weight: 700; font-size: 16px; letter-spacing: .6px; text-transform: uppercase; color: var(--tj-gray-2); }

/* ═══════════ BLOG CARDS ═══════════ */
.tj-blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tj-post { text-decoration: none; display: block; }
.tj-post__thumb { aspect-ratio: 16/10; background: var(--tj-bg); border-radius: var(--tj-radius); overflow: hidden; }
.tj-post__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tj-post:hover .tj-post__thumb img { transform: scale(1.05); }
.tj-post__meta { font-size: 13px; color: var(--tj-gray-3); margin-top: 15px; }
.tj-post__title { font-family: var(--tj-font); font-size: 18px; font-weight: 500; line-height: 25px; letter-spacing: .5px; color: #000; margin: 6px 0 0; transition: color .3s; }
.tj-post:hover .tj-post__title { color: var(--tj-red); }

/* ═══════════ NEWSLETTER BAND ═══════════ */
.tj-newsletter { background: var(--tj-dark); margin-top: 35px; }
.tj-newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px 15px; max-width: var(--tj-content); margin: 0 auto; flex-wrap: wrap; }
.tj-newsletter__title { font-family: var(--tj-font); font-size: 24px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #fff; margin: 0 0 6px; }
.tj-newsletter__sub { font-size: 14px; color: rgba(255,255,255,.65); margin: 0; }
.tj-newsletter__form-wrap { flex: 1; max-width: 560px; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1279px) {
  .tj-cats { grid-template-columns: repeat(5, 1fr); }
  .tj-products { grid-template-columns: repeat(4, 1fr); }
  .tj-carousel__track { grid-auto-columns: calc((100% - 3 * 30px) / 4); }
  .tj-brands { grid-template-columns: repeat(4, 1fr); }
  .tj-hero__title .accent, .tj-hero__title .line { font-size: 46px; }
  .tj-hero__content { padding-left: 430px; }
  .tj-banner--wide .tj-banner__title, .tj-banner--wide .tj-banner__sub { font-size: 42px; line-height: 52px; }
}
@media (max-width: 1023px) {
  .tj-catmenu { display: none; }
  .tj-hero__slider { height: 460px; }
  .tj-hero__content { padding-left: 60px; max-width: 90%; }
  .tj-products, .tj-products--list { grid-template-columns: repeat(3, 1fr); }
  .tj-carousel__track { grid-auto-columns: calc((100% - 2 * 30px) / 3); }
  .tj-services { grid-template-columns: repeat(2, 1fr); justify-items: start; }
  .tj-testimonial { grid-template-columns: 1fr; }
  .tj-testimonial__media { min-height: 280px; }
  .tj-testimonial__panel { padding: 40px 30px; }
  .tj-testimonial__text { max-width: 100%; }
  .tj-hero__ship { display: none; }
  .tj-hero__arrow--prev { left: 15px; }
  .tj-hero__arrow--next { right: 15px; }
}
@media (max-width: 767px) {
  .tj-btn, .tj-searchbar button, .tj-product__buy a.tj-cart, .tj-product__buy .button { font-size: 13px; height: 38px; }
  .tj-cats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .tj-products, .tj-products--list { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tj-carousel__track { grid-auto-columns: calc((100% - 14px) / 2); gap: 14px; }
  .tj-banners { grid-template-columns: 1fr; }
  .tj-banner__inner { max-width: 100%; }
  .tj-banner__title, .tj-banner__sub { font-size: 26px; line-height: 34px; }
  .tj-banner--wide .tj-banner__title, .tj-banner--wide .tj-banner__sub { font-size: 30px; line-height: 38px; }
  .tj-brands { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .tj-blog { grid-template-columns: 1fr; }
  .tj-hero__slider { height: 380px; }
  .tj-hero__content { padding: 0 24px; }
  .tj-hero__title .accent, .tj-hero__title .line { font-size: 32px; }
  .tj-hero__kicker { font-size: 14px; margin-bottom: 16px; }
  .tj-hero__bar-inner { flex-wrap: wrap; gap: 12px; }
  .tj-catbtn { min-width: 0; }
  .tj-services { grid-template-columns: 1fr; }
  .tj-hero__arrow { display: none; }
}

/* ═══════════ DARK THEME (Avanam "Värikytkin" — body.color-switch-dark) ═══════════
   Our sections set explicit colours, so the theme's dark palette can't
   reach them — we flip the on-page text/backgrounds ourselves, using
   Avanam's own dark tones (page #181818, surface #212121, text #f8f9fb).
   Product cards, category tiles and promo/hero/newsletter blocks keep
   their own colours and read as surfaces on the dark page. */
.color-switch-dark .tj-front .tj-shead__title { color: #f8f9fb; }
.color-switch-dark .tj-front .tj-shead__sub { color: #b6bcc4; }

/* Soft bands: dark surface instead of light grey */
.color-switch-dark .tj-front .tj-section--soft { background: #141414; }

/* Services strip (transparent section) */
.color-switch-dark .tj-front .tj-service__icon { color: #e6e6e6; }
.color-switch-dark .tj-front .tj-service__title { color: #f8f9fb; }
.color-switch-dark .tj-front .tj-service__sub { color: #b6bcc4; }

/* SEO intro on the dark page */
.color-switch-dark .tj-front .tj-intro__title { color: #f8f9fb; }
.color-switch-dark .tj-front .tj-intro__text { color: #b6bcc4; }

/* Testimonial panel (sits on the dark page) */
.color-switch-dark .tj-front .tj-testimonial__heading,
.color-switch-dark .tj-front .tj-testimonial__lead,
.color-switch-dark .tj-front .tj-testimonial__name { color: #f8f9fb; }
.color-switch-dark .tj-front .tj-testimonial__stars .tj-star--empty { color: #3a3d42; }
.color-switch-dark .tj-front .tj-testimonial__text,
.color-switch-dark .tj-front .tj-testimonial__role { color: #b6bcc4; }

/* Blog teasers (no card background — titles sit on the dark band) */
.color-switch-dark .tj-front .tj-post__title { color: #f8f9fb; }
.color-switch-dark .tj-front .tj-post__meta { color: #b6bcc4; }

/* Product cards → Avanam's dark surface with light text; the image tile
   stays light so product photos read cleanly. */
.color-switch-dark .tj-front .tj-product { background: #212121; border-color: #2f3336; }
.color-switch-dark .tj-front .tj-product__thumb { background: #fafafa; border-bottom-color: #2f3336; }
.color-switch-dark .tj-front .tj-product--list .tj-product__thumb { border-right-color: #2f3336; }
.color-switch-dark .tj-front .tj-product__title a { color: #f1f1f1; }
.color-switch-dark .tj-front .tj-product__cat { color: #9aa0a6; }
.color-switch-dark .tj-front .tj-product__buy a.tj-cart,
.color-switch-dark .tj-front .tj-product__buy .button { background: #2c2c2c; color: #f1f1f1; }
.color-switch-dark .tj-front .tj-product__buy a.tj-cart:hover,
.color-switch-dark .tj-front .tj-product__buy .button:hover { background: var(--tj-red); color: #fff; }
.color-switch-dark .tj-front .tj-product--list .tj-product__buy a.tj-cart,
.color-switch-dark .tj-front .tj-product--list .tj-product__buy .button { background: transparent; color: #f1f1f1; }

/* Trending tabs on the dark band */
.color-switch-dark .tj-front .tj-tab { background: #212121; border-color: #2f3336; color: #e2e2e2; }
.color-switch-dark .tj-front .tj-tab.is-active,
.color-switch-dark .tj-front .tj-tab:hover { background: var(--tj-red); border-color: var(--tj-red); color: #fff; }

/* Category icon tiles → dark chips with light icon + label */
.color-switch-dark .tj-front .tj-cat--icon { background: #1e1e1e; }
.color-switch-dark .tj-front .tj-cat--icon .tj-cat__icon { color: var(--tj-cat-icon, #ffffff); }
.color-switch-dark .tj-front .tj-cat--icon .tj-cat__name { color: #f1f1f1; }
.color-switch-dark .tj-front .tj-cat--icon .tj-cat__count { color: #9aa0a6; }
.color-switch-dark .tj-front .tj-cat--icon:hover .tj-cat__icon,
.color-switch-dark .tj-front .tj-cat--icon:hover .tj-cat__name { color: var(--tj-red); }

/* Carousel arrow disc on dark */
.color-switch-dark .tj-front .tj-arrow { background: #212121; border-color: #2f3336; color: #f1f1f1; }
.color-switch-dark .tj-front .tj-arrow:hover { background: var(--tj-red); border-color: var(--tj-red); color: #fff; }
