/* Frontend-Styles — wego-vti-shop-products */

/* =========================================================
   Box-Sizing-Isolation
   ========================================================= */
.wego-vti-shop-products-container,
.wego-vti-shop-products-container *,
.wego-vti-shop-products-container *::before,
.wego-vti-shop-products-container *::after {
    box-sizing: border-box;
}

/* =========================================================
   Container-Root
   ========================================================= */
.wego-vti-shop-products-container {
    position: relative;
    margin: 2rem 0;
    font-family: inherit;
    line-height: 1.5;
}

/* =========================================================
   Heading-Zeile: Titel + „Mehr anzeigen"-Link
   ========================================================= */
.wego-vti-shop-products__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wego-vti-shop-products__heading {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.wego-vti-shop-products__more-link {
    flex-shrink: 0;
    font-size: 0.875rem;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.wego-vti-shop-products__more-link:hover,
.wego-vti-shop-products__more-link:focus {
    text-decoration-thickness: 2px;
}

/* =========================================================
   Slider-Wrapper (positioniert Pfeile relativ)
   ========================================================= */
.wego-vti-shop-products__slider {
    position: relative;
}

/* =========================================================
   Viewport — horizontaler Scroll-Container mit Snap.
   Maus-Drag wird vom JS gehandelt (Pointer-Events), Touch und
   Trackpad nutzen den nativen Scroll. Scrollbar bleibt visuell
   versteckt, damit die Pfeile fuer Navigation reichen.
   ========================================================= */
.wego-vti-shop-products__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.wego-vti-shop-products__viewport::-webkit-scrollbar {
    display: none;
}

.wego-vti-shop-products__viewport[data-dragging] {
    cursor: grabbing;
    scroll-snap-type: none;
}

/* =========================================================
   Track — flex-Reihe der Karten
   ========================================================= */
.wego-vti-shop-products__track {
    display: flex;
    gap: 1rem;
}

/* =========================================================
   Produkt-Karte — Default 1 Karte (Mobile), Tablet 3, Desktop 5
   ========================================================= */
.wego-vti-shop-products-product {
    flex: 0 0 100%;                  /* Mobile: 1 Karte */
    min-width: 0;
    scroll-snap-align: start;
}

@media (min-width: 640px) {
    .wego-vti-shop-products-product {
        flex-basis: calc(33.333% - 0.667rem); /* Tablet: 3 Karten */
    }
}

@media (min-width: 1024px) {
    .wego-vti-shop-products-product {
        flex-basis: calc(20% - 0.8rem); /* Desktop: 5 Karten */
    }
}

/* Karte als Link-Wrapper.
   Stilanker: Shop-Original auf zusammenbauen.de (Computed-Style-Sampling,
   2026-06-01) — 1px-Solid-Border #e0e0e0, kein Default-Schatten, kompakter
   Radius 4px. Hover-Schatten ist eigene UX-Zugabe.

   user-drag/user-select: none verhindert, dass der Browser sein natives
   Drag-Geisterbild fuer den Anchor anwirft (sobald das passiert, kommt
   unser Pointer-Drag nicht mehr durch). */
.wego-vti-shop-products-product__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: inherit;
    text-decoration: none;
    background-color: #ffffff;
    transition: box-shadow 0.2s ease;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.wego-vti-shop-products-product__link:hover,
.wego-vti-shop-products-product__link:focus-visible {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    text-decoration: none;
    outline-offset: 2px;
}

/* =========================================================
   Produktbild — Shop platziert das Bild mit grosszuegigem Vertikal-
   Abstand und ohne abgesetzten Hintergrund.
   ========================================================= */
.wego-vti-shop-products-product__image-wrap {
    margin: 1.25rem 0 1.25rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wego-vti-shop-products-product__image {
    display: block;
    width: 100%;
    max-height: 8.5rem;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

/* =========================================================
   Produkt-Body
   ========================================================= */
.wego-vti-shop-products-product__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Category: dezent, Mixed-Case (Shop liefert "Brandschutz", nicht "BRANDSCHUTZ"). */
.wego-vti-shop-products-product__category {
    font-size: 0.75rem;
    font-weight: 400;
    color: #666666;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

/* Title: Daten kommen bereits in GROSSSCHRIFT aus der Quelle, daher kein
   text-transform. Semi-Bold (600) im Shop. */
.wego-vti-shop-products-product__title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: #444444;
    margin-bottom: 0.5rem;
    /* Clamp auf 3 Zeilen, damit Karten in der Hoehe konsistent bleiben */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wego-vti-shop-products-product__meta {
    font-size: 0.75rem;
    color: #858585;
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

.wego-vti-shop-products-product__meta-row {
    display: block;
}

/* Push-Spacer, damit Preiszeile immer unten landet */
.wego-vti-shop-products-product__spacer {
    flex: 1;
}

/* =========================================================
   Preiszeile — im Shop rechtsbuendig, Preis ueber Preis-Typ.
   Kein horizontaler Trenner zwischen Meta und Pricing — der Shop hat
   dort ebenfalls keine HR.
   ========================================================= */
.wego-vti-shop-products-product__pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 1.25rem;
}

.wego-vti-shop-products-product__price {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: #333333;
}

.wego-vti-shop-products-product__price-type {
    font-size: 0.75rem;
    font-weight: 400;
    color: #686868;
    line-height: 1.4;
}

/* =========================================================
   Slider-Pfeile — Stilanker: Shop-Original
   (40x40, eckig mit Radius 2px, hellgrau-lila Hintergrund,
   diffuser horizontaler Schatten nach aussen).
   Alle Selektoren explizit unter .wego-vti-shop-products-container
   eingehaengt, damit Elementor's Site-Kit-Style
   `.elementor-kit-X button { ... }` (Spezifitaet 0,1,1) nicht
   gewinnt — unser Selektor hat dadurch 0,2,0 und sticht.
   ========================================================= */
.wego-vti-shop-products-container .wego-vti-shop-products__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 2px;
    border: none;
    background-color: #f3f3fa;
    box-shadow: 2px 0 20px rgba(12, 12, 12, 0.15);
    color: #1b2941;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.wego-vti-shop-products-container .wego-vti-shop-products__arrow:hover {
    background-color: #ecedf5;
    box-shadow: 2px 0 24px rgba(12, 12, 12, 0.22);
}

.wego-vti-shop-products-container .wego-vti-shop-products__arrow:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.wego-vti-shop-products-container .wego-vti-shop-products__arrow--prev {
    left: 4px;
}

.wego-vti-shop-products-container .wego-vti-shop-products__arrow--next {
    right: 4px;
}

.wego-vti-shop-products-container .wego-vti-shop-products__arrow[disabled],
.wego-vti-shop-products-container .wego-vti-shop-products__arrow[aria-disabled="true"] {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.wego-vti-shop-products-container .wego-vti-shop-products__arrow svg {
    display: block;
    width: 0.85rem;
    height: 0.85rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Pfeile auf kleinen Bildschirmen ausblenden — Touch-Swipe reicht */
@media (max-width: 639px) {
    .wego-vti-shop-products-container .wego-vti-shop-products__arrow {
        display: none;
    }
}

/* =========================================================
   Reduced Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .wego-vti-shop-products-product__link {
        transition: none;
    }
}
