/* Above-the-fold + general styles. Render-blocking on every page.
   The deferrable rest lives in /css/styles.css and loads after this. */

/* $$$$$$$$$$ ABGENOMMEN START $$$$$$$$$$ */

@font-face {
  font-family: "RobotoFallback";
  font-style: normal;
  font-weight: 400;
  src: local("Arial");
  size-adjust: 100%;
  ascent-override: 93%;
  descent-override: 24%;
  line-gap-override: 0%;
}

body {
    font-family: "RobotoFallback", Arial, sans-serif;
    line-height: 1.25rem;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "RobotoFallback", Arial, sans-serif;
    color: #3d3d3d;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: inherit;
}
h1 { font-size: 1.8rem; }
h2 { font-size: 1.425rem; }
h3 { font-size: 1.25rem; }
svg { vertical-align: middle; }
a, a:visited { color: #43853e; text-decoration: underline; }
/* iOS Safari paints <button> text in a system accent (often blue) by
   default. Force inheritance so any icon-only button picks up the
   surrounding text color via currentColor instead. */
button { color: inherit; }

.icon { display: inline-block; vertical-align: middle; fill: currentColor; }
.icon-white { color: #fff; }

/* $$$$$$$$$$ GENERAL PAGE STYLES $$$$$$$$$$ */

/* Reusable button component */
button.button, a.button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    height: 43px;
    min-width: 43px;
    padding: 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    background: #43853e;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    box-sizing: border-box;
    position: relative;
}
button.button:has(.text), a.button:has(.text) {
    padding: 0 6px;
}
button.button:focus, a.button:focus {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}
button.button svg, a.button svg {
    flex-shrink: 0;
}
button.button .text, a.button .text {
    white-space: nowrap;
}
button.button.hide, a.button.hide {
    display: none;
}
@media (max-width: 768px) {
    button.button.hidescriptmobile .text, a.button.hidescriptmobile .text,
    .text.loggedin {
        display: none;
    }
    button.button.hidescriptmobile, a.button.hidescriptmobile,
    button.button:has(> .loggedin), a.button:has(> .loggedin) {
        padding: 0;
    }
}

/* Reusable floating input component - outer container div */
.floating-input {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.floating-input *,
.floating-input *::before,
.floating-input *::after {
    box-sizing: border-box;
}
/* Input field styling */
.floating-input input,
.floating-input textarea {
    order: 1;
    width: 100%;
    padding: 1rem 0.75rem 0.5rem 0.75rem;
    border: 2px solid #c7c7c7;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s ease;
    outline: none;
    position: relative;
    z-index: 0;
}
.floating-input input:focus,
.floating-input textarea:focus {
    border-color: #3d7a39;
}
/* Floating label styling */
.floating-input label {
    order: 2;
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    font-weight: 700;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: white;
    padding: 0 0.25rem;
    z-index: 2;
}
/* When input is focused - use :focus-within on container */
.floating-input:focus-within label {
    top: 0;
    transform: translateY(-50%) scale(0.75);
    color: #3d7a39;
    font-weight: 500;
}
/* When input has content - target input with content, then style the label */
.floating-input:has(input:not(:placeholder-shown)) label,
.floating-input:has(textarea:not(:placeholder-shown)) label {
    top: 0;
    transform: translateY(-50%) scale(0.75);
    color: #3d7a39;
    font-weight: 500;
}
/* Hide the default placeholder */
.floating-input input::placeholder,
.floating-input textarea::placeholder {
    opacity: 0;
}
/* Clear-X button for the search input. Hidden when the input is empty
   (placeholder visible), shown otherwise. Native WebKit search-cancel
   suppressed so we don't render two. */
.floating-input input[type="search"] { padding-right: 5.5rem; }
.floating-input input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-clear {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    z-index: 2;
    background: none;
    border: none;
    padding: 0;
    line-height: 0;
    cursor: pointer;
    color: #43853e;
}
.floating-input input:placeholder-shown ~ .search-clear { display: none; }

/* Header search bar: submit button overlays the input's right edge; the
   widget centers in its wrapper. These rules look like "old/deprecated"
   styling but they're load-bearing for the visible header search -- without
   them the submit button drops below the input (visible CLS on slow loads
   when only the critical CSS has arrived). */
header .nav-wrapper .nav-container .searchbar-wrapper button:not(.search-clear) {
    position: absolute;
    display: block;
    border-bottom-left-radius: 0px;
    border-top-left-radius: 0px;
    top: 0;
    right: 0;
}
header .nav-wrapper .nav-container .searchbar-wrapper #search_widget {
    width: 70%;
    margin: 0 auto;
}
header .nav-wrapper .nav-container .searchbar-wrapper form {
    position: relative;
}
header .nav-wrapper .nav-container .searchbar-wrapper input {
    height: 43px;
    width: 100%;
}
header .nav-wrapper .nav-container .searchbar-wrapper ul.ui-autocomplete {
    min-width: 300px;
}
@media (max-width: 768px) {
    header .nav-wrapper .nav-container .searchbar-wrapper #search_widget {
        width: 100%;
    }
}

