/* assets/css/shop.css (VERSION 2.0 - AUFGERÄUMT & KORRIGIERT) */

/* ==================================================
   SHOP LANDING PAGE - SHOWCASE (V6 - Final Button Fix)
   ================================================== */

/* Der Hauptcontainer des Karussells */
.shop-hero-slider-section .carousel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

/* Der Wrapper für jedes einzelne Slide-Item */
.showcase-overlay-item {
    position: relative;
    height: 295px;
    width: 100%;
    color: white;
    background-color: #212529;
    z-index: 10;
}

/* Das Hintergrundbild */
.showcase-overlay-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Der Verlaufs-Effekt für die Lesbarkeit */
.showcase-overlay-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    z-index: 2;
}

/* Der Inhalts-Container mit CSS Grid */
.showcase-overlay-content {
    position: relative;
    z-index: 3;
    padding: 1.5rem;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "top-left top-right"
        "center   center"
        "bottom-left bottom-right";
}

/* Positionierung der 4 Ecken */
.overlay-top-left { grid-area: top-left; }
.overlay-bottom-left { grid-area: bottom-left; align-self: end; }
.overlay-bottom-right { grid-area: bottom-right; align-self: end; }

/* KORREKTUR FÜR DEN RECHTEN OBEREN BEREICH */
.overlay-top-right {
    grid-area: top-right;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

/* Styling der Overlay-Elemente */
.overlay-top-left .badge {
    font-size: 0.85rem;
    padding: 0.5em 0.9em;
    font-weight: 600;
}

.showcase-overlay-content .showcase-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.showcase-overlay-content .showcase-title a {
    color: white;
    text-decoration: none;
}
.showcase-overlay-content .showcase-manufacturer {
    font-size: 0.9rem;
    opacity: 0.8;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    margin-bottom: 0;
}

.overlay-bottom-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

.overlay-bottom-right .price-display {
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    padding: 0.35rem 0.75rem;
    border-radius: 0.25rem;
    text-align: right;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.overlay-bottom-right .price-display p,
.overlay-bottom-right .price-display span {
    margin-bottom: 0;
    font-weight: 700;
    color: white;
}
.overlay-bottom-right .price-display .sale-price {
    color: var(--hanfmann-green-accent);
}
.overlay-bottom-right .price-display .original-price {
    font-size: 0.8em;
    font-weight: 400;
    opacity: 0.7;
}

/* ==================================================
   Bootstrap Carousel Anpassungen (FINALE KORREKTUR)
   ================================================== */

/* Indikatoren (Punkte unten) */
.shop-hero-slider-section .carousel-indicators {
    bottom: 15px;
    z-index: 15; /* Liegen über allem */
}

/* Basis-Styling für die Pfeil-Container (links & rechts) */
.shop-hero-slider-section .carousel-control-prev,
.shop-hero-slider-section .carousel-control-next {
    /* Wir entfernen die vollflächige Breite und den Hintergrund von Bootstrap */
    width: auto;
    background: none;
    opacity: 1; /* Immer voll sichtbar */
    z-index: 15; /* Liegen über allem */
    
    /* Positionierung */
    top: 50%;
    transform: translateY(-50%);
    padding: 0 1.5rem; /* Abstand vom Rand */
}

/* Das eigentliche Icon (der Pfeil selbst) */
.shop-hero-slider-section .carousel-control-prev-icon,
.shop-hero-slider-section .carousel-control-next-icon {
    /* Kreisförmiger Hintergrund */
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Macht es perfekt rund */
    
    /* Hintergrundbild (den Pfeil) anpassen */
    background-size: 50%;
    transition: background-color 0.2s ease;
}

/* Hover-Effekt für die Icons */
.shop-hero-slider-section .carousel-control-prev:hover .carousel-control-prev-icon,
.shop-hero-slider-section .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.6);
}

/* Dark Mode Anpassungen für die Icons */
html.dark-mode .shop-hero-slider-section .carousel-control-prev-icon,
html.dark-mode .shop-hero-slider-section .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.1);
}
html.dark-mode .shop-hero-slider-section .carousel-control-prev:hover .carousel-control-prev-icon,
html.dark-mode .shop-hero-slider-section .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.3);
}

