/* ================================
   PRODUKTSEITE INNERHALB PROFILE-MAIN
   ================================ */

/* Layout-Anpassungen für Produktseite */
.product-layout {
    align-items: flex-start;
}

/* Linke Spalte: max. 700px Breite für Bildbereich */
.product-media-column {
    display: flex;
    justify-content: flex-start;
}

.product-media-card {
    width: 100%;
    max-width: 520px;
}

/* Rechte Spalte */
.product-info-column {
    display: flex;
}

.product-info-card {
    width: 100%;
}

/* Hauptbild (quadratisch, schön abgerundet) */
.product-main-image-wrapper {
    width: 100%;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Quadratisch */
    object-fit: cover;
    border-radius: 18px;
    display: block;
    background: #eee;
}

/* Slider-Bereich */
.product-thumbs-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.product-thumbs-scroll {
    flex: 1;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px;
    scroll-behavior: auto; /* GSAP übernimmt die Animation */
}

/* Scrollbar etwas dezenter */
.product-thumbs-scroll::-webkit-scrollbar {
    height: 6px;
}
.product-thumbs-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}
.product-thumbs-scroll::-webkit-scrollbar-thumb {
    background: #d0c5b5;
    border-radius: 10px;
}

/* Navigation-Pfeile links/rechts */
.product-thumbs-nav {
    border: none;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0ebe4;
    color: #7b6a55;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.product-thumbs-nav:hover {
    background: #e1d5c5;
}

/* Einzelnes Thumbnail */
.product-thumb {
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    width: 90px;
    aspect-ratio: 1 / 1;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, outline 0.15s ease;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.product-thumb--active {
    outline: 2px solid #c58a3d;
    outline-offset: 2px;
}

/* Attribute unter dem Slider */
.product-attributes {
    margin-top: 20px;
    border-top: 1px solid #eee2d5;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-attribute-row {
    display: flex;
    flex-wrap: wrap;
    column-gap: 6px;
    font-size: 0.9rem;
}

.product-attribute-label {
    font-weight: 600;
    color: #5d4b35;
}

.product-attribute-value {
    color: #444;
}

/* Tags darunter */
.product-tags {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0ebe4;
    color: #6c5a42;
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: lowercase;
}

.product-tag:hover {
    background: #e1d5c5;
}

/* Rechte Spalte: Titel, Text, Preis & Button */
.product-title {
    margin: 0 0 12px;
    font-size: 1.8rem;
    line-height: 1.3;
}

.product-description {
    font-size: 1.0em; /* wie gewünscht */
    line-height: 1.6;
    color: #444;
}

.product-description p {
    margin: 0 0 14px;
}

/* Preisblock */
.product-purchase {
    margin-top: 24px;
    text-align: right;
}

.product-price {
    display: block;
    font-size: 2.0em; /* wie gewünscht */
    font-weight: 600;
    color: #322821;
}

.product-price-note,
.product-delivery-time {
    font-size: 0.75em; /* wie gewünscht */
    color: #6a6a6a;
    margin-top: 4px;
}

/* In den Warenkorb Button */
.product-add-to-cart-big {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #c58a3d; 
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.product-add-to-cart-big i {
    font-size: 1rem;
}

.product-add-to-cart-big:hover {
    background: #b47a2f;
}

/* Responsiv-Anpassungen */
@media (max-width: 900px) {
    .product-media-card,
    .product-info-card {
        max-width: 100%;
    }

    .product-purchase {
        text-align: left;
    }

    .product-add-to-cart {
        margin-top: 18px;
    }
}

/* Produkt-Layout – neue Breitensteuerung */
.product-layout {
    display: flex;
    gap: 40px; /* optional: Abstand zwischen Spalten */
}

/* Linke Spalte bekommt fixe Max-Breite, schrumpft aber wenn nötig */
.product-media-column {
    flex: 0 0 auto;
    width: auto;
    max-width: 520px; /* Neue schmale Breite */
}

/* Rechte Spalte bekommt den gesamten restlichen Platz */
.product-info-column {
    flex: 1 1 auto; /* <- wichtig */
    min-width: 0; /* <- erlaubt Textumbuch */
}

/* =====================================
   Vollbreite Produktbeschreibung (innen)
   ===================================== */

.product-long-description-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee2d5;
}

.product-long-title {
    margin: 0 0 12px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a3a29;
}

.product-long-description {
    font-size: 1.0em;
    line-height: 1.7;
    color: #444;
}

.product-long-description p {
    margin: 0 0 14px;
}

/* =====================================
   Ähnliche Artikel – Slider volle Breite
   ===================================== */

.related-products-section {
    width: 100%;
    margin-top: 40px;
    padding: 28px 0 32px;
    border-top: 1px solid #eee2d5;
}

.related-products-header {
    max-width: 1200px; /* gleiche Größenordnung wie dein Layout */
    margin: 0 auto 16px;
    padding: 0 20px;
}

.related-products-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #4a3a29;
}

