/* Dekkfilter Core 1.6.7 – front page components.
 * Every selector is scoped to .dfc-hs (front page search) or .dfc-grid (product grid).
 * The filter page, product pages, cart, checkout and order confirmation are not affected. */

.dfc-hs, .dfc-grid {
  --dfc-red: #cf161f; --dfc-red-dark: #b0121a; --dfc-ink: #181b20; --dfc-muted: #5f6670;
  --dfc-line: #d5dae1; --dfc-soft: #f4f5f7;
  box-sizing: border-box; color: var(--dfc-ink); font: inherit;
}
.dfc-hs *, .dfc-grid * { box-sizing: border-box; }
.dfc-hs { max-width: 1100px; margin: 0 auto; text-align: left; }

/* Tabs (only when JavaScript is running; without JS both forms are shown) */
.dfc-hs:not(.dfc-hs--js) .dfc-hs-tabs { display: none; }
.dfc-hs-tabs { display: flex; gap: 4px; margin: 0; padding: 0; }
.dfc-hs-tab {
  appearance: none; -webkit-appearance: none; border: 0; margin: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  border-radius: 10px 10px 0 0; background: rgba(255, 255, 255, .88); color: var(--dfc-ink);
  font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
}
.dfc-hs-tab .dfc-ico { width: 20px; height: 20px; flex: 0 0 20px; }
.dfc-hs-tab[aria-selected="true"] { background: var(--dfc-red); color: #fff; }
.dfc-hs-tab:not([aria-selected="true"]):hover { background: #fff; }

/* Panels */
.dfc-hs-panel { margin: 0; padding: 20px 22px; background: #fff; border-radius: 0 12px 12px 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .2); }
.dfc-hs:not(.dfc-hs--js) .dfc-hs-panel { border-radius: 12px; }
.dfc-hs:not(.dfc-hs--js) .dfc-hs-panel + .dfc-hs-panel { margin-top: 12px; }
.dfc-hs--js .dfc-hs-panel[hidden] { display: none; }

.dfc-hs-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.dfc-hs-row--hjul { grid-template-columns: minmax(0, 1fr) auto; }
.dfc-hs label { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; font-size: 13px; font-weight: 700; color: var(--dfc-ink); }
.dfc-hs select, .dfc-hs input[type="text"] {
  display: block; width: 100%; min-height: 48px; margin: 0; padding: 10px 12px;
  border: 1px solid var(--dfc-line); border-radius: 8px; background-color: #fff; color: var(--dfc-ink);
  font: inherit; font-size: 16px; line-height: 1.3; box-shadow: none;
}
.dfc-hs input[type="text"] { text-transform: uppercase; letter-spacing: .04em; }
.dfc-hs input[type="text"]::placeholder { text-transform: none; letter-spacing: 0; color: #8a9099; }
.dfc-hs-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; margin: 0; padding: 0 26px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--dfc-red); color: #fff; font: inherit; font-size: 15px; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
}
.dfc-hs-submit:hover { background: var(--dfc-red-dark); }
.dfc-hs-hint { margin: 10px 0 0 !important; padding: 0 !important; font-size: 13px; line-height: 1.45; color: var(--dfc-muted); }
.dfc-hs-hint a { color: var(--dfc-red); font-weight: 700; text-decoration: underline; }
.dfc-hs-msg { margin: 10px 0 0 !important; padding: 0 !important; font-size: 14px; font-weight: 700; color: var(--dfc-red-dark); }
.dfc-hs-msg[hidden] { display: none; }

/* Keyboard focus */
.dfc-hs select:focus-visible, .dfc-hs input:focus-visible, .dfc-hs button:focus-visible, .dfc-hs a:focus-visible {
  outline: 3px solid var(--dfc-red); outline-offset: 2px;
}
.dfc-hs-tab[aria-selected="true"]:focus-visible, .dfc-hs-submit:focus-visible { outline-color: var(--dfc-ink); }

@media (max-width: 900px) {
  .dfc-hs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dfc-hs-row .dfc-hs-submit { grid-column: 1 / -1; width: 100%; }
  .dfc-hs-row--hjul { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .dfc-hs-tab { flex: 1 1 0; justify-content: center; padding: 10px 8px; font-size: 12px; letter-spacing: .02em; }
  .dfc-hs-panel { padding: 16px; border-radius: 0 0 12px 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .dfc-hs-tab, .dfc-hs-submit { transition: background-color .15s ease; }
}

/* Product grid – reuses the filter cards (.dfc-products / .dfc-product) */
.dfc-products--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dfc-grid .dfc-product h3 { font-size: 15px; }
@media (max-width: 980px) { .dfc-products--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
