/* ================================
   QN FLEX SHOP - Product Styles
   ================================ */

/* Produktdetail Seite */
.product-detail {
    padding: 2rem 0;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Produktbild */
.product-main-image-wrapper {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.product-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.product-main-image:hover {
    transform: scale(1.02);
}

/* Thumbnails */
.product-thumbnails {
    margin-top: 1rem;
}

.product-thumbnail {
    display: block;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.product-thumbnail:hover {
    border-color: #8b0000;
    transform: scale(1.05);
}

.product-thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.product-no-image {
    background: #f0f0f0;
    border-radius: 8px;
    padding: 4rem 2rem;
    text-align: center;
    color: #999;
}

/* Detailbilder Galerie */
.product-detail-gallery h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #555;
}

.product-detail-gallery .qn-gallery-item {
    cursor: pointer;
}

.product-detail-gallery .qn-gallery-figure {
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
}

.product-detail-gallery .qn-gallery-figure img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.product-detail-gallery .qn-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Auszeichnungen Badges */
.product-awards-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.award-badge {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Produktinfo Karte */
.product-info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.product-info-card h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #8b0000;
    color: #333;
}

.product-info-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* Produktattribute Liste */
.product-attributes {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.5rem 1rem;
    margin: 0;
}

.product-attributes dt {
    font-weight: 500;
    color: #555;
}

.product-attributes dd {
    margin: 0;
    color: #333;
}

/* Zertifikate */
.certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0.5rem;
}

.certification-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

.cert-bio { background: #6c9c2a; color: #fff; }
.cert-vegan { background: #28a745; color: #fff; }
.cert-vegetarian { background: #5cb85c; color: #fff; }
.cert-naturland { background: #2d6a4f; color: #fff; }
.cert-bioland { background: #1a5f7a; color: #fff; }
.cert-demeter { background: #e67e22; color: #fff; }
.cert-ecovin { background: #7cb518; color: #fff; }

/* Preis Box */
.product-price-box {
    background: #fff;
    border: 2px solid #8b0000;
    border-radius: 8px;
    padding: 1rem;
}

.product-price-box .price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #8b0000;
}

.product-price-box .price-info {
    display: block;
    font-size: 0.875rem;
    color: #666;
}

/* Verfügbarkeit */
.availability {
    margin-top: 0.5rem;
}

.stock-warning {
    color: #dc3545;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Warenkorb Form */
.add-to-cart-form .input-group {
    max-width: 400px;
}

.quantity-input {
    max-width: 70px !important;
    text-align: center;
    font-weight: 600;
}

.qty-minus, .qty-plus {
    width: 44px;
    font-size: 1.2rem;
    font-weight: 700;
}

.add-to-cart-form .btn-primary {
    background: #8b0000;
    border-color: #8b0000;
    white-space: nowrap;
}

.add-to-cart-form .btn-primary:hover {
    background: #6d0000;
    border-color: #6d0000;
}

/* Beschreibung & Info-Bereiche */
.product-description h2,
.product-nutrition h2,
.product-awards-text h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.food-pairing,
.storage-advice {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #8b0000;
}

.allergens {
    padding: 0.75rem;
    background: #fff3cd;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
}

/* ================================
   Nährwerttabelle
   ================================ */
.product-nutrition {
    max-width: 500px;
}

.nutrition-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #8b0000;
    margin-bottom: 1rem;
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
}

.nutrition-table th {
    font-weight: 400;
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid #8b0000;
    text-align: left;
}

.nutrition-table th:last-child {
    text-align: right;
}

.nutrition-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #eee;
}

.nutrition-table tr:last-child td {
    border-bottom: none;
}

.nutrition-table .ps-3 {
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.nutrition-minimal-notice {
    padding: 1rem;
    background: #fff5f5;
    border-left: 4px solid #8b0000;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.nutrition-minimal-notice strong {
    color: #8b0000;
}

/* ================================
   Produktliste
   ================================ */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f8f9fa;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.product-card-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 0.9rem;
}

/* Awards Overlay - gestapelt bei mehreren */
.product-card-awards {
    position: absolute;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-card-awards-gold {
    top: 10px;
}

.product-card-awards-silver {
    top: 60px;
}

.product-card-awards-bronze {
    top: 110px;
}

.product-card-awards img {
    width: 45px;
    height: 45px;
    padding: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.product-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.product-card-title a {
    color: #333;
    text-decoration: none;
}

.product-card-title a:hover {
    color: #8b0000;
}

.product-card-vintage {
    font-weight: 400;
    color: #666;
}

.product-card-taste,
.product-card-grape {
    font-size: 0.875rem;
    color: #666;
    margin: 0.25rem 0;
}

.product-card-badges {
    display: flex;
    gap: 5px;
    margin: 0.5rem 0;
}

.product-card-badges .badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
}

.badge-vegan {
    background: #28a745;
    color: #fff;
}

.badge-bio {
    background: #6c9c2a;
    color: #fff;
}

.product-card-price-row {
    margin-top: auto;
    padding-top: 0.5rem;
}

.product-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #8b0000;
}

.product-card-unit {
    font-size: 0.8rem;
    color: #666;
}

/* Buttons in Produktkarte */
.product-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.product-card-actions .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.product-card-actions .btn-primary {
    background: #8b0000;
    border-color: #8b0000;
}

.product-card-actions .btn-primary:hover {
    background: #6d0000;
    border-color: #6d0000;
}

.add-to-cart-inline {
    flex: 1;
    display: flex;
}

.add-to-cart-inline button {
    width: 100%;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 992px) {
    .product-attributes {
        grid-template-columns: 120px 1fr;
    }
}

@media (max-width: 768px) {
    .product-attributes {
        grid-template-columns: 1fr;
    }

    .product-attributes dt {
        margin-top: 0.75rem;
        font-weight: 600;
        color: #333;
    }

    .product-attributes dt:first-child {
        margin-top: 0;
    }

    .product-awards-badges {
        justify-content: center;
    }

    .award-badge {
        width: 50px;
        height: 50px;
    }

    .product-card-actions {
        flex-direction: column;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-price-box .price-value {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .add-to-cart-form,
    .product-card-actions,
    .btn {
        display: none !important;
    }

    .product-detail {
        padding: 0;
    }
}

/* ================================
   MINI-CART (Header Widget)
   ================================ */
.qn-shop-mini-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.qn-shop-mini-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.qn-shop-mini-cart-link:hover {
    background: #fff;
    border-color: #8b0000;
    color: #8b0000;
    text-decoration: none;
}

.qn-shop-cart-icon {
    font-size: 1.25rem;
}

.qn-shop-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: #8b0000;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.qn-shop-cart-count.qn-shop-empty {
    background: #999;
}

/* Bounce Animation bei Update */
.qn-shop-cart-count.qn-shop-bounce {
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
}

.qn-shop-cart-total {
    font-weight: 600;
    color: #8b0000;
    padding-left: 8px;
    border-left: 1px solid #ddd;
    margin-left: 4px;
}

/* Pulse Animation bei Warenkorb-Update */
.qn-shop-cart-updated .qn-shop-cart-icon {
    animation: cartPulse 0.6s ease;
}

@keyframes cartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ================================
   MINI-CART Dropdown (Optional)
   ================================ */
.qn-shop-mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    min-width: 320px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.qn-shop-mini-cart:hover .qn-shop-mini-cart-dropdown,
.qn-shop-mini-cart-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.qn-shop-mini-cart-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    border: 8px solid transparent;
    border-bottom-color: #fff;
}

.qn-shop-mini-cart-items {
    max-height: 300px;
    overflow-y: auto;
}

.qn-shop-mini-cart-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.qn-shop-mini-cart-item:last-child {
    border-bottom: none;
}

.qn-shop-mini-cart-item-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    background: #f8f9fa;
}

.qn-shop-mini-cart-item-info {
    flex: 1;
}

.qn-shop-mini-cart-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

.qn-shop-mini-cart-item-price {
    font-size: 0.8rem;
    color: #666;
}

.qn-shop-mini-cart-footer {
    padding-top: 1rem;
    border-top: 2px solid #8b0000;
    margin-top: 0.5rem;
}

.qn-shop-mini-cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.qn-shop-mini-cart-total .total-value {
    color: #8b0000;
}

.qn-shop-mini-cart-actions {
    display: flex;
    gap: 10px;
}

.qn-shop-mini-cart-actions .btn {
    flex: 1;
}

/* ================================
   TOAST NOTIFICATIONS
   ================================ */
.qn-shop-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.qn-shop-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    max-width: 350px;
}

.qn-shop-toast-show {
    transform: translateX(0);
    opacity: 1;
}

.qn-shop-toast-hide {
    transform: translateX(120%);
    opacity: 0;
}

.qn-shop-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.qn-shop-toast-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.qn-shop-toast-success .qn-shop-toast-icon {
    background: rgba(255,255,255,0.2);
}

.qn-shop-toast-error {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
}

.qn-shop-toast-error .qn-shop-toast-icon {
    background: rgba(255,255,255,0.2);
}

.qn-shop-toast-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #333;
}

.qn-shop-toast-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.qn-shop-toast-message {
    font-size: 0.925rem;
    line-height: 1.4;
}

/* ================================
   ADD TO CART BUTTON STATES
   ================================ */
.btn-add-to-cart {
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart .btn-icon,
.btn-add-to-cart .btn-text,
.btn-add-to-cart .btn-loading,
.btn-add-to-cart .btn-success {
    transition: opacity 0.2s, transform 0.2s;
}

.btn-add-to-cart.is-loading {
    pointer-events: none;
}

.btn-add-to-cart .btn-success {
    color: #fff;
    font-weight: bold;
}

/* Spinner Override */
.btn-add-to-cart .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* ================================
   PRODUCT CARD CART SECTION
   ================================ */
.product-card-cart-section {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Quantity Selector in Produktliste */
.product-card-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
}

.btn-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    user-select: none;
}

.btn-quantity:hover {
    background: #8b0000;
    color: #fff;
}

.btn-quantity:active {
    transform: scale(0.95);
}

.btn-quantity:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-card-quantity .quantity-input {
    width: 50px;
    height: 36px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    -moz-appearance: textfield;
}

.product-card-quantity .quantity-input::-webkit-outer-spin-button,
.product-card-quantity .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-card-quantity .quantity-input:focus {
    outline: none;
    background: #fff;
    border-radius: 4px;
}

/* Add-to-Cart Button in Produktkarte */
.product-card-cart-section .btn-add-to-cart {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: #8b0000;
    border-color: #8b0000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-card-cart-section .btn-add-to-cart:hover {
    background: #6d0000;
    border-color: #6d0000;
    transform: translateY(-1px);
}

.product-card-cart-section .btn-add-to-cart:active {
    transform: translateY(0);
}

/* Details Link */
.product-card-details {
    text-align: center;
}

.product-card-details .btn-outline-secondary {
    width: 100%;
    font-size: 0.85rem;
}

/* ================================
   WARENKORB SEITE - Quantity
   ================================ */
.qn-shop-quantity-wrapper {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 2px;
}

.qn-shop-quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.qn-shop-quantity-btn:hover {
    background: #8b0000;
    color: #fff;
}

.qn-shop-quantity-input {
    width: 50px;
    height: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.qn-shop-quantity-input::-webkit-outer-spin-button,
.qn-shop-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ================================
   PRODUCT DETAIL - Quantity Selector
   ================================ */
.product-detail-quantity {
    margin-bottom: 1rem;
}

.product-detail-quantity .form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
}

.quantity-selector .btn-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: #fff;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    user-select: none;
}

.quantity-selector .btn-quantity:hover {
    background: #8b0000;
    color: #fff;
}

.quantity-selector .btn-quantity:active {
    transform: scale(0.95);
}

.quantity-selector .quantity-input {
    width: 70px;
    height: 44px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    -moz-appearance: textfield;
}

.quantity-selector .quantity-input::-webkit-outer-spin-button,
.quantity-selector .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-selector .quantity-input:focus {
    outline: none;
    background: #fff;
    border-radius: 4px;
}

/* Add to Cart Section im Detail */
.add-to-cart-section .btn-add-to-cart {
    font-size: 1.1rem;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #8b0000;
    border-color: #8b0000;
    transition: all 0.3s ease;
}

.add-to-cart-section .btn-add-to-cart:hover {
    background: #6d0000;
    border-color: #6d0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.add-to-cart-section .btn-add-to-cart:active {
    transform: translateY(0);
}

.add-to-cart-section .btn-add-to-cart .btn-icon {
    font-size: 1.25rem;
}

/* Product Navigation */
.product-navigation {
    margin-top: 2rem;
}

/* ================================
   Responsive Mini-Cart
   ================================ */
@media (max-width: 768px) {
    .qn-shop-cart-total {
        display: none !important;
    }

    .qn-shop-mini-cart-link {
        padding: 8px 12px;
    }

    .qn-shop-mini-cart-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 16px 16px 0 0;
        min-width: 100%;
        max-height: 70vh;
        overflow-y: auto;
    }

    .qn-shop-mini-cart-dropdown::before {
        display: none;
    }

    .qn-shop-toast-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .qn-shop-toast {
        max-width: 100%;
    }
}
.qn-shop-mini-cart {
    position: fixed;
    display: inline-flex;
    align-items: center;
    z-index: 1000000;
    right:0;
}

/* ================================
   CHECKOUT - Gespeicherte Adressen
   ================================ */
.qn-shop-saved-addresses {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.qn-shop-saved-addresses h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #8b0000;
}

.saved-addresses-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.saved-address-item {
    background: #fff;
    border: 2px solid #dee2e6 !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.saved-address-item:hover {
    border-color: #8b0000 !important;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.1);
}

.saved-address-item:has(.form-check-input:checked) {
    border-color: #8b0000 !important;
    background: #fff5f5;
}

.saved-address-item .form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.15em;
}

