/* VR Tuning Power Produkte - marketing section (replaces WooCommerce loop on tuning-produkte) */

.vrt-power-products {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.75), rgba(245,245,240,0.75)),
        repeating-linear-gradient(45deg, #efefed 0 2px, #f7f7f4 2px 4px);
    padding: 60px 0 70px;
    overflow: hidden;
    position: relative;
}

.vrt-power-products__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.vrt-power-products__header {
    text-align: center;
    margin-bottom: 40px;
}

.vrt-power-products__flag {
    display: block;
    margin: 0 auto 14px;
    width: 78px;
    height: auto;
}

.vrt-power-products__title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #888;
    text-transform: uppercase;
    margin: 0 0 18px;
}

.vrt-power-products__subhead {
    font-size: 38px;
    font-weight: 400;
    color: #c0392b;
    margin: 0;
    line-height: 1.2;
}

.vrt-power-products__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
    position: relative;
}

/* Sports-car silhouette on the very left, bleeding off the screen */
.vrt-power-products__grid::before {
    content: "";
    position: absolute;
    left: -260px;
    top: 50%;
    transform: translateY(-50%);
    width: 560px;
    height: 320px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 320'><path fill='rgba(120,120,120,0.12)' d='M20,220 L60,170 L120,140 L180,130 L260,120 L340,115 L420,120 L490,135 L540,160 L560,200 L555,240 L530,250 L470,255 L400,258 L320,260 L240,258 L160,250 L90,240 L40,230 Z'/><circle cx='170' cy='260' r='40' fill='rgba(100,100,100,0.2)'/><circle cx='430' cy='260' r='40' fill='rgba(100,100,100,0.2)'/></svg>") center/contain no-repeat;
    z-index: 0;
    pointer-events: none;
}

.vrt-power-products__col-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.vrt-power-products__item h4 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #333;
    text-transform: uppercase;
    margin: 0 0 15px;
    border-bottom: none;
}

.vrt-power-products__item p {
    font-size: 14px;
    line-height: 1.65;
    color: #555;
    margin: 0;
}

.vrt-power-products__col-device {
    position: relative;
    z-index: 1;
    text-align: right;
}

.vrt-power-products__col-device img {
    max-width: 100%;
    height: auto;
    transform: rotate(-4deg);
    filter: drop-shadow(8px 16px 22px rgba(0,0,0,0.18));
}

@media (max-width: 991px) {
    .vrt-power-products__grid {
        grid-template-columns: 1fr;
    }

    .vrt-power-products__grid::before {
        display: none;
    }

    .vrt-power-products__col-device {
        text-align: center;
    }

    .vrt-power-products__col-device img {
        max-width: 300px;
    }

    .vrt-power-products__subhead {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .vrt-power-products__col-text {
        grid-template-columns: 1fr;
    }

    .vrt-power-products__title {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .vrt-power-products__subhead {
        font-size: 22px;
    }
}

/* ─── Product overview: 2x2 cards grid ─────────────────────────────── */
.vrt-product-cards {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}
.vrt-product-cards--2x2 {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 720px) {
    .vrt-product-cards--2x2 { grid-template-columns: 1fr; }
}

.vrt-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.vrt-product-card:hover,
.vrt-product-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    border-color: #c0392b;
    outline: none;
}
.vrt-product-card__media {
    background: #f7f7f7;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.vrt-product-card__media img {
    max-width: 60%;
    max-height: 100%;
    object-fit: contain;
}
.vrt-product-card__body {
    padding: 20px 24px 12px;
    flex: 1;
}
.vrt-product-card__category {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c0392b;
    margin-bottom: 8px;
}
.vrt-product-card__title {
    margin: 0 0 8px;
    font-size: 22px;
    color: #1d2327;
}
.vrt-product-card__summary {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #50575e;
}
.vrt-product-card__bullets {
    list-style: disc;
    padding-left: 22px;
    margin: 8px 0 12px;
    color: #1d2327;
    font-size: 13px;
}
.vrt-product-card__bullets li { margin-bottom: 4px; }
.vrt-product-card__price {
    margin: 8px 0 0;
    font-weight: 600;
    color: #1d2327;
}
.vrt-product-card__cta {
    padding: 16px 24px 20px;
    border-top: 1px solid #f0f0f1;
    background: #fafafa;
    text-align: right;
}

/* Generic button used inside cards / landings */
.vrt-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    cursor: pointer;
    border: 1px solid transparent;
}
/* Specificity bump (a.vrt-btn--primary) + !important to beat the theme's
   `.scheme_default a { color: #1e1e1e }` rule that wins source-order
   tie-breaks against plain `.vrt-btn--primary`. */
