/**
 * Components CSS - Reusable UI Components
 *
 * @package DS_Theme_Rugged_Dark
 */

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: var(--dst-font-heading);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--dst-transition);
}

.btn-primary {
    background: var(--dst-primary-red);
    color: var(--dst-white);
    clip-path: var(--dst-clip-angle);
}

.btn-primary:hover {
    background: var(--dst-dark-red);
    transform: translateY(-2px);
    color: var(--dst-white);
}

.btn-outline {
    background: transparent;
    color: var(--dst-white);
    border: 2px solid var(--dst-white);
    clip-path: var(--dst-clip-subtle-flip);
}

.btn-outline:hover {
    background: var(--dst-white);
    color: var(--dst-charcoal);
}

.btn-dark {
    background: var(--dst-charcoal);
    color: var(--dst-white);
    clip-path: var(--dst-clip-angle);
}

.btn-dark:hover {
    background: var(--dst-steel);
    color: var(--dst-white);
}

/* .btn-secondary: markup for this class already existed (404.php, template-
   view-detail.php, single-view-detail-page.php) but no rule defined it —
   those links rendered with only .btn's shared box-model, no color/
   background/clip-path (T6 discovery, 2026-08-08). Steel fill sits between
   .btn-primary (red) and .btn-outline (transparent) in visual weight. */
.btn-secondary {
    background: var(--dst-steel);
    color: var(--dst-white);
    border: 1px solid var(--dst-concrete);
    clip-path: var(--dst-clip-angle);
}

.btn-secondary:hover {
    background: var(--dst-concrete);
    color: var(--dst-white);
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

/* ==========================================================================
   INVENTORY CARDS
   ========================================================================== */

.inventory-card {
    background: var(--dst-steel);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--dst-transition);
    border: 1px solid var(--dst-concrete);
    height: 100%;
}

.inventory-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--dst-shadow-heavy);
    border-color: var(--dst-primary-red);
}

.inventory-card .card-image {
    position: relative;
    overflow: hidden;
    background: #222;
}

.inventory-card .card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s;
}

.inventory-card:hover .card-image img {
    transform: scale(1.05);
}

.inventory-card .sale-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--dst-primary-red);
    color: var(--dst-white);
    padding: 5px 12px;
    font-family: var(--dst-font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inventory-card-content {
    padding: 20px;
}

.inventory-card h3 {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--dst-white);
    line-height: 1.3;
    height: 40px;
    overflow: hidden;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.price-original {
    color: #888;
    text-decoration: line-through;
    font-size: 14px;
}

.price-sale {
    color: var(--dst-primary-red);
    font-family: var(--dst-font-heading);
    font-size: 24px;
    font-weight: 700;
}

.inventory-card .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 14px;
    clip-path: var(--dst-clip-angle);
    border-radius: 0;
}

/* ==========================================================================
   DEALSECTOR INVENTORY LISTINGS (Full-Width Style)
   ========================================================================== */

/* Main inventory wrapper - full width listings */
.inventory_wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

/* Each inventory item container */
.inventory_wrapper > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

/* Load More wrapper */
.inventory_wrapper .loadMore_Wrapper {
    margin-top: 30px !important;
    text-align: center !important;
}

/* Red separator between items */
.inventory-main .wp-block-separator,
.inventory_wrapper .wp-block-separator {
    background-color: var(--dst-primary-red) !important;
    height: 3px !important;
    margin: 0 0 15px 0 !important;
    border: none !important;
}

/* WordPress block columns - CRITICAL: Force flex layout */
.inventory_wrapper .wp-block-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    margin-bottom: 10px !important;
    align-items: flex-start !important;
}

/* WordPress block column children */
.inventory_wrapper .wp-block-column {
    flex-grow: 1 !important;
    min-width: 0 !important;
}

/* Column flex basis based on child count */
/* 2-column layouts (title row with price) */
.inventory_wrapper .wp-block-columns > .wp-block-column:first-child {
    flex-basis: 60% !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
}

.inventory_wrapper .wp-block-columns > .wp-block-column:nth-child(2) {
    flex-basis: 35% !important;
    flex-grow: 1 !important;
}

/* 3-column layouts (image, specs, buttons) - when there are 3 children */
.inventory_wrapper .wp-block-columns > .wp-block-column:nth-child(3) {
    flex-basis: 22% !important;
    max-width: 250px !important;
    flex-grow: 0 !important;
}

/* When 3 columns exist, adjust the first two */
.inventory_wrapper .wp-block-columns > .wp-block-column:first-child:nth-last-child(3) {
    flex-basis: 40% !important;
    max-width: 450px !important;
}

.inventory_wrapper .wp-block-columns > .wp-block-column:nth-child(2):nth-last-child(2) {
    flex-basis: 30% !important;
    flex-grow: 1 !important;
    text-align: left !important;
}

