/* ========== Theme tokens (inherits main.css) ========== */
.tc {
    --gap: 1rem;
}

/* Utilities */
.u-hidden {
    display: none !important;
}

.sk {
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, .04);
    border-radius: var(--radius-lg);
}

.sk::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: translateX(-100%);
    animation: sk 1.2s infinite;
}

@keyframes sk {
    to {
        transform: translateX(100%);
    }
}

/* Steps */
.tc-steps {
    margin: 2rem auto 1rem;
}

.tc-steps__list {
    display: flex;
    gap: .5rem;
    justify-content: space-between;
    padding: 0;
    list-style: none;
}

.tc-steps__item {
    flex: 1;
    text-align: center;
    padding: .75rem;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.tc-steps__circle {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.tc-steps__label {
    display: block;
    margin-top: .35rem;
    font-weight: 600;
}

.tc-steps__item.is-done .tc-steps__circle {
    background: #10b981;
    color: #fff;
}

.tc-steps__item.is-current .tc-steps__circle {
    background: #f59e0b;
    color: #1C1C1C;
}

.tc-steps__item.is-next .tc-steps__circle {
    background: #d1d5db;
    color: #fff;
}

.tc-steps__item.is-done .tc-steps__label {
    color: #047857;
}

.tc-steps__item.is-current .tc-steps__label {
    color: #b45309;
}

.tc-steps__item.is-next .tc-steps__label {
    color: #6b7280;
}

/* Skeleton section */
.tc-skel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem auto 2rem;
}

.tc-skel .tc-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.sk-img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
}

.sk-lines {
    flex: 1;
    height: 120px;
    border-radius: var(--radius-md);
}

.tc-skel .tc-sum {
    height: 60px;
    border-radius: var(--radius-lg);
}

/* Empty (watermark style) */
.tc-empty {
    position: relative;
    min-height: 60vh;
    display: grid;
    place-items: center;
}

.tc-empty__box {
    position: relative;
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    z-index: 1; /* روی آیکون قرار بگیرد */
    text-align: center;
}

.tc-empty__icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%); /* کمی بالاتر از مرکز */
    font-size: clamp(12rem, 30vw, 26rem); /* واکنش‌گرا و خیلی بزرگ */
    color: rgba(183, 110, 121, .12); /* رزگلد کم‌رنگ مثل واترمارک */
    pointer-events: none; /* کلیک‌ها به متن برود */
    z-index: 0; /* زیر متن */
}

/* تیتر و توضیح روی آیکون خواناتر باشند */
.tc-empty__title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-bottom: .5rem;
}

.tc-empty__desc {
    max-width: 42rem;
    margin-inline: auto;
}

.tc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
}

.tc-btn--outline {
    border: 1px solid var(--color-rosegold);
    color: var(--color-rosegold);
    background: transparent;
    position: relative;
    z-index: 1;
}

.tc-btn--outline:hover {
    background: var(--color-rosegold);
    color: #fff;
}

/* Full cart */
.tc-full__head {
    margin: 1.5rem 0 .5rem;
}

.tc-full__title {
    font-size: 1.4rem;
}

.tc-list {
    display: grid;
    gap: 1rem;
}

.tc-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.tc-item__main {
    display: flex;
    gap: 1rem;
}

.tc-item__thumb img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid #eee;
}

.tc-item__title {
    font-size: 1rem;
    margin: 0 0 .25rem;
}

.tc-sku {
    color: #6b7280;
    font-weight: 600;
}

.tc-item__variant {
    color: #555;
    margin: 0 0 .25rem;
}

.tc-item__unit {
    color: #777;
    margin: 0;
}

.tc-qty {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .5rem;
}

.tc-qty__btn {
    width: 2rem;
    height: 2rem;
    border-radius: .5rem;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.tc-qty__input {
    width: 3.25rem;
    padding: .35rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
}

.tc-item__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .75rem;
    min-width: 180px;
}

.tc-item__total {
    font-weight: 700;
}

.tc-btn--danger {
    background: #ef4444;
    border: none;
    color: #fff;
}

.tc-btn--danger:hover {
    color: var(--color-black);
    filter: brightness(.80);
}

.tc-btn--ghost {
    color: var(--color-black);
    background: transparent;
    border: 1px solid #d1d5db;
}

.tc-btn--primary {
    background: var(--color-rosegold);
    color: #fff;
    border: none;
}

.tc-btn--primary:hover {
    filter: brightness(.95);
    border: solid 2px var(--color-black);
    color: var(--color-black);
}

.tc-summary {
    margin: 1rem 0 2rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
}

.tc-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tc-summary__label {
    color: #6b7280;
}

.tc-summary__value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #b45309;
}

.tc-actions {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Suggest (Swiper) */
.tc-suggest__title {
    margin: 2rem 0 1rem;
}

.tc-suggest__swiper {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.tc-suggest__slide {
    height: 180px;
    border-radius: var(--radius-md);
}

/* Responsive */
@media (max-width: 768px) {
    .tc-item {
        flex-direction: column;
    }

    .tc-item__side {
        align-items: stretch;
        min-width: auto;
    }

    .tc-summary__value {
        font-size: 1.1rem;
    }
}

.td-toast {
    padding: 0 1rem 1rem !important;
}

/* راست و پایین 16px */

/* Loader overlay for updating an item */
.tc-item.is-busy {
    opacity: .6;
    pointer-events: none;
    position: relative;
}

.tc-item__loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-spinner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--color-rosegold);
    border-right-color: var(--color-rosegold);
    animation: tcspin 0.9s linear infinite;
}

@keyframes tcspin {
    to {
        transform: rotate(360deg);
    }
}
