/* custom-cart.css - basic layout matching the screenshot */

/* layout grid */
.custom-cart-grid {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* left column takes 60% */
.custom-cart-left { flex: 1 1 60%; min-width: 320px; }

/* right column at 30% */
.custom-cart-right { flex: 0 0 320px; max-width: 360px; }

/* blocks */
.custom-cart-block {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* titles */
.custom-block-title { font-size: 18px; margin: 0 0 12px; color: #000000; }

/* Cart rows */
.custom-cart-table { display: block; }
.custom-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  margin-bottom: 12px;
}
.custom-cart-row .row-left { display:flex; gap:12px; align-items:center; flex:1 1 auto; min-width:0; }
.custom-cart-row .row-right { display:flex; gap:12px; align-items:center; justify-content:flex-end; flex:0 0 360px; }

.product-meta { min-width:0; }
.product-name { margin:0; font-size:16px; font-weight:600; white-space:nowrap; max-width:260px; }
.product-sku { color:#777; font-size:13px; margin-top:6px; }
.product-attrs { color:#666; font-size:13px; margin-top:6px; }

/* price/qty/subtotal */
.product-price, .product-subtotal { min-width:90px; text-align:right; font-weight:600; }
.product-qty { display:flex; align-items:center; gap:8px; }
.product-qty input .qty { width:64px; padding:8px; border-radius:6px; border:1px solid #ddd; text-align:center; }

/* buttons */
.button { display:inline-block; padding:8px 14px; border-radius:22px; border:0; cursor:pointer; background:#f4f4f6; }
.button.primary, .button.checkout-button { background:#3c2787; color:#fff; border-radius:26px; padding:12px 20px; display:inline-block; text-decoration:none; }
.update-qty, .remove-item, .add-addon { background:#f4f4f6; border:0; padding:8px 10px; border-radius:8px; cursor:pointer; color: #000000; }

/* order summary */
.custom-order-summary { background:#fff; border-radius:8px; border:1px solid #dcdcdc; padding:18px; }
.summary-title { margin-top:0; margin-bottom:12px; color: #000000; }
.coupon-box label { display:block; font-size:13px; margin-bottom:6px; }
.coupon-input-ctn input { flex:1; padding:10px 12px; margin: 10px auto; border-radius:8px; border:1px solid #eee; }
.coupon-input-ctn .button { padding:10px 14px; background:#4b37b4; color:#fff; border-radius:18px; }

/* summary rows */
.summary-lines { margin-top:14px; border-top:1px solid #f2f2f2; padding-top:12px; }
.summary-row { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px dashed #f5f5f5; }
.summary-row.total { font-size:18px; border-bottom:none; }

/* addon */
.custom-addon .addon-list { margin-top:12px; }
.addon-item { display:flex; justify-content:space-between; align-items:center; padding:12px; border-radius:8px; border:1px solid #dcdcdc; margin-bottom:10px; }
.addon-left { display:flex; gap:12px; align-items:center; }
.addon-left img { width:64px; height:auto; border-radius:6px; }

/* payment methods */
.custom-payment-methods .payment-accordion { display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.payment-item { padding:12px; border-radius:8px; border:1px solid #dcdcdc; }

/* sticky place-order CTA (mobile) */
.custom-place-order-ctn { margin: 26px 0 60px; text-align:center; }
.place-order-button { width:100%; text-transform: capitalize !important; }

/* responsive tweaks */
@media (max-width: 880px) {
  .custom-cart-grid { flex-direction:column; }
  .custom-cart-right { order:2; width:100%; flex:1 1 100%; }
  .custom-cart-left { order:1; width:100%; }
  .custom-cart-row .row-right { flex: 1 1 auto; justify-content:space-between; }
  .place-order-button { width:90%; }

}


/* MAIN ROW */
.custom-cart-row {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

/* PRODUCT IMAGE */
.product-thumb img {
    width: 190px;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

/* RIGHT SIDE DETAILS */
.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* TITLE + PRICE SECTION */
.row-above {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.product-meta {
    display: flex;
    flex-direction: column;
}

.product-name {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.product-name a {
    color: #000000;
}

.product-price-line {
    font-size: 15px;
    color: #222;
    font-weight: 900 !important;
    margin-bottom: 8px;
}

.product-attrs {
    font-size: 13px;
    color: #666;
}

/* QTY + REMOVE ROW */
.row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

/* QUANTITY BOX */
.qty-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 30px; /* capsule shape */
    background: #fff;
    overflow: hidden; /* keeps capsule shape clean */
}

/* Buttons */
.qty-wrapper button {
    background: #f7f7f7;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50%; /* round buttons */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Quantity Input */
.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    outline: none;
}


/* REMOVE BUTTON */
.remove-item {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.remove-item:hover {
    opacity: 1;
}

/* Make place order section same width as left column */
.custom-place-order-ctn {
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
}

/* Ensure it always appears after left column */
.custom-cart-left + .custom-place-order-ctn {
    order: 3; /* push it below left column */
}


#cart-submit {
    border-radius: 100px;
    font-size: 14px;
    width: 100%;
    text-transform: capitalize;
}

.coupon-message {
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
}

.coupon-message.success {
  background: #e9f8ef;
  color: #1a7f37;
}

.coupon-message.error {
  background: #fdecea;
  color: #b42318;
}

.free-shipping-badge {
  background: #000;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
}

.woocommerce-js #respond input#submit, .woocommerce-js a.button, .woocommerce-js button.button, .woocommerce-js input.button {
    border-radius: 100px;
    font-size: 14px;
    text-transform: capitalize;
}
