:root{
  --fruitien-blue:#252f9d;
  --fruitien-blue-2:#005bbf;
  --fruitien-dark:#002b64;
  --fruitien-line:#dbe8fb;
  --fruitien-soft:#f6faff;
  --fruitien-bg:#fbfaf8;
  --fruitien-shadow:0 18px 45px rgba(0,43,100,.10);
}

body.woocommerce-shop,
body.woocommerce-cart,
body.woocommerce-checkout,
body.single-product{
  background:var(--fruitien-bg)!important;
}

/* SHOP GRID RESET + PROFESSIONAL CARDS */
body.woocommerce-shop ul.products,
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products{
  width:min(1440px,96vw)!important;
  margin:28px auto 60px!important;
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(245px,1fr))!important;
  gap:24px!important;
}
body.woocommerce-shop ul.products:before,
body.woocommerce-shop ul.products:after,
body.post-type-archive-product ul.products:before,
body.post-type-archive-product ul.products:after,
body.tax-product_cat ul.products:before,
body.tax-product_cat ul.products:after{display:none!important;content:none!important;}

body.woocommerce-shop ul.products li.product,
body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product{
  float:none!important;
  clear:none!important;
  width:auto!important;
  margin:0!important;
  min-height:455px!important;
  padding:24px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  background:#fff!important;
  border:1px solid var(--fruitien-line)!important;
  border-radius:24px!important;
  box-shadow:0 10px 28px rgba(0,43,100,.06)!important;
  overflow:hidden!important;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease!important;
}
body.woocommerce-shop ul.products li.product:hover,
body.post-type-archive-product ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover{
  transform:translateY(-6px)!important;
  box-shadow:var(--fruitien-shadow)!important;
  border-color:#bdd6ff!important;
}
body.woocommerce-shop ul.products li.product a.woocommerce-LoopProduct-link,
body.post-type-archive-product ul.products li.product a.woocommerce-LoopProduct-link,
body.tax-product_cat ul.products li.product a.woocommerce-LoopProduct-link{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  text-align:center!important;
  width:100%!important;
  color:inherit!important;
  text-decoration:none!important;
}
body.woocommerce-shop ul.products li.product img,
body.post-type-archive-product ul.products li.product img,
body.tax-product_cat ul.products li.product img{
  width:100%!important;
  max-width:200px!important;
  height:220px!important;
  object-fit:contain!important;
  margin:8px auto 18px!important;
  transition:transform .25s ease!important;
}
body.woocommerce-shop ul.products li.product:hover img,
body.post-type-archive-product ul.products li.product:hover img,
body.tax-product_cat ul.products li.product:hover img{transform:scale(1.035)!important;}
body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title{
  font-size:17px!important;
  line-height:1.35!important;
  min-height:44px!important;
  color:var(--fruitien-dark)!important;
  font-weight:800!important;
  margin:6px 0 6px!important;
  order:20!important;
}
body.woocommerce-shop ul.products li.product .price,
body.post-type-archive-product ul.products li.product .price,
body.tax-product_cat ul.products li.product .price{
  display:block!important;
  color:var(--fruitien-blue)!important;
  font-size:18px!important;
  font-weight:900!important;
  margin:0 0 14px!important;
  order:30!important;
}
body.woocommerce-shop ul.products li.product .price del{color:#8b95aa!important;font-weight:500!important;opacity:.75!important;margin-right:6px!important;}
body.woocommerce-shop ul.products li.product .price ins{text-decoration:none!important;}
body.woocommerce-shop ul.products li.product .onsale,
body.post-type-archive-product ul.products li.product .onsale,
body.tax-product_cat ul.products li.product .onsale{
  right:18px!important;top:18px!important;left:auto!important;margin:0!important;
  background:var(--fruitien-blue)!important;color:#fff!important;border-radius:50%!important;
  width:54px!important;height:54px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  font-weight:800!important;font-size:12px!important;box-shadow:0 12px 24px rgba(37,47,157,.25)!important;
}
body.woocommerce-shop ul.products li.product .button,
body.post-type-archive-product ul.products li.product .button,
body.tax-product_cat ul.products li.product .button{
  margin-top:auto!important;
  width:100%!important;
  min-height:48px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  border-radius:12px!important;
  background:var(--fruitien-blue)!important;
  color:#fff!important;
  border:none!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.02em!important;
  box-shadow:0 10px 22px rgba(37,47,157,.18)!important;
  transition:transform .18s ease, background .18s ease!important;
  order:70!important;
}
body.woocommerce-shop ul.products li.product .button:hover,
body.post-type-archive-product ul.products li.product .button:hover,
body.tax-product_cat ul.products li.product .button:hover{background:#0b1f87!important;transform:translateY(-2px)!important;}
body.woocommerce-shop ul.products li.product a.added_to_cart,
body.post-type-archive-product ul.products li.product a.added_to_cart,
body.tax-product_cat ul.products li.product a.added_to_cart{display:none!important;}

/* Hide old product MOQ display from cards; minimum order amount is handled at cart/checkout. */
body.woocommerce-shop ul.products li.product .cpk-moq,
body.woocommerce-shop ul.products li.product .fruitien-moq,
body.woocommerce-shop ul.products li.product .product-moq,
body.woocommerce-shop ul.products li.product [class*="moq"],
body.post-type-archive-product ul.products li.product [class*="moq"]{display:none!important;}

/* Qty selectors on cards: keep compact when theme/core adds them */
body.woocommerce-shop ul.products li.product form.cart,
body.post-type-archive-product ul.products li.product form.cart,
body.tax-product_cat ul.products li.product form.cart{
  width:100%!important;display:flex!important;gap:8px!important;margin-top:auto!important;align-items:center!important;order:60!important;
}
body.woocommerce-shop ul.products li.product .quantity,
body.post-type-archive-product ul.products li.product .quantity,
body.tax-product_cat ul.products li.product .quantity{
  width:100%!important;max-width:none!important;margin:0 0 10px!important;order:60!important;
}
body.woocommerce-shop ul.products li.product .quantity input.qty,
body.post-type-archive-product ul.products li.product .quantity input.qty,
body.tax-product_cat ul.products li.product .quantity input.qty{
  width:100%!important;height:44px!important;border:1px solid var(--fruitien-line)!important;border-radius:10px!important;background:var(--fruitien-soft)!important;text-align:center!important;color:var(--fruitien-dark)!important;font-weight:800!important;
}

/* PRODUCT PAGE */
body.single-product div.product{
  width:min(1180px,94vw)!important;margin:50px auto!important;background:#fff!important;border:1px solid var(--fruitien-line)!important;border-radius:26px!important;padding:34px!important;box-shadow:var(--fruitien-shadow)!important;
}
body.single-product div.product .summary .cart{display:flex!important;gap:12px!important;align-items:center!important;flex-wrap:wrap!important;}
body.single-product div.product .summary button.single_add_to_cart_button{border-radius:12px!important;background:var(--fruitien-blue)!important;min-height:48px!important;padding:0 34px!important;font-weight:900!important;}
body.single-product div.product .summary input.qty{height:48px!important;border-radius:10px!important;border:1px solid var(--fruitien-line)!important;}

/* CHECKOUT: stable two-column layout */
body.woocommerce-checkout .woocommerce{
  width:min(1180px,94vw)!important;margin:48px auto!important;
}
body.woocommerce-checkout form.checkout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(340px,420px)!important;
  gap:34px!important;
  align-items:start!important;
}
body.woocommerce-checkout form.checkout .col2-set{
  grid-column:1!important;width:100%!important;float:none!important;margin:0!important;
  background:#fff!important;border:1px solid var(--fruitien-line)!important;border-radius:24px!important;padding:30px!important;box-shadow:var(--fruitien-shadow)!important;
}
body.woocommerce-checkout form.checkout .col2-set .col-1,
body.woocommerce-checkout form.checkout .col2-set .col-2{width:100%!important;float:none!important;margin:0!important;}
body.woocommerce-checkout #order_review_heading{
  grid-column:2!important;grid-row:1!important;
  margin:0 0 16px!important;color:var(--fruitien-dark)!important;font-size:28px!important;line-height:1.1!important;
}
body.woocommerce-checkout #order_review{
  grid-column:2!important;grid-row:1!important;margin-top:70px!important;width:100%!important;float:none!important;
  background:#fff!important;border:1px solid var(--fruitien-line)!important;border-radius:24px!important;padding:26px!important;box-shadow:var(--fruitien-shadow)!important;
  position:sticky!important;top:24px!important;
}
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout #order_review_heading{font-family:Georgia,serif!important;font-weight:800!important;color:var(--fruitien-dark)!important;}
body.woocommerce-checkout .form-row label{font-weight:800!important;color:#143b72!important;margin-bottom:8px!important;}
body.woocommerce-checkout input.input-text,
body.woocommerce-checkout textarea,
body.woocommerce-checkout select,
body.woocommerce-checkout .select2-container .select2-selection--single{
  height:50px!important;border:1px solid var(--fruitien-line)!important;border-radius:12px!important;background:#f6faff!important;padding:0 16px!important;box-shadow:none!important;
}
body.woocommerce-checkout textarea{height:110px!important;padding:14px 16px!important;}
body.woocommerce-checkout table.shop_table{border:none!important;margin:0!important;border-collapse:collapse!important;width:100%!important;}
body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout table.shop_table td{border-bottom:1px solid #e8eef8!important;padding:14px 0!important;color:#3f4f68!important;}
body.woocommerce-checkout table.shop_table .order-total th,
body.woocommerce-checkout table.shop_table .order-total td{font-size:20px!important;font-weight:900!important;color:var(--fruitien-dark)!important;}
body.woocommerce-checkout tr.woocommerce-shipping-totals,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout #ship-to-different-address{display:none!important;}
body.woocommerce-checkout #payment{background:#f7fbff!important;border:1px solid var(--fruitien-line)!important;border-radius:18px!important;margin-top:18px!important;padding:16px!important;}
body.woocommerce-checkout #place_order{width:100%!important;min-height:54px!important;border-radius:14px!important;background:var(--fruitien-blue)!important;color:#fff!important;font-weight:900!important;text-transform:uppercase!important;box-shadow:0 12px 25px rgba(37,47,157,.18)!important;}

/* CART: safe responsive styling without breaking WooCommerce structure */
body.woocommerce-cart .woocommerce{
  width:min(1180px,94vw)!important;margin:48px auto!important;
}
body.woocommerce-cart table.shop_table,
body.woocommerce-cart .cart_totals{
  background:#fff!important;border:1px solid var(--fruitien-line)!important;border-radius:22px!important;box-shadow:var(--fruitien-shadow)!important;padding:18px!important;overflow:hidden!important;
}
body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td{border-bottom:1px solid #e8eef8!important;padding:18px!important;vertical-align:middle!important;}
body.woocommerce-cart .cart_totals h2{color:var(--fruitien-dark)!important;font-family:Georgia,serif!important;}
body.woocommerce-cart .checkout-button{background:var(--fruitien-blue)!important;border-radius:14px!important;min-height:54px!important;font-weight:900!important;}
body.woocommerce-cart tr.woocommerce-shipping-totals{display:none!important;}

@media (max-width: 1180px){
  body.woocommerce-shop ul.products,
  body.post-type-archive-product ul.products,
  body.tax-product_cat ul.products{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;}
}
@media (max-width: 980px){
  body.woocommerce-checkout form.checkout{grid-template-columns:1fr!important;gap:22px!important;}
  body.woocommerce-checkout form.checkout .col2-set,
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #order_review{grid-column:1!important;grid-row:auto!important;margin-top:0!important;position:static!important;}
  body.woocommerce-checkout #order_review_heading{font-size:24px!important;margin-top:10px!important;}
  body.single-product div.product{padding:22px!important;}
}
@media (max-width: 640px){
  body.woocommerce-shop ul.products,
  body.post-type-archive-product ul.products,
  body.tax-product_cat ul.products{grid-template-columns:1fr!important;width:92vw!important;gap:18px!important;}
  body.woocommerce-shop ul.products li.product img{height:190px!important;}
  body.woocommerce-checkout .woocommerce,
  body.woocommerce-cart .woocommerce{width:92vw!important;margin:28px auto!important;}
  body.woocommerce-checkout form.checkout .col2-set,
  body.woocommerce-checkout #order_review{padding:20px!important;border-radius:18px!important;}
  body.woocommerce-checkout .form-row-first,
  body.woocommerce-checkout .form-row-last{width:100%!important;float:none!important;}
}