/* Slider-Container über volle Breite */
.related-products-slider {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Pfeile links/rechts */
.related-products-nav {
    transform: translateY(-50%);
    border: none;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 5;
}

.related-products-nav i {
    font-size: 1.1rem;
    font-weight: 700;
}

.related-products-nav:hover {
    background: #f2f2f2 !important;
}

/* Viewport – horizontale Scrollfläche */
.related-products-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1 1 auto;
    padding: 8px 4px 12px;
}

/* dezente Scrollbar */
.related-products-viewport::-webkit-scrollbar {
    height: 6px;
}

.related-products-viewport::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.related-products-viewport::-webkit-scrollbar-thumb {
    background: #d0c5b5;
    border-radius: 10px;
}

/* Track mit Produktkarten */
.related-products-track {
    display: flex;
    gap: 16px;
}

/* Bild und Titel im Card-Layout */
.related-products-track .product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.related-products-track .product-title {
    font-size: 1rem;
    margin: 4px 0 6px;
}

/* Kurzbeschreibung im Slider */
.related-products-track .product-short-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 10px;
}

/* Preiszeile im Slider */
.related-products-track .product-price-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* Button im Card-Layout – kann deine bestehende .product-add-to-cart-Optik nutzen */
.related-products-track .product-add-to-cart {
    width: 100%;
    justify-content: center;
}

/* Responsive für kleinere Screens */
@media (max-width: 900px) {
    .related-products-header {
        padding: 0 14px;
    }

    .related-products-slider {
        gap: 8px;
    }

    .related-products-nav {
        width: 32px;
        height: 32px;
    }
}

/* Vollbreite Beschreibung: eigener weißer Block */
.product-long-description-section {
    /* Flex vom globalen .profile-inner überschreiben */
    display: block;

    width: 100%;
    margin-top: 32px;

    /* weißer Karten-Block */
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 28px;

    /* optional, aber sieht wie deine anderen Cards aus */
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);

    /* Trennlinie brauchen wir dann nicht mehr */
    border-top: none;
}

.product-long-title {
    margin: 0 0 14px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a3a29;
}

.product-long-description {
    font-size: 1.0em;
    line-height: 1.7;
    color: #444;
}

.product-long-description p {
    margin: 0 0 14px;
}

.related-products-slider {
    padding: 0 16px;           /* 16px links & rechts Abstand */
    box-sizing: border-box;    /* Padding in die Gesamtbreite einrechnen */
}

/* Tablet-Ansicht: Spalten untereinander statt nebeneinander */
@media (max-width: 1024px) {
    .product-layout {
        flex-direction: column;
        gap: 24px; /* schöner Abstand zwischen Bild- und Info-Block */
    }

    .product-media-column,
    .product-info-column {
        width: 100%;
        max-width: 100%;
    }

    .product-media-card {
        max-width: 100%;
    }

    .product-purchase {
        text-align: left; /* auf Tablet wirkt linksbündig meist besser */
    }
}
/* Standard: mobiler Text im Bild-Block erst mal ausblenden */
.product-short-mobile {
    display: none;
}