a.vrt-btn--primary,
.vrt-btn--primary {
    background: #c0392b;
    color: #fff !important;
}
a.vrt-btn--primary:hover,
a.vrt-btn--primary:focus,
.vrt-btn--primary:hover,
.vrt-btn--primary:focus {
    background: #a83227;
    color: #fff !important;
}
a.vrt-btn--ghost,
.vrt-btn--ghost {
    background: transparent;
    border-color: #c0392b;
    color: #c0392b !important;
}
a.vrt-btn--ghost:hover,
a.vrt-btn--ghost:focus,
.vrt-btn--ghost:hover,
.vrt-btn--ghost:focus {
    background: #c0392b;
    color: #fff !important;
}

/* ─── Landing page (per product line) ──────────────────────────────── */
.vrt-product-landing {
    max-width: 1100px;
    margin: 32px auto 64px;
}
.vrt-product-landing__hero {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 40px;
}
@media (max-width: 720px) {
    .vrt-product-landing__hero {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }
}
.vrt-product-landing__media {
    background: #f7f7f7;
    border-radius: 6px;
    padding: 32px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vrt-product-landing__media img {
    max-width: 70%;
    max-height: 100%;
    object-fit: contain;
}
/* Widget-Einstellung „Bildposition: rechts“ (Elementor) */
.vrt-product-landing--media-right .vrt-product-landing__hero {
    grid-template-columns: 1.4fr 1fr;
}
.vrt-product-landing--media-right .vrt-product-landing__media {
    order: 2;
}
.vrt-product-landing__category {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #c0392b;
    margin-bottom: 12px;
}
.vrt-product-landing__title {
    margin: 0 0 12px;
    font-size: 36px;
    color: #1d2327;
}
.vrt-product-landing__summary {
    margin: 0 0 16px;
    color: #50575e;
    line-height: 1.55;
}
.vrt-product-landing__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.vrt-product-landing__bullets li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: #1d2327;
}
.vrt-product-landing__bullets li::before {
    content: "✓";
    color: #00a32a;
    font-weight: bold;
    position: absolute;
    left: 0;
}
.vrt-product-landing__price {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}
.vrt-product-landing__body {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 40px;
}
.vrt-product-landing__body h3,
.vrt-product-landing__body h4 {
    color: #1d2327;
}
.vrt-product-landing__body ul {
    padding-left: 24px;
}

/* ─── Embedded vehicle finder section ──────────────────────────────── */
.vrt-vehicle-finder {
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px 32px;
    margin-top: 32px;
    text-align: center;
}
.vrt-vehicle-finder__title {
    margin: 0 0 12px;
    color: #1d2327;
}
.vrt-vehicle-finder__intro {
    margin: 0 0 24px;
    color: #50575e;
}
.vrt-vehicle-finder .vrt-vehicle-selector {
    text-align: left;
}

