.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start;
}

.cart-layout-single {
    grid-template-columns: minmax(0, 1fr);
}

.cart-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 0 36px;
    padding: 0;
    /* This is a real <ol>, kept for the semantics/accessibility of an ordered
       list of steps. Without resetting list-style, browsers still render each
       <li>'s native decimal marker outside the flex layout — showing as a
       stray "1. 2. 3." beneath the custom circles, one per separator <li>. */
    list-style: none;
    /* Steps must stay on one line: at narrow widths each step keeps only its
       30px circle (labels hide below 1024px), and wrapping could strand a
       separator <li> on its own line, looking like a stray dash. */
    flex-wrap: nowrap;
}

.cart-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-dim);
}

.cart-step .step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-display);
    flex-shrink: 0;
}

.cart-step.is-active {
    color: #fff;
}

.cart-step.is-active .step-num {
    background: var(--gradient-brand);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.cart-step.is-done .step-num {
    background: var(--success-bg);
    border-color: rgba(61, 220, 151, .4);
    color: var(--success);
}

.cart-step-sep {
    width: 46px;
    height: 1px;
    background: var(--line-strong);
    margin: 0 14px;
}

.cart-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 34px;
}

.cart-categories a {
    padding: 9px 20px;
    border-radius: 20px;
    border: 1px solid var(--line-strong);
    color: var(--text-muted);
    font-size: 13px;
    transition: all .2s var(--ease);
}

.cart-categories a:hover {
    background: var(--glass);
    color: #fff;
}

.cart-categories a.active {
    background: var(--gradient-brand);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.order-summary {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    position: sticky;
    top: calc(var(--header-height) + 20px);
    overflow: hidden;
}

.order-summary .summary-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-summary .summary-body {
    padding: 20px 22px;
}

.summary-item {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.summary-item:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
}

.summary-item .item-name {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #fff;
    font-weight: 600;
}

.summary-item .item-price {
    white-space: nowrap;
    font-family: var(--font-display);
}

.summary-item .item-meta {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
}

.summary-item .item-sub {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.summary-totals {
    border-top: 1px solid var(--line);
    padding: 18px 22px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.summary-line.total {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 14px;
    margin-bottom: 0;
    font-family: var(--font-display);
    font-size: 18px;
    color: #fff;
}

.summary-line.recurring {
    font-size: 12px;
    color: var(--text-dim);
}

.promo-box {
    padding: 0 22px 20px;
}

.promo-box .input-group .form-control {
    font-size: 13px;
    padding: 10px 14px;
}

.promo-applied {
    background: var(--success-bg);
    border: 1px solid rgba(61, 220, 151, .3);
    color: var(--success);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.product-config-block {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
}

.product-config-block .block-head {
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-config-block .block-head i {
    color: var(--rose);
}

.product-config-block .block-body {
    padding: 22px;
}

.existing-login-hint {
    margin-top: -4px;
    margin-bottom: 16px;
    font-size: 13px;
}

.existing-login-actions {
    margin-top: 14px;
    align-items: center;
}

.existing-login-actions .btn {
    min-width: 160px;
}

.existing-login-toggle {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
}

.existing-login-caret {
    font-size: 12px;
    opacity: .6;
    transition: transform .3s var(--ease);
}

.existing-login-toggle[aria-expanded="true"] .existing-login-caret {
    transform: rotate(180deg);
}

/* Same grid-rows trick as the mobile submenus: animates 0fr -> 1fr for a
   smooth height transition without JS measuring the real content height. */
.existing-login-collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s var(--ease);
}

.existing-login-collapse.is-open {
    grid-template-rows: 1fr;
}

.existing-login-collapse-inner {
    overflow: hidden;
    min-height: 0;
}

.existing-login-block .existing-login-collapse .block-body {
    padding-top: 18px;
}

.domain-option-row {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, .03);
}

.domain-option-row.is-selected {
    border-color: var(--rose);
    background: rgba(255, 61, 119, .07);
}

.domain-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.domain-result.available {
    border-color: rgba(61, 220, 151, .35);
    background: linear-gradient(90deg, rgba(61, 220, 151, .06), transparent), var(--bg-elevated);
}

.domain-result.unavailable {
    opacity: .65;
}

.domain-result .domain-name {
    font-family: var(--font-display);
    font-size: 16px;
    word-break: break-all;
}

.domain-result .domain-status {
    font-size: 12px;
    margin-top: 3px;
}

.domain-result .domain-price {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--rose);
    white-space: nowrap;
}

.suggestions-head {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-dim);
    margin: 28px 0 14px;
    font-weight: 600;
}

.cart-item-row {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

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

.cart-item-row .item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: rgba(255, 61, 119, .12);
    color: var(--rose);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-row .item-main {
    flex: 1;
    min-width: 200px;
}

.cart-item-row .item-main h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.cart-item-row .item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cart-empty {
    text-align: center;
    padding: 70px 20px;
}

.cart-empty i {
    font-size: 40px;
    color: var(--line-strong);
    margin-bottom: 18px;
    display: block;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.order-complete {
    text-align: center;
    padding: 60px 24px;
}

.order-complete .success-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--success-bg);
    border: 1px solid rgba(61, 220, 151, .35);
    color: var(--success);
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 26px;
}

.order-complete h1 {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 12px;
}

.order-complete p {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 10px;
    font-size: 14px;
}

.order-number {
    display: inline-block;
    background: var(--glass);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    padding: 10px 24px;
    font-family: var(--font-display);
    margin: 20px 0 26px;
}

.qty-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    overflow: hidden;
    width: 112px;
}

.qty-input button {
    width: 32px;
    height: 34px;
    background: rgba(255, 255, 255, .04);
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
}

.qty-input button:hover {
    background: var(--glass-strong);
}

.qty-input input {
    width: 48px;
    border: 0;
    background: none;
    text-align: center;
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    padding: 0;
    border-radius: 0;
}

.qty-input input:focus {
    outline: none;
    box-shadow: none;
}
