/**
 * PATIOVISTA Warenkorb Styles
 */

 :root {
    --color-primary: #1a1a1a;
    --color-accent: #d4af37;
    --color-bg: #fafaf8;
    --color-bg-secondary: #f5f4f0;
    --color-text: #1a1a1a;
    --color-text-light: #666;
    --color-border: #e8e6e0;
    --color-success: #4caf50;
    --color-danger: #f44336;
    --font-display: 'Cormorant', serif;
    --font-body: 'Work Sans', sans-serif;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1600px;
    margin: 100px auto 0;
    padding: 20px 60px;
    font-size: 14px;
    color: var(--color-text-light);
}

.breadcrumb a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

/* Cart Container */
.cart-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 60px 100px;
    min-height: calc(100vh - 200px);
}

/* Empty Cart */
.empty-cart {
    max-width: 600px;
    margin: 80px auto;
    text-align: center;
}

.empty-cart-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    color: var(--color-border);
}

.empty-cart-icon svg {
    width: 100%;
    height: 100%;
}

.empty-cart h1 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.empty-cart p {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 35px;
}

.empty-cart-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 60px;
}

/* Suggestions */
.suggestions {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid var(--color-border);
}

.suggestions h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--color-primary);
    text-align: center;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.suggestion-card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 30px 20px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.suggestion-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.suggestion-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.suggestion-image svg {
    width: 100%;
    height: 100%;
}

.suggestion-card h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.suggestion-card p {
    font-size: 14px;
    color: var(--color-accent);
    font-weight: 500;
}

/* Cart Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
}

.cart-header h1 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 400;
    color: var(--color-primary);
}

.cart-count {
    font-size: 16px;
    color: var(--color-text-light);
}

/* Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    display: grid;
    grid-template-columns: 120px 1fr auto auto auto auto;
    gap: 25px;
    align-items: center;
    transition: all 0.3s;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.item-image {
    width: 120px;
    height: 120px;
    background: var(--color-bg-secondary);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img,
.item-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.item-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.item-description {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 12px;
    line-height: 1.5;
}

.item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.item-options .option {
    font-size: 12px;
    color: var(--color-text-light);
    padding: 4px 10px;
    background: var(--color-bg-secondary);
    border-radius: 4px;
}

.item-options .option strong {
    color: var(--color-text);
}

.item-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--color-text-light);
}

.item-sku {
    font-size: 13px;
    color: var(--color-text-light);
}

.item-availability {
    font-size: 13px;
    color: var(--color-success);
}

.item-config {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.config-item {
    font-size: 13px;
    color: var(--color-text-light);
    padding: 4px 10px;
    background: var(--color-bg-secondary);
    border-radius: 4px;
}

.config-item strong {
    color: var(--color-text);
}

.item-actions {
    margin-top: 10px;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--color-danger);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s;
}

.btn-text:hover {
    opacity: 0.7;
}

.btn-text svg {
    width: 16px;
    height: 16px;
}

/* Quantity Control */
.item-quantity {
    text-align: center;
}

.item-quantity label {
    display: block;
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    width: 35px;
    height: 40px;
    background: var(--color-bg-secondary);
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--color-primary);
    transition: all 0.3s;
}

.qty-btn:hover {
    background: var(--color-accent);
    color: white;
}

.qty-input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-primary);
}

.qty-input:focus {
    outline: none;
}

/* Item Remove Button */
.item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    transition: all 0.3s;
    padding: 8px;
    border-radius: 6px;
}

.item-remove:hover {
    background: #ffebee;
    color: var(--color-danger);
}

.item-remove svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Item Price */
.item-price {
    text-align: right;
    min-width: 100px;
}

.price-label {
    display: block;
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 5px;
}

.price-amount {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-primary);
}

/* Item Total */
.item-total {
    text-align: right;
    min-width: 120px;
}

.total-label {
    display: block;
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 5px;
}

.total-amount {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
}

/* Cart Summary */
.cart-summary {
    position: sticky;
    top: 120px;
}

.summary-card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.summary-card h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--color-primary);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
    color: var(--color-text);
}

.summary-line span {
    color: var(--color-text-light);
}

.summary-line strong {
    color: var(--color-primary);
    font-weight: 500;
}

