/* ===============================================
   Cart Page Styles
   =============================================== */

.page-header-simple {
    background: var(--gradient-hero);
    padding: 140px 0 40px;
    color: white;
}

.page-header-simple h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header-simple .breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.page-header-simple .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.page-header-simple .breadcrumb a:hover {
    color: white;
}

.page-header-simple .breadcrumb i {
    font-size: 10px;
}

/* Cart Section */
.cart-section {
    padding: 60px 0;
    background: var(--bg-secondary);
    min-height: 50vh;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* Cart Items */
.cart-items-section {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-header-row {
    display: grid;
    grid-template-columns: 3fr 1fr 120px 1fr 50px;
    gap: 20px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
}

.cart-items-list {
    padding: 0 24px;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 3fr 1fr 120px 1fr 50px;
    gap: 20px;
    padding: 24px 0;
    align-items: center;
    border-bottom: 1px solid var(--bg-secondary);
}

.cart-item-row:last-child {
    border-bottom: none;
}

.cart-product {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cart-product-image {
    width: 100px;
    height: 100px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cart-product-info h4 a {
    color: var(--text-primary);
}

.cart-product-info h4 a:hover {
    color: var(--primary);
}

.cart-product-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.cart-product-info .sku {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-price {
    font-size: 16px;
    font-weight: 600;
}

.cart-quantity {
    display: flex;
    align-items: center;
    border: 2px solid var(--bg-secondary);
    border-radius: var(--radius-md);
    width: fit-content;
}

.cart-quantity button {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.cart-quantity button:hover {
    background: var(--primary);
    color: white;
}

.cart-quantity input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 14px;
    font-weight: 600;
}

.cart-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.cart-remove {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.cart-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

.cart-actions-row {
    display: flex;
    justify-content: space-between;
    padding: 20px 24px;
    border-top: 1px solid var(--bg-secondary);
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bg-secondary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 15px;
}

.summary-row span:last-child {
    font-weight: 600;
}

.discount-row {
    color: #16a34a;
}

.summary-divider {
    height: 1px;
    background: var(--bg-secondary);
    margin: 20px 0;
}

.total-row {
    font-size: 18px;
    font-weight: 700;
}

.total-row span:last-child {
    color: var(--primary);
    font-size: 24px;
}

.vat-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: left;
    margin-bottom: 20px;
}

/* Coupon */
.coupon-section {
    margin: 20px 0;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.coupon-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.coupon-input {
    display: flex;
    gap: 8px;
}

.coupon-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition);
}

.coupon-input input:focus {
    border-color: var(--primary);
    outline: none;
}

.coupon-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Payment Methods */
.payment-methods-preview {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-secondary);
    text-align: center;
}

.payment-methods-preview span {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
}

.payment-methods-preview .payment-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 28px;
    color: var(--text-muted);
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.security-badges .badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #16a34a;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: var(--radius-xl);
}

.empty-cart i {
    font-size: 80px;
    color: var(--bg-secondary);
    margin-bottom: 24px;
}

.empty-cart h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.empty-cart p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Cart Features */
.cart-features {
    padding: 60px 0;
    background: white;
}

.cart-features .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cart-features .feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.cart-features .feature i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.cart-features .feature h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.cart-features .feature p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-header-simple {
        padding: 120px 0 32px;
    }
    .page-header-simple h1 {
        font-size: 28px;
    }
    .cart-header-row {
        display: none;
    }
    
    .cart-item-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cart-product {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-product-image {
        width: 120px;
        height: 120px;
    }
    
    .cart-price,
    .cart-total {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    
    .cart-price::before {
        content: 'Price:';
        font-weight: normal;
        color: var(--text-muted);
    }
    
    .cart-total::before {
        content: 'Total:';
        font-weight: normal;
        color: var(--text-muted);
    }
    
    .cart-quantity {
        justify-content: center;
        width: 100%;
    }
    
    .cart-remove {
        position: absolute;
        top: 10px;
        left: 10px;
    }
    
    .cart-item-row {
        position: relative;
    }
    
    .cart-actions-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .cart-actions-row .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cart-features .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .page-header-simple {
        padding: 100px 0 24px;
        padding-top: max(100px, 80px + env(safe-area-inset-top));
    }
    .page-header-simple h1 {
        font-size: 24px;
    }
    .cart-section {
        padding: 40px 0;
        padding-bottom: max(40px, env(safe-area-inset-bottom));
    }
    .cart-items-section {
        border-radius: var(--radius-md);
    }
    .cart-items-list {
        padding: 0 15px;
    }
    .cart-item-row {
        padding: 20px 0;
    }
    .cart-product-image {
        width: 80px;
        height: 80px;
    }
    .cart-product-info h4 {
        font-size: 14px;
    }
    .cart-features .features-grid {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        border-radius: var(--radius-md);
    }
    .cart-actions-row .btn,
    .cart-summary .btn {
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}
