/* ============================================================
   woocommerce-cart.css  — Next Theme
   Matches the card.html design system
   ============================================================ */

/* ── breadcrumb ── */
.woocommerce-breadcrumb {
    font-size: 12.5px;
    color: var(--muted);
}
.woocommerce-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}
.woocommerce-breadcrumb a:hover {
    color: var(--rust);
}

/* ── checkout steps ── */
.checkout-steps {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}
.cs-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.cs-step .num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
    transition: .2s;
}
.cs-step.active .num  { border-color: var(--rust); background: var(--rust); color: #fff; }
.cs-step.active       { color: var(--ink); }
.cs-step.done .num    { border-color: var(--teal); background: var(--teal); color: #fff; }
.cs-step.done         { color: var(--teal); }
.cs-line {
    flex: 1;
    height: 2px;
    background: var(--line);
    margin: 0 6px;
    max-width: 50px;
}
.cs-line.done { background: var(--teal); }

/* ── section title ── */
.section-title {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--rust);
    border-radius: 2px;
    display: inline-block;
}

/* ── item count ── */
.cart-item-count {
    font-size: 13px;
    color: var(--muted);
}

/* ── savings banner ── */
.savings-banner {
    background: var(--teal-soft);
    border: 1px solid #c3d9d6;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 13px;
    color: var(--teal);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

/* ── cart item card ── */
.cart-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 14px;
    transition: .18s;
    position: relative;
}
.cart-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.05); }

.cart-img-wrap {
    width: 100px;
    height: 100px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: radial-gradient(circle at 50% 40%, #fbf9f5 0%, #f1ece2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.cart-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-name {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 4px;
}
.cart-name a { text-decoration: none; color: inherit; }
.cart-name a:hover { color: var(--rust); }

.cart-meta {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
/* hide WC's default dl/dd variation formatting */
.cart-meta .woocommerce-product-attributes { display: none; }

.stock-badge {
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    padding: 2px 8px;
}
.stock-badge.in-stock  { background: var(--teal-soft); color: var(--teal); }
.stock-badge.out-of-stock { background: #fce8e8; color: #c0392b; }

/* prices */
.price-old-sm {
    text-decoration: line-through;
    color: var(--muted);
    font-size: 12.5px;
}
.price-now-sm {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}
.price-now-sm .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }
.discount-tag {
    background: var(--rust);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
}

/* ── qty stepper ── */
.qty-stepper {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    width: fit-content;
}
.qty-stepper button {
    background: #fff;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 18px;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .1s;
}
.qty-stepper button:hover { background: var(--paper); }

/* hide WC's native qty input; we use our own +/- buttons */
.qty-stepper .qty,
.qty-stepper input[type="number"] {
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    padding: 4px 0;
    -moz-appearance: textfield;
    background: #fff;
    font-family: inherit;
    color: var(--ink);
}
.qty-stepper input[type="number"]::-webkit-inner-spin-button,
.qty-stepper input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

.qty-individual {
    font-size: 13px;
    color: var(--muted);
}

/* ── remove btn ── */
.remove-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: .15s;
    padding: 0;
    font-family: inherit;
    text-decoration: none;
}
.remove-btn:hover { color: #c0392b; }

/* ── coupon box ── */
.coupon-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-top: 14px;
}
.coupon-input-wrap {
    display: flex;
    gap: 10px;
}
.coupon-input {
    flex: 1;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 0 14px;
    height: 44px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: .2s;
    direction: ltr;
    text-align: right;
}
.coupon-input:focus { border-color: var(--ink); }
.coupon-btn {
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: .15s;
    height: 44px;
}
.coupon-btn:hover { background: #333; }

/* WC notices inside coupon box */
.coupon-box .woocommerce-error,
.coupon-box .woocommerce-message,
.coupon-box .woocommerce-info {
    margin-top: 10px;
    border-radius: 8px;
    font-size: 13px;
    padding: 9px 14px;
    list-style: none;
}
.coupon-box .woocommerce-message { background: var(--teal-soft); color: var(--teal); border: none; }
.coupon-box .woocommerce-error   { background: #fce8e8; color: #c0392b; border: none; }

/* remove coupon link */
.remove-coupon-link {
    color: var(--muted);
    font-size: 11px;
    margin-right: 6px;
    text-decoration: none;
}
.remove-coupon-link:hover { color: #c0392b; }

/* ── summary box ── */
.summary-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    position: sticky;
    top: 90px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row .label { color: var(--muted); }
.summary-row .val   { font-weight: 700; }

.summary-row.total-row {
    padding: 14px 0 0;
    border-bottom: none;
}
.summary-row.total-row .label { font-size: 15px; font-weight: 700; color: var(--ink); }
.summary-row.total-row .val   { font-size: 19px; font-weight: 800; }

.summary-divider {
    border-top: 1.5px solid var(--line);
    margin: 8px 0;
}

/* shipping options inside summary */
.shipping-val ul { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.shipping-val ul li { padding: 4px 0; }

/* ── checkout button ── */
.btn-checkout {
    background: var(--rust);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: 14px;
    width: 100%;
    font-size: 15px;
    font-family: inherit;
    transition: .15s;
    cursor: pointer;
    margin-top: 16px;
    display: block;
    text-align: center;
    text-decoration: none;
}
.btn-checkout:hover { background: var(--rust-dark); color: #fff; }

/* ── trust row ── */
.trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--muted);
}
.trust-item i { color: var(--teal); }

/* ── empty cart ── */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    display: none;
}
.empty-cart.show { display: block; }
.empty-icon {
    max-width: 200px;
    margin: 0 auto 20px;
}
.empty-icon svg { width: 100%; height: auto; }
.empty-cart h5 {
    font-weight: 800;
    font-size: 20px;
    color: var(--ink);
    margin-bottom: 10px;
}
.empty-cart p  {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.9;
    max-width: 380px;
    margin: 0 auto;
}
.empty-cart a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    margin-top: 24px;
    background: var(--rust);
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: 13px 22px;
    font-size: 14.5px;
    text-decoration: none;
    transition: .15s;
}
.empty-cart a:hover { background: var(--rust-dark); color: #fff; }

@media (max-width: 480px) {
    .empty-cart a { min-width: 0; width: 100%; }
}

/* ── WC notices (global) ── */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info {
    border-radius: 10px;
    font-size: 13.5px;
    padding: 12px 18px;
    list-style: none;
    margin-bottom: 14px;
}

/* ── responsive ── */
@media (max-width: 991px) {
    .summary-box { position: static; margin-top: 20px; }
    .checkout-steps .cs-step span { display: none; }
}
@media (max-width: 575px) {
    .cart-img-wrap { width: 76px; height: 76px; }
    .cart-name     { font-size: 13.5px; }
}