.saved-address-item .form-check-input:checked {
    background-color: #8b0000;
    border-color: #8b0000;
}

.saved-address-item .form-check-label {
    cursor: pointer;
    padding-left: 0.5rem;
}

.saved-address-item .badge {
    font-size: 0.7rem;
    font-weight: 500;
    vertical-align: middle;
}

.saved-address-item small {
    line-height: 1.5;
}

/* Neue Adresse Option */
.saved-address-item:last-child {
    background: #e9ecef;
    border-style: dashed !important;
}

.saved-address-item:last-child:hover {
    background: #fff;
}

/* Lieferadresse Felder */
#deliveryAddressSection legend {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

#newAddressFields {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid #dee2e6;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .saved-address-item {
        padding: 0.875rem !important;
    }

    .qn-shop-saved-addresses {
        padding: 1rem;
    }
}

/* ================================
   CHECKOUT PROGRESS STEPS
   ================================ */
.qn-checkout-progress {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.qn-checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Individual Step */
.qn-checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
}

/* Step Indicator (Circle) */
.qn-checkout-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e9ecef;
    border: 3px solid #dee2e6;
    color: #6c757d;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.qn-checkout-step-number {
    line-height: 1;
}

.qn-checkout-step-icon {
    width: 20px;
    height: 20px;
}