/* Reusable busy state: spinner overlay on any element. Tag with class="busy". */
.busy { position: relative; pointer-events: none; }
.busy > * { opacity: .2; }
.busy::after { content: ''; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border: 2px solid; border-top-color: transparent; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

header .top-bar {
    background: #43853e;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    display: flex;
    justify-content: space-evenly;
}
header .top-bar a {
    color: white;
    text-decoration: underline;
}
header .top-bar > div:nth-child(2) {
    display: contents;
}
header .top-bar > div:nth-child(2) > div {
    display: block;
}
header .top-bar > div > div {
    display: contents;
}
@media (max-width: 1000px) {
    header .top-bar {
        flex-direction: column;
        align-items: center;
        font-size: 14px;
        padding: 4px 15px;
        line-height: 1.2;
        gap: 5px;
    }
    header .top-bar > div:nth-child(2) {
        display: flex;
        gap: 10px;
    }
}
@media (max-width: 385px) {
    header .top-bar {
        font-size: 13px;
    }
    header .top-bar > div:nth-child(2) {
        gap: 5px;
    }
}

header .nav-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    border-bottom: 1px solid #ddd;
}

/* Header - Logo */
header .nav-wrapper .logo {
    flex: 0 0 auto;
    text-align: left;
    margin-top: 10px;
    margin-bottom: 15px;
    padding-left: 15px;
}
@media (max-width: 768px) {
    header .nav-wrapper .logo {
        margin-top: 5px;
        margin-bottom: 5px;
        padding-left: 0;
    }
}

header .nav-wrapper .logo img {
    width: auto;
    vertical-align: middle;
    max-width: 100%;
}

/* Header - Main Navigation */
header .nav-wrapper .nav-container {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    padding: 0px 5px 4px 5px;
    gap: 8px;
}
header .nav-wrapper .nav-container .searchbar-wrapper { flex: 1 1 auto; min-width: 0; }

@media (max-width: 768px) {
    header .nav-wrapper {
        flex-wrap: wrap;
    }
    header .nav-wrapper .logo {
        width: 100%;
        text-align: center;
    }
    header .nav-wrapper .nav-container {
        width: 100%;
    }

    /* Mobile header sticky/UX. Full description in header.html. */
    header.site-header {
        position: sticky;
        top: calc(0px - var(--banner-h, 0px) - var(--bar-h, 100vh));
        z-index: 100;
        background: white;
        transition: top 0.3s ease;
    }
    header.site-header.bar-revealed {
        top: calc(0px - var(--banner-h, 0px) + 5px);
    }
    header.site-header.results-mode {
        top: calc(-1 * var(--banner-h, 0px));
        transition: none;
    }
    header.site-header .nav-wrapper .nav-container {
        padding-top: 5px;
    }

    /* Per-item margin-right (not flex gap) so hidden items contribute
       0 to the layout. The rightmost visible item gets margin-right:0
       overrides per state. */
    header .nav-wrapper .nav-container { gap: 0; }
    header .nav-wrapper .nav-container > * { margin-right: 8px; }
    header .nav-wrapper .nav-container > *:last-child { margin-right: 0; }
    header:not(.top-active) #basket-button { margin-right: 0; }
    header.top-active:not(.filter-migrated) .nav-wrapper .nav-container .searchbar-wrapper { margin-right: 0; }

    /* Bar content swap. Width/min-width/padding/margin/opacity all
       transition together so a hidden button is a literal 0-width
       slot. .search-top-btn and .filter-migrated-btn use the longer
       selector chain so specificity beats the universal margin-right
       above. */
    #mobileMenuButton, #account-button, #favorites-button, #basket-button,
    .search-top-btn, .filter-migrated-btn {
        transition: width 0.25s ease, min-width 0.25s ease, opacity 0.2s ease, padding 0.25s ease, margin 0.25s ease;
    }
    header .nav-wrapper .nav-container .search-top-btn,
    header .nav-wrapper .nav-container .filter-migrated-btn {
        width: 0;
        min-width: 0;
        padding: 0;
        margin-right: 0;
        opacity: 0;
        overflow: hidden;
    }
    header.top-active .nav-wrapper .nav-container .search-top-btn {
        width: 43px;
        min-width: 43px;
        margin-right: 8px;
        opacity: 1;
    }
    header.top-active.filter-migrated .nav-wrapper .nav-container .filter-migrated-btn {
        width: 43px;
        min-width: 43px;
        opacity: 1;
    }
    header.top-active #mobileMenuButton,
    header.top-active #account-button,
    header.top-active #favorites-button,
    header.top-active #basket-button {
        width: 0;
        min-width: 0;
        padding: 0;
        margin-right: 0;
        opacity: 0;
        overflow: hidden;
    }

    body.filter-migrated .article-grid-3s .filter-toggle {
        display: none;
    }
}