/* ─── Hardware module variants — main /tuning-produkte/ overview ─────── */
.vrt-module-grids {
    padding: 32px 16px 16px;
    max-width: 1200px;
    margin: 0 auto;
}
.vrt-module-grids__intro {
    text-align: center;
    max-width: 880px;
    margin: 0 auto 48px;
}
.vrt-module-grids__h1 {
    font-size: 32px;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 12px;
    font-weight: 700;
}
.vrt-module-grids__h2 {
    font-size: 18px;
    line-height: 1.4;
    color: #c0212d;
    margin: 0 0 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.vrt-module-grids__intro p {
    color: #50575e;
    line-height: 1.65;
    font-size: 16px;
    margin: 0;
}

.vrt-module-section {
    margin-bottom: 48px;
}
.vrt-module-section__title {
    font-size: 20px;
    color: #1d2327;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c0212d;
    display: inline-block;
    font-weight: 700;
}
.vrt-module-section__intro {
    margin: 4px 0 20px;
    color: #50575e;
    font-size: 14px;
}
.vrt-module-cards {
    display: grid;
    gap: 18px;
}
.vrt-module-cards[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.vrt-module-cards[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.vrt-module-cards[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.vrt-module-cards[data-cols="5"] { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1024px) {
    .vrt-module-cards[data-cols="4"],
    .vrt-module-cards[data-cols="5"] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    .vrt-module-cards[data-cols="2"],
    .vrt-module-cards[data-cols="3"],
    .vrt-module-cards[data-cols="4"],
    .vrt-module-cards[data-cols="5"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .vrt-module-cards[data-cols="2"],
    .vrt-module-cards[data-cols="3"],
    .vrt-module-cards[data-cols="4"],
    .vrt-module-cards[data-cols="5"] { grid-template-columns: 1fr; }
}

.vrt-module-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.vrt-module-card:hover,
.vrt-module-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    border-color: #c0392b;
    outline: none;
}
.vrt-module-card__media {
    background: #f7f7f7;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.vrt-module-card__media img {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
}
.vrt-module-card__name {
    padding: 12px 8px 4px;
    margin: 0;
    font-size: 15px;
    color: #c0392b;
    font-weight: 600;
}
.vrt-module-card__note {
    padding: 0 12px 14px;
    margin: 0;
    font-size: 12px;
    color: #646970;
    line-height: 1.4;
    flex: 1;
}
.vrt-module-card__more {
    display: inline-block;
    margin: 0 14px 16px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f1;
    color: #c0392b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
}

/* Force-hide theme sidebar when our wrap class is set */
.vrt-no-sidebar .sidebar,
.vrt-no-sidebar aside.sidebar,
.vrt-no-sidebar .sidebar_main,
.vrt-no-sidebar #sidebar { display: none !important; }
.vrt-no-sidebar .content {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    float: none !important;
}

/* =================================================================
   Product Landing — Phase 2 (Live-parity content)
   ================================================================= */

/* Breadcrumb */
.vrt-breadcrumb {
    max-width: 1200px;
    margin: 16px auto 24px;
    padding: 0 16px;
    font-size: 13px;
    color: #696969;
}
.vrt-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
}
.vrt-breadcrumb li {
    display: inline-flex;
    align-items: center;
}
.vrt-breadcrumb li + li::before {
    content: "›";
    margin-right: 8px;
    color: #b0b0b0;
}
.vrt-breadcrumb a {
    color: #c0212d;
    text-decoration: none;
}
.vrt-breadcrumb a:hover { text-decoration: underline; }
.vrt-breadcrumb [aria-current="page"] {
    color: #1a1a1a;
    font-weight: 600;
}

/* 1:1 live intro paragraphs */
.vrt-product-landing__live-intro {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 16px;
    font-size: 16px;
    line-height: 1.65;
    color: #2a2a2a;
}
.vrt-product-landing__live-intro p { margin: 0 0 14px; }
.vrt-product-landing__live-intro p:last-child { margin-bottom: 0; }
.vrt-product-landing__live-intro a { color: #c0212d; }

/* Feature grid (8–10 icon tiles) */
.vrt-feature-grid {
    max-width: 1200px;
    margin: 36px auto;
    padding: 0 16px;
}
.vrt-feature-grid__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.vrt-feature-tile {
    text-align: center;
    padding: 20px 16px;
    background: #fafafa;
    border: 1px solid #ebebeb;
    border-radius: 6px;
}
.vrt-feature-tile__icon {
    margin: 0 auto 12px;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vrt-feature-tile__icon img {
    max-width: 96px;
    max-height: 96px;
    width: auto;
    height: auto;
    display: block;
}
.vrt-feature-tile__title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: none;
}
.vrt-feature-tile__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #5a5a5a;
}

/* Product image gallery */
.vrt-product-gallery {
    max-width: 1200px;
    margin: 36px auto;
    padding: 0 16px;
}
.vrt-product-gallery__main {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
}
.vrt-product-gallery__main img {
    max-width: 100%;
    max-height: 480px;
    height: auto;
    display: inline-block;
}
.vrt-product-gallery__thumbs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.vrt-product-gallery__thumbs li { margin: 0; }
.vrt-product-gallery__thumbs button {
    appearance: none;
    background: #fff;
    border: 2px solid transparent;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color .15s ease;
}
.vrt-product-gallery__thumbs button:hover,
.vrt-product-gallery__thumbs button.is-active {
    border-color: #c0212d;
}
.vrt-product-gallery__thumbs img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    display: block;
}

/* Related products grid at bottom of detail page */
.vrt-related-products {
    max-width: 1200px;
    margin: 48px auto 24px;
    padding: 0 16px;
}
.vrt-related-products__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
    text-align: center;
}
.vrt-related-products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.vrt-related-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}
.vrt-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    text-decoration: none;
}
.vrt-related-card__media {
    background: #f7f7f7;
    padding: 16px;
    text-align: center;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vrt-related-card__media img {
    max-width: 100%;
    max-height: 120px;
    height: auto;
}
.vrt-related-card__body { padding: 12px 14px 16px; }
.vrt-related-card__category {
    display: block;
    font-size: 11px;
    color: #c0212d;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 6px;
    font-weight: 700;
}
.vrt-related-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
}

/* Inline gallery thumbnail click handler — pure CSS-loaded JS via data-attr */
.vrt-product-gallery__thumbs button { user-select: none; }

/* Mobile tweaks */
@media (max-width: 640px) {
    .vrt-feature-grid__inner { grid-template-columns: 1fr 1fr; gap: 14px; }
    .vrt-feature-tile { padding: 14px 10px; }
    .vrt-feature-tile__icon { width: 64px; height: 64px; }
    .vrt-feature-tile__icon img { max-width: 64px; max-height: 64px; }
    .vrt-product-gallery__main { padding: 12px; }
    .vrt-product-gallery__thumbs img { width: 60px; height: 60px; }
    .vrt-related-products__grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Elementor-Widget-Wrapper ──────────────────────────────────────
   Jedes VRT-Landing-Widget zentriert seine Sektion wie das klassische
   Layout (max-width), überlässt die vertikalen Abstände aber dem
   Builder bzw. den Sektions-eigenen Margins. */
.vrt-product-landing--widget {
    margin-top: 0;
    margin-bottom: 0;
}