/* Browsers that support :has() - more specific targeting */
@supports selector(:has(*)) {
    /* 3-column layout with table (image, specs, buttons) */
    .inventory_wrapper .wp-block-columns:has(.wp-block-table) {
        gap: 15px !important;
        align-items: flex-start !important;
    }

    .inventory_wrapper .wp-block-columns:has(.wp-block-table) > .wp-block-column:first-child {
        flex-basis: 35% !important;
        max-width: 350px !important;
    }

    .inventory_wrapper .wp-block-columns:has(.wp-block-table) > .wp-block-column:nth-child(2) {
        flex-basis: 35% !important;
        flex-grow: 1 !important;
        text-align: left !important;
    }

    .inventory_wrapper .wp-block-columns:has(.wp-block-table) > .wp-block-column:last-child {
        flex-basis: 20% !important;
        max-width: 200px !important;
    }

    /* Title row without table */
    .inventory_wrapper .wp-block-columns:not(:has(.wp-block-table)) > .wp-block-column:last-child {
        text-align: right !important;
    }
}

/* Item title styling */
.inventory_wrapper a[style*="text-transform: uppercase"] {
    font-family: var(--dst-font-heading) !important;
    font-size: 24px !important;
    color: var(--dst-white) !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
}

.inventory_wrapper a[style*="text-transform: uppercase"]:hover {
    color: var(--dst-primary-red) !important;
}

/* Compact all paragraphs in inventory */
.inventory_wrapper p {
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

.inventory_wrapper .wp-block-column {
    padding: 0 !important;
}

/* Price styling - compact */
.inventory_wrapper [style*="Our Price"],
.inventory_wrapper label:contains("Our Price") {
    color: #aaa !important;
    font-size: 16px !important;
    margin-bottom: 2px !important;
}

.inventory_wrapper .dssalePrice,
.inventory_wrapper [style*="color: #b71e22"],
.inventory_wrapper [style*="color:#b71e22"] {
    color: var(--dst-primary-red) !important;
    font-family: var(--dst-font-heading) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

/* MSRP strikethrough */
.inventory_wrapper [style*="text-decoration: line-through"] {
    color: #888 !important;
    font-size: 13px !important;
    margin-bottom: 0 !important;
}

/* Image container with overlay - compact */
.inventory_wrapper .img-overlay-container {
    position: relative !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #222 !important;
    max-height: 250px !important;
}

.inventory_wrapper .img-overlay-container img {
    width: 100% !important;
    height: auto !important;
    max-height: 250px !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.inventory_wrapper .img-overlay-container:hover img {
    transform: scale(1.02) !important;
}

/* All images in inventory wrapper - contain within columns */
.inventory_wrapper img {
    max-width: 100% !important;
    height: auto !important;
}

/* LightSlider/Image slider within inventory */
.inventory_wrapper .lSSlideOuter,
.inventory_wrapper .lSSlideWrapper,
.inventory_wrapper .lightSlider,
.inventory_wrapper [class*="slider"],
.inventory_wrapper [class*="Slider"] {
    max-width: 100% !important;
    overflow: hidden !important;
}

.inventory_wrapper .lightSlider li,
.inventory_wrapper .lslide {
    max-width: 100% !important;
}

/* Ensure wp-block-column contains its content */
.inventory_wrapper .wp-block-column {
    overflow: hidden !important;
}

/* Image overlay caption - the sale badge text */
.inventory_wrapper .itemImageOverlayCaption,
.inventory_wrapper .img-overlay-container > p:first-child,
.inventory_wrapper .img-overlay-container > span:first-child {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: var(--dst-primary-red) !important;
    color: var(--dst-white) !important;
    padding: 8px 15px !important;
    font-family: var(--dst-font-heading) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    z-index: 10 !important;
}

/* Brand logo */
.inventory_wrapper img[src*="logo"],
.inventory_wrapper .itemLogo img {
    max-width: 150px !important;
    height: auto !important;
    margin: 0 auto 15px !important;
    display: block !important;
}

/* Records count spacing */
.inventory_wrapper #record_total,
.inventory_wrapper [id*="record"] {
    margin-bottom: 15px !important;
    padding: 10px 0 !important;
    color: #aaa !important;
    font-size: 14px !important;
}

/* Specs table - ensure visible */
.inventory_wrapper .tb-details,
.inventory_wrapper figure.wp-block-table {
    display: block !important;
    visibility: visible !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    margin: 0 0 10px 0 !important;
    height: auto !important;
}

.inventory_wrapper .tb-details table,
.inventory_wrapper figure.wp-block-table table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
    height: auto !important;
}

.inventory_wrapper table tr {
    display: table-row !important;
}

.inventory_wrapper .tb-details td,
.inventory_wrapper figure.wp-block-table td,
.inventory_wrapper table td {
    display: table-cell !important;
    padding: 6px 10px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    color: var(--dst-white) !important;
    font-size: 13px !important;
}

.inventory_wrapper .tb-details tr:last-child td,
.inventory_wrapper table tr:last-child td {
    border-bottom: none !important;
}

.inventory_wrapper .tb-details td:first-child,
.inventory_wrapper table td:first-child {
    color: #aaa !important;
    font-weight: 600 !important;
    width: 40% !important;
}

/* Stock number */
.inventory_wrapper a[style*="color: #e71418"],
.inventory_wrapper a[style*="color:#e71418"],
.inventory_wrapper [class*="stock"] a {
    color: var(--dst-primary-red) !important;
    font-family: var(--dst-font-heading) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Action buttons container. The second selector is redundant with the
   first (.ds-action-buttons carries both .wp-block-buttons and, since
   slice 21, .k4-vis-desktop/.dst-vis-desktop — the plain .wp-block-buttons
   selector alone already matches it) but kept for explicitness / grep-ability.
   The #content-desktop and .k4-vis-desktop variants are TEMPORARY back-compat
   (ADR-0003): DB-stored template pages still carry the old ID (pre-slice-21)
   or the old .k4-* class (pre-3.0.0) until "Recreate Templates" is run
   (see the toggle block below) — remove both legacy variants once that's
   confirmed done, leaving only .dst-vis-desktop. */
.inventory_wrapper .wp-block-buttons,
.inventory_wrapper .k4-vis-desktop.wp-block-buttons,
.inventory_wrapper .dst-vis-desktop.wp-block-buttons,
.inventory_wrapper #content-desktop.wp-block-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

/* CRITICAL: Remove padding from button wrappers */
.inventory_wrapper .wp-block-button,
.inventory_wrapper .wp-block-button.btn,
.inventory_wrapper div.wp-block-button,
.inventory_wrapper div.wp-block-button.btn,
.inventory-main .wp-block-button,
.inventory-main .wp-block-button.btn,
.inventory-main div.btn,
#dealsector_showresults .wp-block-button,
#dealsector_showresults .btn {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Action buttons - Deal Sector Theme (Rugged Dark) style with clip-path */
.inventory_wrapper .wp-block-button .wp-block-button__link,
.inventory_wrapper .wp-block-button.btn .wp-block-button__link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 10px 15px !important;
    font-family: var(--dst-font-heading) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    background: var(--dst-steel) !important;
    color: var(--dst-white) !important;
    border: none !important;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 10px) 100%, 0 100%) !important;
    transition: var(--dst-transition) !important;
    cursor: pointer !important;
}

