/* ==========================================================================
   Funnel Pages — Upsells, Checkout, Thank-You
   Lucky Horse Shoe
   ========================================================================== */

/* ── Theme: light warm-white, navy accents, gold CTA ─────────────────────── */
:root {
    --color-navy:       #0a1a2f;
    --color-navy-light: #1a2f4a;
    --color-navy-mid:   #1e3a5f;
    --color-gold:       #D4A954;
    --color-gold-dark:  #B8960F;
    --color-bg:         #fafaf8;
    --color-surface:    #ffffff;
    --color-surface-alt:#f5f4f0;
    --color-border:     rgba(10,26,47,0.1);
    --color-text:       #1a2744;
    --color-text-muted: rgba(10,26,47,0.5);
    /* Spacing scale (not in v2.min.css) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
}

body.v2-body {
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
}

main {
    min-height: calc(100vh - 64px);
}

/* ── Shared: step header ─────────────────────────────────────────────────── */
.funnel-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.funnel-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: 64px;
}

.funnel-header__logo img { height: 36px; }

.funnel-steps {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.funnel-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(10,26,47,0.35);
}

.funnel-step--done   { color: var(--color-gold-dark); }
.funnel-step--active { color: var(--color-navy); }

.funnel-step__num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.funnel-step--done .funnel-step__num {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-navy);
}

.funnel-step__sep {
    width: 20px;
    height: 1px;
    background: rgba(10,26,47,0.12);
    margin: 0 2px;
}

/* ── Shared: two-column layout ────────────────────────────────────────────── */
.funnel-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-8);
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
    align-items: start;
}

@media (max-width: 768px) {
    .funnel-layout { grid-template-columns: 1fr; padding: var(--space-4); }
    .funnel-sidebar { order: -1; }
}

/* ── Sidebar (order summary) ──────────────────────────────────────────────── */
.funnel-sidebar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-5);
    position: sticky;
    top: 80px;
}

.funnel-sidebar__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 var(--space-4);
}

.funnel-order-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(10,26,47,0.07);
    font-size: 14px;
}

.funnel-order-item:last-child { border-bottom: none; }
.funnel-order-item__label { color: rgba(10,26,47,0.6); }
.funnel-order-item__value { color: var(--color-text); font-weight: 600; }
.funnel-order-item__price { color: var(--color-gold-dark); font-weight: 700; white-space: nowrap; margin-left: var(--space-2); }
.funnel-order-item--sub .funnel-order-item__label { font-size: 12px; color: rgba(10,26,47,0.4); padding-left: 10px; }

.funnel-totals {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(10,26,47,0.1);
}

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

.funnel-totals__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(10,26,47,0.1);
}

.funnel-totals__total-label { font-size: 14px; font-weight: 700; color: var(--color-text); }
.funnel-totals__total-price { font-size: 22px; font-weight: 900; color: var(--color-gold-dark); }

.funnel-shipping-note {
    font-size: 11px;
    color: rgba(10,26,47,0.4);
    margin-top: var(--space-2);
    text-align: center;
}

.funnel-cta {
    width: 100%;
    margin-top: 16px;
    padding: 16px 20px;
    background: var(--color-gold);
    color: var(--color-navy);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    box-sizing: border-box;
}

.funnel-cta:hover { background: var(--color-gold-dark); transform: translateY(-1px); }
.funnel-cta:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Back link ────────────────────────────────────────────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(10,26,47,0.4);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.15s;
}
.back-link:hover { color: var(--color-navy); }

