/* --- Styles für [product_3d_scroll] --- */

:root {
    --gk-3d-primary: #000000;
    --gk-3d-accent-yellow: #f8db46;
    --gk-3d-bg-blue: #f0f9ff;
    --gk-3d-border-width: 4px;
}

.gk-3d-scroll-section {
    position: relative;
    padding: 20px 0;
    /* Drastisch reduziert von 60px */
    overflow: hidden;
    background-color: transparent;
    /* Hintergrundfarbe entfernt */
    /* Dezenter Standard-Hintergrund */
}

:root {
    --gk-3d-card-width: 240px;
    --gk-3d-card-height: 405px;
    --gk-3d-primary: #000;
    --gk-3d-border-width: 2px;
}

/* Perspektive Container */
.gk-3d-scroll-container {
    position: relative;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px calc(50% - (var(--gk-3d-card-width) / 2));
    /* Erlaubt perfekte Zentrierung der Karte */
    gap: 15px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
    /* Hide scrollbar IE/Edge */
    perspective: 1200px;
    perspective-origin: center;
    transform-style: preserve-3d;
    /* Enable shared 3D space for correct Z-sorting */
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    /* Sanftes Einrasten deaktiviert für flüssigeres JS-Scrolling */
    /* touch-action entfernt damit vertikales Scrollen erlaubt bleibt */
}

.gk-3d-scroll-container.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    /* Deaktiviere smooth scroll während des Drags */
}

.gk-3d-scroll-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.gk-3d-scroll-item {
    flex: 0 0 var(--gk-3d-card-width);
    height: var(--gk-3d-card-height);
    /* Wieder schmaler/niedriger */
    background: #fff;
    border: var(--gk-3d-border-width) solid var(--gk-3d-primary);
    border-radius: 12px;
    position: relative;
    transform-style: preserve-3d;
    transition: filter 0.3s ease;
    /* transform-transition entfernt, um Konflikt mit JS-Animation zu vermeiden (Zittern) */
    display: flex;
    flex-direction: column;
    overflow: visible !important;
    /* Fix: Allow Price Bubble to show */
    transform-origin: bottom center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    scroll-snap-align: center;
    will-change: transform;
    /* Performance-Optimierung */

    /* --- Retro Frame Styling (Standard) --- */
    background-color: #f4f1ea;
    /* Retro paper look */
    border: 3px solid #1a1a1a;
    /* Thicker dark border */
    border-radius: 6px;
    padding: 12px;
    /* Matting effect */
    box-sizing: border-box;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.20);
    /* Hard retro shadow */

    /* RENDERING HINTS FOR SHARPNESS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    /* transform: translateZ(0); Removed to avoid z-index stacking context issues with 3D overlay */
}

/* Price Bubble is now handled by gk-common-price-bubble */

/* Produktbild */
.gk-3d-image-wrapper {
    height: 240px;
    width: 100%;
    margin-bottom: 12px;
    /* Unified Gap */

    /* Inner Frame Match */
    border: 2px solid var(--gk-3d-primary);
    border-bottom: 2px solid var(--gk-3d-primary);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);

    overflow: visible !important;
    /* Align with Poker Scroll logic */
    background: #f9f9f9;
}

.gk-3d-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* The Vinyl Disc (SMART FILTER: Only show if .product-is-vinyl) */
/* The Vinyl Disc -> Now in gk-shared-elements.css */
/* Grooves -> Now in gk-shared-elements.css */
/* Label -> Now in gk-shared-elements.css */
/* Hole -> Now in gk-shared-elements.css */
/* ACTIVE EFFECT -> Now in gk-shared-elements.css */
/* DESKTOP HOVER BONUS -> Now in gk-shared-elements.css */

/* Image Wrapper Z-Index Fix */
.gk-3d-image-wrapper {
    z-index: 2;
    background: #fdfdfd;
}

.gk-3d-image-wrapper.has-vinyl-effect {
    transform-style: preserve-3d;
    background: transparent !important;
    /* Fix: Allows vinyl (z-index -1) to be seen */
}

/* Card Body */
.gk-3d-card-body {
    padding: 5px 0 15px 0 !important;
    /* Unified padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    text-align: left;
    /* Ensure left alignment */
}

/* Punktraster-Textur für den Comic-Look */
/* Punktraster-Textur entfernt für Einheitlichkeit */
/* .gk-3d-card-body::before { ... } */


/* 3D-Card Title */
.gk-3d-title {
    font-size: 1.05rem !important;
    /* Match Poker Scroll size */
    margin: 0 0 10px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em !important;
    max-height: 2.6em !important;
    /* Fixed height for 2 lines */
}

.gk-3d-meta {
    font-size: 0.7rem;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 5px;
    display: none;
    /* Erstmal versteckt über CSS zusätzlich zu PHP */
}

/* Button */
.gk-3d-button-container {
    margin-top: 10px;
    margin-bottom: 10px;
    /* Space between button and rating */
}

/* Button handled by gk-common-btn */

/* Sale Badge handled by gk-common-sale-badge */
/* --- Rating Styles (Standard Layout) --- */
.gk-rating-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0px;
    /* Spacing handled by button container margin-bottom */

    font-family: 'Inter', sans-serif;
    line-height: 1;
}

/* FIX: Price Bubble Adjustment for 3D Scroll (Prevent Clipping) */
.gk-3d-scroll-item .gk-common-price-bubble {
    top: -5px !important;
    left: -5px !important;
}

.gk-rating-container .star-rating {
    font-size: 0.9rem;
    color: #f8db46;
    width: 5.4em;
}

/* Ensure WooCommerce stars are colored correctly */
.gk-rating-container .star-rating::before {
    color: #ccc;
    /* Lighter gray for better contrast */
}

.gk-rating-container .star-rating span::before {
    color: #f8db46;
}

.gk-rating-count {
    font-family: 'Kaushan Script', cursive;
    /* Retro Handwritten Font */
    font-size: 1rem;
    /* Slightly larger */
    color: #000;
    font-weight: 500;
    margin-top: 3px;
    /* Optical alignment with stars */
}

/* Responsive */
@media (max-width: 768px) {
    .gk-3d-scroll-item {
        flex: 0 0 230px !important;
        width: 230px !important;
        min-width: 230px !important;
        height: 385px !important;
        /* Unified with Poker Scroll */
    }

    .gk-3d-image-wrapper {
        height: 220px !important;
        /* Unified with Poker Scroll */
    }

    .gk-3d-scroll-section-title {
        font-size: 1.3rem;
    }

    .gk-3d-scroll-section-title {
        font-size: 1.3rem;
    }

    /* .gk-3d-price-bubble removed (using shared element) */

    .gk-3d-scroll-container {
        padding: 15px 15vw 30px 15vw;
    }

    .gk-3d-scroll-container {
        padding: 15px 15vw 30px 15vw;
    }
}

/* --- Arrow & Navigation Styling --- */
/* Navigation Arrows are now handled by gk-shared-elements.css */

@media (max-width: 768px) {
    /* The shared CSS handles display:flex via !important, so we don't need overrides here */
}