/* Checkout cross-sell — full hero overlay when Proceed to Checkout is clicked */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@600;700;800;900&display=swap');

.ct-recs-wrap {
    display: none !important;
}

/* ── Hero base ── */
.ct-hero {
    position: relative;
    overflow: hidden;
    transition: min-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* When open: white hero, hide original branding/header entirely */
.ct-hero--recs-open {
    padding: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
}

.ct-hero--recs-open .ct-hero-bg,
.ct-hero--recs-open .ct-glow,
.ct-hero--recs-open .ct-grid {
    display: none;
}

.ct-hero--recs-open .ct-hero-inner,
.ct-hero--recs-open .ct-hero-count {
    display: none !important;
}

/* ── Overlay shell — replaces hero header when open ── */
.ct-cxo {
    position: absolute;
    inset: 0;
    z-index: 12;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease;
}

.ct-cxo--open {
    position: relative;
    inset: auto;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.ct-cxo--open .ct-cxo-panel {
    animation: ctCxoEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ctCxoEnter {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ct-cxo-panel {
    background: #ffffff;
    overflow: visible;
    display: flex;
    flex-direction: column;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #c94e00, #ff6b00 45%, #ff8c33) 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.ct-cxo-inner {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 40px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* ── Header ── */
.ct-cxo-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-shrink: 0;
}

.ct-cxo-head-copy {
    flex: 1;
    min-width: 0;
}

.ct-cxo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Figtree', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #ff6b00;
    background: #fff4ec;
    border: 1px solid rgba(255, 107, 0, 0.22);
    border-radius: 100px;
    padding: 5px 12px 5px 10px;
    margin-bottom: 10px;
}

.ct-cxo-eyebrow svg {
    width: 11px;
    height: 11px;
}

.ct-cxo-title {
    font-family: 'Figtree', sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin: 0 0 8px;
}

.ct-cxo-title-accent {
    background: linear-gradient(90deg, #c94e00, #ff6b00, #ff8c33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ct-cxo-sub {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: #6b6b6b;
    line-height: 1.5;
    max-width: 540px;
}

.ct-cxo-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ct-cxo-skip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 100px;
    border: 1.5px solid #e5e5e3;
    background: #f7f7f5;
    color: #2e2e2e;
    font-family: 'Figtree', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ct-cxo-skip:hover {
    background: #fff4ec;
    border-color: rgba(255, 107, 0, 0.35);
    color: #c94e00;
}

.ct-cxo-skip svg {
    width: 13px;
    height: 13px;
}

.ct-cxo-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #e5e5e3;
    background: #f7f7f5;
    color: #6b6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.ct-cxo-close:hover {
    background: #eeeeec;
    color: #1a1a1a;
}

.ct-cxo-close svg {
    width: 13px;
    height: 13px;
}

.ct-cxo-divider {
    height: 1px;
    background: #eeeeec;
    margin: 18px 0 14px;
    flex-shrink: 0;
}

/* ── Carousel ── */
.ct-cxo-rail-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ct-cxo-rail-label {
    font-family: 'Figtree', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaaaaa;
    flex-shrink: 0;
}

.ct-cxo-rail-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

.ct-cxo-rail {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.ct-cxo-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 8px;
    scrollbar-width: none;
    align-items: stretch;
}

.ct-cxo-track::-webkit-scrollbar {
    display: none;
}

.ct-cxo-nav {
    width: 36px;
    align-self: center;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #e5e5e3;
    background: #fff;
    color: #2e2e2e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ct-cxo-nav:hover:not(:disabled) {
    background: #fff4ec;
    border-color: rgba(255, 107, 0, 0.35);
    color: #ff6b00;
}

.ct-cxo-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ct-cxo-nav svg {
    width: 15px;
    height: 15px;
}

/* ── Product cards — tall enough for Add to Cart button ── */
.ct-cxo-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    background: #fff;
    border: 1.5px solid #e5e5e3;
    border-radius: 16px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 268px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.ct-cxo-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 0, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.ct-cxo-card-img-wrap {
    height: 120px;
    flex-shrink: 0;
    background: #fafafa;
    overflow: hidden;
    border-bottom: 1px solid #f0f0ee;
    border-radius: 16px 16px 0 0;
}

.ct-cxo-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}

.ct-cxo-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ct-cxo-card-name {
    font-family: 'Figtree', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ct-cxo-card-name:hover {
    color: #ff6b00;
}

.ct-cxo-card-condition {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #aaa;
}

.ct-cxo-card-price {
    font-family: 'Figtree', sans-serif;
    font-size: 0.9rem;
    font-weight: 900;
    color: #ff6b00;
    margin: 2px 0 8px;
}

/* Prominent Add to Cart — always visible */
.ct-cxo-card-add {
    margin-top: auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #ff6b00, #ff8c33);
    color: #ffffff !important;
    font-family: 'Figtree', sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.32);
    transition: transform 0.14s, filter 0.14s, box-shadow 0.14s;
    visibility: visible !important;
    opacity: 1 !important;
}

.ct-cxo-card-add svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    stroke: #fff;
}

.ct-cxo-card-add span {
    color: #fff !important;
}

.ct-cxo-card-add:hover:not(:disabled) {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.4);
}

.ct-cxo-card-add:disabled {
    opacity: 0.7 !important;
    cursor: wait;
}

.ct-cxo-card-add--done {
    background: #16a34a !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3) !important;
}

.ct-cxo-loading {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 32px 4px;
}

.ct-cxo-loading span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b00;
    animation: ctCxoPulse 0.9s ease-in-out infinite;
}

.ct-cxo-loading span:nth-child(2) { animation-delay: 0.15s; }
.ct-cxo-loading span:nth-child(3) { animation-delay: 0.3s; }

@keyframes ctCxoPulse {
    0%, 100% { opacity: 0.35; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1); }
}

.ct-cxo-empty {
    color: #6b6b6b;
    font-size: 0.88rem;
    padding: 20px 4px;
}

/* ── Footer ── */
.ct-cxo-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eeeeec;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.ct-cxo-foot-hint {
    font-size: 0.76rem;
    color: #aaa;
}

.ct-cxo-checkout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    background: #1a1a1a;
    color: #fff !important;
    text-decoration: none;
    font-family: 'Figtree', sans-serif;
    font-size: 0.84rem;
    font-weight: 800;
    transition: background 0.15s, transform 0.14s;
    white-space: nowrap;
}

.ct-cxo-checkout:hover {
    background: #2e2e2e;
    transform: translateY(-1px);
    color: #fff !important;
}

.ct-cxo-checkout svg {
    width: 14px;
    height: 14px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .ct-cxo-inner {
        padding: 22px 20px 20px;
    }

    .ct-cxo-head {
        flex-direction: column;
        gap: 12px;
    }

    .ct-cxo-head-actions {
        width: 100%;
        justify-content: space-between;
    }

    .ct-cxo-skip {
        flex: 1;
        justify-content: center;
    }

    .ct-cxo-nav {
        display: none;
    }

    .ct-cxo-card {
        flex-basis: 175px;
        min-height: 255px;
    }

    .ct-cxo-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .ct-cxo-checkout {
        justify-content: center;
    }
}