/* ── Funnel container ─────────────────────────────────────────────────────── */
.funnel-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* ── Upsells: two-column layout ───────────────────────────────────────────── */
.upsells {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.upsells__main {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.upsells__hero h1 {
    font-size: 26px;
    font-weight: 900;
    color: var(--color-text);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.upsells__hero p {
    font-size: 14px;
    color: rgba(10,26,47,0.55);
    margin: 0;
}

.upsells__hero-accent { color: var(--color-gold-dark); }

/* ── Upsell card grid ─────────────────────────────────────────────────────── */
.upsell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.upsell-card {
    background: var(--color-surface);
    border: 1.5px solid rgba(10,26,47,0.1);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.upsell-card:hover {
    border-color: rgba(30,58,95,0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(10,26,47,0.12);
}

.upsell-card--selected {
    border-color: var(--color-navy-mid);
    border-width: 2px;
    background: rgba(10,26,47,0.04);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.12), 0 8px 24px rgba(10,26,47,0.1);
    transform: translateY(-3px);
}

.upsell-card--selected:hover { border-color: var(--color-navy-mid); }

.upsell-card--selected::after {
    content: '\2713';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    background: var(--color-navy);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: checkPop 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes checkPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.upsell-card__image {
    aspect-ratio: 4/3;
    background: var(--color-surface-alt);
    overflow: hidden;
}

.upsell-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upsell-card__body { padding: 16px; }

.upsell-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.upsell-card__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    min-width: 0;
}

.upsell-card__price {
    font-size: 15px;
    font-weight: 900;
    color: var(--color-gold-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.upsell-card__desc {
    font-size: 12px;
    color: rgba(10,26,47,0.5);
    margin: 0 0 14px;
    line-height: 1.5;
}

.upsell-card__btn {
    width: 100%;
    padding: 9px 14px;
    background: rgba(10,26,47,0.06);
    color: var(--color-navy);
    border: 1.5px solid rgba(10,26,47,0.2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
}

.upsell-card__btn:hover {
    background: rgba(10,26,47,0.1);
    border-color: rgba(10,26,47,0.35);
}

.upsell-card__btn--added {
    background: var(--color-navy);
    color: #fff;
    border-color: var(--color-navy);
}

.upsell-card__btn--added:hover {
    background: var(--color-navy-light);
    border-color: var(--color-navy-light);
}

/* ── Upsells sidebar ──────────────────────────────────────────────────────── */
.upsells__sidebar {
    position: sticky;
    top: 80px;
}

.order-summary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(10,26,47,0.07);
}

.order-summary__header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.order-summary__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.order-summary__items { padding: 12px 20px; }

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px solid rgba(10,26,47,0.06);
    font-size: 13px;
}

.order-item:last-child { border-bottom: none; }
.order-item__label { color: rgba(10,26,47,0.6); flex: 1; padding-right: 8px; }
.order-item__price { color: var(--color-gold-dark); font-weight: 700; white-space: nowrap; }

.order-summary__footer {
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-alt);
}

/* ── Shipping progress bar ────────────────────────────────────────────────── */
.shipping-progress { margin-bottom: 16px; }

.shipping-progress__labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.shipping-progress__remaining { color: var(--color-gold-dark); font-weight: 600; }

.shipping-progress__bar {
    height: 5px;
    background: rgba(10,26,47,0.1);
    border-radius: 99px;
    overflow: hidden;
}

.shipping-progress__fill {
    height: 100%;
    background: var(--color-gold);
    border-radius: 99px;
    transition: width 0.4s ease;
    width: 0%;
}

/* ── Order total ──────────────────────────────────────────────────────────── */
.order-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.order-total__label { font-size: 14px; font-weight: 700; color: var(--color-text); }
.order-total__value { font-size: 22px; font-weight: 900; color: var(--color-gold-dark); }

.order-total--shipping { margin-bottom: 8px; }
.order-total--shipping .order-total__label { font-size: 12px; font-weight: 500; color: var(--color-text-muted, #888); }
.order-total--shipping .order-total__value { font-size: 13px; font-weight: 600; color: var(--color-text-muted, #888); }

.order-trust {
    font-size: 11px;
    color: rgba(10,26,47,0.4);
    text-align: center;
    margin: 10px 0 0;
}

/* ── Upsells responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .upsells { grid-template-columns: 1fr; }
    .upsells__sidebar { position: static; }
}

@media (max-width: 600px) {
    .funnel-container { padding: 20px 16px; }
    .upsell-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

@media (max-width: 400px) {
    .upsell-grid { grid-template-columns: 1fr; }
}

/* ── Checkout page ────────────────────────────────────────────────────────── */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.checkout-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--color-text);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.checkout-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(10,26,47,0.05);
}

.checkout-section__title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(10,26,47,0.45);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 16px;
}

.checkout-totals {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(10,26,47,0.08);
    margin-bottom: 4px;
}

.checkout-totals__row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-layout .upsells__sidebar { position: static; }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.form-row--full { grid-template-columns: 1fr; }
.form-row--postcode { grid-template-columns: 1fr 80px 2fr; }

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
    .form-row--postcode { grid-template-columns: 1fr 70px; grid-template-rows: auto auto; }
    .form-row--postcode .form-group:last-child { grid-column: 1 / -1; }
}

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(10,26,47,0.65);
}

.form-input {
    background: var(--color-surface);
    border: 1.5px solid rgba(10,26,47,0.18);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 14px;
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
    font-family: inherit;
}

.form-input:focus { outline: none; border-color: var(--color-gold); }
.form-input--error { border-color: #e05555; }
.form-error { font-size: 11px; color: #e05555; }

.address-status {
    font-size: 12px;
    color: rgba(10,26,47,0.45);
    margin-top: var(--space-2);
    min-height: 16px;
}

.address-status--found { color: #3a8a3a; }
.address-status--error { color: #e05555; }

.shipping-options { display: flex; flex-direction: column; gap: 10px; }

.shipping-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--color-surface-alt);
    border: 1.5px solid rgba(10,26,47,0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.shipping-option:hover {
    border-color: rgba(212,169,84,0.5);
    background: #f0ede6;
}

.shipping-option--active {
    border-color: var(--color-gold);
    background: rgba(212,169,84,0.07);
    box-shadow: 0 0 0 1px rgba(212,169,84,0.2);
}

.shipping-option__radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(10,26,47,0.3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.shipping-option--active .shipping-option__radio { border-color: var(--color-gold); }

.shipping-option--active .shipping-option__radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gold);
}

.shipping-option__body { flex: 1; }

.shipping-option__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.shipping-option__name { font-size: 14px; font-weight: 700; color: var(--color-text); }
.shipping-option__price { font-size: 14px; font-weight: 700; color: var(--color-gold-dark); }
.shipping-option__price--free { color: #3a8a3a; }
.shipping-option__desc { font-size: 12px; color: rgba(10,26,47,0.5); margin: 0; }

/* ── Loading overlay ──────────────────────────────────────────────────────── */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(250,250,248,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-4);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(212,169,84,0.3);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: rgba(10,26,47,0.65); font-size: 14px; }

/* ── Toast ────────────────────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-3) var(--space-5);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10000;
    animation: toastIn 0.25s ease;
}

.toast--success { background: #2d6a2d; color: #fff; }
.toast--error   { background: #6a2d2d; color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(8px); } }

/* ── Thank-you page ───────────────────────────────────────────────────────── */
.thankyou-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    text-align: center;
    padding: var(--space-8) var(--space-4);
}

.thankyou-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(90,160,90,0.12);
    border: 2px solid rgba(90,160,90,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    animation: scaleIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.thankyou-icon svg { width: 50px; height: 50px; color: #3a8a3a; stroke: #3a8a3a; }
@keyframes scaleIn { from { transform: scale(0); } }

.thankyou-title { font-size: 28px; font-weight: 900; color: var(--color-text); margin: 0 0 var(--space-3); }
.thankyou-sub   { font-size: 16px; color: rgba(10,26,47,0.55); margin: 0 0 var(--space-8); max-width: 400px; }

.thankyou-order-id {
    font-size: 13px;
    color: rgba(10,26,47,0.4);
    margin-bottom: var(--space-6);
}

.thankyou-back {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    background: var(--color-gold);
    color: var(--color-navy);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    border: none;
    outline: none;
    box-shadow: 0 2px 8px rgba(212,169,84,0.3);
    transition: background 0.15s, transform 0.15s;
}

.thankyou-back:hover {
    background: var(--color-gold-dark);
    transform: translateY(-1px);
}

/* ── Thank-you steps ──────────────────────────────────────────────────────── */
.thankyou-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 24px;
    text-align: left;
    width: 100%;
    max-width: 340px;
}

.thankyou-step {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: rgba(10,26,47,0.7);
}

.thankyou-step__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(212,169,84,0.12);
    border: 1.5px solid var(--color-gold);
    color: var(--color-gold-dark);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Order item sub-line ──────────────────────────────────────────────────── */
.order-item--sub .order-item__label {
    font-size: 12px;
    color: rgba(10,26,47,0.4);
    padding-left: 12px;
}

/* ── Mobile sticky CTA bar (upsells) ─────────────────────────────────────── */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 12px 20px;
    z-index: 200;
    align-items: center;
    gap: 16px;
    box-shadow: 0 -4px 20px rgba(10,26,47,0.1);
}

.mobile-cta-bar__info {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.mobile-cta-bar__label {
    font-size: 11px;
    color: rgba(10,26,47,0.5);
}

.mobile-cta-bar__total {
    font-size: 18px;
    font-weight: 900;
    color: var(--color-gold-dark);
}

.mobile-cta-bar__btn {
    flex: 1;
    margin-top: 0;
}

@media (max-width: 900px) {
    .mobile-cta-bar { display: flex; }
    .upsells { padding-bottom: 80px; }
}

.mobile-cta-bar.is-hidden { display: none; }

/* ── Checkout trust block ─────────────────────────────────────────────────── */
.checkout-trust {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(10,26,47,0.08);
    margin-bottom: 16px;
    text-align: center;
}

.checkout-trust__stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 4px;
}

.checkout-trust__star {
    color: var(--color-gold);
    font-size: 16px;
}

.checkout-trust__rating {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-gold-dark);
    margin-left: 6px;
}

.checkout-trust__text {
    font-size: 12px;
    color: rgba(10,26,47,0.45);
    margin: 0;
}

/* ── Cart item card (upsells + checkout sidebar) ──────────────────────────── */
.cart-item-card {
    display: flex;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: border-color 0.15s;
}
.cart-item-card + .cart-item-card {
    border-top: 1px solid rgba(10,26,47,0.07);
}
.cart-item-card--editing {
    border-color: var(--color-navy-mid);
    box-shadow: 0 0 0 1px var(--color-navy-mid);
}
.cart-item-card__edit-btn--active {
    color: var(--color-navy) !important;
}

.cart-item-card__img {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--color-surface-alt);
}

.cart-item-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-item-card__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 2px;
}

.cart-item-card__title-row .cart-item-card__title {
    flex: 1;
    min-width: 0;
}

.cart-item-card__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-card__engraving {
    font-size: 11px;
    font-style: italic;
    color: rgba(10,26,47,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-card__accessories {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 3px;
}

.cart-item-card__acc-tag {
    font-size: 10px;
    padding: 1px 6px;
    background: var(--color-surface-alt);
    border-radius: 10px;
    color: rgba(10,26,47,0.65);
    white-space: nowrap;
}

.cart-item-card__footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.cart-item-card__qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(10,26,47,0.14);
    border-radius: 6px;
    overflow: hidden;
    height: 26px;
}

.cart-item-card__qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: var(--color-surface-alt);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
}
.cart-item-card__qty-btn:hover { background: #e8e4dc; }

.cart-item-card__qty-val {
    width: 28px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    border-left: 1px solid rgba(10,26,47,0.14);
    border-right: 1px solid rgba(10,26,47,0.14);
    height: 26px;
    line-height: 26px;
}

.cart-item-card__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.cart-item-card__edit-btn,
.cart-item-card__del-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    color: rgba(10,26,47,0.4);
    display: flex;
    align-items: center;
    transition: color 0.15s, background 0.15s;
    font-size: 11px;
    line-height: 1;
}
.cart-item-card__edit-btn:hover { color: var(--color-navy); background: rgba(10,26,47,0.07); }
.cart-item-card__del-btn:hover  { color: #c0392b; background: #fef0ee; }

.cart-item-card__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
    align-self: center;
    margin-left: auto;
    padding-left: 8px;
}

/* Sidebar: add another product */
.sidebar-add-another {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    background: none;
    border: 1.5px dashed rgba(10, 26, 47, 0.2);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-navy-mid, #1e3a5f);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.sidebar-add-another:hover {
    background: rgba(10, 26, 47, 0.04);
    border-color: rgba(10, 26, 47, 0.4);
}

/* "Add another" upsell card */
.upsell-card--add-another {
    border: 2px dashed rgba(10,26,47,0.2);
    background: var(--color-surface);
    cursor: pointer;
}
.upsell-card--add-another:hover {
    background: rgba(10,26,47,0.03);
    border-color: var(--color-navy-mid);
}
.upsell-card--add-another .upsell-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}
