/* ==================== CART / WISHLIST / CHECKOUT / CONFIRMATION ====================
   Page shell (.dt-sp, .dt-sp__wrap) from support.css, fields from auth.css,
   product cards from product-card.css. */

/* ---------- Compact page head with purchase steps ---------- */
.dt-cm-head {
    padding: 34px 0 30px;
    background:
        radial-gradient(60% 140% at 100% 0%, rgba(255, 122, 0, 0.25) 0%, rgba(255, 122, 0, 0) 60%),
        linear-gradient(150deg, #151515 0%, #070605 100%);
    color: #fff;
}

.dt-cm-head__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px 30px;
}

.dt-cm-head__crumbs {
    margin: 0 0 8px;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.55);
}

.dt-cm-head__crumbs a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.dt-cm-head__crumbs a:hover {
    color: var(--dt-orange);
}

.dt-cm-head__title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #fff;
}

.dt-cm-head__title span {
    color: var(--dt-orange);
}

.dt-cm-head__sub {
    margin: 6px 0 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
}

.dt-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.dt-flow li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dt-flow li + li::before {
    content: '';
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.18);
}

.dt-flow span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    font-size: 0.72rem;
}

.dt-flow .is-done { color: rgba(255, 255, 255, 0.85); }
.dt-flow .is-done span { background: var(--dt-ok); border-color: var(--dt-ok); color: #fff; }
.dt-flow .is-done + li::before { background: var(--dt-ok); }
.dt-flow .is-current { color: #fff; }
.dt-flow .is-current span { background: var(--dt-orange); border-color: var(--dt-orange); color: #fff; box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.2); }

/* ---------- Two-column layout ---------- */
.dt-cm {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
}

.dt-panel {
    background: #fff;
    border: 1px solid var(--dt-line);
    border-radius: 20px;
    padding: 22px;
}

.dt-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dt-panel__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.dt-panel__title i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #fff4ea;
    color: var(--dt-orange);
    font-size: 0.85rem;
}

.dt-panel__title .dt-step-num {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--dt-orange);
    color: #fff;
    font-size: 0.8rem;
}

.dt-panel + .dt-panel {
    margin-top: 18px;
}

/* ---------- Cart lines ---------- */
.dt-lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dt-line {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--dt-line);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dt-line:first-child {
    border-top: 0;
    padding-top: 4px;
}

.dt-line.is-removing {
    opacity: 0;
    transform: translateX(24px);
}

.dt-line.is-updating {
    opacity: 0.6;
}

.dt-line__img {
    width: 86px;
    height: 86px;
    padding: 8px;
    border-radius: 14px;
    background: radial-gradient(circle at 50% 40%, #fff 0%, #f4f4f5 72%);
    object-fit: contain;
    mix-blend-mode: multiply;
}

.dt-line__img.is-placeholder {
    padding: 24px;
    opacity: 0.3;
    filter: grayscale(1);
}

.dt-line__body {
    min-width: 0;
}

.dt-line__name {
    margin: 0 0 3px;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
}

.dt-line__name a {
    color: var(--dt-ink);
    text-decoration: none;
}

.dt-line__name a:hover {
    color: var(--dt-orange);
}

.dt-line__variant {
    margin: 0 0 6px;
    font-size: 0.76rem;
    color: var(--dt-muted);
}

.dt-line__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 0.86rem;
}

.dt-line__price strong {
    font-weight: 800;
}

.dt-line__price del {
    font-size: 0.78rem;
    color: #a8a8a8;
}

.dt-line__save {
    padding: 2px 7px;
    border-radius: 6px;
    background: #fff4ea;
    color: var(--dt-orange-dark);
    font-size: 0.68rem;
    font-weight: 800;
}

.dt-line__problem {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--dt-bad);
}

.dt-line__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.dt-line__total {
    font-size: 1.02rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.dt-line__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dt-line__remove {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--dt-line);
    border-radius: 10px;
    background: #fff;
    color: #9a9a9a;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dt-line__remove:hover {
    color: var(--dt-bad);
    border-color: #fecaca;
    background: #fef2f2;
}

/* Quantity stepper */
.dt-qty {
    display: inline-flex;
    align-items: center;
    height: 38px;
    border: 1.5px solid var(--dt-line);
    border-radius: 11px;
    overflow: hidden;
    background: #fff;
}

.dt-qty button {
    width: 34px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dt-ink);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.dt-qty button:hover:not(:disabled) {
    background: #fff4ea;
    color: var(--dt-orange);
}

.dt-qty button:disabled {
    color: #cfcfcf;
    cursor: not-allowed;
}

