/* ==========================================================================
   Produktdetailseite - AMEYZE Shop
   ========================================================================== */

/* Product Gallery */
.product-gallery {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .product-gallery {
        max-width: 90%;
    }
}

@media (min-width: 1200px) {
    .product-gallery {
        max-width: 520px;
    }
}

/* Variation Selection - Base styles for product card badges */
.variation-selection-gallery .variant-buttons-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
}

.variation-selection-gallery .variant-badge-item {
    text-transform: none;
}

/* ==========================================================================
   Product Selection Table - Desktop
   ========================================================================== */

.product-selection-table {
    border: 1px solid rgba(127, 77, 90, 0.15);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.product-selection-table .variation-selection-gallery {
    padding: 0;
    margin: 0;
}

/* Selection Row - shared styles for all table rows */
.selection-row,
.product-selection-table .variation-tier {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(127, 77, 90, 0.1);
}

.selection-row:last-child,
.product-selection-table .variation-tier:last-child {
    border-bottom: 1px solid rgba(127, 77, 90, 0.1);
}

.selection-label,
.product-selection-table .variation-tier__label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    min-width: 90px;
    flex-shrink: 0;
}

.selection-value {
    flex: 1;
}

/* Variation Tier Options */
.variation-tiers-container {
    width: 100%;
}

.variation-tier__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variation-tier__option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    min-width: 44px;
    min-height: 40px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.variation-tier__option:hover {
    border-color: #c9a0aa;
    background: #fdf8f9;
    box-shadow: 0 3px 8px rgba(127, 77, 90, 0.12);
    transform: translateY(-1px);
}

.variation-tier__option:focus {
    outline: none;
    border-color: #7f4d5a;
    box-shadow: 0 0 0 3px rgba(127, 77, 90, 0.2);
}

.variation-tier__option.selected {
    border-color: #111;
    background: #111;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.variation-tier__option.selected:hover {
    background: #333;
    border-color: #333;
}

.variation-tier__option .option-text {
    line-height: 1.2;
}

/* Price Row in Table */
.price-row .price-display {
    margin: 0;
    padding: 0;
    justify-content: flex-start;
}

.price-row .price-current {
    font-size: 1.35rem;
}

.price-row .price-old {
    font-size: 0.95rem;
}

/* ==========================================================================
   Product Selection Table - Mobile Adjustments
   ========================================================================== */

