/* cart.css – Warenkorbseite */

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

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

.shop-breadcrumb-bar {
    display: flex;
    justify-content: space-between;  
    align-items: center;
    max-width: 1200px;               
    margin: 0 auto;                 
    padding: 0 24px;                
}

.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 h4,
.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: var(--bg-dark);
    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: relative;
    top: -10px;
    left: 5px;
    border: none;
    width: 30px;
    height: 30px;
    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;
    z-index: 10;
}

.product-card.cart-item .cart-points-btn {
    position: relative;
    top: -10px;
    left: 5px;
    border: none;
    background: rgba(49,141,244,0.9);
    width: 30px;
    height: 30px;
    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);
    color:#fff;
    z-index: 10;
}

.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 80%;
        max-width: 80%;
    }
    .cart-banner-title {
        font-size: 1.6rem;
    }
    .cart-slider-arrow {
        width: 34px;
        height: 34px;
    }
    .cart-tools {
        justify-content: flex-start;
    }
    .cart-empty-message {
        font-size: 1.0em;
    }
}

@media (max-width: 1024px) {
    .cart-empty-message {
        font-size: 2.6em;
    }
}

/* -----------------------------------------
   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;
}

/* Reihe mit Share-Buttons */
.product-share-row {
    display: flex;
    justify-content: flex-end; 
    flex-wrap: wrap;
    margin-top: 16px;
    gap: 10px;
    margin-bottom: 16px;
}

.restock-btn,
.product-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: none;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.product-share-btn i {
    font-size: 0.9rem;
}

/* Facebook-Button */
.product-share-btn-facebook {
    background: #1877F2;
}

/* E-Mail-Button */
.product-share-btn-email {
    background: #111;
}

/* Modal Overlay */
.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
    box-sizing: border-box;
}

/* Sichtbar-Zustand */
.share-modal-overlay.is-visible {
    display: flex;
}

/* Modal Box */
.share-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

/* Modal Header / Body / Footer */
.share-modal-header,
.share-modal-body {
    padding: 16px 18px;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 1rem;
}

.share-modal-close {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.share-form-row {
    margin-bottom: 12px;
}

.share-form-row label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.share-form-row input,
.share-form-row textarea {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 7px 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.share-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}

.share-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 18px 16px;
}

.share-btn {
    border-radius: 999px;
    padding: 8px 14px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.share-btn-cancel {
    background: #f3f3f3;
}

.share-btn-submit {
    background: #111;
    color: #fff;
}

.share-status-message {
    margin-top: 8px;
    font-size: 0.85rem;
}

.share-status-message.error {
    color: #b40000;
}

.share-status-message.success {
    color: #008000;
}

/* Mobile-Optimierung */
@media (max-width: 600px) {
    .share-modal-overlay {
        padding: 10px;
    }
    .share-modal {
        max-width: 100%;
        border-radius: 10px;
    }
    .share-form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.share-modal {
    position: relative; /* wichtig für das Loading-Overlay */
}

/* Overlay über dem Modal-Inhalt */
.share-modal-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(3px);      /* Blur-Effekt */
    -webkit-backdrop-filter: blur(3px);
    z-index: 10;
}

/* Wenn das Modal lädt */
.share-modal.is-loading .share-modal-loading {
    display: flex;
}

/* Content ein bisschen abdunkeln / blur, wenn is-loading */
.share-modal.is-loading .share-modal-body,
.share-modal.is-loading .share-modal-footer {
    filter: blur(1.5px);
    opacity: 0.7;
}

/* Spinner im Overlay */
.share-modal-loading-inner i {
    font-size: 2rem;
}

    .cart-slider-wrapper {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }


/* Damit "rechts oben" zuverlässig funktioniert */
article.product-card.cart-item{
  position: relative;
}

/* Timer-Badge */
article.product-card.cart-item .plh-hold-timer-badge{
  position: absolute;
  top: 8px;
  right: 8px;

  z-index: 9; /* unter dem Remove-Button (z-index 10) */
  display: none;

  min-width: 56px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 6px rgba(0,0,0,0.12);
  color: #222;
}

/* Wird vom JS gesetzt */
article.product-card.cart-item.plh-limited .plh-hold-timer-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

article.product-card.cart-item.plh-limited .plh-hold-timer-badge.is-expired{
  background: rgba(255,230,230,0.95);
  color: #7a0000;
  font-weight: 600;
}

/* Mengensteuerung bei limitiert ausblenden */
article.product-card.cart-item.plh-limited .cart-qty-controls{
  display: none !important;
}

article.product-card.cart-item .plh-hold-timer-badge::before{
  opacity: .85;
  margin-right: 4px;
}