/* ==================================================
   SHOP LANDING PAGE - MULTI-ITEM SLIDER CONTAINER
   ================================================== */

.multi-slider-container {
    display: flex;
    align-items: center; /* Zentriert die Pfeile vertikal */
    background-color: transparent;
    border: none;
    border-radius: 0;
}

/* Anpassung für den Slider-Wrapper selbst */
.multi-slider-container .product-slider-wrapper {
    flex-grow: 1;
    overflow: hidden;
}

/* Styling für die neuen Navigations-Pfeile */
.multi-slider-container .slider-nav-arrow {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--hanfmann-text-muted-light);
    font-size: 2rem;
    padding: 0 1rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.multi-slider-container .slider-nav-arrow:hover {
    color: var(--hanfmann-green-content);
}

.multi-slider-container.with-indicator {
    padding-bottom: 1rem;
    position: relative;
}

.slider-indicator-bar {
    position: absolute;
    bottom: 0.5rem;
    left: 100px; /* Breite des Pfeils + Padding */
    right: 100px; /* Breite des Pfeils + Padding */
    height: 4px;
    background-color: var(--hanfmann-border-color);
    border-radius: 2px;
    overflow: hidden;
}

.slider-indicator-bar .indicator {
    height: 100%;
    width: 0%; /* Startet bei 0% */
    background-color: var(--hanfmann-green-content);
    border-radius: 2px;
    transition: width 0.1s linear; /* Sanfter Übergang beim Scrollen */
}

/* ==================================================
   SHOP KATALOG & DETAILSEITE
   ================================================== */