.inventory_wrapper .wp-block-button .wp-block-button__link:hover {
    background: var(--dst-concrete) !important;
    color: var(--dst-white) !important;
}

/* Gallery/View Details button - red with Rugged Dark clip-path */
.inventory_wrapper .wp-block-button .wp-block-button__link[style*="background-color: #e51821"],
.inventory_wrapper .photo-modal-open,
.inventory_wrapper .wp-block-button:last-child .wp-block-button__link {
    background: var(--dst-primary-red) !important;
    color: var(--dst-white) !important;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 5px) !important;
}

.inventory_wrapper .wp-block-button .wp-block-button__link[style*="background-color: #e51821"]:hover,
.inventory_wrapper .photo-modal-open:hover,
.inventory_wrapper .wp-block-button:last-child .wp-block-button__link:hover {
    background: var(--dst-dark-red) !important;
}

/* Custom quote bar - compact */
.inventory_wrapper .inventory_custom_button1 {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: transparent !important;
    padding: 10px 0 !important;
    border-radius: 0 !important;
    margin-top: 15px !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    border-top: 1px solid var(--dst-concrete) !important;
}

.inventory_wrapper .inventory_custom_button {
    background: transparent !important;
    border: none !important;
    color: var(--dst-white) !important;
    font-family: var(--dst-font-body) !important;
    font-size: 16px !important;
    cursor: default !important;
}

.inventory_wrapper .custom_button_callus {
    color: var(--dst-primary-red) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.inventory_wrapper .custom_button_callus:hover {
    text-decoration: underline !important;
}

.inventory_wrapper .wp-block-button__link1,
.inventory_wrapper .getModalBtnClass {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: var(--dst-primary-red) !important;
    color: var(--dst-white) !important;
    padding: 12px 20px !important;
    font-family: var(--dst-font-heading) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: var(--dst-transition) !important;
}

.inventory_wrapper .wp-block-button__link1:hover,
.inventory_wrapper .getModalBtnClass:hover {
    background: var(--dst-dark-red) !important;
}

/* ==========================================================================
   DealSector row-view desktop/mobile content toggle — mobile-first
   (slice 21: ID-toggle retired). The old #content-mobile/#content-desktop
   reused, non-unique IDs (inc/dealsector-templates.php) became
   .k4-vis-mobile/.k4-vis-desktop classes in slice 21, and the GENERATOR
   (inc/dealsector-templates.php) now emits .dst-vis-mobile/.dst-vis-desktop
   as of the ADR-0003 namespace migration (3.0.0). No plugin JS ever
   targeted the old IDs (checked the DealSector v5.4.0 plugin source — only
   an unrelated `img#content-desktop` rule in its own CSS, a different
   element), so the IDs were safe to drop entirely rather than keep for a
   JS dependency. Markup changed → Recreate Templates must be run (see
   CONTEXT.md) before either rename reaches live template pages.

   Mobile shows the stacked price/actions content; min-width:992 flips to
   the desktop two-column layout. The compound `.dst-vis-X.<component-class>`
   selectors reproduce the old ID+class specificity trick with classes
   (2 classes vs 1) instead of relying on cascade order, so they don't
   depend on file position beating .wp-block-buttons's unconditional
   `display:flex !important` above.

   TEMPORARY: every rule below also carries the old #content-mobile/
   #content-desktop ID selector AND the old .k4-vis-mobile/.k4-vis-desktop
   class as further OR'd targets (ADR-0003 DB-markup exception). The
   DB-stored template page (read by ID, not by this file) still has
   whichever markup generation last wrote it — old ID, old .k4-* class, or
   new .dst-* class — until "Recreate Templates" is run — without this
   fallback the toggle would silently break on the live/deployed site (both
   mobile and desktop content showing at once) for however long that gap
   lasts. Safe to delete the #content-* ID selectors once Recreate Templates
   is confirmed run and the new .dst-vis-* markup is live; the .k4-vis-*
   selectors follow the same removal path afterward (existing follow-up
   ticket, see docs/wiki/theme/dealsector-templates.md). */
.inventory_wrapper .dst-vis-mobile,
.inventory_wrapper .k4-vis-mobile,
.inventory_wrapper #content-mobile {
    display: block !important;
}