@media (min-width: 769px) {
    header .search-top-btn,
    header .filter-migrated-btn {
        display: none;
    }
}

header .nav-wrapper .nav-container input:focus {
    outline: 3px solid #0066cc !important;
    outline-offset: 2px;
}

header .nav-wrapper .nav-container .nav-cart-count {
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    margin: auto;
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    width: 18px;
    height: 18px;
    line-height: 18px;
    background-color: #cc0000;
    color: #fff;
    border-radius: 50%;
    transition: all .3s;
}
header .nav-wrapper .nav-container .empty .nav-cart-count {
    visibility: hidden;
}
@media (min-width: 769px) {
    header .nav-wrapper .nav-container .nav-cart-count {
        left: 12px;
        right: auto;
    }
}

header .nav-wrapper .nav-container .favorites-count {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    width: 18px;
    height: 18px;
    line-height: 18px;
    color: #43853e;
}
header .nav-wrapper .nav-container .empty .favorites-count {
    visibility: hidden;
}

/* Header - Mega Menu */
header .main-menu { background: #f8f8f8; border-bottom: 1px solid #ddd; position: relative; justify-content: center; }
header .main-menu .menu-list { display: flex; flex-wrap: wrap; list-style: none; margin: 0 auto; padding: 0; justify-content: center; text-transform: uppercase; max-width: 1320px; }
header .main-menu .menu-list .menu-item > a { display: block; position: relative; padding: 12px; color: #333; text-decoration: none; font-size: 0.85rem; font-weight: bold; transition: all .2s; }
header .main-menu .menu-list .menu-item > a:hover { background: #43853e; color: white; text-decoration: underline; }
header .main-menu .menu-list .menu-item > a:focus { background: #43853e; color: white; outline: 2px solid #0066cc; outline-offset: -2px; }
header .main-menu .menu-list .menu-item > a.active { background: #43853e; color: white; text-decoration: underline; }
header .main-menu .menu-list .menu-item .menu-label { position: absolute; top: -8px; right: 0px; font-size: 10px; font-weight: 700; text-align: center; padding: 0px 5px; background-color: #cc0000; color: #fff; white-space: nowrap; }
header .main-menu .mega-panel { position: absolute; left: 0; right: 0; background: white; border: 1px solid #ddd; z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0s, visibility 0s 0.2s; transition-delay: 0.2s; }
header .main-menu .mega-panel.show { opacity: 1; visibility: visible; transition-delay: 0.2s; }
header .main-menu .mega-panel .mega-content { padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 20px; max-width: 1320px; margin: 0 auto; }
header .main-menu .mega-panel .mega-content a { font-size: .9375rem; color: #5d5d5d; }
header .main-menu .mega-panel .mega-content a:hover { color: #cc0000; text-decoration: underline; }
header .main-menu .mega-panel .mega-content a:focus { color: #cc0000; text-decoration: underline; outline: 2px solid #0066cc; outline-offset: 2px; }
header .main-menu .mega-panel .mega-content .category-title { font-size: .9375rem;  color: #2d2d2d; text-transform: uppercase; font-weight: 700; }
header .main-menu .mega-panel .mega-content .subcategories { margin-top: 5px; }
header .main-menu .mega-panel .mega-content .subcategories li { margin: 10px 0; }

@media (min-width: 769px) {
    header .mobile-menu { display: none; }
    header .nav-container #mobileMenuButton { display: none; }
}

/* Header - Mobile Menu: container only. The slide-off-screen rule below
   stays critical so the async-loaded menu HTML doesn't land in normal
   document flow (CLS event). Inner navigation styles + slide keyframes
   live in styles.css since they only render once the user opens the menu. */
@media (max-width: 768px) {
    header .main-menu { display: none; }
    header .mobile-menu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: white; z-index: 1999; overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s ease; font-size: 1rem; }
    header .mobile-menu.show { transform: translateX(0); }
}

/* Consent banners */
.cookie-banner .age-banner, .cookie-banner .cookie-consent-banner {
    position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 1px solid #ddd;
    padding: 1.5rem; box-shadow: 0 -4px 12px rgba(0,0,0,.1); z-index: 9999; }
.cookie-banner .cookie-consent-banner { z-index: 9998; max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; }
.cookie-banner .age-content, .cookie-banner .cookie-content { max-width: 1200px; margin: 0 auto; text-align: center; }
.cookie-banner .consent-title { margin-bottom: 1rem; font-size: 1.25rem; color: #000000; font-weight: 700; font-family: Roboto Condensed, sans-serif; letter-spacing: .02em; }
.cookie-banner .age-content ul { max-width: fit-content; margin: 0 auto; text-align: left; list-style: disc; }
.cookie-banner .age-actions, .cookie-banner .cookie-actions {
    margin-top: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.cookie-banner .age-actions button, .cookie-banner .cookie-actions button {
    padding: .75rem 1.5rem; font-size: 1rem; border: none; border-radius: 4px; cursor: pointer; }
.cookie-banner .age-actions button:focus, .cookie-banner .cookie-actions button:focus {
    outline: 3px solid #43853e; outline-offset: 2px; }
.cookie-banner .btn-yes, .cookie-banner .btn-accept { background: #43853e; color: white; }
.cookie-banner .btn-no, .cookie-banner .btn-neutral { background: #f8f8f8; color: #333; }
.cookie-banner .reject-overlay {
    position: fixed; inset: 0; background: white; display: flex; align-items: center; justify-content: center;
    z-index: 10000; font-size: 1.5rem; text-align: center; padding: 2rem; }
.cookie-banner .cookie-options {
    margin: 1rem auto; display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; max-width: fit-content; }
.cookie-banner .cookie-option { display: flex; align-items: center; gap: .5rem; }
.cookie-banner .cookie-option input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.cookie-banner .cookie-option input:disabled { cursor: not-allowed; opacity: .6; }
.cookie-banner .cookie-option label { cursor: pointer; user-select: none; }
.cookie-banner .cookie-option input:disabled + label { cursor: not-allowed; }
.cookie-banner .cookie-desc { margin-left: 1.75rem; font-size: .9rem; text-align: left; color: #666; }
.cookie-banner a, .cookie-banner a:not([href]) { color: #43853e; text-decoration: underline; cursor: pointer; }
.cookie-banner .click-protect { position: fixed; inset: 0; z-index: 9997; cursor: not-allowed; }
.blur-animate { animation: blurEffect .4s ease-in-out; }
@keyframes blurEffect { 0%, 100% { filter: blur(0); } 50% { filter: blur(8px); } }
.cookie-banner .wiggle { animation: wiggle .5s ease-in-out; }
@keyframes wiggle {
    0%, 100% { transform: scale(1); } 25% { transform: scale(1.1) rotate(-1deg); } 75% { transform: scale(1.1) rotate(1deg); } }
@media (max-width: 640px) {
    .cookie-banner .cookie-actions, .cookie-banner .age-actions { flex-direction: column; }
    .cookie-banner .cookie-actions button, .cookie-banner .age-actions button { width: 100%; } }

#main-content { max-width: 1280px; margin: 0 auto; }

/* #main-content can be many viewport-heights tall; pin the spinner to the
   viewport so it's always visible regardless of scroll position. Desktop
   centers in the full viewport; mobile centers in the *visible* part
   (below sticky bar, above keyboard) -- see overrides in mobile @media. */
#main-content.busy::after { position: fixed; }
@media (max-width: 768px) {
    #main-content.busy::after {
        top: calc(var(--vp-top, 0px) + var(--bar-h, 0px));
        right: 0;
        bottom: calc(100vh - var(--vp-top, 0px) - var(--vp-h, 100vh));
        left: 0;
    }
}
/* $$$$$$$$$$ ARTICLE GRID 3S $$$$$$$$$$ */

@media (min-width: 600px) { .article-grid-3s .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) { .article-grid-3s .grid { grid-template-columns: repeat(4, 1fr); } }

.article-grid-3s article { background: #fff; border: 2px solid #c7c7c7; border-radius: 8px; position: relative; display: flex; flex-direction: column; }
/* Image radius = 6px to follow the inner border curve (outer 8 - border 2). */
/* Image pushed down so the absolute-positioned .tags above sit on the
   tile's white background, not over the product photo. */
.article-grid-3s article img { width: 100%; margin-top: 1.5rem; aspect-ratio: 1; object-fit: contain; display: block; }
/* flex:1 + column so .price gets pushed to the bottom (just above footer)
   regardless of title length -- prices align across side-by-side tiles. */
.article-grid-3s article header { padding: 0.35rem; flex: 1; display: flex; flex-direction: column; }
/* 3-line clamp instead of single-line ellipsis. */
.article-grid-3s article .title { display: block; font-size: 0.85rem; font-weight: 600; line-height: 1.2; }
.article-grid-3s article .title a { color: #3d3d3d;  font-weight: 700; text-decoration: none; }
.article-grid-3s article .title a::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }

.article-grid-3s .rating { display: flex; align-items: center; gap: 0.25rem; font-size: 0.7rem; color: #666; margin-top: 0.2rem; }
.article-grid-3s .stars { display: flex; }
.article-grid-3s .stars svg { width: 0.85rem; height: 0.85rem; }

.article-grid-3s .price { margin-top: auto; padding-top: 0.5rem; text-align: center; }
/* Selector specificity beats PrestaShop's bare `.regular-price` rule
   (line-through, gray). Our `.regular-price` means the *current* selling
   price when there's no discount -- red, bold, large. */
.article-grid-3s .price .regular-price,
.article-grid-3s .price .new-price { color: #cc0000; font-size: 1.25rem; font-weight: 700; line-height: 1.2; text-decoration: none; }
.article-grid-3s .price .old-price { color: #999; font-weight: 400; font-size: 0.8em; margin-left: 0.3em; text-decoration: line-through; }

/* Footer overlays the bottom 2px of the gray border (mirror of how the
   search submit button overlays the input's right border). Negative
   margin on left/right/bottom; bottom border-radius matches the tile's
   outer 8px so the curve continues cleanly. */
.article-grid-3s article footer { position: relative; z-index: 2; margin: auto -2px -2px; background: #43853e; border-radius: 0 0 8px 8px; }
.article-grid-3s article footer.sold-out { background: #8ab587; }
.article-grid-3s article footer.variant { pointer-events: none; }
.article-grid-3s .buy { display: block; width: 100%; padding: 0.5rem; background: none; border: none; color: #fff; font-weight: 600; font-size: 0.75rem; line-height: inherit; cursor: pointer; text-align: center; }
.article-grid-3s .buy:disabled { cursor: not-allowed; }

.article-grid-3s .fav { position: absolute; z-index: 2; top: 0; right: 0; background: transparent; border: none; width: 2.5rem; height: 2.5rem; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.article-grid-3s .fav svg { width: 1.1rem; height: 1.1rem; display: block; }

.article-grid-3s .tags { position: absolute; top: 0.25rem; left: 0.25rem; display: flex; gap: 0.25rem; flex-wrap: wrap; max-width: 70%; }
.article-grid-3s .tag { font-size: 0.7rem; font-weight: 600; padding: 0.1em 0.4em; border-radius: 5px; text-transform: uppercase; }
.article-grid-3s .tag.new { background: #005a9e; color: #fff; }
.article-grid-3s .tag.sale { background: #cc0000; color: #fff; }
.article-grid-3s .tag.sold-out { background: #333; color: #fff; }
.article-grid-3s .tag.bundle { background: #005a9e; color: #fff; }


/* 1280px keeps tiles a comfortable ~280px wide at the 4-column breakpoint
   without going full-bleed on ultrawide displays. */
.article-grid-3s { max-width: 1280px; margin: 0 auto; padding: 0.5rem; font-size: 0.9375rem; box-sizing: border-box; }
.article-grid-3s.article-grid-wrapper { display: flex; gap: 1.5rem; }
.article-grid-3s .grid-main { flex: 1; min-width: 0; }

.article-grid-3s .grid-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.article-grid-3s .grid-header .count {  font-weight: 500; font-family: inherit; color: #3d3d3d; }
.article-grid-3s .grid-header .search-title { flex: 1; margin: 0; font-size: 1.25rem; font-weight: 500; color: #3d3d3d; }
.article-grid-3s .grid-header select { padding: 0.5rem 0.75rem; height: 43px; border: 2px solid #c7c7c7; border-radius: 5px; background: #fff; color: #43853e; font-family: inherit; font-weight: 500; cursor: pointer; margin-left: auto; }
.article-grid-3s .grid-header select:focus { outline: 2px solid #43853e; outline-offset: 1px; }
/* Filter button inherits the green .button look (white-on-green, 43px). */
.article-grid-3s .filter-toggle { gap: 6px; }
@media (min-width: 768px) { .article-grid-3s .filter-toggle { display: none; } }
@media (max-width: 768px) {
    .article-grid-3s .grid-header .search-title { display: none; }
    .article-grid-3s .grid-header .count { flex: 1; }
}

/* Active filter chips: live inside .grid-header (between count and sort)
   on desktop; flex-wrap drops them onto their own row on narrow viewports.
   flex:1 makes them claim the leftover space, pushing the sort select +
   filter button to the right edge -- same alignment as the search page. */
/* Active filters take their own row(s): on mobile always, on desktop
   too once content wraps. flex-basis:100% pushes them onto a new line;
   order:99 keeps count/sort/filter on the first row. */
.article-grid-3s .active-filters { display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; flex: 0 0 100%; min-width: 0; order: 99; }
.article-grid-3s .active-filters a.button:hover { background: #2e6029; }
.article-grid-3s .active-filters a.button.clear-all { background: #fff; color: #43853e; border: 2px solid #43853e; }
.article-grid-3s .active-filters a.button.clear-all:hover { background: #f0f7ef; }

.article-grid-3s .tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
@media (min-width: 576px) { .article-grid-3s .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .article-grid-3s .tiles { grid-template-columns: repeat(4, 1fr); } }
.article-grid-3s .no-results { grid-column: 1 / -1; text-align: center; padding: 2rem; color: #666; }

.article-grid-3s .pagination { display: flex; justify-content: center; gap: 0.25rem; margin: 1.5rem 0; flex-wrap: wrap; }
.article-grid-3s .pagination a, .article-grid-3s .pagination .ellipsis { padding: 0.5rem 0.75rem; border: 2px solid #c7c7c7; border-radius: 4px; text-decoration: none; color: inherit; }
.article-grid-3s .pagination a:hover { background: #f0f0f0; }
.article-grid-3s .pagination a.current { background: #43853e; color: #fff; border-color: #43853e; }
.article-grid-3s .pagination .ellipsis { border: none; padding: 0.5rem 0.25rem; }

.article-grid-3s .per-page { display: flex; justify-content: center; align-items: center; gap: 0.25rem; margin-top: 1rem; font-size: 0.875rem; }
.article-grid-3s .per-page a { padding: 0.5rem 0.75rem; border: 2px solid #c7c7c7; border-radius: 4px; text-decoration: none; color: inherit; }
.article-grid-3s .per-page a:hover { background: #f0f0f0; }
.article-grid-3s .per-page a.current { background: #43853e; color: #fff; border-color: #43853e; }

.article-grid-3s .filter-sidebar { display: none; width: 250px; flex-shrink: 0; }
@media (min-width: 768px) { .article-grid-3s .filter-sidebar { display: block; position: relative; } }

.article-grid-3s .filter-content { padding: 1rem; }

.article-grid-3s .filter-group { margin-bottom: 1rem; }
.article-grid-3s .filter-group summary { font-weight: 600; cursor: pointer; padding: 0.5rem 0; list-style: none; }
.article-grid-3s .filter-group summary::before { content: "+"; margin-right: 0.5rem; font-weight: normal; }
.article-grid-3s .filter-group[open] summary::before { content: "-"; }
/* Show at most ~7 items per facet group; scroll the rest. Keeps the
   sidebar from growing taller than the default-12 article grid when a
   facet has many values (brands, sizes, etc.). */
.article-grid-3s .filter-options { list-style: none; padding: 0; margin: 0.5rem 0 0 0; max-height: 14rem; overflow-y: auto; }
.article-grid-3s .filter-options::-webkit-scrollbar { width: 6px; }
.article-grid-3s .filter-options::-webkit-scrollbar-thumb { background: #c7c7c7; border-radius: 3px; }
.article-grid-3s .filter-options::-webkit-scrollbar-thumb:hover { background: #999; }
.article-grid-3s .filter-options li { padding: 0.25rem 0; }
.article-grid-3s .filter-options label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.article-grid-3s .filter-options input[type="checkbox"] { flex-shrink: 0; }
.article-grid-3s .filter-label { flex: 1; }
.article-grid-3s .filter-count { color: #666; font-size: 0.875rem; }

/* Article filter dialog styles live in styles.css - <dialog> is
   display:none by default so initial paint isn't affected; the slide-in
   only matters when the user taps Filter. */

/* $$$$$$$$$$ BANNER TEASER STRIP $$$$$$$$$$ */
.banner-container { position: relative; min-height: calc(clamp(22ch, 17vw, 32ch) * 4 / 3 + 16px); }
.banner-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; }
.banner-teaser:first-child { margin-left: auto; }
.banner-teaser:last-child { margin-right: auto; }
.banner-scroll-hint { position: absolute; right: 0; top: 0; bottom: 0; width: 40px; background: linear-gradient(to right, transparent, #fff); pointer-events: none; }
.banner-scroll-hint.hidden { opacity: 0; }
.banner-teaser { flex: 0 0 clamp(22ch, 17vw, 32ch); aspect-ratio: 3/4; position: relative; cursor: pointer; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.banner-teaser img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teaser-text { position: relative; padding: 8px; background: linear-gradient(transparent, rgba(0,0,0,.95)); color: #fff; font-size: 16px; font-weight: 600; text-align: center; }
.warning-text { position: relative; min-height: 10%; display: flex; align-items: center; justify-content: center; background: #fff; color: #000; font-size: 11px; font-weight: 600; text-align: center; padding: 4px; line-height: 1.1; }
.banner-teaser a { display: contents; }
.banner-teaser.no-warning .teaser-text { margin-bottom: 13.34%; }
.banner-zoom { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.5); border: 2px solid #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1; padding: 0; }
.banner-zoom svg { width: 20px; height: 20px; }
.category-breadcrumb { padding: 0.5rem 0 0.5rem 2rem; font-size: 0.875rem; color: #333; }
.category-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.category-breadcrumb a { color: inherit; text-decoration: none; }
.category-breadcrumb a:hover { text-decoration: underline; }
.category-breadcrumb [aria-current] { font-weight: 500; }
.category-h1 { margin: 0.5rem 0 1rem; text-align: center; line-height: 1.3; }
/* Narrower than the grid (60% of 1280px) so prose stays at a comfortable
   line length; text within stays left-aligned, the block itself centers. */
.category-intro, .category-body { max-width: 768px; margin: 0 auto 1.5rem; padding: 0 1rem; text-align: left; }
.category-intro img, .category-body img { max-width: 100%; height: auto; }
/* Sit immediately after the last text of the intro: floated right so it
   tucks into the trailing line; clearfix on .category-intro keeps the
   following layout from rising up alongside it. */
.category-intro::after { content: ""; display: block; clear: both; }
.category-intro .intro-readmore { float: right; margin-left: 1rem; font-weight: 500; white-space: nowrap; }
.category-toc { margin: 0 0 1.5rem; padding: 0.75rem 1rem; background: #f5f5f5; border-left: 3px solid #43853e; border-radius: 4px; }
.category-toc .toc-title { margin: 0 0 0.5rem; font-weight: 700; color: #3d3d3d; }
.category-toc ul { list-style: none; padding: 0; margin: 0; }
.category-toc li { padding: 0.15rem 0; }
.category-toc li.toc-level-2 { padding-left: 0; }
.category-toc li.toc-level-3 { padding-left: 1rem; }
.category-toc li.toc-level-4 { padding-left: 2rem; }
.category-toc li.toc-level-5 { padding-left: 3rem; }
.category-toc li.toc-level-6 { padding-left: 4rem; }
