:root {
    --purple-900: #43257f;
    --purple-800: #4b2ca3;
    --purple-700: #6f42c1;
    --purple-100: #f3ecfb;
    --gold-500: #c9a96b;
    --green-600: #10b26c;
    --green-700: #0d9a5d;
    --orange-500: #ff5a36;
    --text-main: #2d1f3d;
    --text-soft: #72687e;
    --white: #ffffff;
    --border-soft: rgba(201, 169, 107, 0.18);
    --shadow-soft: 0 20px 50px rgba(70, 40, 116, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(111, 66, 193, 0.12), transparent 22%),
        radial-gradient(circle at bottom right, rgba(201, 169, 107, 0.06), transparent 16%),
        linear-gradient(180deg, #fcfbfe 0%, #f7f3fc 45%, #ffffff 100%);
}

.checkout-page {
    position: relative;
    min-height: 100vh;
    padding: 42px 0 70px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.40), transparent 30%);
}

.checkout-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0));
}

.checkout-container {
    position: relative;
    z-index: 2;
}

.checkout-header {
    text-align: center;
    margin-bottom: 34px;
}

.checkout-kicker {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(111, 66, 193, 0.10);
    color: var(--purple-700);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.checkout-header h1 {
    margin: 0 0 10px;
    font-size: 3rem;
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--purple-800);
}

.checkout-header p {
    margin: 0 auto;
    max-width: 760px;
    color: var(--text-soft);
    font-size: 1.08rem;
    line-height: 1.7;
}

.custom-alert-success {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto 26px;
    padding: 16px 20px;
    border-radius: 18px;
    background: #eafaf1;
    color: #0f7b49;
    border: 1px solid #cfeedd;
    box-shadow: 0 12px 28px rgba(16, 178, 108, 0.08);
    font-weight: 700;
}

.custom-alert-success i {
    font-size: 1.2rem;
}

.product-card,
.checkout-box,
.empty-cart-box {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(201, 169, 107, 0.16);
    box-shadow: var(--shadow-soft);
}

.product-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    border-radius: 30px;
    padding: 24px;
    margin-bottom: 24px;
}

.product-image-col {
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    min-height: 270px;
    max-height: 300px;
    object-fit: cover;
    border-radius: 22px;
    display: block;
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.94);
    color: var(--purple-800);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.product-info h2 {
    margin: 0 0 14px;
    font-size: 2.15rem;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.7px;
    color: var(--purple-800);
}

.product-description {
    margin: 0 0 16px;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
}

.price-box {
    margin-bottom: 18px;
}

.price-main {
    font-size: 2.3rem;
    line-height: 1.05;
    font-weight: 900;
    color: var(--orange-500);
    margin-bottom: 6px;
}

.price-secondary {
    font-size: 0.95rem;
    color: #8a8096;
    font-weight: 500;
}

.value-note {
    margin-top: 6px;
    font-size: 0.92rem;
    color: #8b8198;
    line-height: 1.6;
}

.currency-usd {
    display: none;
}

.benefits {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    color: #4d4657;
    font-weight: 500;
}

.benefits div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits i {
    color: var(--green-600);
}

.product-actions {
    margin-top: 10px;
}

.qty-label {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.qty-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.qty-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 18px;
    background: #f8f5fc;
    border: 1px solid #ece4f5;
}

.qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--purple-800);
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.qty-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.08);
}

.qty-input {
    width: 52px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    outline: none;
}

.subtotal-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.subtotal-box strong {
    color: var(--text-main);
    font-size: 1rem;
}

.action-buttons {
    margin-top: 14px;
}

.btn-update,
.btn-remove {
    border: none;
    border-radius: 16px;
    padding: 12px 18px;
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: all 0.2s ease;
}

.btn-update {
    background: linear-gradient(135deg, var(--purple-700), var(--purple-800));
    color: var(--white);
    box-shadow: 0 14px 26px rgba(111, 66, 193, 0.20);
}

.btn-update:hover {
    transform: translateY(-1px);
}

.btn-remove {
    margin-top: 12px;
    background: #fff1f2;
    color: #dc3545;
}

.btn-remove:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(220, 53, 69, 0.10);
}

.checkout-box {
    position: sticky;
    top: 24px;
    border-radius: 30px;
    padding: 30px;
}

