/* ══════════════════════════════════════════════════════════
   CART PAGE — Modern & Premium
   ══════════════════════════════════════════════════════════ */

.cart-page {
    max-width: 1200px;
    margin: 4rem auto 6rem;
    padding-inline: 20px;
}


.cart-header {
    margin-bottom: 3rem;
}

body.woocommerce-cart .page-title {
    font-family: 'EB Garamond', serif !important;
    font-size: clamp(24px, 4vw, 32px) !important;
    margin-top: 6.5rem !important;
    font-weight: 600 !important;
    margin-bottom: 2rem !important;
    text-transform: none !important;
    text-align: center;
}



/* Container Grid refactored */
.cart-container {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(40px, 5vw, 60px);
    align-items: flex-start;
}
.cart-list {
    flex: 1 1 600px;
}
.cart-summary-column {
    flex: 1 1 340px;
    position: sticky;
    top: 120px;
}

/* ── Cart Items ────────────────────────────── */
.cart-list {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: flex;
    gap: clamp(15px, 3vw, 30px);
    padding: 30px 0;
    border-bottom: 1px solid #F0F0F0;
}

.cart-item:first-child {
    border-top: 1px solid #F0F0F0;
}

.cart-item__thumb {
    width: clamp(80px, 12vw, 120px);
    height: clamp(80px, 12vw, 120px);
    flex-shrink: 0;
    background: #F8F6F2;
    border-radius: 12px;
    overflow: hidden;
}

.cart-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

.cart-item__data {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item__name {
    font-family: var(--font-body);
    font-size: 14px !important;
    font-weight: 500;
    color: var(--color-text);
}

.cart-item__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.cart-item__name a:hover {
    color: var(--color-orange);
}

.cart-item__remove .remove {
    font-size: 24px !important;
    line-height: 1;
    color: #CCC !important;
    text-decoration: none !important;
    transition: color 0.3s;
}

.cart-item__remove .remove:hover {
    color: #e74c3c !important;
}

.cart-item__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* Custom quantity pill (shared with product page style) */
.cart-item__qty .quantity {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #B7B7B7 !important;
    border-radius: 100px !important;
    height: 44px !important;
    width: 120px !important;
    padding: 0 12px !important;
    background: #fff;
}

.cart-item__qty .qty-btn {
    border: none !important;
    background: none !important;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    width: 24px;
    height: 100%;
}

.cart-item__qty input.qty {
    width: 40px !important;
    border: none !important;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    background: none !important;
    -moz-appearance: textfield;
    appearance: none;
}


.cart-item__qty input.qty::-webkit-outer-spin-button,
.cart-item__qty input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
    margin: 0;
}


.cart-item__subtotal-val .amount {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 500;
    color: var(--color-navs);
}

/* Actions: Coupon & Update */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.cart-coupon {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1 1 300px;
}

.cart-coupon input.input-text {
    flex: 1 1 200px;
    height: 48px;
    border: 1px solid #DDD;
    border-radius: 6px;
    padding: 0 15px;
    font-size: 14px;
}

.button--outline {
    background: transparent !important;
    border: 1px solid var(--color-text) !important;
    color: var(--color-text) !important;
    border-radius: 6px !important;
    padding: 0 25px !important;
    height: 48px !important;
    font-size: 14px !important;
}

.button--update {
    background: #F8F6F2 !important;
    color: var(--color-text) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0 25px !important;
    height: 48px !important;
    font-size: 14px !important;
}

/* ── Summary Column ──── */

.cart-summary-card {
    background: #fff;
    border: 1px solid #EDEDED;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.cart_totals h2 {
    font-family: 'EB Garamond', serif !important;
    font-size: clamp(18px, 3vw, 20px) !important;
    font-weight: 600 !important;
    margin-bottom: 25px;
}

/* WC Cart Totals Structure (Hooked - Now Div-based) */
.shop_table_div {
    display: flex;
    flex-direction: column;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    gap: 15px;
}

.cart-total-row .label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: #666;
    flex-shrink: 0;
    text-transform: none !important;
}

.cart-total-row .value {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    text-align: right;
}

.order-total {
    border-bottom: none;
    padding-top: 35px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 15px;
    border-top: 1px solid #F5F5F5;
}

.order-total .label {
    width: 100% !important;
    font-family: 'EB Garamond', serif !important;
    font-size: 16px !important;
    color: var(--color-text) !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.order-total .value {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: var(--color-navs) !important;
    text-align: left !important;
}

.order-total .value small {
    display: block !important;
    font-size: 12px !important;
    color: #888 !important;
    font-weight: 400 !important;
    margin-top: 4px;
}

/* Shipping adjustments */
.woocommerce-shipping-methods {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-shipping-methods li {
    margin-bottom: 8px !important;
}

.woocommerce-shipping-methods li input {
    margin-right: 8px !important;
}

.woocommerce-shipping-destination {
    font-size: 12px;
    color: #888;
    margin: 10px 0 0 0 !important;
}

.shipping-calculator-button {
    font-size: 12px;
    color: var(--color-orange);
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.wc-proceed-to-checkout {
    margin-top: 30px;
}

.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--color-orange) !important;
    color: #fff !important;
    padding: 18px 20px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Empty Page */
.cart-empty-page {
    max-width: 600px;
    margin: 6rem auto;
    text-align: center;
}

.cart-empty-msg {
    font-family: var(--font-body);
    font-size: 18px;
    color: #666;
    margin-bottom: 2rem;
}

.button--primary {
    background: var(--color-orange) !important;
    color: #fff !important;
    padding: 16px 40px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    display: inline-block;
}

/* shipping-calculator adjustment */
.shipping-calculator-button {
    color: var(--color-orange);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.woocommerce-shipping-totals .amount {
    font-weight: 600;
}

/* End of cart CSS */