/* ==========================================================================
   Happy Plants — Cart
   ========================================================================== */

/* Full-width page and Storefront reset */
.woocommerce-cart #primary,
.woocommerce-cart .site-main,
.woocommerce-cart .entry-content,
.woocommerce-cart .col-full {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border-left: 0 !important;
}

.woocommerce-cart #secondary,
.woocommerce-cart .entry-header {
    display: none;
}

.woocommerce-cart .woocommerce,
.woocommerce-cart .woocommerce-cart-form {
    margin: 0;
    padding: 0;
    max-width: 100%;
    border-left: 0 !important;
    padding-left: 0 !important;
}

.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper:empty {
    display: none;
}

.cart-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    align-items: start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
    border-left: 0 !important;
}

.cart-m {
    background: var(--w);
    padding: 32px 40px;
    padding-top: 32px;
    border-right: 0.5px solid var(--bd);
}

.cart-t {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--g);
}

.ci {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 16px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 0.5px solid var(--bd);
}

.ci-img {
    width: 72px;
    height: 90px;
    overflow: hidden;
    background: var(--off);
}

.ci-img img,
.ci-img a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Middle column */
.ci > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Product title — match slide-in drawer (.hp-drawer-item__title) */
.ci-name,
.ci-name a {
    margin: 0 0 4px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--t);
    text-decoration: none;
}

.ci-name a:hover,
.ci-name a:focus-visible {
    color: var(--gm);
    text-decoration: underline;
}

.ci-meta,
.wc-item-meta,
.variation,
.variation dt,
.variation dd {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-family: var(--sans);
    font-size: 11px !important;
    color: var(--mu) !important;
}

.cart-m .ci > div:nth-child(2) .variation,
.cart-m .ci > div:nth-child(2) dl.variation {
    margin: 6px 0 0 !important;
}

.variation dt,
.variation dd {
    display: inline !important;
}

/* Qty strip — match drawer (.hp-drawer-item__qty) */
.qty-row {
    display: inline-flex;
    align-items: stretch;
    width: fit-content;
    margin-top: 10px;
    border: 0.5px solid rgba(0, 0, 0, 0.12);
    overflow: hidden;
    background: var(--w);
}

.qty-row > * + * {
    border-left: 0.5px solid var(--bd);
}

.hp-minus,
.hp-plus {
    width: 34px;
    min-height: 34px;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--w);
    color: var(--g);
    font-size: 1rem;
    line-height: 1;
    font-family: var(--sans);
    cursor: pointer;
    padding: 0;
    box-shadow: none !important;
    transition: background 0.15s ease;
}

.hp-minus:hover,
.hp-plus:hover,
.hp-minus:focus-visible,
.hp-plus:focus-visible {
    background: var(--gp);
}

.qty-row input.hp-qty-input {
    width: 38px;
    min-height: 34px;
    text-align: center;
    border: 0 !important;
    border-radius: 0 !important;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--t);
    background: var(--w);
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0;
    box-shadow: none !important;
    outline: none;
}

.qty-row input.hp-qty-input::-webkit-outer-spin-button,
.qty-row input.hp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* Right column */
.ci > div:nth-child(3) {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

/* Line total — match product card price (.hp-product-card__price) */
.ci-price {
    margin: 0;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a1a;
}

.ci-price .woocommerce-Price-amount,
.ci-price .woocommerce-Price-amount bdi {
    color: #1a1a1a !important;
    font-weight: 600 !important;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.ci-was {
    font-family: var(--sans);
    font-size: 11px;
    color: #b83030;
}

.ci-rem,
a.ci-rem,
a.hp-cart-remove,
.woocommerce a.hp-cart-remove {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin-top: 4px;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    text-indent: 0 !important;
    overflow: visible !important;
    line-height: 1.2 !important;
    font-family: var(--sans) !important;
    font-size: 11px !important;
    color: var(--mu) !important;
    text-decoration: underline !important;
}

.ci-rem:hover,
a.hp-cart-remove:hover,
.woocommerce a.hp-cart-remove:hover {
    color: var(--t) !important;
    background: none !important;
}

.hp-free-shipping-bar {
    margin-top: 20px;
    padding: 12px 16px;
    border-left: 3px solid var(--ga);
    background: var(--gp);
    color: #1a1a1a;
    font-family: var(--sans);
    font-size: 12px;
    line-height: 1.5;
}

.hp-free-shipping-bar .woocommerce-Price-amount,
.hp-free-shipping-bar .woocommerce-Price-amount bdi {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a !important;
    font-variant-numeric: tabular-nums;
}

.cart-s {
    background: var(--gp);
    padding: 28px 24px;
    position: sticky;
    top: 0;
    align-self: stretch;
}

.cs-t {
    margin: 0 0 20px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--t);
}

/* Order summary — label tone like card meta; amounts like product card price */
.cs-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
    font-family: var(--sans);
}

.cs-row span:first-child {
    font-size: 13px;
    letter-spacing: 0.02em;
    font-weight: 400;
    color: var(--mu);
}

.cs-row span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: right;
}

/* Secondary value — same scale as .hp-product-card__latin (12px #888) */
.hp-cart-at-checkout {
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    color: #888;
    letter-spacing: 0;
}

.cart-s #hp-subtotal .woocommerce-Price-amount,
.cart-s #hp-subtotal .woocommerce-Price-amount bdi,
.cart-s #hp-total .woocommerce-Price-amount,
.cart-s #hp-total .woocommerce-Price-amount bdi {
    font-family: var(--sans) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.cs-row.tot {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 0.5px solid var(--bd);
    font-family: var(--sans);
}

.cs-row.tot span:first-child {
    font-size: 13px;
    font-weight: 400;
    color: var(--mu);
}

.cs-row.tot span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.promo {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 0.5px solid var(--bd) !important;
    background: var(--w) !important;
    color: var(--t);
    font-family: var(--sans);
    font-size: 12px;
    box-shadow: none !important;
    outline: none;
}

.promo::placeholder {
    color: var(--mu);
}

.co-btn,
a.co-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: 0;
    background: var(--g) !important;
    color: var(--w) !important;
    text-decoration: none !important;
    text-align: center;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.co-btn:hover,
a.co-btn:hover {
    background: var(--gm) !important;
}

button[name="update_cart"] {
    display: none !important;
}