.inventory_wrapper .dst-vis-desktop,
.inventory_wrapper .k4-vis-desktop,
.inventory_wrapper #content-desktop {
    display: none !important;
}

/* .ds-action-buttons (desktop 5-button group) also carries .wp-block-buttons
   — beat that unconditional flex rule's specificity deterministically. */
.inventory_wrapper .dst-vis-desktop.wp-block-buttons,
.inventory_wrapper .k4-vis-desktop.wp-block-buttons,
.inventory_wrapper #content-desktop.wp-block-buttons {
    display: none !important;
}

/* .ds-mobile-actions (mobile 3-button group) needs flex for its own gap
   (transax-override.css .ds-mobile-actions) — the bare .dst-vis-mobile
   "show" rule above forces display:block, which would win on specificity
   and kill the flex context. Re-assert flex at matching (compound) specificity. */
.inventory_wrapper .dst-vis-mobile.ds-mobile-actions,
.inventory_wrapper .k4-vis-mobile.ds-mobile-actions,
.inventory_wrapper #content-mobile.ds-mobile-actions {
    display: flex !important;
}

@media (min-width: 992px) {
    .inventory_wrapper .dst-vis-mobile,
    .inventory_wrapper .k4-vis-mobile,
    .inventory_wrapper #content-mobile {
        display: none !important;
    }

    .inventory_wrapper .dst-vis-desktop,
    .inventory_wrapper .k4-vis-desktop,
    .inventory_wrapper #content-desktop {
        display: block !important;
    }

    .inventory_wrapper .dst-vis-desktop.wp-block-buttons,
    .inventory_wrapper .k4-vis-desktop.wp-block-buttons,
    .inventory_wrapper #content-desktop.wp-block-buttons {
        display: flex !important;
    }

    /* Revert the mobile flex re-assertion — without this its higher
       (compound-class) specificity would keep winning over the plain
       .dst-vis-mobile hide rule just above and the 3-button group would
       stay visible on desktop. */
    .inventory_wrapper .dst-vis-mobile.ds-mobile-actions,
    .inventory_wrapper .k4-vis-mobile.ds-mobile-actions,
    .inventory_wrapper #content-mobile.ds-mobile-actions {
        display: none !important;
    }
}

/* .wp-block-columns / .wp-block-column flex-direction and basis reflow
   (both the mobile column-stack and the ≤991 wrap tier) now live entirely
   in responsive.css — consolidated there since that file already owned
   the ≤991 wrap/basis-percentage rules this pairs with; see responsive.css
   BASE / min-width:768 / min-width:992 tiers. */

/* Touch-friendly tap targets */
.inventory_wrapper a,
.inventory_wrapper button {
    min-height: 44px !important;
    min-width: 44px !important;
}