.dt-qty input {
    width: 42px;
    height: 100%;
    border: 0;
    border-left: 1px solid var(--dt-line);
    border-right: 1px solid var(--dt-line);
    text-align: center;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    -moz-appearance: textfield;
    appearance: textfield;
}

.dt-qty input::-webkit-outer-spin-button,
.dt-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dt-qty input:focus {
    outline: none;
    background: #fff8f1;
}

/* ---------- Summary ---------- */
.dt-summary-card {
    position: sticky;
    top: 96px;
}

.dt-sum {
    margin: 0 0 16px;
}

.dt-sum div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.88rem;
}

.dt-sum dt {
    font-weight: 500;
    color: var(--dt-muted);
}

.dt-sum dd {
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dt-sum .is-savings dd {
    color: var(--dt-ok);
}

.dt-sum .is-total {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px dashed #e0e0e0;
    font-size: 1.1rem;
}

.dt-sum .is-total dt,
.dt-sum .is-total dd {
    font-weight: 800;
    color: var(--dt-ink);
}

.dt-sum-items {
    margin: 0 0 14px;
    padding: 0 0 14px;
    list-style: none;
    border-bottom: 1px solid var(--dt-line);
}

.dt-sum-items li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.dt-sum-items__img {
    position: relative;
    flex-shrink: 0;
}

.dt-sum-items__img img {
    width: 52px;
    height: 52px;
    padding: 5px;
    border-radius: 12px;
    background: #f4f4f5;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.dt-sum-items__img span {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--dt-ink);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

.dt-sum-items__name {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
}

.dt-sum-items__name small {
    display: block;
    font-weight: 500;
    color: var(--dt-muted);
}

.dt-sum-items__price {
    font-size: 0.84rem;
    font-weight: 800;
}

.dt-cm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--dt-orange);
    color: #fff;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 14px 28px -14px rgba(255, 122, 0, 0.9);
    transition: background 0.2s ease, transform 0.25s var(--dt-ease);
}

.dt-cm-btn:hover {
    color: #fff;
    background: #ff8a1f;
    text-decoration: none;
    transform: translateY(-2px);
}

.dt-cm-btn[aria-disabled="true"],
.dt-cm-btn:disabled {
    background: #d4d4d4;
    box-shadow: none;
    pointer-events: none;
}

.dt-cm-btn--ghost {
    margin-top: 10px;
    height: 46px;
    background: #fff;
    border: 1.5px solid var(--dt-line);
    color: var(--dt-ink);
    box-shadow: none;
    font-size: 0.78rem;
}

.dt-cm-btn--ghost:hover {
    background: #fff;
    border-color: var(--dt-orange);
    color: var(--dt-ink);
}

.dt-trust {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--dt-line);
    list-style: none;
    font-size: 0.78rem;
    color: var(--dt-muted);
}

.dt-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dt-trust i {
    width: 16px;
    text-align: center;
    color: var(--dt-orange);
}

.dt-cm-warning {
    display: flex;
    gap: 10px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    font-size: 0.8rem;
    color: #991b1b;
}

.dt-cm-warning[hidden] {
    display: none;
}

/* ---------- Empty states ---------- */
.dt-cm-empty {
    max-width: 520px;
    margin: 0 auto;
    padding: 50px 24px;
    text-align: center;
}

.dt-cm-empty__icon {
    display: inline-grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #fff4ea;
    color: var(--dt-orange);
    font-size: 2rem;
    box-shadow: 0 0 0 12px rgba(255, 122, 0, 0.06);
}

.dt-cm-empty h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 800;
}

.dt-cm-empty p {
    margin: 0 0 22px;
    color: var(--dt-muted);
}

.dt-cm-empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.dt-cm-empty__actions .dt-btn {
    height: 48px;
    font-size: 0.76rem;
}

/* ---------- Wishlist grid ---------- */
.dt-wish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dt-wish-grid > li {
    display: flex;
    animation: dt-acc-in 0.4s var(--dt-ease) both;
    animation-delay: calc(var(--i, 0) * 50ms);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dt-wish-grid > li.is-removing {
    opacity: 0;
    transform: scale(0.95);
}

.dt-wish-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.dt-wish-bar p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.dt-wish-bar .dt-abtn-link {
    border: 0;
    background: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dt-muted);
    cursor: pointer;
}

.dt-wish-bar .dt-abtn-link:hover {
    color: var(--dt-bad);
}