.brand-mark {
    text-align: right;
    color: var(--gold-500);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.checkout-box-header h3 {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 900;
    color: #188658;
    letter-spacing: -0.6px;
}

.checkout-box-header p {
    margin: 0 0 22px;
    color: var(--text-soft);
    line-height: 1.7;
}

.section-label {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
}

.currency-selector {
    margin-bottom: 20px;
}

.currency-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.currency-option {
    border: 1px solid #e6deef;
    background: #fff;
    color: #5e5569;
    border-radius: 18px;
    padding: 14px 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.currency-option.active {
    background: linear-gradient(135deg, var(--purple-700), var(--purple-800));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 24px rgba(111, 66, 193, 0.22);
}

.summary-lines {
    border-top: 1px solid #efe7f6;
    border-bottom: 1px solid #efe7f6;
    padding: 18px 0;
    margin-bottom: 18px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.summary-line:last-child {
    margin-bottom: 0;
}

.summary-line span {
    color: var(--text-soft);
    font-weight: 600;
}

.summary-line strong {
    color: var(--text-main);
    text-align: right;
    font-weight: 800;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 18px;
}

.summary-total span {
    color: #188658;
    font-size: 1.2rem;
    font-weight: 900;
}

.summary-total strong {
    display: block;
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 900;
    color: var(--green-600);
    text-align: right;
    letter-spacing: -0.8px;
}

.urgency {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--green-600);
    font-weight: 800;
    font-size: 0.95rem;
}

.payment-methods {
    margin-bottom: 22px;
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.payment-option {
    width: 100%;
    border: 1px solid #eadff3;
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    display: grid;
    grid-template-columns: 24px 1fr;
    column-gap: 14px;
    row-gap: 4px;
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option i {
    grid-row: span 2;
    font-size: 1.2rem;
    color: var(--orange-500);
    align-self: center;
}

.payment-option span {
    font-weight: 800;
    color: var(--text-main);
}

.payment-option small {
    color: var(--text-soft);
    font-size: 0.82rem;
}

.payment-option.active {
    border-color: transparent;
    background: linear-gradient(135deg, #f5efff, #ffffff);
    box-shadow: 0 14px 26px rgba(90, 46, 166, 0.14);
    outline: 2px solid rgba(111, 66, 193, 0.14);
}

.payment-option:hover {
    transform: translateY(-1px);
}

.trust-copy {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    color: #786f85;
    font-size: 0.93rem;
}

.trust-copy div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-copy i {
    color: var(--green-600);
}

.guest-box {
    position: relative;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fcf9ff 0%, #f8f3fd 100%);
    border: 1px solid #eee4f7;
    margin-bottom: 18px;
    transition: all 0.35s ease;
}

.guest-box h4 {
    margin: 0 0 10px;
    color: var(--purple-800);
    font-size: 1.2rem;
    font-weight: 900;
}

.guest-box p {
    margin: 0 0 16px;
    color: var(--text-soft);
    line-height: 1.65;
}

.guest-box__hint {
    position: absolute;
    top: -14px;
    left: 18px;
    right: 18px;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6f42c1, #4b2ca3);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 14px 28px rgba(111, 66, 193, 0.25);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 5;
}

.guest-box__hint.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.guest-box-attention {
    border-color: rgba(111, 66, 193, 0.45);
    box-shadow:
        0 0 0 4px rgba(111, 66, 193, 0.10),
        0 18px 36px rgba(111, 66, 193, 0.18);
    background: linear-gradient(180deg, #fdfaff 0%, #f6effd 100%);
}

.guest-box-bounce {
    animation: guestBoxBounce 0.8s ease;
}

@keyframes guestBoxBounce {
    0%   { transform: scale(1); }
    20%  { transform: scale(1.015); }
    40%  { transform: scale(0.995); }
    60%  { transform: scale(1.01); }
    100% { transform: scale(1); }
}

.guest-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-login-premium,
.btn-register-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 14px 16px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.2s ease;
}

.btn-login-premium {
    background: linear-gradient(135deg, var(--purple-700), var(--purple-800));
    color: #fff;
    box-shadow: 0 12px 22px rgba(111, 66, 193, 0.22);
}

.btn-register-premium {
    background: #fff;
    color: var(--purple-700);
    border: 1px solid #decff2;
}

.guest-box-attention .btn-login-premium,
.guest-box-attention .btn-register-premium {
    transform: translateY(-1px);
}

.guest-box-attention .btn-login-premium {
    box-shadow: 0 14px 26px rgba(111, 66, 193, 0.24);
}

.guest-box-attention .btn-register-premium {
    border-color: rgba(111, 66, 193, 0.35);
    box-shadow: 0 10px 20px rgba(111, 66, 193, 0.08);
}

.btn-pay {
    width: 100%;
    border: none;
    margin-top: 4px;
    padding: 20px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--green-600), var(--green-700));
    color: #fff;
    font-size: 1.18rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 18px 30px rgba(16, 178, 108, 0.24);
    transition: all 0.2s ease;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 34px rgba(16, 178, 108, 0.28);
}

.checkout-message {
    margin-top: 12px;
    text-align: center;
    font-size: 0.92rem;
    color: #7a6f85;
    line-height: 1.6;
}

.legal-note {
    margin-top: 12px;
    color: #8a8096;
    font-size: 0.82rem;
    text-align: center;
}

.empty-cart-box {
    max-width: 760px;
    margin: 40px auto 0;
    padding: 60px 24px;
    text-align: center;
    border-radius: 30px;
}

.empty-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(111, 66, 193, 0.10);
    color: var(--purple-700);
    font-size: 2rem;
}

.empty-cart-box h2 {
    margin: 0 0 12px;
    color: var(--purple-800);
    font-size: 2rem;
    font-weight: 900;
}

.empty-cart-box p {
    color: var(--text-soft);
    margin-bottom: 22px;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--purple-700), var(--purple-800));
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(111, 66, 193, 0.20);
}

@media (max-width: 1199px) {
    .product-card {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 991px) {
    .checkout-box {
        position: static;
    }

    .product-card {
        grid-template-columns: 1fr;
    }

    .product-img {
        min-height: 240px;
        max-height: 280px;
    }
}

@media (max-width: 767px) {
    .checkout-page {
        padding: 28px 0 50px;
    }

    .checkout-header h1 {
        font-size: 2.2rem;
    }

    .product-info h2 {
        font-size: 1.7rem;
    }

    .price-main,
    .summary-total strong {
        font-size: 1.8rem;
    }

    .guest-actions,
    .currency-options {
        grid-template-columns: 1fr;
    }
}