/* TAZEMART v1.0.47 — desktop cart product list only. Checkout/totals untouched. */
@media (min-width: 1024px) {
  /* Classic cart: make product rows a two-column card list. The form actions
     remain a separate full-width grid row so coupons/update cart still work. */
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive {
    display:block!important; width:100%!important; border:0!important;
    background:transparent!important; overflow:visible!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > thead {
    display:none!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody {
    display:grid!important; width:100%!important; min-width:0!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:stretch; gap:12px!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item {
    display:grid!important; width:100%!important; max-width:100%!important;
    min-width:0!important; height:100%; box-sizing:border-box!important;
    grid-template-columns:78px minmax(0,1fr) auto!important;
    grid-template-rows:auto auto auto!important; gap:4px 12px!important;
    align-content:start!important; margin:0!important; padding:13px!important;
    border:1px solid #e4ede3!important; border-radius:16px!important;
    background:#fff!important; box-shadow:0 4px 18px rgba(31,69,39,.045)!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td {
    display:block!important; width:auto!important; min-width:0!important;
    max-width:100%!important; margin:0!important; padding:0!important;
    border:0!important; background:transparent!important;
    float:none!important; text-align:left!important; vertical-align:top!important;
    overflow-wrap:anywhere!important; box-sizing:border-box!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td::before {
    display:none!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-thumbnail {
    grid-column:1!important; grid-row:1 / span 3!important;
    display:flex!important; align-items:flex-start!important; justify-content:center!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-thumbnail a {
    display:block; width:76px; max-width:100%;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-thumbnail img {
    width:76px!important; height:76px!important; max-width:100%!important;
    object-fit:contain!important; border-radius:10px!important;
    background:#f6faf5!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-name {
    grid-column:2!important; grid-row:1!important; align-self:start!important;
    font-size:14px!important; line-height:1.4!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-name a {
    color:#294532!important; font-weight:800!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-price {
    grid-column:2!important; grid-row:2!important;
    color:#6c7c6d!important; font-size:12px!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-quantity {
    grid-column:2!important; grid-row:3!important;
    min-width:0!important; white-space:normal!important;
    align-self:center!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-quantity .quantity,
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-quantity .ayazma-cart-kg-stepper,
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-quantity .ayazma-cart-qty {
    max-width:100%!important; margin-left:0!important; margin-right:0!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-subtotal {
    grid-column:3!important; grid-row:3!important; align-self:center!important;
    text-align:right!important; font-size:15px!important;
    color:#23843f!important; font-weight:900!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-remove {
    grid-column:3!important; grid-row:1!important; justify-self:end!important;
    align-self:start!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr:not(.cart_item) {
    display:block!important; grid-column:1 / -1!important;
    width:100%!important; min-width:0!important; margin:0!important;
    background:transparent!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr:not(.cart_item) > td {
    display:block!important; width:100%!important; min-width:0!important;
    box-sizing:border-box!important;
  }

  /* WooCommerce Blocks cart (when site uses the block rather than shortcode). */
  body.woocommerce-cart .wc-block-cart-items {
    display:block!important; width:100%!important; border:0!important;
  }
  body.woocommerce-cart .wc-block-cart-items > thead {display:none!important}
  body.woocommerce-cart .wc-block-cart-items > tbody {
    display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:stretch!important; gap:12px!important; min-width:0!important;
  }
  body.woocommerce-cart .wc-block-cart-items > tbody > tr.wc-block-cart-items__row {
    display:grid!important; grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px!important; width:100%!important; min-width:0!important; height:100%;
    margin:0!important; padding:14px!important; box-sizing:border-box!important;
    border:1px solid #e4ede3!important; border-radius:16px!important;
    background:#fff!important; box-shadow:0 4px 18px rgba(31,69,39,.045)!important;
  }
  body.woocommerce-cart .wc-block-cart-items > tbody > tr.wc-block-cart-items__row > td {
    display:block!important; min-width:0!important; width:auto!important;
    padding:0!important; margin:0!important; border:0!important;
  }
  body.woocommerce-cart .wc-block-cart-items > tbody > tr.wc-block-cart-items__row > td.wc-block-cart-item__product {
    grid-column:1 / -1!important; grid-row:1!important;
  }
  body.woocommerce-cart .wc-block-cart-items > tbody > tr.wc-block-cart-items__row > td.wc-block-cart-item__quantity {
    grid-column:1!important; grid-row:2!important;
  }
  body.woocommerce-cart .wc-block-cart-items > tbody > tr.wc-block-cart-items__row > td.wc-block-cart-item__total {
    grid-column:2!important; grid-row:2!important; text-align:right!important;
  }
}

/* v1.0.48: compact desktop cart cards — small thumbnails, balanced details.
   Keep the WooCommerce cart form and actions intact. */
@media (min-width:1024px) {
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody {
    gap:10px!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item {
    grid-template-columns:58px minmax(0,1fr) auto!important;
    grid-template-rows:minmax(18px,auto) auto auto!important;
    gap:3px 9px!important;
    padding:10px 11px!important;
    border-radius:13px!important;
    min-height:95px!important;
    height:auto!important;
    box-shadow:0 2px 8px rgba(31,69,39,.035)!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-thumbnail {
    grid-column:1!important;grid-row:1/span 3!important;
    align-items:flex-start!important;justify-content:center!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-thumbnail a {
    display:flex!important;width:58px!important;height:58px!important;max-width:58px!important;
    align-items:center!important;justify-content:center!important;overflow:hidden!important;
    background:#f7faf6!important;border-radius:9px!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-thumbnail img,
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-thumbnail a img {
    display:block!important;width:54px!important;height:54px!important;
    min-width:0!important;min-height:0!important;max-width:54px!important;max-height:54px!important;
    object-fit:contain!important;object-position:center!important;
    padding:2px!important;margin:0!important;border-radius:7px!important;
    box-shadow:none!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-name {
    font-size:13px!important;line-height:1.3!important;padding-right:5px!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-price {
    font-size:11px!important;line-height:1.2!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-subtotal {
    font-size:13px!important;line-height:1.2!important;white-space:nowrap!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-remove {
    line-height:1!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-quantity {
    min-width:0!important;max-width:100%!important;
  }
  /* Blocks cart: stop default large product previews overwhelming two-column rows. */
  body.woocommerce-cart .wc-block-cart-items > tbody > tr.wc-block-cart-items__row {
    padding:10px!important;gap:5px 9px!important;min-height:95px!important;
    box-shadow:0 2px 8px rgba(31,69,39,.035)!important;
  }
  body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__image,
  body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__image a {
    width:58px!important;min-width:58px!important;max-width:58px!important;
  }
  body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__image img {
    width:54px!important;height:54px!important;max-width:54px!important;max-height:54px!important;
    object-fit:contain!important;margin:0!important;
  }
  body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__wrap {
    min-width:0!important;
  }
}

/* v1.0.49 — slightly larger thumbnail alongside a narrower quantity field.
   Desktop classic cart only: keep product cards in two columns and never
   change the mobile/cart totals layout. */
@media (min-width:1024px) {
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item {
    grid-template-columns:78px minmax(0,1fr) auto!important;
    grid-template-rows:auto auto minmax(42px,auto)!important;
    gap:3px 10px!important;
    padding:11px 12px!important;
    min-height:118px!important;
  }
  /* Product name first, then the image directly beside price and quantity. */
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-name {
    grid-column:1 / 3!important;grid-row:1!important;
    padding-right:8px!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-thumbnail {
    grid-column:1!important;grid-row:2 / span 2!important;
    align-self:center!important;justify-self:center!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-thumbnail a {
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:76px!important;height:76px!important;max-width:76px!important;
    background:#f7faf6!important;border-radius:10px!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-thumbnail img,
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-thumbnail a img {
    width:72px!important;height:72px!important;max-width:72px!important;max-height:72px!important;
    padding:2px!important;object-fit:contain!important;border-radius:9px!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-price {
    grid-column:2!important;grid-row:2!important;align-self:end!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-quantity {
    grid-column:2!important;grid-row:3!important;align-self:start!important;
    width:155px!important;max-width:100%!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-quantity .ayazma-cart-kg-stepper,
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-quantity .ayazma-cart-adet-stepper {
    width:155px!important;min-width:0!important;max-width:100%!important;
    min-height:38px!important;padding:2px!important;gap:2px!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-quantity .ayazma-cart-kg-stepper > button {
    width:29px!important;min-width:29px!important;flex:0 0 29px!important;
    height:31px!important;min-height:31px!important;font-size:18px!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-quantity .ayazma-cart-kg-label {
    font-size:12px!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-quantity .ayazma-typed-quantity {
    min-width:20px!important;font-size:12px!important;padding-left:2px!important;padding-right:12px!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-subtotal {
    grid-column:3!important;grid-row:3!important;align-self:center!important;
  }
  /* Blocks cart: slightly enlarge the photo, keep stepper modest. */
  body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__image,
  body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__image a {
    width:76px!important;min-width:76px!important;max-width:76px!important;
  }
  body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__image img {
    width:72px!important;height:72px!important;max-width:72px!important;max-height:72px!important;
  }
  body.woocommerce-cart .wc-block-cart-items .wc-block-components-quantity-selector {
    width:155px!important;max-width:100%!important;min-width:0!important;
  }
  body.woocommerce-cart .wc-block-cart-items .wc-block-components-quantity-selector__button {
    min-width:29px!important;flex-basis:29px!important;width:29px!important;
  }
}

/* v1.0.50: FIX ACTUAL IMAGE POSITION, not only image size.
   WooCommerce Blocks uses a separate image TD. Without explicit placement
   the product TD occupies row 1 and the image automatically falls below it. */
@media (min-width:1024px) {
  body.woocommerce-cart .wc-block-cart-items > tbody > tr.wc-block-cart-items__row {
    display:grid!important;
    grid-template-columns:80px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    align-content:center!important;
    align-items:start!important;
    gap:5px 12px!important;
    padding:12px!important;
  }
  body.woocommerce-cart .wc-block-cart-items > tbody > tr.wc-block-cart-items__row > td.wc-block-cart-item__image {
    grid-column:1!important;
    grid-row:1 / span 2!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:80px!important;
    min-width:0!important;
    max-width:80px!important;
    align-self:center!important;
    padding:0!important;
  }
  body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__image > a,
  body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__image img {
    display:block!important;
    width:76px!important;
    height:76px!important;
    min-width:0!important;
    max-width:76px!important;
    max-height:76px!important;
    object-fit:contain!important;
    margin:0!important;
  }
  body.woocommerce-cart .wc-block-cart-items > tbody > tr.wc-block-cart-items__row > td.wc-block-cart-item__product {
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    width:100%!important;
    align-self:start!important;
  }
  body.woocommerce-cart .wc-block-cart-items > tbody > tr.wc-block-cart-items__row > td.wc-block-cart-item__total {
    grid-column:2!important;
    grid-row:2!important;
    align-self:end!important;
    text-align:left!important;
  }
  body.woocommerce-cart .wc-block-cart-items .wc-block-components-quantity-selector {
    width:142px!important;
    min-width:0!important;
    max-width:100%!important;
  }
  /* Keep the classic-cart picture in the same left column as quantity.
     On classic templates product-name occupies the first row. */
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-thumbnail {
    grid-column:1!important;
    grid-row:2 / span 2!important;
    display:flex!important;
    align-self:center!important;
    justify-self:center!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-quantity {
    grid-column:2!important;
    grid-row:3!important;
    width:142px!important;
    max-width:100%!important;
  }
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-quantity .ayazma-cart-kg-stepper,
  body.woocommerce-cart .woocommerce-cart-form > table.shop_table_responsive > tbody > tr.cart_item > td.product-quantity .ayazma-cart-adet-stepper {
    width:142px!important;
    min-width:0!important;
    max-width:100%!important;
  }
}