/* Step Label */
.qn-checkout-step-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* Connector Line */
.qn-checkout-connector {
    flex: 1;
    height: 3px;
    background: #dee2e6;
    margin: 0 0.25rem;
    margin-bottom: 28px;
    min-width: 40px;
    max-width: 100px;
    transition: background 0.3s ease;
}

/* === STATES === */

/* Active Step */
.qn-checkout-step.is-active .qn-checkout-step-indicator {
    background: #8b0000;
    border-color: #8b0000;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.2);
    transform: scale(1.1);
}

.qn-checkout-step.is-active .qn-checkout-step-label {
    color: #8b0000;
    font-weight: 600;
}

/* Completed Step */
.qn-checkout-step.is-complete .qn-checkout-step-indicator {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.qn-checkout-step.is-complete .qn-checkout-step-label {
    color: #28a745;
}

/* Completed Connector */
.qn-checkout-connector.is-complete {
    background: #28a745;
}

/* Pulse Animation for Active Step */
@keyframes stepPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(139, 0, 0, 0.1);
    }
}

.qn-checkout-step.is-active .qn-checkout-step-indicator {
    animation: stepPulse 2s ease-in-out infinite;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .qn-checkout-step-indicator {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .qn-checkout-step-icon {
        width: 16px;
        height: 16px;
    }

    .qn-checkout-step-label {
        font-size: 0.75rem;
    }

    .qn-checkout-connector {
        min-width: 20px;
        max-width: 60px;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .qn-checkout-steps {
        justify-content: space-between;
        width: 100%;
    }

    .qn-checkout-step-label {
        position: absolute;
        bottom: -24px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.65rem;
    }

    .qn-checkout-connector {
        margin-bottom: 0;
        flex: 1;
    }

    .qn-checkout-progress {
        padding-bottom: 2rem;
    }
}

/* ================================
   VARIANTEN-AUSWAHL
   ================================ */
.product-variants {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #eee;
}

.product-variants .variants-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.variant-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.variant-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.variant-option:hover:not(.soldout) {
    border-color: #8b0000;
    background: #fff5f5;
}

.variant-option.active {
    border-color: #8b0000;
    background: #fff5f5;
}

.variant-option.active .variant-check {
    opacity: 1;
    transform: scale(1);
}

.variant-option.soldout {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e9ecef;
}

.variant-option.soldout .variant-name {
    text-decoration: line-through;
}

.variant-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.variant-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.variant-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f8f9fa;
}

.variant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.variant-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.variant-name {
    font-weight: 500;
    color: #333;
}

.variant-color-info {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.variant-color-info .color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.variant-size {
    font-size: 0.875rem;
    color: #666;
}

.variant-price-diff {
    font-weight: 600;
    color: #8b0000;
    margin-left: auto;
}

/* Badges für Verfügbarkeit */
.variant-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 25px;
    margin-left: auto;
    white-space: nowrap;
}

.variant-soldout-badge {
    background: #dc3545;
    color: #fff;
}

.variant-lowstock-badge {
    background: #ffc107;
    color: #333;
}

/* Checkmark für ausgewählte Variante */
.variant-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8b0000;
    color: #fff;
    border-radius: 50%;
    margin-left: auto;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.variant-check svg {
    width: 14px;
    height: 14px;
}

/* Responsive Varianten */
@media (max-width: 576px) {
    .variant-option {
        padding: 0.625rem 0.75rem;
    }

    .variant-image {
        width: 40px;
        height: 40px;
    }

    .variant-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .variant-price-diff {
        margin-left: 0;
    }

    .variant-check {
        width: 20px;
        height: 20px;
    }

    .variant-check svg {
        width: 12px;
        height: 12px;
    }
}

/* ================================
   VARIANTEN-DROPDOWN (Produktliste)
   ================================ */
.product-card-variants {
    margin-top: 0.5rem;
}

.variant-select {
    width: 100%;
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 0.85rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.variant-select:hover {
    border-color: #8b0000;
}

.variant-select:focus {
    border-color: #8b0000;
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.1);
    outline: none;
}

.variant-select option:disabled {
    color: #999;
    font-style: italic;
}

/* ================================
   VARIANTEN-THUMBNAILS (Detailseite)
   ================================ */
.product-variant-thumbnails {
    margin-top: 1rem;
}

.variant-thumbnail {
    display: block;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.variant-thumbnail:hover {
    border-color: #8b0000;
    transform: scale(1.05);
}

.variant-thumbnail.active {
    border-color: #8b0000;
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.2);
}

.variant-thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Produktliste Variantenbild */
.variant-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: opacity 0.3s ease;
}

