/* Hardware page — builds on fd-pricing.css (shared tokens, section, FAQ and button styles). */
.fd-hardware-banner {
    background: var(--fd-teal-dark, #065a51) url('../img/banner/hardware_page_background_img.webp') center / cover no-repeat;
}

/* ---- Filter chips ---- */
.fd-hw-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 48px; }
.fd-hw-chip {
    min-height: 44px;
    padding: 8px 20px;
    border: 1px solid var(--fd-line);
    border-radius: 50px;
    background: #fff;
    color: var(--fd-teal-dark);
    font-size: 16px;
    font-weight: 500;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.fd-hw-chip:hover { border-color: var(--fd-teal-dark); }
.fd-hw-chip.is-active { background: var(--fd-teal-dark); border-color: var(--fd-teal-dark); color: #fff; }

/* ---- Groups ---- */
.fd-hw-group { margin-bottom: 56px; }
.fd-hw-group[hidden] { display: none; }
.fd-hw-group__head { margin-bottom: 24px; padding-left: 16px; border-left: 4px solid var(--fd-amber); }
.fd-hw-group__title { margin: 0 0 4px; font-size: 26px; font-weight: 600; color: var(--fd-teal-dark); }
.fd-hw-group__head p { margin: 0; color: var(--fd-muted); font-size: 16px; }

/* ---- Product card ---- */
.fd-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--fd-line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform .2s ease, box-shadow .2s ease;
}
.fd-product:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.09); }

.fd-product__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: var(--fd-tint);
    color: var(--fd-teal);
    font-size: 64px;
}
.fd-product__media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.fd-product__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--fd-teal-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.fd-product__badge.is-used { background: var(--fd-amber); color: var(--fd-teal-dark); }

.fd-product__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.fd-product__name { margin: 0 0 6px; font-size: 21px; font-weight: 600; line-height: 1.25; color: var(--fd-teal-dark); }
.fd-product__blurb { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--fd-muted); }

.fd-product__specs { margin: 0 0 20px; padding-top: 14px; border-top: 1px solid var(--fd-line); flex: 1; }
.fd-product__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 15px; }
.fd-product__specs dt { font-weight: 400; color: var(--fd-muted); }
.fd-product__specs dd { margin: 0; text-align: right; font-weight: 500; color: var(--fd-ink); }

.fd-product__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fd-product__price { margin: 0; font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 700; line-height: 1; color: var(--fd-ink); }
.fd-product__price span { margin-right: 4px; font-size: 16px; font-weight: 500; }
.fd-product__btn { min-height: 44px; padding: 8px 20px; }

/* ---- Counter builder ---- */
.fd-build fieldset { margin: 0 0 24px; padding: 8px 24px; border: 1px solid var(--fd-line); border-radius: 16px; background: #fff; }
.fd-build fieldset:last-child { margin-bottom: 0; }
.fd-build__legend { float: none; width: auto; margin: 0; padding: 14px 0 6px; font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 600; color: var(--fd-teal-dark); }
.fd-build__name small { display: block; font-size: 14px; font-weight: 400; color: var(--fd-muted); }
.fd-build__annual { margin: -12px 0 22px; font-size: 15px; color: #fff; }
.fd-build__annual[hidden] { display: none; }
.fd-build__annual strong { font-weight: 600; color: var(--fd-amber); }
.fd-build__row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 10px 0;
    border-bottom: 1px solid var(--fd-line);
    cursor: pointer;
}
.fd-build__row:last-child { border-bottom: 0; }
.fd-build__row input { flex: none; width: 22px; height: 22px; accent-color: var(--fd-teal-dark); }
.fd-build__name { flex: 1; font-size: 16px; color: var(--fd-ink); }
.fd-build__price { font-weight: 600; color: var(--fd-teal-dark); white-space: nowrap; }
.fd-build__row:has(input:checked) .fd-build__name { font-weight: 600; }
.fd-build__row:has(input:focus-visible) { outline: 3px solid var(--fd-amber); outline-offset: 2px; border-radius: 8px; }

.fd-build__total {
    position: sticky;
    top: 110px;
    padding: 30px 28px;
    border-radius: 16px;
    background: var(--fd-teal-dark);
    color: #fff;
}
.fd-build__label { margin: 0 0 8px; color: rgba(255, 255, 255, .82); font-size: 15px; }
.fd-build__sum { margin: 0 0 6px; line-height: 1; }
.fd-build__sum span { margin-right: 6px; font-size: 20px; }
.fd-build__sum strong { font-family: 'Oswald', sans-serif; font-size: clamp(38px, 4vw, 48px); font-weight: 700; }
.fd-build__count { margin: 0 0 22px; color: rgba(255, 255, 255, .82); font-size: 15px; }
.fd-build__total .fd-plan__btn { background: var(--fd-amber); color: var(--fd-teal-dark) !important; width: 100%; }
.fd-build__total .fd-plan__btn:hover { background: #fff; }
.fd-build__note { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
@media (max-width: 991px) { .fd-build__total { position: static; } }

/* ---- Warranty / custom ---- */
.fd-war__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fd-muted); }
.fd-hw-custom__text { margin: 14px 0 18px; font-size: 17px; line-height: 1.6; color: var(--fd-muted); }
.fd-hw-custom__list { list-style: none; margin: 0; padding: 0; }
.fd-hw-custom__list li { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 17px; color: var(--fd-ink); }
.fd-hw-custom__list i { color: var(--fd-teal); width: 20px; text-align: center; }

.fd-pricing-foot a { color: var(--fd-teal-dark); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
    .fd-product, .fd-hw-chip { transition: none; }
    .fd-product:hover { transform: none; }
}