.shipping-note {
    font-size: 14px;
    color: var(--color-accent);
    font-style: italic;
}

.summary-divider {
    height: 1px;
    background: var(--color-border);
    margin: 15px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 18px;
}

.summary-total span {
    font-weight: 500;
    color: var(--color-text);
}

.summary-total strong {
    font-size: 28px;
    color: var(--color-primary);
    font-family: var(--font-display);
}

.summary-note {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #fff9e6;
    border-radius: 6px;
    font-size: 13px;
    color: var(--color-text-light);
    margin: 20px 0;
    line-height: 1.5;
}

.summary-note svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 2px;
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.btn-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-checkout svg {
    width: 18px;
    height: 18px;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 25px;
    padding: 20px;
    background: var(--color-bg-secondary);
    border-radius: 8px;
}

.trust-badges .badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--color-text);
}

.trust-badges .badge svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.trust-badges .badge span {
    font-weight: 500;
}

/* Cart Summary Sidebar */
.cart-summary {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    position: sticky;
    top: 120px;
}

.cart-summary h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 25px;
    color: var(--color-primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
}

.summary-row span:first-child {
    color: var(--color-text-light);
}

.summary-value {
    font-weight: 500;
    color: var(--color-primary);
}

.free-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-success);
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
}

.summary-divider {
    height: 1px;
    background: var(--color-border);
    margin: 15px 0;
}

.summary-total {
    font-size: 18px;
}

.summary-total .total-value {
    font-size: 28px;
    font-family: var(--font-display);
    font-weight: 500;
}

.btn-checkout,
.btn-continue {
    width: 100%;
    padding: 16px 30px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-checkout {
    background: var(--color-primary);
    color: white;
    margin-top: 25px;
}

.btn-checkout:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

.btn-checkout svg {
    width: 18px;
    height: 18px;
}

.btn-continue {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-border);
    margin-top: 10px;
}

.btn-continue:hover {
    border-color: var(--color-primary);
}

/* Upselling Section */
.upselling-section {
    margin-top: 60px;
    padding: 50px 0;
    border-top: 1px solid var(--color-border);
}

.upselling-section h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--color-primary);
    text-align: center;
}

.upselling-section .section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.upsell-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.upsell-card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.upsell-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.upsell-image {
    width: 100%;
    height: 150px;
    margin-bottom: 20px;
    background: var(--color-bg-secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.upsell-image svg {
    width: 80px;
    height: 80px;
}

.upsell-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.upsell-card p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.upsell-price {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.upsell-btn {
    width: 100%;
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.upsell-btn:hover {
    background: var(--color-accent);
}

/* Continue Shopping */
.continue-shopping {
    margin-top: 40px;
    text-align: center;
}

.btn-text-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.btn-text-large:hover {
    color: var(--color-primary);
}

.btn-text-large svg {
    width: 20px;
    height: 20px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 16px 30px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    width: 100%;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}

/* Responsive */
@media (max-width: 1200px) {
    .cart-layout {
        grid-template-columns: 1fr 350px;
        gap: 30px;
    }
    
    .cart-item {
        grid-template-columns: 100px 1fr auto auto;
        gap: 20px;
    }
    
    .item-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 900px) {
    .breadcrumb {
        padding: 20px 30px;
        margin-top: 80px;
    }
    
    .cart-container {
        padding: 30px 30px 80px;
    }
    
    .cart-header h1 {
        font-size: 32px;
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .item-image {
        width: 100%;
        height: 200px;
        margin: 0 auto;
    }
    
    .item-quantity,
    .item-price {
        text-align: left;
    }
    
    .suggestion-grid {
        grid-template-columns: 1fr;
    }
    
    /* Upselling für Tablet */
    .upsell-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .breadcrumb {
        padding: 15px 20px;
        font-size: 12px;
    }
    
    .cart-container {
        padding: 20px 20px 60px;
    }
    
    .cart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-header h1 {
        font-size: 28px;
    }
    
    .empty-cart-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .summary-card {
        padding: 20px;
    }
    
    .summary-total strong {
        font-size: 24px;
    }
    
    /* Upsell Responsive */
    .upsell-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}