.shop-catalog-header-card, .sidebar-widget {
    background-color: var(--bg-section, #f8f9fa);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 1.5rem;
}

/* Dark Mode for Header Card & Sidebar */
html.dark-mode .shop-catalog-header-card,
html.dark-mode .sidebar-widget,
html.dark-mode .shop-catalog-content-card {
    background: rgba(24, 24, 24, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(10, 207, 131, 0.35);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.shop-catalog-header-card .sidebar-title,
.sidebar-widget .sidebar-title { 
    font-size: 1.15rem; 
    font-weight: 700; 
    color: var(--text-main, #333); 
    margin: 0 0 15px 0; 
}

html.dark-mode .shop-catalog-header-card .sidebar-title,
html.dark-mode .sidebar-widget .sidebar-title {
    color: var(--primary-color, #0acf83);
}

.shop-catalog-header-card .shop-sub-nav .btn.btn-sm { font-size: 0.85rem; padding: 0.4rem 0.8rem; }
.shop-catalog-content-card { background-color: var(--bs-tertiary-bg, #f8f9fa); border: 1px solid var(--hanfmann-border-color); border-radius: 0.375rem; padding: 1.25rem; }

/* Dark Mode for Content Card */
html.dark-mode .shop-catalog-content-card {
    background-color: var(--bg-section, #1e1e1e);
    border-color: var(--border-color, #333);
}

.shop-filter-btn {
    color: var(--text-main, #333);
    border: 1px solid var(--border-color, #dee2e6);
    background-color: transparent;
}

html.dark-mode .shop-filter-btn {
    color: var(--text-main, #fff);
    border-color: var(--border-color, #333);
}

.shop-filter-btn:hover {
    background-color: var(--bg-section, #1e1e1e);
}

.shop-catalog-content-card .content-list-header { background-color: transparent; border: none; border-radius: 0; padding: 0; margin-bottom: 1.5rem; }

.product-detail-card { background-color: var(--hanfmann-bg-main); padding: 2rem; border: 1px solid var(--hanfmann-border-color); border-radius: 0.375rem; }
.product-detail-card .breadcrumb { font-size: 0.85rem; }
.product-detail-card h1 { font-size: 2rem; font-weight: 700; margin-top: 0.5rem; }

/* ==================================================
   SHOP KATALOG - 2-SPALTEN LAYOUT & GRID
   ================================================== */
.shop-catalog-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.shop-sidebar {
    flex: 0 0 220px;
    max-width: 220px;
}

.shop-sidebar-right {
    flex: 0 0 250px;
    max-width: 250px;
}

.shop-main-content {
    flex: 1;
    min-width: 0;
}

.category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.category-nav-link {
    display: block;
    padding: 10px 0;
    color: var(--text-muted, #a1a1aa);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color, #dee2e6);
    transition: color 0.2s;
    background-color: transparent;
    border-radius: 0;
}

.category-nav-link:last-child {
    border-bottom: none;
}

html.dark-mode .category-nav-link {
    border-color: var(--border-color, #333);
}

.category-nav-link:hover {
    color: var(--text-main, #333);
    background-color: transparent;
}

html.dark-mode .category-nav-link:hover {
    color: var(--text-main, #fff);
}

.category-nav-link.active {
    color: var(--text-main, #333);
    font-weight: bold;
    background-color: transparent;
}

html.dark-mode .category-nav-link.active {
    color: var(--text-main, #fff);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .shop-catalog-layout {
        flex-direction: column;
    }
    .shop-sidebar, .shop-sidebar-right {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}


/* ==================================================
   SHOP HERO BUTTON
   ================================================== */
.shop-hero-btn {
    display: inline-block;
    background-color: var(--primary-color, #0acf83);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50rem; /* Pill shape */
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 1px solid var(--primary-color, #0acf83);
}

.shop-hero-btn:hover {
    background-color: transparent;
    color: var(--primary-color, #0acf83);
}

/* ==================================================
   SHOP LANDING PAGE - SEKTIONS-CONTAINER & HEADER (Modern Glassmorphic)
   ================================================== */

/* Container auf Shop Landing Page: Unnötige Doppel-Verschachtelung entfernen */
.shop-landing-page-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.shop-landing-page-container::before {
    display: none !important;
}

.shop-landing-page-container .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Standalone Sektions-Karten (Passend zu .home-section-card) */
.shop-hero-slider-section,
.shop-section {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 248, 0.95) 100%);
    border: 1px solid rgba(10, 207, 131, 0.22);
    border-top: 2px solid #0acf83;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 0 20px rgba(10, 207, 131, 0.06), var(--shadow-btn-inset);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    padding: 24px 26px 26px 26px;
    margin-bottom: 25px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.shop-hero-slider-section::before,
.shop-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    max-width: 850px;
    height: 90px;
    background: radial-gradient(ellipse 60% 60px at 50% 0%, rgba(10, 207, 131, 0.12), transparent 75%);
    pointer-events: none;
    z-index: 0;
}

html.dark-mode .shop-hero-slider-section,
html.dark-mode .shop-section {
    background: linear-gradient(180deg, rgba(28, 28, 28, 0.88) 0%, rgba(18, 18, 18, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(10, 207, 131, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(10, 207, 131, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.07);
}

html.dark-mode .shop-hero-slider-section::before,
html.dark-mode .shop-section::before {
    background: radial-gradient(ellipse 65% 70px at 50% 0%, rgba(10, 207, 131, 0.16), transparent 75%);
}

.shop-hero-slider-section > *,
.shop-section > * {
    position: relative;
    z-index: 1;
}

/* Moderner Sektions-Header mit Metallic-Verlauf */
.shop-section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: linear-gradient(90deg, rgba(10, 207, 131, 0.35) 0%, rgba(255, 255, 255, 0.06) 40%, transparent 100%) bottom / 100% 1px no-repeat;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    margin-bottom: 22px;
    padding-bottom: 14px;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    gap: 15px;
}

.shop-section-header-modern .header-content {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    z-index: 1;
}

.shop-section-header-modern .header-content > div {
    position: static;
    transform: none;
    text-align: left;
    width: auto;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-section-header-modern .header-icon {
    font-size: 1.25rem;
    color: var(--primary-color, #0acf83);
    -webkit-text-fill-color: #0acf83;
    filter: drop-shadow(0 0 10px rgba(10, 207, 131, 0.45));
}

.shop-section-header-modern .header-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    margin: 0 !important;
    line-height: 1.2;
}

html.dark-mode .shop-section-header-modern .header-title {
    background: linear-gradient(135deg, 
        #047857 0%, 
        #0acf83 25%, 
        #34d399 50%, 
        #10b981 75%, 
        #059669 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 8px rgba(10, 207, 131, 0.22));
}

.shop-section-header-modern .header-subtitle {
    margin: 0 !important;
    color: var(--text-muted, #94a3b8);
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.85;
    -webkit-text-fill-color: initial;
}

/* Glas-Aktions-Pill */
.shop-section-header-modern .header-action-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(10, 207, 131, 0.08) !important;
    border: 1px solid rgba(10, 207, 131, 0.28) !important;
    color: #0acf83 !important;
    padding: 0 18px !important;
    height: 36px;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.shop-section-header-modern .header-action-pill:hover {
    background: rgba(10, 207, 131, 0.18) !important;
    border-color: #0acf83 !important;
    color: #34d399 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(10, 207, 131, 0.25);
}

/* ==================================================
   WIEDERVERWENDBARE KARTEN-KOMPONENTEN
   ================================================== */

/* --- Standard Produkt-Karte --- */
.product-card-action { position: absolute; bottom: 0.75rem; right: 0.75rem; }
.product-card .card-body .mt-auto { padding-right: 3rem; }
.product-card-bookmark {
    z-index: 3;
    font-size: 1.1rem; cursor: pointer;
    color: #333;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%; backdrop-filter: blur(2px);
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
html.dark-mode .product-card-bookmark { background-color: rgba(30, 30, 30, 0.7); color: #fff; }
.product-card-bookmark:hover { color: var(--primary-color, #0acf83); }
.product-card-bookmark.bookmarked i { color: var(--primary-color, #0acf83); }
.product-card .card-body { padding-top: 0.75rem; }
.product-card .product-card-category { margin-bottom: 0.25rem; }
.product-card h5.card-title { height: 45px; line-height: 1.4; font-size: 1rem; margin-bottom: 0.5rem; overflow: hidden; position: relative; }
.product-card .card-title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 70%; height: 1.5em; background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--bg-section, #fff) 50%); }
html.dark-mode .product-card .card-title::after { background: linear-gradient(to right, rgba(30, 30, 30, 0), var(--bg-section, #1e1e1e) 50%); }

/* --- Highlight Produkt-Karte (Landing Page Sektionen) --- */
.product-highlight-card { display: block; position: relative; overflow: hidden; background-size: cover; background-position: center; min-height: 220px; border-width: 2px; border-style: solid; transition: transform 0.3s ease; }
.product-highlight-card:hover { transform: scale(1.02); }
.border-highlight { border-color: #fd9346; }
.border-new { border-color: var(--hanfmann-green-content); }
.border-sale { --sale-color: #dc3545; border-color: var(--sale-color); }

.highlight-card-gradient { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.125) 40%, transparent 100%); z-index: 1; }
.highlight-badge { background-color: rgba(255, 255, 255, 0.9) !important; backdrop-filter: blur(5px); border: 1px solid; font-weight: 600; font-size: 0.8rem; padding: 0.4em 0.8em; color: #333 !important; }
html.dark-mode .highlight-badge { background-color: rgba(30, 30, 30, 0.7) !important; color: #fff !important; }
.border-highlight .highlight-badge { color: #fd9346 !important; border-color: #fd9346 !important; }
.border-new .highlight-badge { color: var(--primary-color) !important; border-color: var(--primary-color) !important; position: relative; top: 1px; }
.border-sale .highlight-badge { backdrop-filter: none !important; background-color: var(--sale-color) !important; color: white !important; border-color: #000 !important; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); }
html.dark-mode .border-sale .highlight-badge { background-color: var(--sale-color) !important; color: white !important; border-color: #000 !important; }

.shop-highlight-section .highlight-card-overlay-content, .shop-new-section .highlight-card-overlay-content, .shop-sale-section .highlight-card-overlay-content { position: relative; z-index: 2; height: 100%; padding: 0.75rem; display: flex; flex-direction: column; justify-content: space-between; }
.shop-highlight-section .overlay-top, .shop-new-section .overlay-top, .shop-sale-section .overlay-top, .shop-highlight-section .overlay-bottom, .shop-new-section .overlay-bottom, .shop-sale-section .overlay-bottom { display: flex; justify-content: space-between; align-items: flex-start; }
.shop-highlight-section .overlay-bottom, .shop-new-section .overlay-bottom, .shop-sale-section .overlay-bottom { align-items: flex-end; }
.highlight-card-overlay-content .content-link { color: white; text-decoration: none; flex-grow: 1; }
.highlight-card-manufacturer { color: rgba(255, 255, 255, 0.8); text-shadow: 1px 1px 2px rgba(0,0,0,0.7); }
.shop-highlight-section .overlay-action-btn, .shop-new-section .overlay-action-btn, .shop-sale-section .overlay-action-btn { flex-shrink: 0; }

/* === NEUE, ZENTRALE REGEL FÜR KREISFÖRMIGE ACTION-BUTTONS === */
.highlight-action-btn {
    backdrop-filter: blur(5px);
    background-color: rgba(10, 207, 131, 0.5) !important;
    border-radius: 50% !important;
    width: 36px;
    height: 36px;
    padding: 0; /* Verhindert Verzerrung durch Bootstrap-Klassen */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease-in-out;
    color: white;
    border: none;
}
.highlight-action-btn:hover { background-color: rgba(10, 207, 131, 0.8) !important; color: white; }
.highlight-action-btn.bookmarked { background-color: var(--primary-color, #0acf83) !important; color: white; }

/* --- Sonstiges --- */
.price-display .original-price { opacity: 0.7; }
.product-title-highlight-main { font-size: 2.8rem; font-weight: 700; }
.sidebar-title-compact { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.75rem; line-height: 1.3; }
.add-to-cart-inline-form-v2 { display: flex; align-items: center; gap: 0.75rem; }
.price-box-compact { border: 1px solid var(--hanfmann-border-color); border-radius: 0.25rem; line-height: 1.2; flex-shrink: 0; height: 31px; display: flex; align-items: center; padding: 0 0.75rem; background-color: var(--hanfmann-bg-main); }
.price-box-compact .original-price-inline { font-size: 0.8rem; opacity: 0.6; margin-right: 0.5rem; }
.price-box-compact .sale-price-inline, .price-box-compact .regular-price-inline { font-size: 1.1rem; font-weight: 700; }
.price-box-compact .sale-price-inline { color: var(--bs-danger); }
.add-to-cart-inline-form-v2 .input-group { margin-left: auto; width: auto; }
.add-to-cart-inline-form-v2 .quantity-input { max-width: 60px; }
@media (max-width: 1400px) { .add-to-cart-inline-form-v2 { flex-wrap: wrap; } .add-to-cart-inline-form-v2 .price-box-compact, .add-to-cart-inline-form-v2 .input-group { width: 100%; margin-left: 0; } .add-to-cart-inline-form-v2 .price-box-compact { justify-content: center; } }

/* --- Kompakte Produkt-Karte (für Slider etc.) --- */
.product-card-compact {
    /* Basis-Styling wird von .card geerbt */
    border-radius: 14px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

html.dark-mode .product-card-compact {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

html.dark-mode .product-card-compact:hover {
    transform: translateY(-4px);
    border-color: rgba(10, 207, 131, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 15px rgba(10, 207, 131, 0.15);
}

.product-card-compact .compact-card-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: transparent;
}

.product-card-compact .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px 8px 0 0;
}

/* Positionierung der Overlays (kopiert vom Showcase) */
.product-card-compact .overlay-top-left { position: absolute; top: 0.5rem; left: 0.5rem; z-index: 2; }
.product-card-compact .overlay-top-right { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2; }
.product-card-compact .overlay-bottom-right { position: absolute; bottom: 0.5rem; right: 0.5rem; z-index: 2; }
.product-card-compact .overlay-bottom-left { position: absolute; bottom: 0.5rem; left: 0.5rem; z-index: 2; }

/* Styling des Inhalts unter dem Bild */
.product-card-compact .card-body {
    padding: 0.5rem 0.75rem;
}
.product-card-compact .card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    height: 40px;
    overflow: hidden;
}
.product-card-compact .price-display {
    font-size: 0.95rem;
}

/* Styling für die Preis-Box im kompakten Overlay */
.product-card-compact .overlay-bottom-left .price-display {
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    padding: 0.25rem 0.6rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.product-card-compact .overlay-bottom-left .price-display p,
.product-card-compact .overlay-bottom-left .price-display span {
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.product-card-compact .overlay-bottom-left .price-display .sale-price {
    color: var(--hanfmann-green-accent);
}

.product-card-compact .overlay-bottom-left .price-display .original-price {
    color: rgba(255,255,255,0.7);
}

/* ==================================================
   WIEDERVERWENDBARER MULTI-ITEM-PRODUKTSLIDER
   ================================================== */

/* Diese Regeln waren vorher in home.css und werden jetzt verallgemeinert */
.product-slider-wrapper {
    position: relative;
}

.product-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-top: 1rem;
    padding-bottom: 2rem;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.product-slider::-webkit-scrollbar {
    display: none;
}

.product-slide {
    flex: 0 0 auto;
    width: 240px;
}
.product-slide .product-card {
    width: 100%;
}

/* ==================================================
   BOOTSTRAP FALLBACKS (For CannaKompass Vanilla CSS)
   ================================================== */
.container-fluid { width: 100%; padding: 0 20px; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-auto { margin-top: auto !important; }
.text-white { color: #fff !important; }
.text-muted { color: #a1a1aa !important; }
.text-decoration-none { text-decoration: none !important; }
.text-reset { color: inherit !important; }
.fw-bold { font-weight: 700 !important; }
.small { font-size: 0.875em; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.h-100 { height: 100% !important; }
.d-block { display: block !important; }
.me-2 { margin-right: 0.5rem !important; }
.rounded-circle { border-radius: 50% !important; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; border-radius: 0.2rem; }

.card { position: relative; display: flex; flex-direction: column; background-color: var(--bg-section, #1e1e1e); border: 1px solid var(--border-color, #333); border-radius: 8px; }
.card-body { flex: 1 1 auto; padding: 1rem; }
.card-img-top { width: 100%; border-radius: 8px 8px 0 0; }
.badge { display: inline-block; padding: .35em .65em; font-size: .75em; font-weight: 700; line-height: 1; text-align: center; border-radius: .25rem; color: #fff; }
.bg-dark { background-color: #212529 !important; }
.btn-light { color: #212529; background-color: #f8f9fa; border-color: #f8f9fa; }
.btn-primary { color: #fff; background-color: var(--primary-color); border-color: var(--primary-color); }

/* Custom Carousel without Bootstrap JS */
.carousel { position: relative; width: 100%; overflow: hidden; border-radius: 12px; }
.carousel-inner { display: flex; width: 100%; transition: transform 0.5s ease-in-out; }
.carousel-item { flex: 0 0 100%; width: 100%; display: block !important; }
.carousel-indicators { position: absolute; right: 0; bottom: 10px; left: 0; z-index: 15; display: flex; justify-content: center; padding: 0; margin: 0; list-style: none; }
.carousel-indicators button { box-sizing: content-box; flex: 0 1 auto; width: 30px; height: 3px; padding: 0; margin-right: 3px; margin-left: 3px; text-indent: -999px; cursor: pointer; background-color: #fff; background-clip: padding-box; border: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; opacity: .5; transition: opacity .6s ease; }
.carousel-indicators button.active { opacity: 1; }
.carousel-control-prev, .carousel-control-next { position: absolute; top: 0; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: center; width: 15%; color: #fff; text-align: center; opacity: .5; transition: opacity .15s ease; border: none; cursor: pointer; }
.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }
.carousel-control-prev-icon, .carousel-control-next-icon { display: inline-block; width: 2rem; height: 2rem; background-repeat: no-repeat; background-position: 50%; background-size: 100% 100%; }
.carousel-control-prev-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e"); }
.carousel-control-next-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); }

.product-card-highlight {
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
}
.product-card-highlight:hover {
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

.product-card-sale {
    box-shadow: 0 0 6px rgba(250, 204, 21, 0.6);
    border: 1px solid rgba(250, 204, 21, 0.4) !important;
}
.product-card-sale:hover {
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.8);
}

.product-card-highlight.product-card-sale {
    box-shadow: -4px 0 6px rgba(139, 92, 246, 0.6), 4px 0 6px rgba(250, 204, 21, 0.6);
}
.product-card-highlight.product-card-sale:hover {
    box-shadow: -5px 0 10px rgba(139, 92, 246, 0.8), 5px 0 10px rgba(250, 204, 21, 0.8);
}

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }