/**
 * Evolux Cards - Cart Styles
 * Minimalistisch, clean, strak design
 */

/* ===== RED BANNER HEADER ===== */
.cart-banner {
    width: 100%;
    background: #dc2626;
    padding: 40px 0;
    margin-bottom: 50px;
}

.cart-header {
    padding: 0;
}

.cart-header h1 {
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -1px;
}

.cart-count {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

/* ===== CART SECTION ===== */
.cart-section {
    padding: 0 0 100px;
    background: #fafafa;
    min-height: 70vh;
}

/* ===== CART TRUST BADGES ===== */
.cart-trust-badges {
    display: none;
}

@media (max-width: 768px) {
    .cart-trust-badges {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 12px;
        background: #ffffff;
        border: 1px solid #e8e8e8;
        border-radius: 4px;
        margin-top: 20px;
        margin-bottom: 16px;
        flex-wrap: nowrap;
    }
    
    .cart-trust-badge {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        color: #1a1a1a;
        font-weight: 500;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
    }
    
    .cart-trust-badge i {
        color: #10b981;
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .cart-trust-badge span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .cart-trust-badges {
        padding: 10px;
        gap: 6px;
        margin-top: 16px;
        margin-bottom: 12px;
    }
    
    .cart-trust-badge {
        font-size: 10px;
        gap: 4px;
    }
    
    .cart-trust-badge i {
        font-size: 12px;
    }
}

/* ===== LAYOUT ===== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: start;
}

/* ===== ITEMS ===== */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cart-item:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Image */
.cart-item-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: block;
    border: 1px solid #eee;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item-image:hover img {
    transform: scale(1.05);
}

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 32px;
}

/* Info */
.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    display: block;
    text-decoration: none;
    line-height: 1.3;
}

.cart-item-name:hover {
    color: var(--primary-color);
}

.cart-item-category {
    font-size: 13px;
    color: #888;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Quantity */
.cart-item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 11px;
}

.qty-btn:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.qty-input {
    width: 50px;
    height: 32px;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    background: transparent;
}

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

/* Price */
.cart-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 110px;
}

