:root{
  --yellow:#ffeb3b;
  --yellow-dark:#ffc107;
  --bg-1:#1a1a1a;
  --bg-2:#2d2d2d;
  --text:#ffffff;
  --radius-lg:18px;
  --radius-md:14px;
  --radius-sm:10px;

  /* moderne spacing scale */
  --space-xs:8px;
  --space-sm:12px;
  --space-md:16px;
  --space-lg:24px;
  --space-xl:32px;

  /* softer shadows (wichtiger Unterschied) */
  --shadow-soft:0 10px 30px rgba(0,0,0,.35);
  --shadow-hover:0 18px 50px rgba(0,0,0,.45);
}

/* Cart Modal Base Styles */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 10px;
    backdrop-filter: blur(8px);
}

.cart-modal.active {
    display: flex;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUpMobile {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
.cart-modal-content {
    background: linear-gradient(180deg,var(--bg-1),var(--bg-2));
    border-radius: var(--radius-lg);
    max-width: 560px;
    width: 100%;
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp .35s cubic-bezier(.22,1,.36,1);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,235,59,.12);
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    background: rgba(255,235,59,.05);
    border-bottom: 1px solid rgba(255,235,59,.12);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-cart {
    background: none;
    border: none;
    color: var(--yellow);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.close-cart:hover {
    background: rgba(255,235,59,.15);
    color: var(--yellow-dark);
    transform: rotate(90deg);
}

.cart-header h2 {
    color: var(--yellow);
    font-family:'Bebas Neue', cursive;
    font-size:1.6rem;
    letter-spacing:.8px;
}
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid rgba(255,235,59,.07);
    transition: all 0.25s ease;
    position: relative;
}

.cart-item:hover {
    background: rgba(255,235,59,.03);
    
}

.cart-item:hover .cart-item-image {
    border-color: rgba(255,235,59,.4);
    transform: scale(1.02);
}

.cart-item:last-child {
    border-bottom: none;
}
.cart-item-image {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,235,59,.25);
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    object-fit: cover;
    transition: all 0.2s ease;
}
.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-details h4 {
    color: var(--yellow);
    font-family: 'Bebas Neue', cursive;
    font-size: 1.15rem;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
    font-weight: 600;
    line-height: 1.2;
}

.cart-item-price {
    color: var(--text);
    opacity: 0.75;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: 8px;
}

.cart-item-quantity span {
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
    min-width: 24px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: #ef4444;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    margin-left: var(--space-sm);
}

.remove-item:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    transform: scale(1.05);
}
.quantity-btn {
    width:36px;
    height:36px;
    border-radius:50%;
    background:rgba(255,235,59,.12);
    border:1px solid rgba(255,235,59,.3);
    font-weight:700;
    transition:.2s;
}

.quantity-btn:hover{
    background:rgba(255,235,59,.25);
}
.cart-body {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
}

.cart-items {
    padding: 0;
}

.cart-summary {
    padding: var(--space-xl);
    background: rgba(255,235,59,.04);
    border-top: 1px solid rgba(255,235,59,.12);
    backdrop-filter: blur(8px);
    position: sticky;
    bottom: 0;
    margin-top: auto;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255,235,59,.08);
}

.shipping-info {
    margin-bottom: var(--space-md);
}

.shipping-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.shipping-line span:first-child {
    color: var(--text);
    opacity: 0.8;
}

.shipping-line span:last-child {
    color: var(--text);
    font-weight: 500;
}

#cartSubtotal {
    color: rgba(255,255,255,0.9);
}

#cartShipping {
    color: var(--yellow);
    font-weight: 600;
}

#cartShipping.free-shipping {
    color: #4CAF50;
    font-weight: 600;
}

.cart-total span:first-child {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 500;
}

.cart-total span:last-child {
    color: var(--yellow);
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cart-actions .btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    letter-spacing: 0.2px;
}

.desktop-payment-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
}

.desktop-payment-icons .payment-badge {
    width: 36px;
    height: 22px;
    transform: scale(1);
    transition: all 0.3s ease;
}

.desktop-payment-icons .payment-badge:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.desktop-payment-icons .payment-badge i {
    font-size: 0.8rem;
}

.desktop-payment-icons .payment-badge span {
    font-size: 0.8rem;
}

.cart-actions .btn-outline {
    display: none;
}

/* Enhanced Checkout Button with Payment Icons */
.checkout-btn {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%);
    color: #000;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    min-height: 55px;
    padding: 12px 16px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 235, 59, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.checkout-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.checkout-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.trust-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    opacity: 0.7;
}

.trust-badges i {
    font-size: 0.8rem;
    color: #000;
    transition: all 0.3s ease;
}

.checkout-btn:hover .trust-badges {
    opacity: 1;
}

.checkout-btn:hover .trust-badges i {
    transform: scale(1.1);
}

.checkout-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    gap: 4px;
}

.checkout-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.checkout-right i {
    font-size: 1rem;
    color: #000;
    transition: all 0.3s ease;
}