/* Prevent text overflow on mobile */
.inventory_wrapper * {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Smooth scrolling for filter panels */
.inventory-sidebar {
    -webkit-overflow-scrolling: touch;
}

/* DealSector Filter Styling - Compact */
.filter-content .dealsector-filter,
.filter-content form {
    padding: 10px !important;
}

/* .filter-content > div's 10px padding is a min-width:992 (desktop) value
   — mobile's 0 is the base now (was the max-width:991 override below);
   restored at min-width:992 alongside the box-chrome revert. Split off
   from the shared selector above so div doesn't need its own media rule
   pair; the other two (.dealsector-filter/form) aren't touched by the
   mobile-shell-strip below and stay unconditional. */
.filter-content > div {
    padding: 0 !important;
}

.filter-content input[type="text"],
.filter-content select {
    padding: 8px 12px !important;
    font-size: 13px !important;
    margin-bottom: 8px !important;
}

.filter-content button {
    padding: 8px 15px !important;
    font-size: 13px !important;
    margin-bottom: 8px !important;
}

.filter-content label {
    font-size: 13px !important;
    padding: 5px 0 !important;
}

.filter-content h3,
.filter-content .filter-heading {
    padding: 10px 15px !important;
    margin: 0 !important;
    font-size: 14px !important;
}

/* Filter accordion panels */
.filter-content [class*="accordion"],
.filter-content [class*="collapse"] {
    padding: 8px 10px !important;
}

/* Filter accordion mobile shell (mobile-first, slice 21 — was a
   max-width:991 override of main.css's unconditional `.filter-content`
   steel/border/radius box; now the base/mobile state, restored at
   min-width:992 below alongside the sticky-scroll pair it was originally
   paired with). The old `max-height: none !important` reset is dropped:
   nothing sets max-height on `.filter-content` below 992px (main.css's
   unconditional rule never touches it — only the min-width:992 rule two
   blocks down does), so "no max-height" is already the natural base state
   and needed no explicit reset once the min-width:992 rule stopped
   colliding with a wider max-width:991 match. Preserves the exact
   original outcome (verified: no computed max-height at any width <992).

   Slice 20: empty dark rounded box between the intro text and the
   Can't-Find-What-You-Need box. .filter-content's own box (main.css:
   steel background, 1px border, 8px radius) is still generated even
   though its real content — the DealSector filter form rendered by
   dst_get_filter_form_template() — lives inside .dst-filter-container
   (or legacy .k4-filter-container — the generator's own inline <style>
   travels with the DB page content, no theme-CSS dual selector needed),
   a position:fixed off-canvas drawer (left:-370px, opened by the
   Filters toggle button). position:fixed escapes the normal-flow
   height of every ancestor, so .filter-content collapses to ~20px of
   its own chrome with nothing visible inside it. The fixed drawer is
   unaffected by any of this (fixed elements aren't clipped or resized
   by an ancestor's background/border) — only the decorative shell is
   stripped here, never display:none (that would hide the drawer too,
   since it's a DOM descendant of .filter-content). */
.filter-content {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

/* ==========================================================================
   Slice 16: Sticky filter — independent internal scroll (desktop sidebar only)

   .inventory-sidebar carries `position: sticky; top: 100px;` (main.css) —
   that stickiness/offset is NOT changed here. The 300px/1fr sidebar grid
   only activates at min-width: 992px; below that, responsive.css stacks
   `.inventory-sidebar` to `position: static` and the plugin's own mobile
   filter popup (dsviewMobileFilter/dsCloseMobileFilter) takes over, so
   these rules are scoped to match and must never leak into that flow.

   `.filter-content` (the DealSector accordion container; overflow:hidden
   set in main.css) is bounded to the remaining viewport below the sticky
   offset so every accordion (Filter Inventory / Location / Category /
   Price_range, etc.) stays reachable by scrolling inside the pinned panel
   instead of being clipped off-screen. This tier also restores the
   steel/border/radius box chrome and the > div padding (10px, above)
   that the mobile shell-strip above removes — both are slice-21 pairs
   with the mobile rules above, never edit one without the other.
   ========================================================================== */
@media (min-width: 992px) {
    .filter-content {
        background: var(--dst-steel) !important;
        border: 1px solid var(--dst-concrete) !important;
        border-radius: 8px !important;
        max-height: calc(100vh - 100px - 40px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: var(--dst-steel) var(--dst-charcoal);
    }

    .filter-content > div {
        padding: 10px !important;
    }

    .filter-content::-webkit-scrollbar {
        width: 8px;
    }

    .filter-content::-webkit-scrollbar-track {
        background: var(--dst-charcoal);
    }

    .filter-content::-webkit-scrollbar-thumb {
        background: var(--dst-steel);
        border-radius: 4px;
    }

    .filter-content::-webkit-scrollbar-thumb:hover {
        background: var(--dst-primary-red);
    }
}

/* Old card styles - keep for backwards compatibility. Pre-existing legacy
   block (predates ADR-0003): styles an even older inner-markup scheme
   (.k4-inventory-title/-meta/.k4-stock-number/.k4-inventory-actions/etc.)
   that the current generator (inc/dealsector-templates.php) no longer
   emits — today's grid/card children are .k4-card-title/.k4-card-body/etc.
   (transax-override.css). Left entirely in its original .k4- form,
   untouched by the namespace migration: nothing old carries a .dst- class
   to match, and nothing the current or future-regenerated generator emits
   uses this inner scheme either, so renaming it would rename dead
   selectors for no behavioral benefit. The one live exception is the outer
   .k4-inventory-card wrapper, which the CURRENT generator still emits too
   — kept dual with .dst-inventory-card below. */
.dst-inventory-card,
.k4-inventory-card {
    background: var(--dst-steel) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid var(--dst-concrete) !important;
    transition: var(--dst-transition) !important;
    display: flex !important;
    flex-direction: column !important;
}

.dst-inventory-card:hover,
.k4-inventory-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--dst-shadow-heavy) !important;
    border-color: var(--dst-primary-red) !important;
}

.k4-inventory-card-link {
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
}

.k4-inventory-title {
    font-family: var(--dst-font-heading) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--dst-white) !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
}