.dt-skel {
    height: 330px;
    border-radius: 16px;
    background: linear-gradient(90deg, #f1f1f1 0%, #f8f8f8 40%, #f1f1f1 80%);
    background-size: 200% 100%;
    animation: dt-cm-shimmer 1.2s linear infinite;
}

/* ---------- Checkout ---------- */
.dt-pay {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.dt-pay label {
    margin: 0;
    cursor: pointer;
}

.dt-pay input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dt-pay__box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--dt-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dt-pay__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--dt-soft);
    color: #8a8a8a;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.dt-pay__text {
    flex: 1;
    min-width: 0;
}

.dt-pay__text strong {
    display: block;
    font-size: 0.9rem;
}

.dt-pay__text small {
    font-size: 0.76rem;
    color: var(--dt-muted);
}

.dt-pay__radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #cfcfcf;
    border-radius: 50%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dt-pay input:checked + .dt-pay__box {
    border-color: var(--dt-orange);
    background: #fffaf5;
    box-shadow: 0 10px 24px -20px rgba(255, 122, 0, 0.9);
}

.dt-pay input:checked + .dt-pay__box .dt-pay__icon {
    background: var(--dt-orange);
    color: #fff;
}

.dt-pay input:checked + .dt-pay__box .dt-pay__radio {
    border-color: var(--dt-orange);
    box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--dt-orange);
}

.dt-pay input:focus-visible + .dt-pay__box {
    outline: 2px solid var(--dt-orange);
    outline-offset: 2px;
}

.dt-pay input:disabled + .dt-pay__box {
    opacity: 0.55;
    cursor: not-allowed;
}

.dt-signin-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #fff8f1;
    border: 1px solid #ffe6cf;
    font-size: 0.84rem;
}

.dt-signin-hint a {
    color: var(--dt-orange);
    font-weight: 800;
}

.dt-fixed-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--dt-line);
    border-radius: 12px;
    background: var(--dt-soft);
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
}

.dt-fixed-field i {
    color: #a3a3a3;
}

/* ---------- Confirmation ---------- */
.dt-done {
    max-width: 760px;
    margin: 0 auto;
}

.dt-done__hero {
    padding: 36px 28px 30px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--dt-line);
    text-align: center;
}

.dt-done__check {
    display: inline-grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--dt-ok);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 0 0 12px rgba(22, 163, 74, 0.12);
    animation: dt-done-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.dt-done__title {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
}

.dt-done__text {
    max-width: 480px;
    margin: 0 auto 20px;
    color: var(--dt-muted);
    line-height: 1.6;
}

.dt-done__ref {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--dt-soft);
    font-size: 0.86rem;
}

.dt-done__ref strong {
    font-size: 1.05rem;
}

.dt-done__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.dt-done__actions .dt-btn {
    height: 48px;
    font-size: 0.74rem;
}

.dt-done__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.dt-next {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: next;
}

.dt-next li {
    display: flex;
    gap: 12px;
    font-size: 0.84rem;
    color: #444;
    counter-increment: next;
}

.dt-next li::before {
    content: counter(next);
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff4ea;
    color: var(--dt-orange);
    font-size: 0.72rem;
    font-weight: 800;
}

.dt-kv-list {
    margin: 0;
}

.dt-kv-list div {
    padding: 6px 0;
}

.dt-kv-list dt {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dt-muted);
}

.dt-kv-list dd {
    margin: 2px 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* ---------- Keyframes ---------- */
@keyframes dt-cm-shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

@keyframes dt-done-pop {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

@keyframes dt-acc-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .dt-cm {
        grid-template-columns: minmax(0, 1fr);
    }

    .dt-summary-card {
        position: static;
    }

    .dt-done__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .dt-cm-head {
        padding: 24px 0 22px;
    }

    .dt-flow {
        font-size: 0;
        gap: 6px;
    }

    .dt-flow li + li::before {
        width: 18px;
    }

    .dt-panel {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .dt-line {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
    }

    .dt-line__img {
        width: 72px;
        height: 72px;
    }

    .dt-line__side {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .dt-wish-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dt-done__hero {
        padding: 28px 18px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dt-done__check,
    .dt-wish-grid > li,
    .dt-skel {
        animation: none;
    }
}

.dt-panel__body {
    margin-top: 16px;
}

.dt-cm-legal {
    margin-top: 10px;
    text-align: center;
}

/* Order status badge (same look as the account area) */
.dt-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.dt-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.dt-badge--pending   { background: #fffbeb; color: #b45309; }
.dt-badge--delivered { background: #f0fdf4; color: #15803d; }
.dt-badge--cancelled { background: #fef2f2; color: #b91c1c; }