.price-main {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.price-sub {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

/* Remove */
.cart-item-remove {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 13px;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

/* ===== SUMMARY ===== */
.cart-summary {
    position: sticky;
    top: 100px;
}

.summary-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 32px;
}

.summary-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    letter-spacing: -0.5px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 15px;
    flex-wrap: nowrap;
    gap: 12px;
}

.summary-line span:first-child {
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
}

.summary-line span:last-child {
    font-weight: 600;
    color: #1a1a1a;
    flex-shrink: 0;
    white-space: nowrap;
    text-align: right;
}

.summary-line .free {
    color: #10b981;
}

.summary-info {
    background: #f8f8f8;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #eee;
}

.summary-info i {
    font-size: 14px;
    color: #999;
}

.summary-info-free {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #16a34a;
}

.summary-info-free i {
    color: #16a34a;
}

.summary-info-free span {
    color: #16a34a;
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 24px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 28px;
    padding: 16px 0;
    flex-wrap: nowrap;
    gap: 12px;
}

.total-value {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.summary-total span:first-child {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Buttons */
.btn-checkout,
.btn-continue {
    display: block;
    width: 100%;
    padding: 15px 24px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn-checkout {
    background: #1a1a1a;
    color: white;
    margin-bottom: 12px;
}

.btn-checkout:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-continue {
    background: transparent;
    color: #666;
    border: 1px solid #e0e0e0;
}

.btn-continue:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

/* ===== EMPTY CART ===== */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.cart-empty i {
    font-size: 64px;
    color: #e5e5e5;
    margin-bottom: 24px;
    display: block;
}

.cart-empty h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.cart-empty p {
    font-size: 15px;
    color: #666;
    margin: 0 0 24px 0;
}

.cart-empty .btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: #dc2626;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease;
}

.cart-empty .btn-primary:hover {
    background: #b91c1c;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cart-summary {
        position: static;
        order: 2;
    }
    
    .cart-items {
        order: 1;
    }
}

@media (max-width: 768px) {
    .cart-banner {
        padding: 32px 0;
        margin-bottom: 20px;
    }
    
    .cart-section {
        padding: 0 0 80px;
    }
    
    .cart-section .container {
        padding-top: 0;
    }
    
    .cart-header h1 {
        font-size: 32px;
    }
    
    .cart-item {
        display: grid;
        grid-template-columns: 80px 1fr auto;
        grid-template-rows: auto auto;
        gap: 12px;
        padding: 12px;
        align-items: start;
        position: relative;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
        grid-row: 1;
        grid-column: 1;
    }
    
    .cart-item-info {
        grid-row: 1;
        grid-column: 2;
        min-width: 0;
        padding-right: 8px;
    }
    
    .cart-item-name {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .cart-item-category {
        font-size: 11px;
        margin: 0;
    }
    
    .cart-item-price {
        grid-row: 1;
        grid-column: 3;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        min-width: 70px;
        flex-shrink: 0;
    }
    
    .price-main {
        font-size: 16px;
    }
    
    .price-sub {
        font-size: 10px;
    }
    
    .cart-item-remove {
        position: absolute;
        bottom: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        background: #dc2626;
        border: 1px solid #dc2626;
        border-radius: 4px;
        color: white;
        flex-shrink: 0;
        font-size: 14px;
    }
    
    .cart-item-remove:hover {
        background: #b91c1c;
        border-color: #b91c1c;
        color: white;
    }
    
    .cart-item-quantity {
        grid-row: 2;
        grid-column: 1;
        justify-self: start;
        width: auto;
    }
    
    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .qty-input {
        width: 40px;
        height: 28px;
        font-size: 13px;
    }
    
    .summary-card {
        padding: 20px;
    }
    
    .summary-card h2 {
        font-size: 16px;
        margin-bottom: 12px;
        font-weight: 600;
    }
    
    .summary-line {
        font-size: 14px;
        margin-bottom: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        line-height: 1.4;
    }
    
    .summary-line span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .summary-line span:first-child {
        flex-shrink: 0;
        margin-right: 12px;
    }
    
    .summary-line span:last-child {
        flex-shrink: 0;
        text-align: right;
    }
    
    .summary-info {
        font-size: 12px;
        padding: 10px 12px;
        margin: 12px 0;
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
    }
    
    .summary-info span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .summary-divider {
        margin: 14px 0;
    }
    
    .summary-total {
        font-size: 15px;
        padding: 12px 0;
        margin-bottom: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .summary-total span {
        white-space: nowrap;
    }
    
    .total-value {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .cart-banner {
        padding: 28px 0;
    }
    
    .cart-header h1 {
        font-size: 28px;
    }
    
    .cart-item {
        grid-template-columns: 70px 1fr auto;
        gap: 10px;
        padding: 10px;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-item-name {
        font-size: 13px;
    }
    
    .cart-item-category {
        font-size: 10px;
    }
    
    .cart-item-price {
        min-width: 65px;
    }
    
    .price-main {
        font-size: 15px;
    }
    
    .price-sub {
        font-size: 9px;
    }
    
    .cart-item-remove {
        bottom: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .qty-btn {
        width: 26px;
        height: 26px;
        font-size: 9px;
    }
    
    .qty-input {
        width: 35px;
        height: 26px;
        font-size: 12px;
    }
    
    .summary-card {
        padding: 16px;
    }
    
    .summary-card h2 {
        font-size: 14px;
        margin-bottom: 10px;
        font-weight: 600;
    }
    
    .summary-line {
        font-size: 13px;
        margin-bottom: 6px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        line-height: 1.3;
    }
    
    .summary-line span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .summary-line span:first-child {
        flex-shrink: 0;
        margin-right: 10px;
    }
    
    .summary-line span:last-child {
        flex-shrink: 0;
        text-align: right;
    }
    
    .summary-info {
        font-size: 11px;
        padding: 8px 10px;
        margin: 10px 0;
        display: flex;
        align-items: center;
        gap: 5px;
        flex-wrap: nowrap;
    }
    
    .summary-info span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .summary-divider {
        margin: 12px 0;
    }
    
    .summary-total {
        font-size: 14px;
        padding: 10px 0;
        margin-bottom: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .summary-total span {
        white-space: nowrap;
    }
    
    .total-value {
        font-size: 20px;
    }
    
    .btn-checkout,
    .btn-continue {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .cart-empty {
        padding: 40px 20px;
    }
    
    .cart-empty i {
        font-size: 48px;
        margin-bottom: 20px;
    }
    
    .cart-empty h2 {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .cart-empty p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .cart-empty .btn-primary {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cart-empty {
        padding: 32px 16px;
    }
    
    .cart-empty i {
        font-size: 40px;
        margin-bottom: 16px;
    }
    
    .cart-empty h2 {
        font-size: 18px;
    }
    
    .cart-empty p {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .cart-empty .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        max-width: 280px;
    }
}