.k4-inventory-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.k4-inventory-title a:hover {
    color: var(--dst-primary-red) !important;
}

.k4-inventory-meta {
    margin-bottom: 12px !important;
}

.k4-stock-number {
    color: #888 !important;
    font-size: 13px !important;
}

.k4-inventory-pricing {
    margin-bottom: 15px !important;
}

.k4-price-label {
    color: #888 !important;
    font-size: 12px !important;
    display: block !important;
}

.k4-price-current {
    color: #888 !important;
    font-size: 14px !important;
    text-decoration: line-through !important;
}

.dst-price-sale,
.k4-price-sale,
.dssalePrice {
    color: var(--dst-primary-red) !important;
    font-family: var(--dst-font-heading) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    display: block !important;
}

.k4-inventory-description {
    color: #aaa !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.k4-inventory-actions {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.k4-inventory-actions .dst-btn,
.k4-inventory-actions .k4-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 20px !important;
    font-family: var(--dst-font-heading) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    text-align: center !important;
    border: none !important;
    cursor: pointer !important;
    transition: var(--dst-transition) !important;
    display: inline-flex !important;
    align-items: center !important;
}

.k4-inventory-actions .dst-btn-primary,
.k4-inventory-actions .k4-btn-primary {
    background: var(--dst-primary-red) !important;
    color: var(--dst-white) !important;
    clip-path: var(--dst-clip-angle) !important;
}

.k4-inventory-actions .dst-btn-primary:hover,
.k4-inventory-actions .k4-btn-primary:hover {
    background: var(--dst-dark-red) !important;
}

.k4-inventory-actions .dst-btn-secondary,
.k4-inventory-actions .k4-btn-secondary {
    background: var(--dst-concrete) !important;
    color: var(--dst-white) !important;
    clip-path: var(--dst-clip-subtle-flip) !important;
}

.k4-inventory-actions .dst-btn-secondary:hover,
.k4-inventory-actions .k4-btn-secondary:hover {
    background: #555 !important;
}

/* Pagination */
.pagination_wrapper {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: center !important;
    padding: 30px 0 !important;
    /* flex collapses whitespace between the plugin's text nodes and spans
       ("Showing1to10of41Records") — gap restores word spacing */
    gap: 0.35em !important;
    flex-wrap: wrap !important;
}

/* Note: Full-width listing responsive styles are in the main inventory section above */

/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */

.service-card {
    background: var(--dst-charcoal);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--dst-transition);
    border: 1px solid var(--dst-concrete);
}

.service-card:hover {
    border-color: var(--dst-primary-red);
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--dst-primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--dst-white);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.service-card p {
    color: #ccc;
    line-height: 1.6;
}

/* ==========================================================================
   TEAM CARDS
   ========================================================================== */

.team-card {
    text-align: center;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--dst-primary-red);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.team-role {
    color: var(--dst-primary-red);
    font-family: var(--dst-font-heading);
    text-transform: uppercase;
    font-size: 14px;
}

/* ==========================================================================
   CTA BOXES
   ========================================================================== */

.cta-box {
    background: var(--dst-charcoal);
    padding: 30px;
    border-radius: 8px;
    border: 2px solid var(--dst-primary-red);
    margin-bottom: 30px;
}

.cta-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.cta-box p {
    color: #ccc;
    margin-bottom: 20px;
}

.hours-box {
    background: var(--dst-steel);
    padding: 30px;
    border-radius: 8px;
}

.hours-box h4 {
    color: var(--dst-primary-red);
    margin-bottom: 20px;
}

/* ==========================================================================
   CONTACT INFO ITEMS
   ========================================================================== */