/* ================================
   VARIANTEN-VERFÜGBARKEITS-BADGES
   ================================ */
.variant-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.variant-soldout-badge {
    background-color: #dc3545;
    color: white;
}

.variant-lowstock-badge {
    background-color: #ffc107;
    color: #212529;
}

.variant-soon-badge {
    background-color: #17a2b8;
    color: white;
}

.variant-preorder-badge {
    background-color: #6c757d;
    color: white;
}

/* Deaktivierter Warenkorb-Button */
.btn-add-to-cart.btn-disabled,
.btn-add-to-cart:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-add-to-cart.btn-disabled:hover,
.btn-add-to-cart:disabled:hover {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
}

/* ================================
   GRUNDPREIS / LITERPREIS (PAngV)
   ================================ */

/* Produktliste - Grundpreis */
.product-card-base-price {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 2px;
}

.product-card-base-price small {
    font-size: inherit;
}

/* Detailseite - Grundpreis */
.product-price-box .price-unit {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    margin-left: 4px;
}

.product-price-box .price-base-price {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-top: 4px;
}

/* ================================
   MINI-CART VISIBILITY STATES
   ================================ */

/* Gesamten Mini-Cart ausblenden wenn leer */
.qn-shop-mini-cart.is-empty {
    display: none !important;
}

/* NUR den ERSTEN Mini-Cart anzeigen (verhindert Duplikate) */
.qn-shop-mini-cart ~ .qn-shop-mini-cart {
    display: none !important;
}

/* Sanfte Ein-/Ausblend-Animation */
.qn-shop-mini-cart {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.qn-shop-mini-cart.is-hidden {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

.qn-shop-mini-cart.is-visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Dropdown ausblenden wenn Warenkorb leer */
.qn-shop-mini-cart-dropdown.is-empty {
    display: none !important;
}

.qn-shop-mini-cart-empty {
    padding: 1.5rem;
    text-align: center;
    color: #666;
}

.qn-shop-mini-cart-empty p {
    margin: 0;
}