/* Mobile variation selection under gallery - table style with horizontal rows */
@media (max-width: 991px) {
    .variation-selection-gallery {
        border: 1px solid rgba(127, 77, 90, 0.15);
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
        margin-top: 0.75rem !important;
        padding: 0 !important;
    }

    .variation-selection-gallery .variation-tier {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(127, 77, 90, 0.1);
    }

    .variation-selection-gallery .variation-tier:last-child {
        border-bottom: none;
    }

    .variation-selection-gallery .variation-tier__label {
        min-width: 70px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .variation-selection-gallery .variation-tier__options {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .variation-selection-gallery .variation-tier__option {
        padding: 0.4rem 0.8rem;
        min-height: 36px;
        font-size: 0.85rem;
    }

    /* Mobile table adjustments */
    .product-selection-table {
        margin-top: 0.75rem;
    }

    .product-selection-table .selection-row,
    .product-selection-table .variation-tier {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .product-selection-table .selection-label,
    .product-selection-table .variation-tier__label {
        min-width: 70px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .product-selection-table .price-current {
        font-size: 1.25rem;
    }

    .product-selection-table .price-old {
        font-size: 0.9rem;
    }
}

/* Small mobile adjustments - keep horizontal layout */
@media (max-width: 480px) {
    .variation-selection-gallery .variation-tier,
    .product-selection-table .selection-row,
    .product-selection-table .variation-tier {
        gap: 0.5rem;
        padding: 0.625rem 0.75rem;
    }

    .variation-selection-gallery .variation-tier__label,
    .product-selection-table .selection-label,
    .product-selection-table .variation-tier__label {
        min-width: 60px;
        font-size: 0.8rem;
    }

    .variation-selection-gallery .variation-tier__option,
    .product-selection-table .variation-tier__option {
        padding: 0.3rem 0.6rem;
        min-height: 32px;
        font-size: 0.8rem;
    }

    .product-selection-table .price-current {
        font-size: 1.15rem;
    }
}

.main-swiper {
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 1rem;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1 !important;
}

.main-swiper .swiper-wrapper {
    width: 100%;
    height: 100% !important;
}

.main-swiper .swiper-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff;
    width: 100%;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden;
    position: relative;
}

.main-image {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    cursor: zoom-in;
    display: block;
}

/* Thumbnail Swiper - 1:1 Format, zentriert */
.thumb-swiper {
    margin-top: 10px;
    overflow: hidden;
}

.thumb-swiper .swiper-wrapper {
    align-items: center;
    /* Für centeredSlides: Die Slides werden automatisch zentriert */
}

.thumb-swiper .swiper-slide {
    position: relative;
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #fff;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-swiper .swiper-slide:hover {
    opacity: 0.8;
}

.thumb-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #7f4d5a;
    box-shadow: 0 2px 8px rgba(127, 77, 90, 0.3);
}

.thumb-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Mobile Anpassungen für Thumbnails */
@media (max-width: 767px) {
    .thumb-swiper .swiper-slide {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .thumb-swiper .swiper-slide {
        width: 60px;
        height: 60px;
    }
}

/* Swiper Navigation - Elegante Pfeile im AMEYZE-Stil */
.main-swiper .swiper-button-next,
.main-swiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(127, 77, 90, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent; /* Verstecke das Standard-Icon */
}

.main-swiper .swiper-button-next:hover,
.main-swiper .swiper-button-prev:hover {
    background: var(--ameyze-bg-light);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(127, 77, 90, 0.25);
}

/* Custom Pfeile mit reinem CSS - keine Font-Abhängigkeit */
.main-swiper .swiper-button-next::after,
.main-swiper .swiper-button-prev::after {
    content: '';
    font-family: inherit;
    font-size: inherit;
    width: 10px;
    height: 10px;
    border: solid #7f4d5a;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
}

.main-swiper .swiper-button-prev::after {
    transform: translate(-50%, -50%) rotate(135deg);
}

.main-swiper .swiper-button-next::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Positionierung der Navigation-Buttons */
.main-swiper .swiper-button-prev {
    left: 10px;
    top: 50%;
    margin-top: -22px; /* Halbe Button-Höhe für vertikale Zentrierung */
}

.main-swiper .swiper-button-next {
    right: 10px;
    top: 50%;
    margin-top: -22px; /* Halbe Button-Höhe für vertikale Zentrierung */
}

/* Deaktivierte Buttons */
.main-swiper .swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Sicherstellen, dass die Buttons sichtbar sind */
/* Position ist bereits relativ im Haupt-Swiper-Stil definiert */

.main-swiper .swiper-button-next:not(.swiper-button-disabled),
.main-swiper .swiper-button-prev:not(.swiper-button-disabled) {
    opacity: 1;
    visibility: visible;
}

/* Verstecke Navigation bei Touch-Geräten optional */
@media (hover: none) and (pointer: coarse) {
    .main-swiper .swiper-button-next,
    .main-swiper .swiper-button-prev {
        opacity: 0.8;
    }
}

/* Swiper Pagination */
.main-swiper .swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    z-index: 10;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #d8a9b4;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: #7f4d5a;
    opacity: 1;
}

/* Product Info */
.product-info-detail {
    padding-left: 2rem;
}

.product-categories {
    margin-bottom: 1rem;
}

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #fff9f9;
    color: #7f4d5a;
    font-size: 0.85rem;
    border-radius: 20px;
    margin-right: 0.5rem;
}

.product-title {
    font-size: 1.75rem;  /* Reduziert von 2.5rem für Konsistenz */
    font-weight: 400;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-short-description {
    font-size: 1rem;  /* Reduziert von 1.1rem */
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Price Display - Base styles */
.price-display {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    transition: opacity 0.2s ease;
}

.price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 0.95rem;
    font-weight: 400;
    display: inline-block;
}

.price-current {
    color: #7f4d5a;
    font-weight: 600;
    font-size: 1.35rem;
    display: inline-block;
    line-height: 1.2;
}

.price-unit-hint {
    flex-basis: 100%;
    font-size: 0.8rem;
    font-weight: 400;
    color: #888;
    margin-top: 0.125rem;
}

/* Rabatt-Badge für große Ersparnisse - Hintergrund entfernt */

/* Attribute Selection */
.attribute-group {
    margin-bottom: 2rem;
}

.attribute-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 0.95rem;  /* Konsistente Schriftgröße */
}

/* Color Swatches */
.color-swatches {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.color-swatch.active {
    border-color: #7f4d5a;
    transform: scale(1.05);
}

.color-swatch.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Option Buttons */
.option-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.option-button {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.option-button:hover {
    border-color: #d8a9b4;
    background: #fff9f9;
}

.option-button.active {
    border-color: #7f4d5a;
    background: #7f4d5a;
    color: #fff;
}

/* ==========================================================================
   Quantity Selector Component
   ========================================================================== */

.quantity-selector {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.quantity-selector:hover {
    border-color: #c9a0aa;
    box-shadow: 0 3px 8px rgba(127, 77, 90, 0.12);
}

.quantity-selector:focus-within {
    border-color: #7f4d5a;
    box-shadow: 0 0 0 3px rgba(127, 77, 90, 0.15);
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 0;
    margin: 0;
}

.qty-btn:hover {
    background: rgba(127, 77, 90, 0.08);
    color: #7f4d5a;
}

.qty-btn:active {
    transform: scale(0.92);
    background: rgba(127, 77, 90, 0.12);
}

.qty-input {
    width: 50px;
    height: 40px;
    border: none;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    background: transparent;
    padding: 0;
    margin: 0;
}

.qty-input:focus {
    outline: none;
    background: rgba(127, 77, 90, 0.03);
}

/* Hide number input arrows */
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}

/* Mobile: Smaller quantity selector */
@media (max-width: 576px) {
    .qty-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .qty-input {
        width: 44px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    /* Kein Hintergrund mehr - transparent */
}

.btn-add-to-cart {
    flex: 1;
    padding: 14px 28px;  /* Etwas kleiner */
    font-size: 1rem;  /* Reduziert von 1.125rem */
    font-weight: 600;
    background: linear-gradient(135deg, #7f4d5a 0%, #a66b7a 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(127, 77, 90, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-add-to-cart:hover::before {
    width: 300px;
    height: 300px;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #a66b7a 0%, #d8a9b4 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(127, 77, 90, 0.35);
}

.btn-add-to-cart:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(127, 77, 90, 0.25);
}

/* Wishlist Button - direkt neben dem Titel */
.product-title-wrapper {
    display: flex;
    align-items: center; /* Vertikale Zentrierung */
    gap: 1rem;
    justify-content: flex-start; /* Links ausrichten */
}

.product-title-wrapper .product-title {
    flex: 0 1 auto; /* Titel nimmt nur den benötigten Platz ein */
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .product-title-wrapper {
        gap: 0.75rem;
    }
}

/* Product Accordion - Modernes, elegantes Design */
.product-accordion {
    margin-top: 3rem;
}

.product-accordion .accordion-item {
    background: #fff;
    border: 1px solid rgba(127, 77, 90, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-accordion .accordion-item:hover {
    box-shadow: 0 4px 20px rgba(127, 77, 90, 0.1);
}

.product-accordion .accordion-button {
    background: #fff;
    color: #333;
    font-weight: 600;
    font-size: 1rem;  /* Reduziert von 1.1rem */
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.product-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(to right, #fff9f9, #ffffff);
    color: #7f4d5a;
    box-shadow: none;
}

.product-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.product-accordion .accordion-button::after {
    background-image: none;
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: #7f4d5a;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.product-accordion .accordion-button:not(.collapsed)::after {
    content: '−';
    transform: none;
}

.product-accordion .accordion-button i {
    color: #7f4d5a;
}

.product-accordion .accordion-body {
    padding: 1.5rem;
    font-size: 0.95rem;  /* Leicht reduziert */
    line-height: 1.7;
    color: #666;
}

/* Shipping Info Styling */
.shipping-info h5,
.return-info h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.shipping-info ul li,
.return-info p {
    line-height: 1.8;
}

.shipping-info .bi-check-circle {
    font-size: 1.1rem;
}

/* Details Table */
.details-table {
    margin-top: 1rem;
}

.details-table td {
    padding: 1rem;
    vertical-align: middle;
}

.details-table td:first-child {
    width: 40%;
    background: #f8f9fa;
}

/* Product Tags */
.product-tags {
    margin-top: 2rem;
}

.tag-item {
    display: inline-block;
    padding: 4px 12px;
    background: #e9ecef;
    color: #666;
    font-size: 0.85rem;
    border-radius: 15px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Alert Styles */
.alert-info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-warning .alert-heading {
    color: #856404;
    font-size: 1.1rem;
}

/* Loading State */
.product-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Swiper Mobile Optimierungen */
.swiper-pagination {
    bottom: 10px;
}

.swiper-pagination-bullet {
    background: #7f4d5a;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 991px) {
    .product-info-detail {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .product-gallery {
        position: relative;
        top: auto;
    }
    
    /* Swiper bleibt 1:1 auf Tablets */
    /* Aspect ratio wird durch ::before Element gehandhabt */
}

@media (max-width: 768px) {
    /* Mobile Header */
    .product-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        flex: 1;
    }
    
    /* Flexbox-Anpassung für Titel und Wishlist auf Mobile */
    .d-flex.align-items-start {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .product-short-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile Gallery - 1:1 Format */
    /* Aspect ratio wird durch ::before Element gehandhabt */

    .main-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .thumb-swiper {
        height: 60px;
        margin-top: 10px;
    }
    
    .thumb-swiper .swiper-slide {
        height: 56px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 36px;
        height: 36px;
        display: none; /* Verstecke auf sehr kleinen Bildschirmen */
    }
    
    /* Mobile Price */
    .price-display {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile Attributes */
    .color-swatches {
        gap: 8px;
    }
    
    .color-swatch {
        width: 36px;
        height: 36px;
    }
    
    .option-buttons {
        gap: 8px;
    }
    
    .option-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Mobile Actions - ohne weißen Hintergrund */
    .action-buttons {
        flex-direction: column;
        margin-bottom: 1rem;
    }
    
    .btn-add-to-cart {
        padding: 12px 24px;
        font-size: 0.95rem;  /* Angepasst */
    }

    /* Variation Selection Gallery Mobile */
    .variation-selection-gallery {
        padding: 0.5rem 0;
    }

    /* Mobile Tabs */
    .product-tabs {
        gap: 0.5rem;
        padding: 0.25rem;
    }
    
    .product-tabs .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .tab-inner {
        padding: 1.5rem 1rem;
    }
    
    /* Mobile Features */
    .product-features {
        padding: 1.5rem 1rem;
        margin-bottom: 80px; /* Platz für sticky action buttons */
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Sehr kleine Bildschirme */
    .product-title {
        font-size: 1.5rem;
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Swiper bleibt quadratisch */
    /* Aspect ratio wird durch ::before Element gehandhabt */
    
    .quantity-selector {
        transform: scale(0.9);
    }
    
    /* Kompakte Attribute */
    .quantity-section .attribute-label {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .color-swatch {
        width: 32px;
        height: 32px;
    }
}

/* Touch-optimierte Interaktionen */
@media (hover: none) and (pointer: coarse) {
    .color-swatch,
    .option-button,
    .qty-btn {
        transition: none;
    }
    
    .color-swatch:active {
        transform: scale(0.95);
    }
    
    .option-button:active {
        transform: scale(0.98);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-detail-section {
    animation: fadeIn 0.6s ease-out;
}

/* Toast Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.toast {
    animation: slideInRight 0.3s ease-out;
}

/* Bounce Animation for Cart Counter */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.cart-counter.bounce {
    animation: bounce 0.6s ease;
}

/* ===== Swiper - Prevent User Selection on Rapid Clicks ===== */
.swiper,
.swiper-wrapper,
.swiper-slide {
    user-select: none;
    -webkit-user-select: none;
}

.swiper-button-next,
.swiper-button-prev {
    user-select: none;
    -webkit-user-select: none;
}

.swiper-slide img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}