/* Tablet + Handy: Layout untereinander, Kurzbeschreibung über dem Bild */
@media (max-width: 1024px) {
    .product-layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    /* Reihenfolge: erst Bildblock (mit Kurzbeschreibung), dann Kaufblock */
    .product-media-column {
        order: 1;
        width: 100%;
        max-width: 100%;
    }

    .product-info-column {
        order: 2;
        width: 100%;
        max-width: 100%;
    }

    .product-media-card {
        max-width: 100%;
    }

    /* Kurzbeschreibung im Bildblock anzeigen */
    .product-short-mobile {
        display: block;
        margin-bottom: 16px;
        font-size: 1em;
        line-height: 1.6;
        color: #444;
    }

    /* Kurzbeschreibung im rechten Block auf Tablet/Mobil ausblenden */
    .product-description {
/*        display: none;*/
    }

    .product-purchase {
        text-align: left;
    }
}

/* Slider-Container: als Bezugspunkt für absolute Pfeile */
.related-products-slider {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    /* kein flex nötig mehr */
}

/* Viewport mit etwas Innenabstand, damit die Pfeile nicht voll über dem Inhalt liegen */
.related-products-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1 1 auto;
    padding: 8px 32px 12px; /* etwas Platz links/rechts */
}

/* Track bleibt ein Flex-Container */
.related-products-track {
    display: flex;
    gap: 16px;
}

/* Kreisförmige, schwebende Pfeile */
.related-products-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
    border-radius: 50% !important;

    width: 48px;
    height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;

    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* Links 16px, rechts 16px Abstand vom Rand */
.related-products-prev {
    left: 16px;
}

.related-products-next {
    right: 16px;
}

.related-products-nav i {
    font-size: 1.3rem;
    font-weight: 900;
}

.related-products-nav:hover {
    background: #f3f3f3 !important;
    transform: translateY(-50%) scale(1.05);
    transition: transform 0.15s ease;
}

/* Volltext anfangs verstecken */
.product-long-description-full {
    display: none;
}

.product-long-description-text {
    transition: height 0.3s ease;
}

/* Mehr-anzeigen-Button */
.product-description-toggle {
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    color: #c58a3d;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.product-description-toggle:hover {
    text-decoration: underline;
}

.product-long-description-section {
    display: block;
    width: 100%;
    margin-top: 32px;

    background: #ffffff;
    border-radius: 18px;
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Mehr-anzeigen Button als Pillenform */
.product-description-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 18px;
    padding: 10px 20px;

    background: #c58a3d;
    color: #fff;
    border-radius: 999px;
    border: none;
    cursor: pointer;

    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;

    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: background 0.2s ease;
}

.product-description-toggle:hover {
    background: #b37a2d;
}

.product-description-toggle i {
    font-size: 1rem;
}

.product-stock-indicator {
    text-align: right;
    font-size: 0.9em;
    color: #008000;
    margin-bottom: 4px;
}

/* Tablet & Handy: Lageranzeige linksbündig */
@media (max-width: 1024px) {
    .product-stock-indicator {
        text-align: left;
    }
}

/* =============================
   Buddha-Zitatblock
   ============================= */

.buddha-quote-block {
    margin: 18px 0 28px;
    padding: 16px 20px 12px;

    background: transparent; /* kein Weiß */
    border-left: 4px solid #c58a3d;
    border-radius: 6px;

    color: #6a5a45;
}

/* Innencontainer */
.buddha-quote-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Bereich mit Icon + Zitattext */
.buddha-quote-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Icongröße */
.buddha-icon-wrapper {
    flex-shrink: 0;
}

.buddha-icon {
    width: 28px;
    height: 28px;
}

/* Zitattext */
.buddha-quote-text {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
    font-style: italic;
}

/* Signatur rechts */
.buddha-signature {
    margin-top: 4px;
    text-align: right;
    font-size: 0.9em;
    font-weight: 600;
    color: #8c795a;
}

/* Mobil: enger, aber gleiche Struktur */
@media (max-width: 768px) {
    .buddha-quote-block {
        padding: 14px 16px 10px;
    }
}

.buddha-quote-wrapper {
    /* optional, falls du einheitliche Abstände willst */
    margin-top: 12px;
}

.buddha-quote-block {
    margin: 18px 0 28px;
    padding: 16px 20px 12px;
    background: transparent;
    border-left: 4px solid #c58a3d;
    border-radius: 6px;
    color: #6a5a45;
}

/* Unterer Beschreibungsblock anfangs unsichtbar */
#product-long-description-section {
    display: none;          /* wird per JS auf block gesetzt */
    opacity: 0;             /* für Fade-in */
    overflow: hidden;       /* für Höhenanimation */
}

/* Button unter der Kurzbeschreibung */
.product-description-toggle-wrapper {
    margin-top: 10px;
    text-align: right;
}

.product-description-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 20px;
    background: #c58a3d;
    color: #fff;
    border-radius: 999px;
    border: none;
    cursor: pointer;

    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;

    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: background 0.2s ease;
}

.product-description-toggle:hover {
    background: #b37a2d;
}

.product-description-toggle i {
    font-size: 1rem;
}

/* auf Tablet/Mobil kannst du den Button z.B. linksbündig machen */
@media (max-width: 1024px) {
    .product-description-toggle-wrapper {
        text-align: left;
    }
}

#product-long-description-section {
    display: none;      /* komplett weg am Anfang */
    opacity: 0;         /* später von 0 → 1 animieren */
    overflow: hidden;
}
.product-description-separator {
    width: 90%;
    margin: 18px auto 14px;
    height: 2px;
    background: #dcdcdc;
    opacity: 0.6;
    border-radius: 2px;
}

/* Unterer Beschreibungsblock: anfangs komplett unsichtbar */
#product-long-description-section {
    display: none;      /* wird per JS auf block gesetzt */
    opacity: 0;         /* GSAP fade-in */
}

/* Container im weißen Block: Text + schwebendes Widget */
.product-long-description {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    font-size: 1.0em;
    line-height: 1.7;
    color: #444;
}

/* Textbereich links */
.product-long-text {
    flex: 1 1 auto;
    min-width: 0;
}

.product-long-text p {
    margin: 0 0 14px;
}

/* Widget rechts, schwebend (sticky) */
.product-long-widget {
    flex: 0 0 260px;
    position: sticky;
    top: 16px; /* Abstand von oben, wenn gescrollt wird */
    align-self: flex-start;
}

.product-long-widget-inner {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Titel im Widget – UPPERCASE */
.product-long-widget-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #4a3a29;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* kompakter Warenkorb-Button im Widget */
.product-add-to-cart.product-add-to-cart--compact {
    margin-top: 10px;
    padding: 8px 14px;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.14);
}

/* Tablet/Mobil: Widget unter dem Text, nicht sticky */
@media (max-width: 900px) {
    .product-long-description {
        flex-direction: column;
    }

    .product-long-widget {
        position: static;
        flex: 0 0 auto;
        width: 100%;
        margin-top: 18px;
    }
}

/* Trennstrich unter dem Weiterlesen-Button */
.product-description-toggle-wrapper {
    margin-top: 10px;
    text-align: right;
}


/* Button selbst – falls noch nicht definiert */
.product-description-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 20px;
    background: #c58a3d;
    color: #fff;
    border-radius: 999px;
    border: none;
    cursor: pointer;

    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;

    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: background 0.2s ease;
}

.product-description-toggle:hover {
    background: #b37a2d;
}

.product-description-toggle i {
    font-size: 1rem;
}

/* Tablet/Mobil: Widget nicht rechts floaten, sondern darunter */
@media (max-width: 900px) {
    .product-long-widget {
        float: none;
        width: 100%;
        margin: 18px 0 0;
    }

    .product-long-description {
        display: block;
    }

    .product-description-toggle-wrapper {
        text-align: left;
    }
}

/* ===============================
   VERTIKALER SLIDER – TABLET ONLY
   =============================== */

/* Standard: vertikaler Slider versteckt */
.product-thumbs-vertical {
    display: none;
}

/* Tablet-Ansicht: Produktbild + vertikaler Slider nebeneinander */
@media (max-width: 1024px) and (min-width: 701px) {

    /* horizontale Thumbnails unter dem Bild AUSBLENDEN */
    .product-thumbs-wrapper {
        display: none !important;
    }

    .product-main-image-wrapper {
        display: flex;
        flex-direction: row;
    }

    /* Hauptbild etwas schmaler */
    .product-main-image {
        width: calc(100% - 102px);
        aspect-ratio: 1 / 1;
        border-radius: 14px;
        object-fit: cover;
    }

    .product-thumbs-vertical-track::-webkit-scrollbar {
        width: 6px;
    }

    .product-thumbs-vertical-track::-webkit-scrollbar-thumb {
        background: #c8c0b5;
        border-radius: 6px;
    }

    /* Navigation-Pfeile */
    .product-thumbs-vertical-nav {
        background: #ffffff;
        border: 1px solid #ccc;
        border-radius: 50%;
        width: 34px;
        height: 34px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .product-thumbs-vertical-nav i {
        font-size: 1rem;
        color: #333;
    }
}


/* Wrapper für Bild + vertikalen Slider */
.product-media-top {
    width: 100%;
}

/* Tablet-Ansicht: Bild + vertikaler Slider NEBENEINANDER */
@media (max-width: 1024px) and (min-width: 701px) {

    /* horizontale Thumbnails unter dem Bild AUSBLENDEN */
    .product-thumbs-wrapper {
        display: none !important;
    }

    /* Bild + vertikaler Slider nebeneinander */
    .product-media-top {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .product-main-image-wrapper {
        flex: 1 1 auto;
    }

    .product-main-image {
        width: 100%;          /* nimmt die verfügbare Breite ein */
        aspect-ratio: 1 / 1;  /* garantiert quadratisches Bild */
        height: auto;         /* Höhe ergibt sich aus aspect-ratio */
        object-fit: cover;
        border-radius: 14px;
    }

    /* WICHTIG: Alle Höhenbegrenzungen aus vorherigen Regeln deaktivieren */
    .product-main-image {
        max-height: none !important;
    }

    .product-thumbs-vertical-track::-webkit-scrollbar {
        width: 6px;
    }

    .product-thumbs-vertical-track::-webkit-scrollbar-thumb {
        background: #c8c0b5;
        border-radius: 6px;
    }

    .product-thumb-vertical img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Navigation-Pfeile */
    .product-thumbs-vertical-nav {
        background: #ffffff;
        border: 1px solid #ccc;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .product-thumbs-vertical-nav i {
        font-size: 0.9rem;
        color: #333;
    }
}

/* Tablet: Bild + Slider nebeneinander */
@media (max-width: 1024px) and (min-width: 701px) {
    .product-media-top {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

.product-thumbs-vertical {
    width: 80px !important;
    flex: 0 0 80px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* height: 100%;  <-- bitte entfernen oder auskommentieren */
}

    .product-main-image-wrapper {
        flex: 1 1 auto;
    }

    .product-main-image {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        object-fit: cover;
        border-radius: 14px;
        max-height: none;
    }

.product-thumbs-vertical-track {
    width: 100% !important;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    overflow-y: auto;
    padding: 4px;
    /* max-height: none !important;  <-- kann bleiben oder raus, JS setzt max-height */
}

    .product-thumbs-vertical-track::-webkit-scrollbar {
        width: 6px;
    }

    .product-thumbs-vertical-track::-webkit-scrollbar-thumb {
        background: #c8c0b5;
        border-radius: 6px;
    }

    /* >>> Hier wird es quadratisch <<< */
    .product-thumb-vertical {
        width: 64px;
        height: 64px;              /* gleiche Höhe wie Breite */
        border-radius: 10px;
        overflow: hidden;

        margin: 0;
        padding: 0;
        line-height: 0;            /* kein Text-Baseline-Effekt */
        background: #eee;
        cursor: pointer;
        display: block;
    }

    .product-thumb-vertical img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .product-thumbs-vertical-nav {
        background: #ffffff;
        border: 1px solid #ccc;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .product-thumbs-vertical-nav i {
        font-size: 0.9rem;
        color: #333;
    }
}

/* ============================
   MODAL: Vollbild-Bildanzeige
   ============================ */

/* Vollbild-Overlay */
.product-image-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;                /* Start: aus */
    pointer-events: none;

    /* zentrieren */
    display: none;
    justify-content: center;
    align-items: center;
}

.product-image-modal.is-visible {
    display: flex;                /* Flex-Center aktivieren */
    pointer-events: auto;
}

/* Abdunklung */
.product-image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;                   /* GSAP animiert das */
}

/* Dialog mit 3D-Effekt */
.product-image-modal-dialog {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 900px);
    max-height: min(90vh, 700px);
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);

    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
}

/* Bild selber */
.product-image-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    background: #f1f1f1;
}

/* Close-Button oben rechts */
.product-image-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.85);
    cursor: pointer;
    z-index: 30; 
}

.product-image-modal-close i {
    font-size: 1rem;
}

.product-image-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;              /* Start: unsichtbar */
    opacity: 0;                 /* wird bei is-visible auf 1 gesetzt */
    pointer-events: none;
}

.product-image-modal.is-visible {
    display: block;
    opacity: 1;                 /* <-- WICHTIG */
    pointer-events: auto;
}

/* Nur Desktop / größere Screens, optional */
    .product-main-image {
        cursor: pointer;   /* oder cursor: pointer; */
    }

/* Vollbild-Overlay – IMMER Flex, nur per Opacity sichtbar/unsichtbar */
.product-image-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex !important;             /* immer flex */
    justify-content: center !important;   /* horizontal zentriert */
    align-items: center !important;       /* vertikal zentriert */
    pointer-events: none;                 /* unsichtbar: nicht klickbar */
    opacity: 0;                           /* unsichtbar, wenn keine Klasse */
    transition: opacity 0.25s ease-out;
}

.product-image-modal.is-visible {
    opacity: 1;                           /* sichtbar */
    pointer-events: auto;                 /* klickbar */
}

/* Abdunklung */
.product-image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;                           /* GSAP animiert das */
}

/* Dialog – bleibt zentriert durch Flex im Eltern-Container */
.product-image-modal-dialog {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 900px);
    max-height: min(90vh, 700px);
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);

    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
}

/* Bild & Placeholder */
.product-image-modal-image-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

.product-image-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    background: #f1f1f1;
}

.product-image-modal-placeholder {
    position: absolute;
    inset: 0;
    display: none;                        /* anfangs aus */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    background: #f4f4f4;
}

/* Close-Button */
.product-image-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.85);
    cursor: pointer;
}

.product-image-modal-close i {
    font-size: 1rem;
}

/* Pfeile im Overlay */
.product-image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.product-image-modal-prev { left: 16px; }
.product-image-modal-next { right: 16px; }

.product-image-modal-nav i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .product-image-modal-dialog {
        max-width: 92vw;
        max-height: 80vh;
    }

    .product-image-modal-prev { left: 8px; }
    .product-image-modal-next { right: 8px; }
}