.contact-info-box {
    background: var(--dst-charcoal);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.contact-info-box h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

.contact-info-box h3 span {
    color: var(--dst-primary-red);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.info-item i {
    color: var(--dst-primary-red);
    font-size: 20px;
    width: 25px;
    margin-top: 3px;
}

.info-item a {
    color: var(--dst-white);
}

.info-item a:hover {
    color: var(--dst-primary-red);
}

/* ==========================================================================
   FEATURE LISTS
   ========================================================================== */

.financing-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--dst-steel);
    padding: 15px 25px;
    border-radius: 8px;
    font-family: var(--dst-font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-item i {
    color: var(--dst-primary-red);
    font-size: 20px;
}

/* ==========================================================================
   FINANCING FORM BOX
   ========================================================================== */

.financing-form-box {
    background: var(--dst-steel);
    padding: 40px;
    border-radius: 8px;
    border-top: 5px solid var(--dst-primary-red);
}

.financing-form-box h3 {
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
}

/* ==========================================================================
   LIGHTSLIDER / DEALSECTOR SLIDER OVERRIDES
   ========================================================================== */

/* LightSlider basic overrides */
.lSSlideOuter {
    overflow: visible !important;
}

.lSSlideWrapper {
    overflow: visible !important;
}

/* DealSector Custom Slider Navigation */
.featuredSlideControls,
.slideControls_0 {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    pointer-events: none !important;
    transform: translateY(-50%) !important;
}

.slidePrev,
.slideNext {
    position: absolute !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    background: var(--dst-steel) !important;
    border: 2px solid var(--dst-primary-red) !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 18px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: background-color 0.3s ease !important;
    text-decoration: none !important;
}

.slidePrev {
    left: 10px !important;
}

.slideNext {
    right: 10px !important;
}

.slidePrev:hover,
.slideNext:hover {
    background-color: var(--dst-primary-red) !important;
}

/* LightSlider default nav (fallback) */
.lSAction > a {
    width: 50px !important;
    height: 50px !important;
    background: var(--dst-steel) !important;
    border: 2px solid var(--dst-primary-red) !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    margin-top: -25px !important;
}

.lSAction > .lSPrev {
    left: -60px !important;
    background: var(--dst-steel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E") center/24px no-repeat !important;
}

.lSAction > .lSNext {
    right: -60px !important;
    background: var(--dst-steel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") center/24px no-repeat !important;
}

.lSAction > a:hover {
    background-color: var(--dst-primary-red) !important;
}

.lSPager {
    margin-top: 30px !important;
}

.lSPager li a {
    background: var(--dst-steel) !important;
    border: 2px solid var(--dst-concrete) !important;
}

.lSPager li.active a,
.lSPager li:hover a {
    background: var(--dst-primary-red) !important;
    border-color: var(--dst-primary-red) !important;
}

/* ==========================================================================
   INVENTORY SLIDER
   ========================================================================== */

.inventory-slider {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inventory-slider li {
    padding: 0 12px;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    color: #888;
}

.breadcrumbs a {
    color: #ccc;
}

.breadcrumbs a:hover {
    color: var(--dst-primary-red);
}

.breadcrumbs .separator {
    margin: 0 10px;
    color: #666;
}

.breadcrumbs .separator i {
    font-size: 10px;
}

.breadcrumbs .current {
    color: var(--dst-primary-red);
}

/* ==========================================================================
   POST NAVIGATION
   ========================================================================== */

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--dst-steel);
}

.post-navigation a {
    display: block;
    padding: 20px;
    background: var(--dst-steel);
    border-radius: 8px;
    flex: 1;
    transition: var(--dst-transition);
}

.post-navigation a:hover {
    background: var(--dst-concrete);
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-family: var(--dst-font-heading);
    font-size: 16px;
    color: var(--dst-white);
}

.nav-next {
    text-align: right;
}

/* ==========================================================================
   POST META
   ========================================================================== */

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.post-meta i {
    margin-right: 5px;
    color: var(--dst-primary-red);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background: var(--dst-steel);
    color: var(--dst-white);
    font-family: var(--dst-font-heading);
    text-decoration: none;
    transition: var(--dst-transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--dst-primary-red);
}

/* ==========================================================================
   ALERTS & MESSAGES
   ========================================================================== */

.alert {
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.alert-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid #ff9800;
    color: #ff9800;
}

.alert-info {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid #2196f3;
    color: #2196f3;
}

/* ==========================================================================
   DEALSECTOR INVENTORY CARDS
   TEMPORARY (ADR-0003): the wrapper/button classes below are still emitted
   by inc/dealsector-templates.php today, so they carry a dual .dst-*/.k4-*
   selector until Recreate Templates regenerates DB pages. The inner classes
   (.k4-inventory-card-link/-image/-content, .k4-inventory-badge,
   .k4-inventory-title/-meta/-pricing/-description/-actions, .k4-stock-number,
   .k4-price-label/-current) target the older inner scheme the current
   generator no longer emits (see the "Old card styles" comment above) and
   are left in their original .k4- form untouched — no live or
   future-regenerated markup will ever pair them with a .dst- class.
   ========================================================================== */

.dst-inventory-card,
.k4-inventory-card {
    background: var(--dst-steel);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--dst-transition);
    border: 1px solid var(--dst-concrete);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dst-inventory-card:hover,
.k4-inventory-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--dst-shadow-heavy);
    border-color: var(--dst-primary-red);
}

.k4-inventory-card-link {
    display: block;
    text-decoration: none;
}

.k4-inventory-card-image {
    position: relative;
    overflow: hidden;
    background: #222;
    aspect-ratio: 4/3;
}

.k4-inventory-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dst-inventory-card:hover .k4-inventory-card-image img,
.k4-inventory-card:hover .k4-inventory-card-image img {
    transform: scale(1.05);
}

.k4-inventory-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--dst-primary-red);
    color: var(--dst-white);
    padding: 5px 12px;
    font-family: var(--dst-font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: var(--dst-clip-subtle);
}