.checkout-btn:hover .checkout-right {
    opacity: 1;
}

.checkout-btn:hover .checkout-right i {
    transform: translateX(3px);
}

.payment-badges {
    display: none;
}

.payment-badge {
    width: 28px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.payment-badge i {
    font-size: 0.7rem;
    color: #fff;
}

/* PayPal Badge */
.payment-badge.paypal {
    background: #003087;
}

.payment-badge.paypal i {
    font-size: 0.8rem;
}

/* Apple Pay Badge */
.payment-badge.apple-pay {
    background: #000;
}

.payment-badge.apple-pay i {
    font-size: 0.6rem;
}

/* Google Pay Badge */
.payment-badge.google-pay {
    background: #4285f4;
}

.payment-badge.google-pay i {
    font-size: 0.7rem;
}

/* Klarna Badge */
.payment-badge.klarna {
    background: #ffb3c1;
    color: #000;
    font-weight: 700;
    font-size: 0.6rem;
}

.payment-badge.klarna span {
    font-weight: 700;
    font-size: 0.6rem;
}

/* Cards Badge */
.payment-badge.cards {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
}

.payment-badge.cards i {
    font-size: 0.6rem;
}

.checkout-btn:hover .payment-badges {
    opacity: 1;
}

.checkout-btn:hover .payment-badge {
    transform: scale(1.15);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .checkout-content {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        align-items: stretch;
    }
    
    .checkout-left {
        order: 1;
        justify-content: center;
        display: none;
    }
    
    .checkout-center {
        order: 2;
        gap: 3px;
        font-size: 0.95rem;
        text-align: center;
    }
    
    .checkout-right {
        order: 3;
        display: none;
    }
    
    .checkout-btn {
        min-height: 50px;
        padding: 10px 12px;
    }
    
    .cart-actions {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .desktop-payment-icons {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        background: rgba(255,255,255,0.05);
        border-radius: var(--radius-md);
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .desktop-payment-icons .payment-badge {
        width: 32px;
        height: 20px;
        transform: scale(1.1);
    }
    
    .desktop-payment-icons .payment-badge i {
        font-size: 0.7rem;
    }
    
    .desktop-payment-icons .payment-badge span {
        font-size: 0.7rem;
    }
}

/* Secondary */
.btn-secondary {
    background: rgba(255,255,255,.06);
    color: var(--text);
    border: 1px solid rgba(255,255,255,.18);
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.btn-secondary:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Primary */
.btn-primary {
    background: linear-gradient(180deg, var(--yellow), var(--yellow-dark));
    color: #111;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(255,235,59,.35);
    text-shadow: none;
}

.btn-primary:hover {
    background: linear-gradient(180deg, var(--yellow-dark), var(--yellow));
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255,235,59,.45);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    color: var(--text);
    font-size: 1.1rem;
    padding: 60px 32px;
    opacity: 0.8;
}

.empty-cart::before {
    content: '🛒';
    display: block;
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.5;
}
/* Mobile Expand Button */
.cart-expand-btn {
    display: none;
    background: transparent;
    border: none;
    color: rgba(255,235,59,.7);
    padding: 8px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.cart-expand-btn:hover {
    color: var(--yellow);
    background: rgba(255,235,59,.08);
    transform: scale(1.05);
}

.cart-expand-btn .expand-text {
    display: none;
}

/* Fullscreen Mobile Cart */
.cart-modal.fullscreen-mobile {
    padding: 0;
}

.cart-modal.fullscreen-mobile .cart-modal-content {
    max-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    width: 100vw;
    border-radius: 0;
    animation: slideUpMobile .4s cubic-bezier(.22,1,.36,1);
}

.cart-modal.fullscreen-mobile .cart-header {
    border-radius: 0;
    padding-top: 40px;
    padding-bottom: var(--space-lg);
}

.cart-modal.fullscreen-mobile .cart-header::before {
    display: none;
}

.cart-modal.fullscreen-mobile .cart-body {
    flex: 1;
    overflow-y: auto;
}

.cart-modal.fullscreen-mobile .cart-summary {
    position: sticky;
    bottom: 0;
    background: rgba(26,26,26,.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,235,59,.15);
}

@media (max-width:640px){

  .cart-expand-btn {
    display: flex;
  }

  .cart-modal{
    align-items:flex-end;
    padding:0;
  }

  .cart-modal-content{
    border-radius:22px 22px 0 0;
    max-height:88vh;
    animation:slideUpMobile .4s cubic-bezier(.22,1,.36,1);
  }

  /* Drag Handle hinzufügen 😍 */
  .cart-header::before{
    content:"";
    position:absolute;
    top:8px;
    left:50%;
    transform:translateX(-50%);
    width:40px;
    height:4px;
    border-radius:10px;
    background:rgba(255,255,255,.25);
  }

  .cart-header{
    padding-top:26px;
  }

  .cart-item{
    background:rgba(255,255,255,.02);
    padding:var(--space-md);
    border-radius:14px;
    border:none;
    margin-bottom:10px;
  }
}
