
/* ── Progress bar section ─────────────────────────── */
.cart-progress-bar {
    background: #f8f8f8;
    border-bottom: 1px solid #ebebeb;
    padding: 28px 0 20px;
}

.progress-steps-carts {
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.progress-steps-carts::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: #ddd;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #bbb;
    margin-bottom: 10px;
}

.step.active .step-circle {
    background: #111;
    border-color: #111;
    color: #fff;
}

.step.completed .step-circle {
    background: #111;
    border-color: #111;
    color: #fff;
}

.step-label {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.step.active .step-label {
    color: #111;
}

/* ── Page layout ──────────────────────────────────── */
table { border: none !important; }
td, th { border: none !important; }

.layout-grid {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 380px);
    grid-template-rows: auto 1fr;
    -moz-column-gap: 40px;
         column-gap: 40px;
    row-gap: 0;
    padding: 40px 0 60px;
    align-items: start;
}

.layout-grid-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ── Left column ──────────────────────────────────── */
.cart-left {
    grid-column: 1;
    grid-row: 2;
    padding-top: 24px;
}

.cart-section-title {
    font-family: var(--body-font, sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    font-style: normal;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    @media (max-width: 576px) {
        padding-inline: 20px;
        padding-block: 8px;
        align-self: start;
        grid-column: auto;
        grid-row: auto;
        width: 100%;
    }
}

/* Cart Table */
.cart-table-wrapper {
    margin-bottom: 24px;
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead tr {
    border-bottom: 1px solid #e8e8e8;
}

.cart-table thead th {
    font-size: 11px;
    color: #888;
    font-weight: 700;
    padding: 0 0 12px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-item {
    border-bottom: 1px solid #f0f0f0;
}

.cart-item td {
    padding: 20px 0;
    vertical-align: middle;
}

/* Cart Mobile */
.cart-mobile-wrapper {
    margin-bottom: 40px;
    max-height: 1080px;
    overflow-y: scroll;
}

.product-mobile-row {
    padding: 16px;
    display: flex;
    width: 100%;
    gap: 16px;
    align-items: flex-start;
}

.product-mobile-image-wrapper {
    width: 90px;
    height: 90px;
}

.product-mobile-image {
    flex-shrink: 0;
}

.product-mobile-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-mobile-info .price-cell span {
    font-weight: 500;
}

.product-mobile-name {
    color: #212121;
    line-height: 135%;
}

/* Product cell: image + name */
.product-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-image-wrapper {
    flex-shrink: 0;
}

.product-image {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    -o-object-fit: cover;
       object-fit: cover;
    border: 1px solid #eee;
    display: block;
}

.product-badge { display: none; }

.product-info {
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 14px;
    color: #111;
    text-decoration: none;
    font-weight: 500;
}

.product-name:hover { color: #000; }

.product-meta { display: none; }

/* Redeem badge */
.redeem-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    background: #F3F3F3;
    color: #686868;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.2px;
    @media (max-width: 576px) {
        margin-top: 0;
        padding: 2px 8px;
        width: -moz-fit-content;
        width: fit-content;
        border-radius: 3px;
    }
}

/* Price cell for redeem items */
.price-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    @media (max-width: 576px) {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
}

.price-original-strike {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
    font-weight: 400;
}

.price-free {
    font-size: 14px;
    color: #111;
    font-weight: 400;
}

.price {
    font-size: 14px;
    color: #111;
    font-weight: 400;
}

.price-original {
    text-decoration: line-through;
    color: #bbb;
    font-size: 12px;
    margin-left: 6px;
}

/* Quantity control */
td[data-title="Quantity"] {
    text-align: center;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 2px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #333;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s;
}

.qty-btn:hover:not(:disabled) { background: #f5f5f5; }
.qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.qty-input {
    width: 36px;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    text-align: center;
    font-weight: 600;
    color: #111;
    font-size: 13px;
    background: #fff;
    padding: 5px 2px;
    height: 30px;
}

/* Remove link */
.remove-link {
    display: block;
    margin: 0 auto;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 0 0;
    text-transform: uppercase;
    transition: color 0.15s;
    @media (max-width: 576px) {
        margin: 0;
        padding: 0;
    }
}

.remove-link:hover { color: #111; }

/* ── Coupon section ───────────────────────────────── */
.coupon-section {
    display: flex;
    gap: 0;
    max-width: 380px;
    @media (max-width: 576px) {
        max-width: 100%;
        margin-bottom: 24px;
        height: 42px;
    }
}

.coupon-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 2px 0 0 2px;
    font-size: 13px;
    color: #333;
    background: #fff;
    outline: none;
    @media (max-width: 576px) {
        height: 42px;
    }
}

.coupon-input:focus { border-color: #888; }

.btn {
    padding: 10px 24px;
    border: 1px solid #111;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
}

.btn-primary {
    background: #111;
    color: #fff;
    border-color: #111;
    border-radius: 0 2px 2px 0;
}

.btn-primary:hover { background: #333; border-color: #333; color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Right column: ORDER SUMMARY ──────────────────── */
.cart-summary {
    border: 1px solid #e5e5e5;
    padding: 28px;
    background: #fff;
    grid-column: 2;
    grid-row: 2;
}

.summary-title {
    font-family: var(--body-font, sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px;
    font-style: normal;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
    @media (max-width: 576px) {
        border: none;
        padding: 0;
    }
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: none;
}

.summary-row .label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-row .amount {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.summary-row.discount {
    align-items: flex-start;
    background: #f5f5f5;
    margin: 0 -28px;
    padding: 12px 28px;
}
.summary-row.discount .amount { color: #111; padding-top: 2px; }

.discount-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discount-code-line {
    display: flex;
    align-items: center;
    gap: 7px;
}

.discount-tag-icon {
    font-size: 11px;
    color: #888;
    transform: rotate(-45deg);
    display: inline-block;
}

.discount-code-text {
    font-size: 12px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.remove-coupon-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    transition: color 0.15s;
}

.remove-coupon-btn:hover { color: #111; }

.summary-row.total {
    border-bottom: none;
    border-top: 1px solid #e8e8e8;
    padding-top: 20px;
    margin-top: 8px;
}

.summary-row.total .label {
    font-size: 12px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-row.total .amount {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

/* Cart Mobile Summary */
.cart-mobile-summary {
    padding-block: 8px;
    padding-inline: 20px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.cart-mobile-summary .label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-mobile-summary .amount {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.cart-mobile-summary.total .amount {
    font-size: 18px;
}

/* Checkout button */
.checkout-section {
    margin-top: 20px;
    @media (max-width: 576px) {
        margin-top: 0;
        margin-inline: 16px;
    }
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    font-size: 12px;
    background: #111;
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    text-align: center;
    @media (max-width: 576px) {
        padding: 12px;
    }
}

.btn-checkout:hover { background: #333; }

.shipping-note {
    font-size: 11px;
    color: #999;
    text-align: left;
    margin: 10px 0 0;
    @media (max-width: 576px) {
        margin-block: 16px;
    }
}

/* ── Empty cart ───────────────────────────────────── */
.empty-cart {
    text-align: center;
    padding: 60px 40px;
    background: #fff;
    border: 1px solid #e8e8e8;
}

.empty-cart-icon { font-size: 50px; color: #ccc; margin-bottom: 16px; }
.empty-cart-title { font-size: 22px; color: #222; margin-bottom: 10px; font-weight: 700; text-transform: uppercase; font-style: normal; }
.empty-cart-text {
    color: #888;
    margin-bottom: 24px;
    font-size: 14px;
    @media (max-width: 576px) {
        text-align: center;
    }
}

.empty-cart-mobile {
    display: flex;
    flex-direction: column;
    width: 268px;
    align-items: center;
    justify-content: center;
}

/* ── Loading state ────────────────────────────────── */
.loading { position: relative; opacity: 0.6; pointer-events: none; }

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border: 2px solid #e0e0e0;
    border-top-color: #111;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1200px) {
    .layout-grid { grid-template-columns: 1fr minmax(260px, 320px); gap: 30px; }
}

@media (max-width: 960px) {
    .layout-grid { grid-template-columns: 1fr; gap: 24px; }
    .cart-summary { position: static; }
    .coupon-section { max-width: 100%; }
}

@media (max-width: 640px) {
    .cart-table thead { display: none; }
    .cart-table tbody { display: block; }
    .cart-item { display: block; border: 1px solid #eee; margin-bottom: 12px; border-radius: 4px; }
    .cart-item td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 14px;
        border-bottom: 1px solid #f5f5f5;
    }
    .cart-item td:last-child { border-bottom: none; }
    .cart-item td::before {
        content: attr(data-title);
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #888;
    }
    .cart-item td[data-title="Product"]::before { display: none; }
    .layout-grid { padding: 24px 0 40px; }
}

@media (max-width: 480px) {
    .product-image { width: 60px; height: 60px; }
    .btn-checkout { font-size: 11px; }
    .cart-summary { padding: 20px; }
}
