/* cart.css – Warenkorbseite */

/* Banner oben */
.shop-banner {
    height: 140px;
}

/* -----------------------------------------
   Top-Bar Layout
------------------------------------------ */

.shop-top-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-areas: "nav account cart";
    gap: 1.5rem;
}

.shop-top-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.shop-top-section h2 {
    margin: 0 0 10px;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-top-section--nav    { grid-area: nav; }
.shop-top-section--account{ grid-area: account; }
.shop-top-section--cart   { grid-area: cart; }

.shop-nav-header,
.shop-top-section h2 {
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
}

.shop-heading-icon {
    font-size: 1.1rem;
}

/* Navigation innen */
.shop-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 2rem;
    font-size: 0.9rem;
}
.shop-nav-col a {
    display: block;
    text-decoration: none;
    color: inherit;
    line-height: 1.6;
}
.shop-nav-col a:hover {
    text-decoration: underline;
}

.shop-account-grid {
    display: grid;
    grid-template-columns: 1fr; /* nur eine Spalte */
    gap: 0.2rem 0;
}

.shop-account-link {
    text-decoration: none;
    color: inherit;
    line-height: 1.6;
    font-size: 0.9em; /* gewünschte Schriftgröße */
}
.shop-account-link:hover {
    text-decoration: underline;
}

/* Warenkorb-Zusammenfassung */
.shop-cart-summary {
    font-size: 0.9rem;
}
.shop-cart-summary .cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

/* Zur Kasse */
.shop-cart-button {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    background: #111;
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.shop-cart-button i {
    font-size: 0.95rem;
}

/* Tablet: Nav oben, Konto + Warenkorb nebeneinander */
@media (max-width: 992px) {
    .shop-top-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "nav nav"
            "account cart";
    }
}

/* Mobile: alles untereinander */
@media (max-width: 768px) {
    .shop-top-bar {
        grid-template-columns: 1fr;
        grid-template-areas:
            "nav"
            "account"
            "cart";
    }
}

/* -----------------------------------------
   Mobile: Zurück zum Shop
------------------------------------------ */

.cart-mobile-shop-link {
    display: none;
    padding: 1rem 1rem 0.3rem; /* etwas weniger Abstand nach unten */
}
.cart-mobile-shop-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.cart-mobile-shop-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border-radius: 18px;
    padding: 0.8rem 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
}
.cart-mobile-shop-button i {
    font-size: 1rem;
}
@media (max-width: 768px) {
    .cart-mobile-shop-link {
        display: block;
    }
}

/* -----------------------------------------
   Cart Tools (Icon-Buttons links)
------------------------------------------ */

.cart-products-section {
    padding: 2rem 0 3rem;
}
.cart-products-inner {
    width: 100%;
}

.cart-tools {
    max-width: 1200px;
    margin: 0 auto 0.75rem;
    padding: 0 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start; /* linksbündig */
}

/* Icon-only Buttons */
.cart-tool-icon {
    border: none;
    background: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    cursor: pointer;
}
.cart-tool-icon i {
    font-size: 0.95rem;
}

/* -----------------------------------------
   Produkt-Slider – volle Breite
------------------------------------------ */

.cart-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}
.cart-slider-arrow {
    border: none;
    background: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    cursor: pointer;
    flex-shrink: 0;
}
.cart-slider-arrow i {
    font-size: 1rem;
}

/* Viewport mit nativen Scroll / Swipe */
.cart-slider-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    position: relative;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Track */
.cart-slider-track {
    display: flex;
    gap: 1rem;
    padding: 0 1rem;
}

.product-card.cart-item .product-card-inner {
    background: #ffffff;
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Bild */
.product-card.cart-item .product-image-wrapper {
    margin-bottom: 0.75rem;
}
.product-card.cart-item .product-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Titel / Text / Preis */
.product-card.cart-item .product-title {
    font-size: 1rem;
    margin: 0 0 0.25rem;
}
.product-card.cart-item .product-short-desc {
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}
.product-card.cart-item .product-price-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
}
.product-card.cart-item .product-price {
    font-size: 0.95rem;
    font-weight: 600;
}
.product-card.cart-item .product-price-note {
    font-size: 0.75rem;
    font-weight: 400;
}

/* Rabattanzeige */
.product-card.cart-item.has-discount .product-price-original {
    text-decoration: line-through;
    opacity: 0.6;
}
.product-card.cart-item .product-price-discount {
    color: #0000a0;
}

/* Entfernen-Icon */
.product-card.cart-item .cart-remove-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    border: none;
    background: rgba(255,255,255,0.9);
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0,0,0,0.12);
    background-color:#e00000;
    color:#fff;
}

/* Mengensteuerung */
.product-card.cart-item .cart-qty-controls {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.product-card.cart-item .qty-btn {
    border: none;
    background: #111;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}
.product-card.cart-item .qty-input {
    width: 56px;
    text-align: center;
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.85rem;
}

/* Leerzustand */
.cart-empty-message {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 2.95rem;
}

/* Mobile Sliderbreite */
@media (max-width: 768px) {
    .product-card.cart-item {
        flex: 0 0 75%;
        max-width: 75%;
    }
    .cart-banner-title {
        font-size: 1.6rem;
    }
    .cart-slider-arrow {
        width: 34px;
        height: 34px;
    }
    .cart-tools {
        justify-content: flex-start;
    }
}

/* -----------------------------------------
   Modals
------------------------------------------ */

.cart-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.cart-modal-overlay.is-visible {
    display: flex;
}
.cart-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 14px 40px rgba(0,0,0,0.2);
}
.cart-modal h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}
.cart-modal p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
}
.cart-modal-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}
.cart-modal-btn {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
    cursor: pointer;
    background: #111;
    color: #fff;
}
.cart-modal-btn.cart-modal-cancel,
.cart-modal-btn.cart-modal-close {
    background: #e0e0e0;
    color: #222;
}

/* Gutscheinmodal */
.cart-coupon-input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.cart-coupon-input {
    flex: 1;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}
.cart-coupon-message {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    min-height: 1.1em;
}
.cart-coupon-message.is-error {
    color: #b00020;
}
.cart-coupon-message.is-success {
    color: #0d7a2b;
}
.cart-coupon-list-wrapper p {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
}

/* Pillen im Gutschein-Modal */
.cart-coupon-list--modal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.cart-coupon-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem 0.35rem 0.6rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-size: 0.85rem;
}
.cart-coupon-pill button {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cart-coupon-pill i {
    font-size: 0.85rem;
}

.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.confirm-modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.confirm-modal {
    background: #fff;
    border-radius: 14px;
    width: 90%;
    max-width: 420px;
    padding: 1rem 1.4rem 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    animation: confirmModalPop .25s ease;
}

@keyframes confirmModalPop {
    0% { transform: scale(.92); opacity: .3; }
    100% { transform: scale(1); opacity: 1; }
}

.confirm-modal-header h3 {
    margin: 0 0 .6rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: .8rem;
    margin-top: 1.2rem;
}

.confirm-modal-actions .btn-cancel,
.confirm-modal-actions .btn-ok {
    padding: .55rem 1.2rem;
    border-radius: 8px;
    font-size: .9rem;
    cursor: pointer;
    border: none;
}

.btn-cancel {
    background: #ddd;
    color: #333;
}

.btn-ok {
    background: #c62828;
    color: #fff;
}

.btn-ok:hover {
    background: #b41e1e;
}
.btn-cancel:hover {
    background: #ccc;
}

