/**
 * Cart Page Styles - Modern Clean Design
 */

.esim-cart-page {
    padding: 3rem 0 4rem;
    background: var(--esimfly-gray-50);
    min-height: 60vh;
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

/* Cart Header */
.cart-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cart-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--esimfly-text);
    margin-top: 0;
}

.cart-subtitle {
    color: var(--esimfly-text-light);
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* Cart Grid Layout */
.cart-main-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

/* Cart Items Section */
.cart-items-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Cart Item Card */
.cart-item-card {
    background: var(--esimfly-white);
    border-radius: 16px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.cart-item-card:hover {
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: var(--esimfly-text);
}

.cart-item-name a {
    color: var(--esimfly-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.cart-item-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--esimfly-text-light);
    font-size: 0.875rem;
}

.meta-item svg {
    color: var(--esimfly-primary);
}

.cart-item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--esimfly-primary);
}

.cart-item-remove {
    display: flex;
    align-items: center;
}

.remove-item {
    color: var(--esimfly-text-light);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Cart Sidebar */
.cart-sidebar {
    position: sticky;
    top: 100px;
}

.cart-totals-card {
    background: var(--esimfly-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.totals-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--esimfly-text);
}

.cart-totals-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--esimfly-text);
}

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

.totals-value {
    font-weight: 600;
    color: var(--esimfly-text);
}

.totals-discount {
    color: var(--esimfly-secondary);
}

.totals-total {
    border-top: 2px solid var(--esimfly-gray-200);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.totals-total span:first-child {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--esimfly-text);
}

.totals-value-large {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--esimfly-primary);
}

/* Checkout Button - Follows Theme Colors */
.wc-proceed-to-checkout {
    margin-top: 1.5rem;
}

.wc-proceed-to-checkout .checkout-button,
.wc-proceed-to-checkout a.checkout-button,
.wc-proceed-to-checkout .button {
    width: 100% !important;
    padding: 1rem 2rem !important;
    background: var(--esimfly-primary) !important;
    color: var(--esimfly-white) !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
    text-align: center !important;
    text-decoration: none !important;
    display: block !important;
}

.wc-proceed-to-checkout .checkout-button:hover,
.wc-proceed-to-checkout a.checkout-button:hover,
.wc-proceed-to-checkout .button:hover {
    background: var(--esimfly-primary-dark) !important;
    color: var(--esimfly-white) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4) !important;
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--esimfly-text-light);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.continue-shopping:hover {
    color: var(--esimfly-primary);
}

/* Trust Badge - Transparent with Green Border */
.cart-trust-badge {
    margin-top: 1.5rem;
    padding: 1.5rem 1.75rem;
    background: transparent;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: center;
    border: 2px solid #10b981;
}

.cart-trust-badge svg {
    flex-shrink: 0;
    color: #10b981;
    width: 32px;
    height: 32px;
}

.cart-trust-badge strong {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--esimfly-text);
    font-size: 1.0625rem;
    font-weight: 700;
}

.cart-trust-badge p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--esimfly-text-light);
    line-height: 1.5;
}

/* Empty Cart - Beautiful Modern Design */
.cart-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--esimfly-white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

/* Also style default WooCommerce empty cart */
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .cart-empty {
    display: none !important;
}

.woocommerce-cart .return-to-shop {
    margin-top: 0 !important;
}

.empty-icon {
    margin-bottom: 2rem;
}

.empty-icon svg {
    color: var(--esimfly-primary);
    opacity: 0.2;
}

.empty-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--esimfly-text);
}

.empty-subtitle {
    color: var(--esimfly-text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.empty-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--esimfly-primary);
    color: var(--esimfly-white);
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    margin-bottom: 2.5rem;
}

.empty-cta-button:hover {
    background: var(--esimfly-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    color: var(--esimfly-white);
    text-decoration: none;
}

.empty-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--esimfly-gray-200);
}

.empty-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--esimfly-text-light);
    font-size: 0.9375rem;
    font-weight: 500;
}

.empty-feature-item svg {
    color: var(--esimfly-secondary);
    flex-shrink: 0;
}

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

    .cart-item-card {
        grid-template-columns: 60px 1fr auto;
        gap: 1rem;
        padding: 1rem;
    }

    .cart-item-price {
        grid-column: 2;
        grid-row: 2;
        font-size: 1.25rem;
    }

    .cart-item-remove {
        grid-column: 3;
        grid-row: 1;
    }

    .cart-sidebar {
        position: static;
    }

    .cart-title {
        font-size: 2rem;
    }
}