.k4-inventory-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.k4-inventory-title {
    font-family: var(--dst-font-heading);
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.k4-inventory-title a {
    color: var(--dst-white);
    text-decoration: none;
}

.k4-inventory-title a:hover {
    color: var(--dst-primary-red);
}

.k4-inventory-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.k4-stock-number {
    font-family: var(--dst-font-heading);
    letter-spacing: 1px;
}

.k4-inventory-pricing {
    margin-bottom: 15px;
}

.k4-price-label {
    color: #888;
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
}

.k4-price-current {
    font-family: var(--dst-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--dst-white);
}

.dst-price-sale,
.k4-price-sale {
    color: var(--dst-primary-red);
    font-family: var(--dst-font-heading);
}

.k4-inventory-description {
    color: #aaa;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.k4-inventory-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.k4-inventory-actions .dst-btn,
.k4-inventory-actions .k4-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 12px 15px;
    font-size: 12px;
}

/* Button styles for DealSector template-page markup */
.dst-btn,
.k4-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--dst-font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--dst-transition);
    clip-path: var(--dst-clip-subtle);
}

.dst-btn-primary,
.k4-btn-primary {
    background: var(--dst-primary-red);
    color: var(--dst-white);
}

.dst-btn-primary:hover,
.k4-btn-primary:hover {
    background: var(--dst-dark-red);
    transform: translateY(-2px);
}

.dst-btn-secondary,
.k4-btn-secondary {
    background: var(--dst-concrete);
    color: var(--dst-white);
    clip-path: var(--dst-clip-subtle-flip);
}

.dst-btn-secondary:hover,
.k4-btn-secondary:hover {
    background: var(--dst-charcoal);
}

.dst-btn-outline,
.k4-btn-outline {
    background: transparent;
    color: var(--dst-white);
    border: 2px solid var(--dst-concrete);
}

.dst-btn-outline:hover,
.k4-btn-outline:hover {
    background: var(--dst-concrete);
    border-color: var(--dst-concrete);
}

.dst-btn-sm,
.k4-btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.dst-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.dst-btn-block,
.k4-btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   FEATURED INVENTORY (Slider Items)
   TEMPORARY dual .dst-*/.k4-* selectors (ADR-0003) — inc/dealsector-
   templates.php's featured-inventory generator still emits the .k4- form
   until Recreate Templates regenerates DB pages; drop the .k4-* half once
   that's confirmed (see docs/wiki/theme/dealsector-templates.md).
   ========================================================================== */

.dst-featured-item,
.k4-featured-item {
    padding: 0 12px;
    height: 100%;
}

.dst-featured-link,
.k4-featured-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--dst-steel);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--dst-concrete);
}

.dst-featured-link:hover,
.k4-featured-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--dst-primary-red);
}

.dst-featured-image,
.k4-featured-image {
    position: relative;
    overflow: hidden;
    background: #222;
    flex-shrink: 0;
}

.dst-featured-image img,
.k4-featured-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dst-featured-link:hover .dst-featured-image img,
.k4-featured-link:hover .k4-featured-image img {
    transform: scale(1.05);
}

/* Sale tag for featured items. .k4-sale-tag itself is not a generator class
   today (left in its original .k4- form; see block comment above) but its
   .k4-featured-image ancestor is, so the ancestor half is dual. */
.dst-featured-image .k4-sale-tag,
.k4-featured-image .k4-sale-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--dst-primary-red);
    color: var(--dst-white);
    padding: 5px 12px;
    font-family: var(--dst-font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dst-featured-content,
.k4-featured-content {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dst-featured-title,
.k4-featured-title {
    font-family: var(--dst-font-heading);
    font-size: 15px;
    color: var(--dst-white);
    margin-bottom: 15px;
    line-height: 1.3;
    height: 40px;
    overflow: hidden;
}

.dst-featured-price,
.k4-featured-price {
    margin-bottom: 15px;
    min-height: 30px;
}

.dst-price-amount,
.k4-price-amount {
    font-family: var(--dst-font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--dst-primary-red);
}

/* Price fallback system: show sale price if available, otherwise default price */
.dst-price-sale:not(:empty) + .dst-price-default,
.k4-price-sale:not(:empty) + .k4-price-default {
    display: none;
}

.dst-price-sale:empty,
.k4-price-sale:empty {
    display: none;
}

.dst-price-default,
.k4-price-default {
    display: block;
}

/* Button styling for featured cards */
.dst-featured-content .dst-btn,
.k4-featured-content .k4-btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 14px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    border-radius: 0;
}

/* ==========================================================================
   RELATED INVENTORY
   TEMPORARY dual .dst-*/.k4-* selectors (ADR-0003) — see FEATURED INVENTORY
   block comment above; same regeneration dependency.
   ========================================================================== */

.dst-related-item,
.k4-related-item {
    background: var(--dst-steel);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--dst-transition);
}

.dst-related-item:hover,
.k4-related-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.dst-related-item a,
.k4-related-item a {
    display: block;
    text-decoration: none;
}

.dst-related-image,
.k4-related-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.dst-related-image img,
.k4-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dst-related-content,
.k4-related-content {
    padding: 15px;
}

.dst-related-title,
.k4-related-title {
    font-family: var(--dst-font-heading);
    font-size: 14px;
    color: var(--dst-white);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dst-related-price,
.k4-related-price {
    color: var(--dst-primary-red);
    font-family: var(--dst-font-heading);
    font-size: 16px;
    font-weight: 700;
}
