/* Afghan Prime Atelier — native Woo cart, original Manus editorial system.
 * Only presentation: WooCommerce continues to render prices, session and forms.
 * At desktop the 124px +/- control MUST have a >=124px grid track. The old
 * 90px quantity column let the next subtotal <td> cover the + button.
 */
.ap-manus-cart .ap-shopping-guide{max-width:1320px;padding-top:clamp(24px,3.5vw,50px)}
.ap-manus-cart .ap-shopping-guide__top{margin:16px 0 22px;align-items:end}
.ap-manus-cart .ap-shopping-guide__top h1{font-size:clamp(37px,4.2vw,62px);line-height:1.03}
.ap-manus-cart .ap-shopping-guide__top>p{max-width:300px;font-size:13px;line-height:1.8}
.ap-manus-cart .ap-cart-preview,.ap-manus-cart .ap-wc-cart-live,.ap-manus-cart .ap-wc-cart-live .ap-wc-content{width:100%;max-width:none;padding:0;margin:0;border:0;background:transparent}
.ap-manus-cart .ap-wc-cart-live>.woocommerce{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.84fr);column-gap:clamp(20px,3vw,44px);row-gap:20px;align-items:start}
.ap-manus-cart .ap-wc-cart-live .woocommerce-notices-wrapper,
.ap-manus-cart .ap-wc-cart-live .woocommerce-message,
.ap-manus-cart .ap-wc-cart-live .woocommerce-info,
.ap-manus-cart .ap-wc-cart-live .woocommerce-error{grid-column:1/-1;margin:0!important}
.ap-manus-cart .ap-wc-cart-live .woocommerce-message{display:flex;align-items:center;gap:14px;padding:16px 22px 16px 56px!important;border:1px solid #dfd5c6;border-top:2px solid #a66f43!important;background:#fffcf7!important;font-size:13px}
.ap-manus-cart .ap-wc-cart-live .woocommerce-message:before{top:17px}
.ap-manus-cart .ap-wc-cart-live .woocommerce-message .button{display:none!important}
.ap-manus-cart .ap-wc-cart-live form.woocommerce-cart-form{grid-column:1;min-width:0;margin:0!important;width:100%;overflow:visible}
.ap-manus-cart .ap-wc-cart-live .cart-collaterals{grid-column:2;min-width:0;width:100%;display:block;margin:0}
.ap-manus-cart .ap-wc-cart-live .woocommerce>.woocommerce-notices-wrapper:empty{display:none}
.ap-manus-cart .ap-wc-cart-live table.shop_table.woocommerce-cart-form__contents{display:block;margin:0!important;padding:0!important;overflow:visible;border:1px solid #dcd1c0!important;border-radius:7px!important;background:#fffdf9;box-shadow:0 16px 38px rgba(28,41,30,.045)}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents thead{display:none!important}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents tbody{display:block;width:100%}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents tr.cart_item{display:grid!important;grid-template-columns:40px 104px minmax(130px,1fr) 140px 110px;grid-template-areas:"remove photo name qty total" "remove photo price qty total";column-gap:12px;align-items:center;padding:22px 16px;border-bottom:1px solid #e6ded3;float:none!important}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents tr.cart_item td{display:block!important;width:auto!important;min-width:0;margin:0;border:0!important;background:transparent!important;padding:0!important;text-align:left;vertical-align:middle}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents .product-remove{grid-area:remove;align-self:center}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents .product-thumbnail{grid-area:photo}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents .product-name{grid-area:name;align-self:end}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents .product-price{grid-area:price;align-self:start;margin-top:7px!important}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents .product-quantity{grid-area:qty;position:relative;z-index:2;min-width:0;isolation:isolate}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents .product-subtotal{grid-area:total;position:relative;z-index:1;text-align:right!important;font-weight:800}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents .product-name a{display:block;font:500 clamp(17px,1.6vw,21px)/1.35 var(--serif,Georgia,serif);color:#24372c;text-decoration:none}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents .product-name .variation{margin:6px 0 0;display:block;font:500 12px/1.5 var(--sans,Arial,sans-serif)}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents .product-price{font-size:12px;color:#84786d}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents .product-thumbnail img{display:block!important;width:100px!important;height:112px!important;max-width:100%;margin:0!important;border-radius:4px;object-fit:cover;background:#ede8df}
.ap-manus-cart .ap-wc-cart-live .product-remove a.remove{display:grid!important;place-items:center;width:40px!important;height:40px!important;border:1px solid #d9cebf;border-radius:50%;background:transparent!important;color:#774e37!important;font-size:21px;line-height:1;text-decoration:none}
.ap-manus-cart .ap-wc-cart-live .product-remove a.remove:hover{background:#f5e6da!important;color:#6c3c28!important}
.ap-manus-cart .ap-wc-cart-live .ap-native-qty{display:flex;align-items:stretch;gap:0;width:max-content;max-width:100%;border:1px solid #cdc2b3;background:#fff;position:relative;z-index:3}
.ap-manus-cart .ap-wc-cart-live .ap-native-qty .quantity{margin:0!important;width:auto!important}
.ap-manus-cart .ap-wc-cart-live .quantity .qty{width:50px!important;height:44px!important;min-height:44px!important;padding:9px 3px!important;border:0!important;background:transparent!important;box-shadow:none!important;font:650 14px/1 var(--sans,Arial,sans-serif)!important;text-align:center}
.ap-manus-cart .ap-wc-cart-live .ap-native-qty button{width:37px;min-width:37px;min-height:44px;background:#f9f5ef;color:#243a2b;border:0;font-size:21px;cursor:pointer}
.ap-manus-cart .ap-wc-cart-live .ap-native-qty button:hover{background:#e9dfd0}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents tr:has(>.actions){display:block;padding:15px 20px;background:#f9f5ee;border:0}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents td.actions{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;padding:0!important}
.ap-manus-cart .ap-wc-cart-live td.actions .coupon{display:flex;flex-wrap:wrap;align-items:center;gap:8px;float:none;margin:0}
.ap-manus-cart .ap-wc-cart-live td.actions #coupon_code{min-width:140px;width:150px;min-height:44px;border:1px solid #d7cbbb;border-radius:3px;padding:10px;color:#24372c;background:#fff}
.ap-manus-cart .ap-wc-cart-live td.actions .button{display:inline-flex;align-items:center;justify-content:center;min-height:44px!important;border-radius:3px!important;border:1px solid #24382b!important;background:#24382b!important;color:#fff!important;padding:10px 16px!important;font-size:11px!important;letter-spacing:.04em}
.ap-manus-cart .ap-wc-cart-live td.actions .button:disabled{opacity:.58}
.ap-manus-cart .ap-wc-cart-live .cart-collaterals>.cross-sells{display:none}
.ap-manus-cart .ap-wc-cart-live .cart-collaterals .cart_totals{float:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:clamp(22px,3vw,34px)!important;border:1px solid #ddd1c0;border-radius:7px;background:#eee6da!important;box-shadow:0 16px 38px rgba(28,41,30,.04)}
.ap-manus-cart .ap-wc-cart-live .cart_totals h2{font:500 31px/1.2 var(--serif,Georgia,serif);color:#24392b;margin:0 0 17px}
.ap-manus-cart .ap-wc-cart-live .cart_totals table.shop_table{width:100%!important;border:0!important;border-radius:0;background:transparent!important;margin:0 0 20px!important}
.ap-manus-cart .ap-wc-cart-live .cart_totals table.shop_table tr{border-bottom:1px solid #d6c9b8}
.ap-manus-cart .ap-wc-cart-live .cart_totals table.shop_table th,
.ap-manus-cart .ap-wc-cart-live .cart_totals table.shop_table td{border:0!important;padding:14px 0!important;background:transparent!important;font-size:13px;vertical-align:top}
.ap-manus-cart .ap-wc-cart-live .cart_totals table.shop_table td{text-align:right}
.ap-manus-cart .ap-wc-cart-live .cart_totals .order-total>*{font-size:17px!important;font-weight:800}
.ap-manus-cart .ap-wc-cart-live .cart_totals .wc-proceed-to-checkout{padding:0;margin:14px 0 0}
.ap-manus-cart .ap-wc-cart-live .cart_totals .checkout-button{width:100%;min-height:50px;border-radius:3px!important;background:#253b2b!important;font-size:12px}
.ap-manus-cart .ap-wc-cart-live .ap-cart-payment-paused{background:#f9f3e9;color:#4b463d;font-size:13px;line-height:1.7;border:1px solid #dfd4c5;border-radius:4px;padding:14px 17px}
.ap-manus-cart .ap-manus-cart-steps{margin-top:clamp(35px,5vw,65px)}
.ap-manus-cart .ap-manus-cart-steps .ap-shopping-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.ap-manus-cart .ap-wc-cart-live :is(a,button,input):focus-visible{outline:3px solid #b98050!important;outline-offset:2px}
@media(max-width:1140px){
 .ap-manus-cart .ap-wc-cart-live>.woocommerce{grid-template-columns:minmax(0,1fr) 300px;gap:18px}
 .ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents tr.cart_item{grid-template-columns:36px 86px minmax(96px,1fr) 75px;grid-template-areas:"remove photo name name" "remove photo price total" ". . qty qty";gap:8px;padding:16px 12px}
 .ap-manus-cart .ap-wc-cart-live .product-quantity{justify-self:start}
 .ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents .product-subtotal{text-align:right!important}
 .ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents .product-thumbnail img{width:82px!important;height:90px!important}
}
@media(max-width:880px){
 .ap-manus-cart .ap-wc-cart-live>.woocommerce{display:block}
 .ap-manus-cart .ap-wc-cart-live .cart-collaterals{margin-top:20px}
 .ap-manus-cart .ap-shopping-guide__top{display:block}
 .ap-manus-cart .ap-shopping-guide__top>p{max-width:620px;margin-top:18px}
}
@media(max-width:560px){
 .ap-manus-cart .ap-shopping-guide{padding-top:22px}
 .ap-manus-cart .ap-shopping-guide__top h1{font-size:clamp(35px,9vw,49px)}
 .ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents tr.cart_item{grid-template-columns:35px 75px minmax(0,1fr);grid-template-areas:"remove photo name" "remove photo price" ". . qty" ". . total";gap:7px;padding:15px 9px}
 .ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents .product-name a{font-size:17px}
 .ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents .product-subtotal{text-align:left!important;margin-top:4px!important}
 .ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents .product-thumbnail img{width:73px!important;height:82px!important}
 .ap-manus-cart .ap-wc-cart-live td.actions .coupon{width:100%}
 .ap-manus-cart .ap-wc-cart-live td.actions #coupon_code{width:40%;min-width:110px;flex:1}
 .ap-manus-cart .ap-wc-cart-live td.actions>button{margin-left:auto!important}
 .ap-manus-cart .ap-manus-cart-steps .ap-shopping-steps{grid-template-columns:1fr;gap:14px}
}

/* Woo's default responsive table prefixes are redundant in this native
   visual card grid; the actual <th> remain in the accessible table DOM. */
.ap-manus-cart .ap-wc-cart-live .woocommerce-cart-form__contents tr.cart_item td:before {
  display:none!important;
  content:none!important;
}
.ap-manus-cart .ap-wc-cart-live .woocommerce-cart-form__contents tr.cart_item td.product-thumbnail {
  float:none!important;
}
.ap-manus-cart .ap-wc-cart-live .woocommerce-cart-form__contents tr.cart_item td.product-price,
.ap-manus-cart .ap-wc-cart-live .woocommerce-cart-form__contents tr.cart_item td.product-subtotal {
  white-space:normal;overflow-wrap:anywhere;
}


/* Phase25: return to the original Manus product-card layout.
 * The former five-column desktop row cannot fit inside the real 460px
 * cart column when shipping summary is alongside it. Each Woo table row
 * now uses a 4-column grid with full-width product name, price/subtotal
 * on the next line and controls on the third line. No overlaps or
 * horizontal overflow; prices still come from WooCommerce, never CSS/JS.
 */
.ap-manus-cart .ap-wc-cart-live>.woocommerce{
  display:grid!important;
  grid-template-columns:minmax(0,1.7fr) minmax(295px,.88fr)!important;
  column-gap:clamp(20px,3vw,38px)!important;
  row-gap:17px!important;
  align-items:start!important;
}
.ap-manus-cart .ap-wc-cart-live form.woocommerce-cart-form{
  min-width:0!important;
  width:100%!important;
  overflow:visible!important;
}
.ap-manus-cart .ap-wc-cart-live .cart-collaterals{
  min-width:0!important;
  width:100%!important;
  align-self:start!important;
}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents tr.cart_item{
  display:grid!important;
  grid-template-columns:38px 92px minmax(0,1fr) 95px!important;
  grid-template-areas:
   "remove photo name name"
   "remove photo price total"
   ". . qty qty"!important;
  gap:8px 11px!important;
  align-items:center!important;
  padding:20px 18px!important;
  min-width:0!important;
}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents tr.cart_item td {
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  position:relative!important;
  float:none!important;
}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents td.product-thumbnail{
  grid-area:photo!important;align-self:start!important;
}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents td.product-thumbnail img{
  width:92px!important;height:102px!important;max-width:100%!important;
}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents td.product-name{
  grid-area:name!important;align-self:end!important;
  overflow-wrap:break-word!important;
}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents td.product-name a{
  font-size:clamp(17px,1.65vw,22px)!important;
  line-height:1.28!important;max-width:100%!important;
}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents td.product-price{
  grid-area:price!important;align-self:center!important;
  margin:0!important;font-size:12px!important;
}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents td.product-subtotal{
  grid-area:total!important;align-self:center!important;
  text-align:right!important;
  margin:0!important;
  z-index:auto!important;
  font-size:14px!important;
}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents td.product-quantity{
  grid-area:qty!important;
  position:relative!important;
  z-index:auto!important;
  isolation:auto!important;
  align-self:center!important;
  justify-self:start!important;
  min-width:0!important;
  width:auto!important;
  padding-top:7px!important;
}
.ap-manus-cart .ap-wc-cart-live td.product-quantity .ap-native-qty{
  width:126px!important;max-width:100%!important;
  position:relative!important;z-index:auto!important;
  display:flex!important;flex-wrap:nowrap!important;
  align-items:stretch!important;
}
.ap-manus-cart .ap-wc-cart-live td.product-quantity .ap-native-qty button {
  flex:0 0 38px!important;width:38px!important;min-width:38px!important;
  display:grid!important;place-items:center!important;
  padding:0!important;cursor:pointer!important;
  pointer-events:auto!important;
}
.ap-manus-cart .ap-wc-cart-live td.product-quantity .ap-native-qty .quantity{
  flex:0 0 50px!important;width:50px!important;min-width:50px!important;
}
.ap-manus-cart .ap-wc-cart-live td.product-quantity .ap-native-qty input.qty{
  width:50px!important;max-width:50px!important;margin:0!important;
}
.ap-manus-cart .ap-wc-cart-live .cart-collaterals .cart_totals{
  width:100%!important;
  min-width:0!important;max-width:100%!important;
  box-sizing:border-box!important;
}
.ap-manus-cart .ap-wc-cart-live .cart_totals th,
.ap-manus-cart .ap-wc-cart-live .cart_totals td{
  overflow-wrap:anywhere!important;
}
@media(max-width:1060px){
  .ap-manus-cart .ap-wc-cart-live>.woocommerce{
    grid-template-columns:minmax(0,1fr) minmax(270px,.75fr)!important;
    gap:19px!important;
  }
  .ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents tr.cart_item{
    grid-template-columns:32px 80px minmax(0,1fr) 83px!important;
    column-gap:8px!important;padding:17px 12px!important;
  }
  .ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents td.product-thumbnail img{
    width:78px!important;height:88px!important;
  }
}
@media(max-width:880px){
  .ap-manus-cart .ap-wc-cart-live>.woocommerce{
    display:block!important;
  }
  .ap-manus-cart .ap-wc-cart-live .cart-collaterals{
    display:block!important;margin-top:23px!important;
  }
}
@media(max-width:560px){
  .ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents tr.cart_item {
    grid-template-columns:34px 76px minmax(0,1fr)!important;
    grid-template-areas:
      "remove photo name"
      "remove photo price"
      ". . qty"
      ". . total"!important;
    gap:6px 9px!important;
    padding:16px 11px!important;
  }
  .ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents td.product-name a{
    font-size:17px!important;line-height:1.34!important;
  }
  .ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents td.product-thumbnail img{
    width:75px!important;height:83px!important;
  }
  .ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents td.product-quantity{
    padding-top:9px!important;
  }
  .ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents td.product-subtotal{
    justify-self:start!important;text-align:left!important;
    padding-top:2px!important;
  }
}


/* Phase26: original Manus buying journey — quiet, clean cart.
 * Merchant-confirmed prices remain real. Cart is preview only:
 * deliberately omit shipping/tax/estimated grand total until the merchant
 * opens online ordering. Woo shipping calculations/config stay UNCHANGED.
 */
.ap-manus-cart .ap-wc-cart-live .woocommerce-message,
.ap-manus-cart .ap-wc-cart-live .woocommerce-notices-wrapper .woocommerce-message,
.ap-manus-cart .ap-wc-cart-live .woocommerce-notices-wrapper:empty {
  display:none!important;
}
.ap-manus-cart .ap-wc-cart-live .woocommerce-error,
.ap-manus-cart .ap-wc-cart-live .woocommerce-info {
  display:block!important;
}
.ap-manus-cart .ap-wc-cart-live .cart_totals tr.woocommerce-shipping-totals,
.ap-manus-cart .ap-wc-cart-live .cart_totals tr.shipping,
.ap-manus-cart .ap-wc-cart-live .cart_totals tr.tax-rate,
.ap-manus-cart .ap-wc-cart-live .cart_totals tr.tax-total,
.ap-manus-cart .ap-wc-cart-live .cart_totals tr.order-total,
.ap-manus-cart .ap-wc-cart-live .cart_totals .woocommerce-shipping-calculator {
  display:none!important;
}
.ap-manus-cart .ap-wc-cart-live .cart_totals h2 {
  font-size:clamp(27px,2.5vw,35px)!important;
  letter-spacing:-.025em!important;
}
.ap-manus-cart .ap-wc-cart-live .cart_totals .cart-subtotal th,
.ap-manus-cart .ap-wc-cart-live .cart_totals .cart-subtotal td {
  padding:20px 0!important;
  border-bottom:1px solid #d0c2ad!important;
  font-size:15px!important;
}
.ap-manus-cart .ap-wc-cart-live .cart_totals .cart-subtotal td {
  font-size:20px!important;font-weight:650!important;
  color:#20392c!important;
}
.ap-manus-cart .ap-wc-cart-live .ap-catalog-bag-explainer {
  color:#655b4d;
  font-size:13px!important;
  line-height:1.65!important;
  margin:12px 0 21px!important;
  max-width:360px;
}
.ap-manus-cart .ap-wc-cart-live a.ap-catalog-review-button {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:12px!important;
  width:100%!important;
  min-height:54px!important;
  padding:14px 18px!important;
  border-radius:4px!important;
  background:#233c2c!important;
  font-weight:750!important;
  font-size:12px!important;
  letter-spacing:.055em!important;
  color:#fff!important;
  text-decoration:none!important;
}
.ap-manus-cart .ap-wc-cart-live a.ap-catalog-review-button:hover {
  background:#385842!important;
}
.ap-manus-cart .ap-wc-cart-live table.woocommerce-cart-form__contents tr.cart_item{
  background:#fffdfa!important;
}
.ap-manus-cart .ap-wc-cart-live .cart-collaterals .cart_totals {
  background:#ede7db!important;
}
