/**
 * Cart Page Styles - Light Minimalist Bank Style
 */

/* Cart Hero */
.cart-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 40px 0;
    border-bottom: 1px solid #e2e8f0;
}

.cart-header-content {
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 15px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #5a6fd6;
}

.cart-hero h1 {
    color: #1e293b;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.cart-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* Cart Content Section */
.cart-content-section {
    padding: 40px 0;
    background: #f8fafc;
    min-height: 50vh;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-cart h2 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-cart p {
    color: #64748b;
    margin-bottom: 25px;
}

.btn-browse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-browse:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: #fff;
}

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

/* Cart Items */
.cart-items-wrapper {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cart-items-header {
    display: grid;
    grid-template-columns: 1fr 100px 120px 50px;
    gap: 15px;
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-items {
    max-height: 500px;
    overflow-y: auto;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: transparent;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr 100px 120px 50px;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
    transition: background 0.2s;
}

.cart-item:hover {
    background: #f8fafc;
}

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

.item-address {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #1e293b;
    word-break: break-all;
}

.item-address .highlight {
    color: #667eea;
    font-weight: 600;
}

.item-pattern {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pattern-type {
    font-size: 0.7rem;
    color: #667eea;
    text-transform: uppercase;
}

.pattern-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #1e293b;
}

.item-price {
    text-align: right;
}

.item-price-trx {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
}

.item-price-usd {
    color: #64748b;
    font-size: 0.8rem;
}

.btn-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Cart Actions */
.cart-actions {
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

.btn-clear-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    color: #ef4444;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-cart:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* Cart Summary */
.cart-summary {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 25px;
    position: sticky;
    top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cart-summary h3 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #64748b;
    font-size: 0.9rem;
}

.summary-row.total {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    padding: 15px 0;
}

.total-amount {
    text-align: right;
}

.total-usd {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 400;
    margin-top: 2px;
}

.summary-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 10px 0;
}

/* Checkout Section */
.checkout-section {
    margin-top: 20px;
}

.checkout-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 8px;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.checkout-note i {
    color: #667eea;
    margin-top: 2px;
}

.btn-checkout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-checkout:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
    text-decoration: none;
}

.btn-telegram:hover {
    background: linear-gradient(135deg, #0099dd 0%, #0088cc 100%);
    color: #fff;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.payment-methods span {
    color: #64748b;
    font-size: 0.8rem;
}

.payment-icons {
    display: flex;
    gap: 8px;
}

.payment-icon {
    padding: 4px 10px;
    background: #f8fafc;
    border-radius: 4px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Guarantee Box */
.guarantee-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
}

.guarantee-box i {
    font-size: 1.5rem;
    color: #10b981;
}

.guarantee-box strong {
    display: block;
    color: #10b981;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.guarantee-box p {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

/* Cart Info Section */
.cart-info-section {
    padding: 60px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

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

.info-card {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-card i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 15px;
}

.info-card h3 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-card p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #fff;
    border: 1px solid #10b981;
    border-radius: 10px;
    color: #10b981;
    font-size: 0.9rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast-notification.error {
    border-color: #ef4444;
    color: #ef4444;
}

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

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-hero {
        padding: 30px 0;
    }

    .cart-hero h1 {
        font-size: 1.5rem;
    }

    .cart-items-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }

    .item-address {
        font-size: 0.75rem;
    }

    .item-pattern {
        flex-direction: row;
        gap: 10px;
    }

    .item-price {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .btn-remove {
        position: absolute;
        right: 15px;
        top: 15px;
    }

    .cart-item {
        position: relative;
        padding-right: 60px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-card {
        padding: 20px;
    }
}
