/* Premium plan checkout page — visual alignment with VrilHosting cart (subset). */
.premium-cart-page {
    min-height: calc(100vh - 200px);
    padding: 2rem 0 4rem;
    position: relative;
}

.premium-cart-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, var(--glow-color) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(var(--accent-rgb), 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.premium-cart-inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.cart-header-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 300% 300%;
    animation: premium-gradient-shift 15s ease infinite;
    padding: 2.5rem 2rem;
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.25), 0 0 100px rgba(var(--primary-rgb), 0.1) inset;
}

@keyframes premium-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cart-header-premium .cart-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.cart-header-premium .cart-title {
    color: #fff;
    font-weight: 800;
    font-size: 2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.cart-header-premium .cart-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.35);
}

.btn-continue-shopping {
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    padding: 0.65rem 1.25rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.25);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.btn-continue-shopping:hover {
    background: rgba(255,255,255,.28);
    transform: translateY(-2px);
    color: #fff !important;
}

.empty-cart-card {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
}

.empty-cart-icon {
    font-size: 4rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.empty-cart-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-cart-text {
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.btn-browse-products {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}

.btn-browse-products:hover {
    transform: translateY(-2px);
    color: #fff !important;
}

.cart-table-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.06);
    margin-bottom: 1.5rem;
}

.cart-table {
    width: 100%;
    margin: 0;
}

.cart-table thead th {
    background: var(--bg-surface);
    color: var(--body-color);
    font-weight: 700;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--border-color);
}

.cart-table tbody td {
    padding: 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color-light);
}

.item-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--body-color);
}

.item-meta {
    font-size: 0.85rem;
    color: var(--secondary);
}

.item-price, .item-total {
    font-weight: 700;
    white-space: nowrap;
}

.qty-selector .form-select {
    max-width: 90px;
}

.btn-remove-item {
    background: rgba(var(--danger-rgb, 239, 68, 68), 0.1);
    color: var(--danger) !important;
    border: 1px solid rgba(var(--danger-rgb, 239, 68, 68), 0.2);
    padding: 0.5rem;
    border-radius: 0.5rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-footer-premium {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.5rem 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.summary-row.total-highlight {
    border-top: 2px solid var(--border-color);
    margin-top: 0.75rem;
    padding-top: 1rem;
}

.summary-row.total-highlight .summary-label {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.summary-row.total-highlight .summary-value {
    font-weight: 800;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn-clear-cart {
    background: rgba(var(--danger-rgb, 239, 68, 68), 0.1);
    color: var(--danger) !important;
    border: 1px solid rgba(var(--danger-rgb, 239, 68, 68), 0.2);
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
}

.btn-checkout {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff !important;
    font-weight: 700;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}

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

@media (max-width: 768px) {
    .cart-table thead { display: none; }
    .cart-table tbody tr {
        display: block;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0;
    }
    .cart-table tbody td {
        display: block;
        border: none;
        padding: 0.35rem 1rem;
    }
}
