/* Suomen Ekokauppa: product discovery UX (staging 2026-11-05). Pairs with sek_ux.js. */

/* ---- category pages ---- */
/* "Vitamiinit, kivennäisaineet…" carousel (Journal module 1025): only on supplement pages (sek_ux.js adds .sek-show). */
html.route-product-category .module-categories-1025:not(.sek-show) { display: none !important; }
html.route-product-category #content-top.sek-empty { display: none; }
.sek-more-supplements { margin-top: 32px; padding-top: 20px; border-top: 1px solid #e5e5e5; }

/* Short intro + refinement links on top; refinement buttons as compact chips. */
html.route-product-category .category-description { margin-bottom: 12px; }
html.route-product-category .category-description .skin-type-selector h2,
html.route-product-category .category-description .hair-need-selector h2 { font-size: 15px; margin: 12px 0 6px; }
html.route-product-category .category-description .skin-type-selector > p { display: none; }
html.route-product-category .category-description .skin-type-links { display: flex; flex-wrap: wrap; gap: 6px; }
html.route-product-category .category-description .skin-type-links .btn { padding: 6px 12px; font-size: 13px; min-height: 36px; }

/* Guide / FAQ moved below the product list. */
/* Journal orders the category page parts with flex "order" (on mobile the description goes last): keep the guide after the products. */
.sek-cat-guide--below, .sek-more-supplements { order: 9999; }
html.sek-has-guide.route-product-category #content > .category-description { order: 0 !important; }
html.sek-has-guide.route-product-category #content > .sek-active-filters,
html.sek-has-guide.route-product-category #content > .sek-empty-results { order: 1; }
.sek-cat-guide--below { margin-top: 36px; padding-top: 24px; border-top: 1px solid #e5e5e5; max-width: 900px; }
.sek-cat-guide--below h2 { font-size: 22px; margin: 22px 0 10px; }
.sek-cat-guide--below h3 { font-size: 17px; margin: 16px 0 6px; }

/* Hub pages (6.11.2026): need-based categories whose products live in the linked categories.
   Vastustuskyky (255) has 1 product of its own (also listed in C-/D-vitamiini and Beetaglukaani), so the list,
   filter and sorting only made the page look empty. The cards in the category text are the navigation.
   Add a category here by appending html.category-<id> to each selector. */
html.route-product-category.category-255 .main-products-wrapper,
html.route-product-category.category-255 .sek-active-filters,
html.route-product-category.category-255 .sek-empty-results,
html.route-product-category.category-255 .mobile-filter-trigger,
html.route-product-category.category-255 #column-left { display: none !important; }
/* Journal's column keeps 30px gutters as margins inside a -30px row: let it grow into the free space instead of width:100%. */
html.route-product-category.category-255 #content { flex: 1 1 auto !important; width: auto !important; max-width: none !important; padding-bottom: 0; }
html.route-product-category.category-255 .immunity-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
html.route-product-category.category-255 .immunity-card { min-height: 100%; }

/* Mobile: the floating filter button must not cover the last products / pagination. */
@media (max-width: 767px) { html.route-product-category #content { padding-bottom: 72px; } }

/* Active filter chips */
.sek-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.sek-active-filters[hidden] { display: none; }
.sek-af-label { font-size: 13px; color: #555; margin-right: 2px; }
.sek-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; border: 1px solid #c9d3c9; border-radius: 18px; background: #f3f7f2; font-size: 13px; cursor: pointer; }
.sek-chip:hover, .sek-chip:focus-visible { border-color: #2f6b45; }
.sek-chip-x { font-size: 16px; line-height: 1; }
.sek-chip-clear { min-height: 36px; padding: 4px 8px; border: 0; background: none; text-decoration: underline; font-size: 13px; cursor: pointer; }
.sek-empty-results { margin: 10px 0 20px; padding: 16px; border: 1px solid #e5e5e5; border-radius: 4px; }
.sek-empty-results p { margin: 0 0 10px; }
/* Journal's "Tällä kategorialla ei ole tuotteita" is misleading when filters caused the empty result. */
#content .main-products-wrapper.sek-filtered-empty > p, #content .main-products-wrapper.sek-filtered-empty > .buttons { display: none !important; }

/* ---- product pages ---- */
.sek-highlights { list-style: none; margin: 8px 0 12px; padding: 0; font-size: 14px; line-height: 1.4; }
.sek-highlights li { position: relative; padding-left: 20px; margin: 3px 0; }
.sek-highlights li::before { content: "✓"; position: absolute; left: 0; color: #2f6b45; font-weight: 700; }
/* Mobile: the right column follows the image; keep the list tight to the price. */
@media (max-width: 767px) { .sek-highlights { margin: 4px 0 8px; font-size: 13.5px; } }

/* Stock line moved under the size selector, right above the buy button. */
.product-stats.sek-stats-moved { margin: 8px 0 10px; }
.product-stats.sek-stats-moved ul { margin: 0; }

/* Description sections (keyboard: <details>/<summary> are native buttons). */
.product_extra-1087.sek-sections-host .expand-content { max-height: none !important; overflow: visible !important; }
.product_extra-1087.sek-sections-host .block-expand, .product_extra-1087.sek-sections-host .expand-button,
.product_extra-1087.sek-sections-host .block-expand-overlay { display: none !important; }
.product_extra-1087.sek-sections-host > .title, .product_extra-1087.sek-sections-host .block-header .title { display: none; }
.sek-hidden-tabs { display: none !important; }
.sek-sections { margin-top: 4px; border-top: 1px solid #e5e5e5; }
.sek-section { border-bottom: 1px solid #e5e5e5; }
.sek-section > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 4px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.sek-section > summary::-webkit-details-marker { display: none; }
.sek-section > summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; margin-left: 12px; }
.sek-section[open] > summary::after { content: "−"; }
.sek-section > summary:focus-visible { outline: 2px solid #2f6b45; outline-offset: 2px; }
.sek-section-body { padding: 0 4px 16px; }
.sek-section-body p { margin: 0 0 8px; }
.sek-section--ingr .sek-section-body { overflow-wrap: anywhere; }
.sek-review-count { font-weight: 600; }
.product_extra-512.sek-moved { display: none !important; }

/* Mobile/tablet: cookie banner sits above the fixed buy bar (sek_ux.js measures --sek-buybar-h). */
@media (max-width: 1023px) {
  html.route-product-product #wqik-consent-root .wqik-consent-panel,
  html.route-product-category #wqik-consent-root .wqik-consent-panel { bottom: var(--sek-buybar-h, 0px); max-height: calc(100vh - var(--sek-buybar-h, 0px) - 60px); overflow-y: auto; }
}

/* Recommendations after the main info; duplicate Journal blocks removed. */
html.route-product-product .module-side_products-877,
html.route-product-product .module-products-868 { display: none !important; }
.sek-recos-slot { margin: 24px 0 8px; }
.sek-alternatives { margin: 0 0 20px; }
.sek-alternatives .title, .sek-recos .product-cross-sell .title { font-size: 18px; margin: 0 0 10px; }
.sek-alt-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sek-alt-item { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid #e5e5e5; border-radius: 4px; }
.sek-alt-item > a { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; color: inherit; }
.sek-alt-item img { width: 64px; height: 64px; object-fit: contain; }
.sek-alt-name { font-size: 14px; line-height: 1.3; }
.sek-alt-meta { padding-left: 74px; font-size: 14px; }
.sek-alt-item.is-out { opacity: .75; }
.sek-alt-stock { color: #8a4b00; }
@media (max-width: 600px) { .sek-alt-list { grid-template-columns: 1fr; } }

/* ---- mobile menu drill-down (replaces the long open accordion tree; the original stays in the DOM, hidden) ---- */
.accordion-menu-359.sek-drill-source { display: none !important; }
.sek-drill { font-size: 15px; padding: 0 16px; box-sizing: border-box; width: 100%; }
.sek-drill a { text-decoration: none !important; }
.sek-drill-list a, .sek-drill-next { box-sizing: border-box; padding-right: 8px; }
.sek-drill-head { display: flex; align-items: center; gap: 8px; padding: 6px 0 8px; border-bottom: 1px solid #e5e5e5; }
.sek-drill-back { min-height: 44px; padding: 0 12px 0 4px; border: 0; background: none; font-size: 15px; cursor: pointer; }
.sek-drill-back::before { content: "‹"; font-size: 22px; margin-right: 6px; vertical-align: -2px; }
.sek-drill-title { font-weight: 700; }
.sek-drill-list { list-style: none; margin: 0; padding: 0; }
.sek-drill-list li { border-bottom: 1px solid #eee; }
.sek-drill-list a, .sek-drill-next { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 8px 4px; border: 0; background: none; color: inherit; text-align: left; font-size: 15px; cursor: pointer; }
.sek-drill-next { justify-content: space-between; }
.sek-drill-next::after { content: "›"; font-size: 22px; color: #777; }
.sek-drill-all a { font-weight: 600; }
.sek-drill a:focus-visible, .sek-drill button:focus-visible { outline: 2px solid #2f6b45; outline-offset: -2px; }
