/*
 * Meshwar Market UI layer
 * Scope: custom footer + WooCommerce product listings/single product pages.
 */
:root {
  --meshwar-bg: #FAFAFA;
  --meshwar-surface: #FFFFFF;
  --meshwar-ink: #0F172A;
  --meshwar-accent: #F97316;
  --meshwar-muted: #64748B;
  --meshwar-border: #CBD5E1;
  --meshwar-inverse-muted: #CBD5E1;
  --meshwar-radius-sm: 10px;
  --meshwar-radius-md: 16px;
}

/* Replace only the visible Kadence footer. Its saved settings remain untouched. */
#colophon.site-footer { display: none !important; }

.meshwar-pro-footer,
.meshwar-pro-footer * { box-sizing: border-box; }

.meshwar-pro-footer {
  clear: both;
  width: 100%;
  margin: 0;
  background: var(--meshwar-ink);
  color: var(--meshwar-inverse-muted);
  font-family: Cairo, sans-serif;
  text-align: right;
}

.meshwar-pro-footer__inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 46px;
  padding: 56px 0 42px;
}

.meshwar-pro-footer__brand { max-width: 350px; }
.meshwar-pro-footer__logo { display: inline-flex; margin-bottom: 16px; }
.meshwar-pro-footer__logo img {
  display: block;
  width: auto;
  max-width: 168px;
  max-height: 72px;
  object-fit: contain;
}
.meshwar-pro-footer__wordmark {
  display: inline-block;
  margin-bottom: 16px;
  color: #FFFFFF;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}

.meshwar-pro-footer :where(p, ul) { margin: 0; padding: 0; }
.meshwar-pro-footer__brand p,
.meshwar-pro-footer__payment > p {
  color: var(--meshwar-inverse-muted);
  font-size: 14px;
  line-height: 1.9;
}
.meshwar-pro-footer__column h2 {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 12px;
  color: #FFFFFF;
  font-family: Cairo, sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}
.meshwar-pro-footer__column h2::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--meshwar-accent);
  content: "";
}
.meshwar-pro-footer__column ul { list-style: none; }
.meshwar-pro-footer__column li + li { margin-top: 10px; }
.meshwar-pro-footer__column a {
  color: var(--meshwar-inverse-muted);
  font-size: 14px;
  line-height: 1.65;
  text-decoration: none;
  transition: color .18s ease;
}
.meshwar-pro-footer__column a:hover,
.meshwar-pro-footer__column a:focus-visible { color: var(--meshwar-accent); }
.meshwar-pro-footer a:focus-visible {
  outline: 2px solid var(--meshwar-accent);
  outline-offset: 4px;
}

.meshwar-pro-footer__cod {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(249, 115, 22, .36);
  border-radius: var(--meshwar-radius-sm);
  background: rgba(255, 255, 255, .055);
}
.meshwar-pro-footer__cod-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--meshwar-accent);
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 800;
}
.meshwar-pro-footer__cod strong,
.meshwar-pro-footer__cod small { display: block; }
.meshwar-pro-footer__cod strong { color: #FFFFFF; font-size: 14px; }
.meshwar-pro-footer__cod small { margin-top: 3px; color: var(--meshwar-inverse-muted); font-size: 12px; }

.meshwar-pro-footer__bottom {
  border-top: 1px solid rgba(203, 213, 225, .16);
  padding: 18px 20px;
  text-align: center;
}
.meshwar-pro-footer__bottom p { color: var(--meshwar-inverse-muted); font-size: 13px; }

/* Professional product grids: homepage, shop, categories and related products. */
.woocommerce ul.products,
.woocommerce-page ul.products {
  gap: 22px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 12px 12px 16px;
  border: 1px solid var(--meshwar-border);
  border-radius: var(--meshwar-radius-md);
  background: var(--meshwar-surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

@media (hover: hover) {
  .woocommerce ul.products li.product:hover,
  .woocommerce-page ul.products li.product:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, .34);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .10);
  }
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  color: var(--meshwar-ink);
  text-decoration: none;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
  display: block;
  width: 100% !important;
  height: 210px !important;
  margin: 0 0 14px;
  border-radius: 12px;
  background: var(--meshwar-bg);
  object-fit: contain;
  object-position: center;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  padding: 0 4px;
  overflow: hidden;
  color: var(--meshwar-ink);
  font-family: Cairo, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  margin: 10px 0 14px;
  padding: 0 4px;
  color: var(--meshwar-accent);
  font-family: Cairo, sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-align: right;
}
.woocommerce ul.products li.product .price del { color: var(--meshwar-muted); font-size: .82em; opacity: .75; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
  width: 100%;
  min-height: 44px;
  margin: 10px 0 0;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--meshwar-accent);
  box-shadow: 0 7px 16px rgba(249, 115, 22, .18);
  color: #FFFFFF;
  font-family: Cairo, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .button:focus-visible { background: var(--meshwar-accent); color: #FFFFFF; filter: brightness(.92); }
.woocommerce ul.products li.product .button:focus-visible {
  outline: 3px solid rgba(249, 115, 22, .3);
  outline-offset: 2px;
}
.woocommerce span.onsale {
  right: 20px;
  left: auto;
  min-width: auto;
  min-height: auto;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--meshwar-accent);
  color: #FFFFFF;
  font-size: 12px;
  line-height: 1.2;
}

/* Single product page: clearer hierarchy without changing WooCommerce markup. */
.single-product div.product {
  color: var(--meshwar-ink);
  font-family: Cairo, sans-serif;
}
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
  margin-bottom: 38px;
}
.single-product div.product .woocommerce-product-gallery__wrapper {
  overflow: hidden;
  border: 1px solid var(--meshwar-border);
  border-radius: var(--meshwar-radius-md);
  background: var(--meshwar-surface);
}
.single-product div.product .woocommerce-product-gallery__image img {
  background: var(--meshwar-bg);
  object-fit: contain;
}
.single-product div.product .product_title {
  margin-bottom: 14px;
  color: var(--meshwar-ink);
  font-family: Cairo, sans-serif;
  font-weight: 800;
  line-height: 1.25;
}
.single-product div.product .summary .price {
  margin-bottom: 18px;
  color: var(--meshwar-accent);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
}
.single-product div.product .woocommerce-product-details__short-description {
  color: var(--meshwar-muted);
  line-height: 1.85;
}
.single-product div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.single-product div.product form.cart .quantity .qty {
  min-height: 50px;
  border: 1px solid var(--meshwar-border);
  border-radius: var(--meshwar-radius-sm);
}
.single-product div.product form.cart .single_add_to_cart_button {
  min-height: 50px;
  padding-inline: 28px;
  border-radius: 12px;
  background: var(--meshwar-accent);
  box-shadow: 0 8px 18px rgba(249, 115, 22, .2);
  color: #FFFFFF;
  font-weight: 800;
}
.single-product div.product .woocommerce-tabs {
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid var(--meshwar-border);
  border-radius: var(--meshwar-radius-md);
  background: var(--meshwar-surface);
}
.single-product div.product .woocommerce-tabs ul.tabs { padding: 0 20px; border-bottom: 1px solid var(--meshwar-border); }
.single-product div.product .woocommerce-tabs .panel { padding: 24px; line-height: 1.85; }
.single-product div.product .product_meta {
  padding-top: 18px;
  border-top: 1px solid var(--meshwar-border);
  color: var(--meshwar-muted);
  font-size: 14px;
}
.single-product .related.products > h2,
.single-product .up-sells.products > h2 {
  color: var(--meshwar-ink);
  font-family: Cairo, sans-serif;
  font-weight: 800;
}

@media (max-width: 900px) {
  .meshwar-pro-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 28px;
  }
  .meshwar-pro-footer__brand { max-width: none; }
}

@media (max-width: 600px) {
  .meshwar-pro-footer__inner {
    width: min(100% - 32px, 520px);
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 42px 0 32px;
  }
  .meshwar-pro-footer__logo img { max-width: 145px; max-height: 62px; }
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    padding: 8px 8px 12px;
    border-radius: 13px;
    min-height: 0;
  }
  .woocommerce ul.products li.product a img,
  .woocommerce-page ul.products li.product a img { height: 150px !important; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    min-height: 42px;
    font-size: 14px;
  }
  .woocommerce ul.products li.product .price,
  .woocommerce-page ul.products li.product .price { font-size: 16px; }
  .woocommerce ul.products li.product .button,
  .woocommerce-page ul.products li.product .button {
    min-height: 40px;
    padding: 9px 8px;
    font-size: 12px;
  }
  .single-product div.product form.cart { display: grid; grid-template-columns: auto 1fr; }
  .single-product div.product form.cart .single_add_to_cart_button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product,
  .meshwar-pro-footer__column a { transition: none; }
}


/* Homepage reassurance icons: Font Awesome compatibility and unified sizing. */
.elementor-element-970255e .elementor-icon-box-icon {
  min-height: 38px;
  margin-bottom: 8px;
}
.elementor-element-970255e .elementor-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--meshwar-accent);
}
.elementor-element-970255e .elementor-icon :where(i, svg) {
  display: block;
  width: 30px;
  height: 30px;
  color: var(--meshwar-accent);
  fill: currentColor;
  font-size: 30px;
  line-height: 1;
}


/* Header cart button: labeled orange pill with live WooCommerce count. */
.header-cart-wrap .header-cart-button {
  display: inline-flex !important;
  width: auto;
  min-width: 136px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 14px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--meshwar-accent) !important;
  box-shadow: 0 7px 16px rgba(249, 115, 22, .22);
  color: #FFFFFF !important;
  direction: ltr;
  font-family: Cairo, sans-serif;
  transition: filter .18s ease, transform .18s ease;
}
.header-cart-wrap .header-cart-button::before {
  order: 2;
  content: "السلة";
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.header-cart-wrap .header-cart-button .header-cart-total {
  position: static !important;
  order: 1;
  display: inline-grid !important;
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin: 0 !important;
  padding: 0 !important;
  place-items: center;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .22) !important;
  color: #FFFFFF !important;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1;
}
.header-cart-wrap .header-cart-button .kadence-svg-iconset {
  order: 3;
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #FFFFFF !important;
  font-size: 22px !important;
}
.header-cart-wrap .header-cart-button .kadence-svg-icon {
  width: 21px;
  height: 21px;
  fill: currentColor;
}
.header-cart-wrap .header-cart-button:hover,
.header-cart-wrap .header-cart-button:focus-visible {
  background: var(--meshwar-accent) !important;
  color: #FFFFFF !important;
  filter: brightness(.94);
  transform: translateY(-1px);
}
.header-cart-wrap .header-cart-button:focus-visible {
  outline: 3px solid rgba(249, 115, 22, .28);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .header-cart-wrap .header-cart-button {
    min-width: 112px;
    min-height: 42px;
    gap: 6px;
    padding: 7px 10px !important;
    border-radius: 12px !important;
  }
  .header-cart-wrap .header-cart-button::before { font-size: 13px; }
  .header-cart-wrap .header-cart-button .header-cart-total {
    width: 20px;
    min-width: 20px;
    height: 20px;
  }
}


/* Homepage closing CTA background: generated neutral e-commerce studio image. */
.elementor-element-92642fc {
  background-color: var(--meshwar-ink) !important;
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, .38) 0%, rgba(15, 23, 42, .70) 52%, rgba(15, 23, 42, .92) 100%),
    url("https://meshwarmarket.com/wp-content/uploads/meshwar-market/meshwar-cta-background.png?v=2") !important;
  background-position: center center, left center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100%, auto 145% !important;
}
@media (max-width: 767px) {
  .elementor-element-92642fc {
    background-image:
      linear-gradient(rgba(15, 23, 42, .78), rgba(15, 23, 42, .88)),
      url("https://meshwarmarket.com/wp-content/uploads/meshwar-market/meshwar-cta-background.png?v=2") !important;
    background-position: center center, 24% center !important;
    background-size: 100% 100%, auto 125% !important;
  }
}


/* Homepage category artwork: stable CSS replacement over Elementor image widgets. */
.elementor-element-435f16f :where(
  .elementor-element-046923d,
  .elementor-element-a13d003,
  .elementor-element-17cf6e2,
  .elementor-element-a113e23,
  .elementor-element-b30d74e
) figure > a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--meshwar-radius-md);
  background-color: var(--meshwar-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.elementor-element-046923d figure > a { background-image: url("https://meshwarmarket.com/wp-content/uploads/meshwar-market/meshwar-category-kitchen.png?v=2"); }
.elementor-element-a13d003 figure > a { background-image: url("https://meshwarmarket.com/wp-content/uploads/meshwar-market/meshwar-category-cleaning.png?v=2"); }
.elementor-element-17cf6e2 figure > a { background-image: url("https://meshwarmarket.com/wp-content/uploads/meshwar-market/meshwar-category-car.png?v=2"); }
.elementor-element-a113e23 figure > a { background-image: url("https://meshwarmarket.com/wp-content/uploads/meshwar-market/meshwar-category-phone.png?v=2"); }
.elementor-element-b30d74e figure > a { background-image: url("https://meshwarmarket.com/wp-content/uploads/meshwar-market/meshwar-category-medical-sport.png?v=2"); }
.elementor-element-435f16f :where(
  .elementor-element-046923d,
  .elementor-element-a13d003,
  .elementor-element-17cf6e2,
  .elementor-element-a113e23,
  .elementor-element-b30d74e
) figure > a img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0 !important;
  object-fit: cover;
}


/* Product purchase controls: stronger hierarchy on desktop, unchanged layout. */
.single-product div.product form.cart .single_add_to_cart_button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--meshwar-accent) !important;
  box-shadow: 0 9px 22px rgba(249, 115, 22, .22) !important;
  color: #FFFFFF !important;
  font-family: Cairo, sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}
.single-product div.product form.cart .single_add_to_cart_button:hover,
.single-product div.product form.cart .single_add_to_cart_button:focus-visible {
  background: var(--meshwar-accent) !important;
  color: #FFFFFF !important;
  filter: brightness(.94);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(249, 115, 22, .28) !important;
}
.single-product div.product form.cart .single_add_to_cart_button:focus-visible {
  outline: 3px solid rgba(249, 115, 22, .28);
  outline-offset: 3px;
}

/* Product information is a readable vertical sequence, not tabbed navigation. */
.single-product div.product .woocommerce-tabs {
  overflow: visible;
  border: 0;
  background: transparent;
}
.single-product div.product .woocommerce-tabs > ul.tabs {
  display: none !important;
}
.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel {
  display: block !important;
  margin: 0 0 20px !important;
  padding: 28px !important;
  border: 1px solid var(--meshwar-border);
  border-radius: var(--meshwar-radius-md);
  background: var(--meshwar-surface);
  box-shadow: 0 7px 22px rgba(15, 23, 42, .045);
  color: var(--meshwar-ink);
}
.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child,
.single-product .meshwar-product-faq > h2,
.single-product .meshwar-product-recommendations .related.products > h2 {
  margin: 0 0 20px;
  color: var(--meshwar-ink);
  font-family: Cairo, sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.25;
}
.single-product .meshwar-product-faq details {
  border-top: 1px solid var(--meshwar-border);
}
.single-product .meshwar-product-faq details:first-of-type {
  border-top: 0;
}
.single-product .meshwar-product-faq summary {
  padding: 16px 2px;
  color: var(--meshwar-ink);
  cursor: pointer;
  font-size: 16px;
  line-height: 1.6;
}
.single-product .meshwar-product-faq details p {
  margin: 0;
  padding: 0 2px 18px;
  color: var(--meshwar-muted);
  line-height: 1.85;
}
.single-product .meshwar-product-recommendations .related.products {
  margin: 0;
}
.single-product .meshwar-product-recommendations .related.products > h2::before {
  content: "مقترحات مختارة: ";
  color: var(--meshwar-accent);
}
.meshwar-cart-anchor {
  position: relative;
  top: -100px;
}

/* Mobile-only persistent purchase bar. Desktop remains unchanged. */
.meshwar-mobile-buybar {
  display: none;
}
@media (max-width: 767px) {
  body.single-product {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .single-product div.product form.cart .single_add_to_cart_button {
    min-height: 52px;
    width: 100%;
    font-size: 16px;
  }
  .single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    margin-bottom: 14px !important;
    padding: 20px 16px !important;
    border-radius: 14px;
  }
  .meshwar-mobile-buybar {
    position: fixed;
    z-index: 9998;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--meshwar-border);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 26px rgba(15, 23, 42, .12);
    font-family: Cairo, sans-serif;
    backdrop-filter: blur(12px);
  }
  .meshwar-mobile-buybar__price {
    color: var(--meshwar-accent);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
  }
  .meshwar-mobile-buybar__price del {
    display: block;
    color: var(--meshwar-muted);
    font-size: 11px;
    opacity: .75;
  }
  .meshwar-mobile-buybar__price ins {
    text-decoration: none;
  }
  .meshwar-mobile-buybar .button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 !important;
    padding: 11px 16px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--meshwar-accent) !important;
    box-shadow: 0 7px 18px rgba(249, 115, 22, .22);
    color: #FFFFFF !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .single-product div.product form.cart .single_add_to_cart_button {
    transition: none;
  }
}


/* Single-product price card inspired by the approved reference. */
.single-product .summary .meshwar-price-card {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 20px;
  padding: 20px 22px;
  border: 1px solid rgba(249, 115, 22, .38);
  border-radius: var(--meshwar-radius-md);
  background: var(--meshwar-surface);
  font-family: Cairo, sans-serif;
}
.meshwar-price-card__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.meshwar-price-card__label {
  margin-bottom: 4px;
  color: var(--meshwar-muted);
  font-size: 14px;
  font-weight: 700;
}
.single-product .summary .meshwar-price-card__price {
  line-height: 1.2;
}
.single-product .summary .meshwar-price-card__price .price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}
.single-product .summary .meshwar-price-card__price ins {
  order: 1;
  color: var(--meshwar-accent);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  text-decoration: none;
}
.single-product .summary .meshwar-price-card__price del {
  order: 2;
  color: var(--meshwar-muted);
  font-size: 15px;
  font-weight: 500;
  opacity: .7;
}
.meshwar-price-card__benefits {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.meshwar-price-card__saving {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--meshwar-accent);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.meshwar-price-card__benefits small {
  color: var(--meshwar-muted);
  font-size: 12px;
  font-weight: 700;
}

/* Desktop and tablet cart controls. */
@media (min-width: 768px) {
  .single-product div.product .summary form.cart {
    display: grid;
    grid-template-columns: 86px minmax(220px, 1fr);
    gap: 12px;
    width: 100%;
    align-items: stretch;
  }
  .single-product div.product .summary form.cart .quantity,
  .single-product div.product .summary form.cart .quantity .qty {
    width: 86px;
    height: 56px;
  }
  .single-product div.product .summary form.cart .quantity .qty {
    margin: 0;
    border: 1px solid var(--meshwar-border);
    border-radius: 12px;
    background: var(--meshwar-bg);
    color: var(--meshwar-ink);
    font-family: Cairo, sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
  }
  .single-product div.product .summary form.cart .single_add_to_cart_button {
    width: 100%;
    min-height: 56px;
    margin: 0;
    font-size: 18px;
  }
}

/* Customer reviews: overview, cards and form. */
.single-product .woocommerce-Tabs-panel--reviews {
  padding: 30px !important;
}
.meshwar-review-overview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--meshwar-border);
}
.meshwar-review-overview h2 {
  margin: 0 0 4px;
  color: var(--meshwar-ink);
  font-family: Cairo, sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.25;
}
.meshwar-review-overview p {
  margin: 0;
  color: var(--meshwar-muted);
  font-size: 13px;
}
.meshwar-review-overview__score {
  display: flex;
  min-width: 86px;
  flex-direction: column;
  align-items: flex-start;
}
.meshwar-review-overview__score strong {
  color: var(--meshwar-accent);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.1;
}
.meshwar-review-overview__score small {
  margin-top: 4px;
  color: var(--meshwar-muted);
  font-size: 12px;
}
.single-product #reviews #comments > h2:first-child {
  display: none;
}
.single-product #reviews .commentlist {
  margin: 0 0 26px !important;
  padding: 0 !important;
  list-style: none;
}
.single-product #reviews .commentlist li.review {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
}
.single-product #reviews .commentlist li .comment_container {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--meshwar-border);
  border-radius: 14px;
  background: var(--meshwar-bg);
}
.single-product #reviews .commentlist li img.avatar {
  position: static !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
}
.single-product #reviews .commentlist li .comment-text {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.single-product #reviews .commentlist .star-rating,
.single-product #reviews .comment-form-rating .stars a {
  color: var(--meshwar-accent);
}
.single-product #reviews .commentlist .meta {
  margin: 0 0 8px !important;
  color: var(--meshwar-muted) !important;
  font-size: 12px !important;
}
.single-product #reviews .commentlist .woocommerce-review__author {
  color: var(--meshwar-ink);
  font-size: 15px;
  font-weight: 800;
}
.single-product #reviews .commentlist .woocommerce-review__verified {
  display: inline-flex;
  margin-inline-start: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(249, 115, 22, .12);
  color: var(--meshwar-accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.single-product #reviews .commentlist .description {
  color: var(--meshwar-ink);
  font-size: 14px;
  line-height: 1.8;
}
.single-product #review_form_wrapper {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--meshwar-border);
}
.single-product #review_form_wrapper .comment-reply-title {
  display: block;
  margin-bottom: 18px;
  color: var(--meshwar-ink);
  font-size: 18px;
  font-weight: 800;
}
.single-product #review_form_wrapper .comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.single-product #review_form_wrapper .comment-notes,
.single-product #review_form_wrapper .comment-form-rating,
.single-product #review_form_wrapper .comment-form-comment,
.single-product #review_form_wrapper .form-submit,
.single-product #review_form_wrapper .must-log-in,
.single-product #review_form_wrapper .logged-in-as {
  grid-column: 1 / -1;
}
.single-product #review_form_wrapper :where(
  .comment-form-author,
  .comment-form-email,
  .comment-form-comment,
  .comment-form-rating,
  .form-submit,
  .comment-notes
) {
  margin: 0;
}
.single-product #review_form_wrapper label {
  display: block;
  margin-bottom: 6px;
  color: var(--meshwar-ink);
  font-size: 13px;
  font-weight: 700;
}
.single-product #review_form_wrapper :where(input[type="text"], input[type="email"], textarea) {
  width: 100%;
  border: 1px solid var(--meshwar-border);
  border-radius: 12px;
  background: var(--meshwar-bg);
  color: var(--meshwar-ink);
  font-family: Cairo, sans-serif;
  font-size: 14px;
}
.single-product #review_form_wrapper :where(input[type="text"], input[type="email"]) {
  min-height: 46px;
  padding: 10px 13px;
}
.single-product #review_form_wrapper textarea {
  min-height: 112px;
  padding: 13px;
  resize: vertical;
}
.single-product #review_form_wrapper :where(input[type="text"], input[type="email"], textarea):focus {
  border-color: var(--meshwar-accent);
  outline: 3px solid rgba(249, 115, 22, .15);
}
.single-product #review_form_wrapper .form-submit {
  text-align: left;
}
.single-product #review_form_wrapper .submit {
  min-height: 46px;
  padding: 10px 24px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--meshwar-ink) !important;
  color: #FFFFFF !important;
  font-family: Cairo, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 767px) {
  .single-product .summary .meshwar-price-card {
    gap: 12px;
    margin: 14px 0 16px;
    padding: 16px;
  }
  .single-product .summary .meshwar-price-card__price ins {
    font-size: 27px;
  }
  .meshwar-price-card__saving {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 11px;
  }
  .meshwar-price-card__benefits small {
    font-size: 10px;
  }
  .single-product div.product.product-type-simple .summary form.cart {
    display: none !important;
  }
  .single-product .woocommerce-Tabs-panel--reviews {
    padding: 20px 16px !important;
  }
  .meshwar-review-overview {
    gap: 14px;
  }
  .meshwar-review-overview__score {
    min-width: 66px;
  }
  .single-product #reviews .commentlist li .comment_container {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px;
  }
  .single-product #reviews .commentlist li img.avatar {
    width: 38px !important;
    height: 38px !important;
  }
  .single-product #review_form_wrapper .comment-form {
    grid-template-columns: 1fr;
  }
}

/* Product cart row: reliable RTL alignment across desktop and tablet */
@media (min-width: 768px) {
  .single-product div.product .summary form.cart {
    display: flex !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .single-product div.product .summary form.cart .quantity {
    float: none !important;
    flex: 0 0 86px !important;
    width: 86px !important;
    margin: 0 !important;
  }
  .single-product div.product .summary form.cart .quantity .qty {
    width: 100% !important;
    height: 56px !important;
    margin: 0 !important;
  }
  .single-product div.product .summary form.cart .single_add_to_cart_button {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 56px !important;
    margin: 0 !important;
  }
}
/* Meshwar responsive product gallery */
.single-product div.product .woocommerce-product-gallery {
  position: relative;
}
.single-product div.product .woocommerce-product-gallery .flex-viewport {
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--meshwar-border);
  border-radius: var(--meshwar-radius-md);
  background: var(--meshwar-surface);
}
.single-product div.product .woocommerce-product-gallery__wrapper {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.single-product div.product .woocommerce-product-gallery__image,
.single-product div.product .woocommerce-product-gallery__image > a {
  height: 500px;
}
.single-product div.product .woocommerce-product-gallery__image > a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.single-product div.product .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: 100% !important;
  max-height: 500px;
  padding: 12px;
  background: var(--meshwar-surface);
  object-fit: contain;
}
.single-product .meshwar-gallery-thumbs-shell {
  position: relative;
  width: 100%;
  margin-top: 10px;
  padding-inline: 44px;
}
.single-product .meshwar-gallery-thumbs-shell .flex-control-thumbs {
  position: static !important;
  display: flex !important;
  width: 100% !important;
  height: 78px !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 9px;
  overflow: hidden;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  transform: none !important;
}
.single-product .meshwar-gallery-thumbs-shell .flex-control-thumbs li {
  display: block !important;
  flex: 0 0 70px !important;
  width: 70px !important;
  height: 70px !important;
  padding: 0 !important;
  scroll-snap-align: center;
}
.single-product .meshwar-gallery-thumbs-shell .flex-control-thumbs img {
  width: 70px !important;
  height: 70px !important;
  padding: 4px;
  border: 1px solid var(--meshwar-border);
  border-radius: 12px;
  background: var(--meshwar-surface);
  object-fit: cover;
  opacity: .68;
  transition: border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.single-product .meshwar-gallery-thumbs-shell .flex-control-thumbs img:hover,
.single-product .meshwar-gallery-thumbs-shell .flex-control-thumbs img.flex-active {
  border-color: var(--meshwar-accent);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, .14);
  opacity: 1;
}
.single-product .meshwar-gallery-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--meshwar-border);
  border-radius: 50%;
  background: var(--meshwar-surface);
  color: var(--meshwar-ink);
  box-shadow: 0 5px 16px rgba(15, 23, 42, .12);
  font-size: 27px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}
.single-product .meshwar-gallery-thumbs-shell.has-many-images .meshwar-gallery-nav {
  display: flex;
}
.single-product .meshwar-gallery-nav--previous {
  left: 2px;
}
.single-product .meshwar-gallery-nav--next {
  right: 2px;
}
.single-product .meshwar-gallery-nav:hover {
  border-color: var(--meshwar-accent);
  background: var(--meshwar-accent);
  color: var(--meshwar-surface);
}
.single-product .meshwar-gallery-nav:disabled {
  opacity: .34;
  cursor: default;
}

@media (max-width: 1024px) {
  .single-product div.product .woocommerce-product-gallery .flex-viewport,
  .single-product div.product .woocommerce-product-gallery__image,
  .single-product div.product .woocommerce-product-gallery__image > a {
    height: 460px !important;
    min-height: 460px;
  }
  .single-product div.product .woocommerce-product-gallery__image img {
    max-height: 460px;
  }
}

@media (max-width: 767px) {
  .single-product div.product .woocommerce-product-gallery {
    width: calc(100% + 20px) !important;
    margin-inline: -10px !important;
    margin-bottom: 22px !important;
    padding-bottom: 0 !important;
  }
  .single-product div.product .woocommerce-product-gallery .flex-viewport,
  .single-product div.product .woocommerce-product-gallery__image,
  .single-product div.product .woocommerce-product-gallery__image > a {
    height: clamp(326px, 88vw, 365px) !important;
    min-height: clamp(326px, 88vw, 365px) !important;
  }
  .single-product div.product .woocommerce-product-gallery .flex-viewport {
    border-radius: 16px;
  }
  .single-product div.product .woocommerce-product-gallery__image img {
    max-height: clamp(326px, 88vw, 365px);
    padding: 8px;
  }
  .single-product .meshwar-gallery-thumbs-shell {
    margin-top: 9px;
    padding-inline: 38px;
  }
  .single-product .meshwar-gallery-thumbs-shell .flex-control-thumbs {
    height: 66px !important;
    gap: 7px;
    scroll-snap-type: x mandatory;
  }
  .single-product .meshwar-gallery-thumbs-shell .flex-control-thumbs li {
    flex: 0 0 calc((100% - 21px) / 4) !important;
    width: calc((100% - 21px) / 4) !important;
    height: 62px !important;
  }
  .single-product .meshwar-gallery-thumbs-shell .flex-control-thumbs img {
    width: 100% !important;
    height: 62px !important;
    border-radius: 10px;
  }
  .single-product .meshwar-gallery-nav {
    width: 31px;
    height: 31px;
    font-size: 24px;
  }
  .single-product .meshwar-gallery-nav--previous {
    left: 1px;
  }
  .single-product .meshwar-gallery-nav--next {
    right: 1px;
  }
}

/* Meshwar cart page */
body.woocommerce-cart #inner-wrap { width: 100%; }
body.woocommerce-cart .content-container.site-container {
  width: min(100% - 40px, 1220px) !important;
  max-width: 1220px !important;
  margin-inline: auto !important;
  padding: 0 !important;
}
body.woocommerce-cart .content-wrap,
body.woocommerce-cart article,
body.woocommerce-cart .entry-content-wrap,
body.woocommerce-cart .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-inline: 0 !important;
}
body.woocommerce-cart .entry-content-wrap { padding-block: 34px 58px !important; }
.meshwar-cart-page-heading {
  margin-bottom: 24px;
  padding: 26px 28px;
  border: 1px solid var(--meshwar-border);
  border-radius: 18px;
  background: var(--meshwar-surface);
}
.meshwar-cart-page-heading span {
  display: inline-flex;
  margin-bottom: 5px;
  color: var(--meshwar-accent);
  font-size: 13px;
  font-weight: 800;
}
.meshwar-cart-page-heading h1 {
  margin: 0 0 7px;
  color: var(--meshwar-ink);
  font-family: Cairo, sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
}
.meshwar-cart-page-heading p { margin: 0; color: var(--meshwar-muted); font-size: 15px; }
body.woocommerce-cart .wp-block-woocommerce-cart.alignwide {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
body.woocommerce-cart .wc-block-components-sidebar-layout {
  display: flex !important;
  align-items: flex-start;
  gap: 24px;
  width: 100% !important;
}
body.woocommerce-cart .wc-block-cart__main {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--meshwar-border);
  border-radius: 18px;
  background: var(--meshwar-surface);
  overflow: hidden;
}
body.woocommerce-cart .wc-block-cart__sidebar {
  position: sticky;
  top: 100px;
  flex: 0 0 360px !important;
  width: 360px !important;
  margin: 0 !important;
  padding: 22px !important;
  border: 1px solid var(--meshwar-border);
  border-radius: 18px;
  background: var(--meshwar-surface);
}
body.woocommerce-cart .wc-block-cart-items { margin: 0 !important; }
body.woocommerce-cart .wc-block-cart-items__header th {
  padding: 15px 20px !important;
  color: var(--meshwar-muted);
  font-size: 13px;
}
body.woocommerce-cart .wc-block-cart-items__row td {
  padding: 20px !important;
  border-color: var(--meshwar-border) !important;
}
body.woocommerce-cart .wc-block-cart-item__image { width: 126px !important; }
body.woocommerce-cart .wc-block-cart-item__image img {
  width: 104px !important;
  height: 104px !important;
  border: 1px solid var(--meshwar-border);
  border-radius: 14px;
  background: var(--meshwar-bg);
  object-fit: contain;
}
body.woocommerce-cart .wc-block-components-product-name {
  color: var(--meshwar-ink) !important;
  font-family: Cairo, sans-serif;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.65 !important;
}
body.woocommerce-cart .wc-block-cart-item__prices { margin-top: 7px; }
body.woocommerce-cart .wc-block-components-product-price__value,
body.woocommerce-cart .wc-block-cart-item__total .wc-block-formatted-money-amount {
  color: var(--meshwar-accent);
  font-weight: 800;
}
body.woocommerce-cart .wc-block-components-product-price__regular { color: var(--meshwar-muted); }
body.woocommerce-cart .wc-block-components-product-metadata {
  color: var(--meshwar-muted);
  font-size: 12px;
  line-height: 1.7;
}
body.woocommerce-cart .wc-block-components-quantity-selector {
  min-width: 112px;
  border-color: var(--meshwar-border) !important;
  border-radius: 10px !important;
}
body.woocommerce-cart .wc-block-components-quantity-selector__button { color: var(--meshwar-ink) !important; }
body.woocommerce-cart .wc-block-cart-item__remove-link {
  width: 32px !important;
  height: 32px !important;
  border-radius: 9px !important;
  color: var(--meshwar-muted) !important;
}
body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
  background: rgba(249, 115, 22, .1) !important;
  color: var(--meshwar-accent) !important;
}
body.woocommerce-cart .wc-block-components-totals-wrapper { border-color: var(--meshwar-border) !important; }
body.woocommerce-cart .wc-block-components-totals-footer-item {
  color: var(--meshwar-ink);
  font-size: 17px;
  font-weight: 800;
}
body.woocommerce-cart .wc-block-cart__submit-button {
  min-height: 54px;
  border-radius: 12px !important;
  background: var(--meshwar-accent) !important;
  color: var(--meshwar-surface) !important;
  font-family: Cairo, sans-serif;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(249, 115, 22, .2);
}
body.woocommerce-cart .wc-block-cart__submit-button:hover { background: var(--meshwar-ink) !important; }
.meshwar-cart-extras { margin-top: 52px; }
.meshwar-cart-related,
.meshwar-cart-faq { margin-top: 38px; }
.meshwar-cart-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.meshwar-cart-section-heading h2 {
  margin: 0 0 5px;
  color: var(--meshwar-ink);
  font-family: Cairo, sans-serif;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.35;
}
.meshwar-cart-section-heading p { margin: 0; color: var(--meshwar-muted); font-size: 14px; }
.meshwar-cart-section-heading > a {
  flex: 0 0 auto;
  color: var(--meshwar-accent);
  font-size: 14px;
  font-weight: 800;
}
.meshwar-cart-related ul.products { margin: 0 !important; }
.meshwar-cart-faq {
  padding: 28px;
  border: 1px solid var(--meshwar-border);
  border-radius: 18px;
  background: var(--meshwar-surface);
}
.meshwar-cart-faq__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.meshwar-cart-faq details {
  padding: 0 16px;
  border: 1px solid var(--meshwar-border);
  border-radius: 12px;
  background: var(--meshwar-bg);
}
.meshwar-cart-faq summary {
  position: relative;
  padding: 16px 0 16px 30px;
  color: var(--meshwar-ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.meshwar-cart-faq summary::-webkit-details-marker { display: none; }
.meshwar-cart-faq summary::after {
  content: "+";
  position: absolute;
  left: 0;
  top: 50%;
  color: var(--meshwar-accent);
  font-size: 22px;
  line-height: 1;
  transform: translateY(-50%);
}
.meshwar-cart-faq details[open] summary::after { content: "−"; }
.meshwar-cart-faq details p {
  margin: 0;
  padding: 0 0 16px;
  color: var(--meshwar-muted);
  font-size: 13px;
  line-height: 1.9;
}
@media (max-width: 1024px) {
  body.woocommerce-cart .content-container.site-container { width: min(100% - 28px, 960px) !important; }
  body.woocommerce-cart .wc-block-components-sidebar-layout { gap: 16px; }
  body.woocommerce-cart .wc-block-cart__sidebar {
    flex-basis: 310px !important;
    width: 310px !important;
    padding: 18px !important;
  }
}
@media (max-width: 767px) {
  body.woocommerce-cart .content-container.site-container { width: calc(100% - 24px) !important; }
  body.woocommerce-cart .entry-content-wrap { padding-block: 18px 42px !important; }
  .meshwar-cart-page-heading { margin-bottom: 14px; padding: 18px; border-radius: 16px; }
  .meshwar-cart-page-heading span { font-size: 11px; }
  .meshwar-cart-page-heading h1 { margin-bottom: 4px; font-size: 26px; }
  .meshwar-cart-page-heading p { font-size: 12px; line-height: 1.7; }
  body.woocommerce-cart .wc-block-components-sidebar-layout { display: block !important; }
  body.woocommerce-cart .wc-block-cart__main,
  body.woocommerce-cart .wc-block-cart__sidebar { width: 100% !important; border-radius: 16px; }
  body.woocommerce-cart .wc-block-cart__sidebar {
    position: static;
    margin-top: 14px !important;
    padding: 16px !important;
  }
  body.woocommerce-cart .wc-block-cart-items__row {
    display: flex !important;
    align-items: flex-start;
    gap: 11px;
    width: 100% !important;
    padding: 14px !important;
    border-bottom: 1px solid var(--meshwar-border);
  }
  body.woocommerce-cart .wc-block-cart-items__row:last-child { border-bottom: 0; }
  body.woocommerce-cart .wc-block-cart-items__row td {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
  }
  body.woocommerce-cart .wc-block-cart-item__image { flex: 0 0 82px; width: 82px !important; }
  body.woocommerce-cart .wc-block-cart-item__image img {
    width: 82px !important;
    height: 82px !important;
    border-radius: 12px;
  }
  body.woocommerce-cart .wc-block-cart-item__product {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
  }
  body.woocommerce-cart .wc-block-cart-item__total { display: none !important; }
  body.woocommerce-cart .wc-block-components-product-name {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px !important;
    line-height: 1.55 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  body.woocommerce-cart .wc-block-components-product-metadata { display: none; }
  body.woocommerce-cart .wc-block-cart-item__prices { margin: 6px 0 8px; }
  body.woocommerce-cart .wc-block-cart-item__quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px !important;
  }
  body.woocommerce-cart .wc-block-components-quantity-selector { min-width: 104px; }
  body.woocommerce-cart .wc-block-cart__submit-button { min-height: 52px; font-size: 15px; }
  .meshwar-cart-extras { margin-top: 34px; }
  .meshwar-cart-related,
  .meshwar-cart-faq { margin-top: 30px; }
  .meshwar-cart-section-heading { align-items: center; margin-bottom: 14px; }
  .meshwar-cart-section-heading h2 { font-size: 22px; }
  .meshwar-cart-section-heading p { font-size: 12px; }
  .meshwar-cart-section-heading > a { font-size: 12px; }
  .meshwar-cart-related ul.products {
    display: flex !important;
    width: auto !important;
    margin-inline: -12px !important;
    padding: 2px 12px 12px !important;
    gap: 12px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .meshwar-cart-related ul.products::-webkit-scrollbar { display: none; }
  .meshwar-cart-related ul.products li.product {
    flex: 0 0 min(76vw, 270px) !important;
    width: min(76vw, 270px) !important;
    margin: 0 !important;
    scroll-snap-align: start;
  }
  .meshwar-cart-faq { padding: 18px 14px; border-radius: 16px; }
  .meshwar-cart-faq__list { grid-template-columns: 1fr; gap: 9px; }
  .meshwar-cart-faq details { padding-inline: 13px; }
  .meshwar-cart-faq summary { padding-block: 14px; font-size: 13px; }
}

/* Mobile cart table normalization */
@media (max-width: 767px) {
  body.woocommerce-cart table.wc-block-cart-items,
  body.woocommerce-cart table.wc-block-cart-items tbody {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  body.woocommerce-cart .wc-block-cart-items__row td.wc-block-cart-item__total {
    display: none !important;
  }
}
/* Cart recommendation grid */
@media (min-width: 768px) {
  .meshwar-cart-related ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px !important;
    width: 100% !important;
  }
  .meshwar-cart-related ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
  }
}
/* Cart recommendations match the single-product recommendations */
.meshwar-cart-related ul.products li.product {
  height: auto !important;
  min-height: 0 !important;
  transition: none !important;
  transform: none !important;
}
.meshwar-cart-related ul.products li.product:hover {
  border-color: var(--meshwar-border) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .055) !important;
  transform: none !important;
}
.meshwar-cart-related li.product > a.woocommerce-loop-image-link {
  flex: 0 0 224px !important;
  height: 224px !important;
  min-height: 224px !important;
}
.meshwar-cart-related li.product .product-details.entry-content-wrap {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column;
  width: 100% !important;
  margin: 0 !important;
  padding: 16px 0 0 !important;
}
.meshwar-cart-related li.product .product-action-wrap {
  margin-top: auto;
}
.meshwar-cart-related li.product .button,
.meshwar-cart-related li.product .button:hover,
.meshwar-cart-related li.product .button:focus {
  filter: none !important;
  transition: none !important;
  transform: none !important;
}
.meshwar-cart-related li.product .button .kadence-svg-iconset {
  display: none !important;
}
.meshwar-cart-related li.product,
.meshwar-cart-related li.product *,
.meshwar-cart-related li.product *::before,
.meshwar-cart-related li.product *::after {
  animation: none !important;
}

@media (max-width: 767px) {
  .meshwar-cart-related li.product > a.woocommerce-loop-image-link {
    flex-basis: 218px !important;
    height: 218px !important;
    min-height: 218px !important;
  }
  .meshwar-cart-related li.product .product-details.entry-content-wrap {
    padding-top: 14px !important;
  }
}
/* Keep cart recommendation images static */
.meshwar-cart-related .woocommerce-loop-image-link .secondary-product-image {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transform: none !important;
  transition: none !important;
}
.meshwar-cart-related .woocommerce-loop-image-link .attachment-woocommerce_thumbnail:not(.secondary-product-image),
.meshwar-cart-related .woocommerce-loop-image-link:hover .attachment-woocommerce_thumbnail:not(.secondary-product-image) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Meshwar streamlined WooCommerce checkout */
body.woocommerce-checkout #inner-wrap {
  width: 100%;
}
body.woocommerce-checkout .content-container.site-container {
  width: min(100% - 40px, 1220px) !important;
  max-width: 1220px !important;
  margin-inline: auto !important;
  padding: 0 !important;
}
body.woocommerce-checkout .content-wrap,
body.woocommerce-checkout article.single-entry,
body.woocommerce-checkout article.single-entry > .entry-content-wrap,
body.woocommerce-checkout article.single-entry .single-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-inline: 0 !important;
}
body.woocommerce-checkout article.single-entry > .entry-content-wrap {
  padding-block: 34px 60px !important;
}
.meshwar-checkout-page-heading {
  margin-bottom: 20px;
  padding: 26px 28px;
  border: 1px solid var(--meshwar-border);
  border-radius: 18px;
  background: var(--meshwar-surface);
}
.meshwar-checkout-page-heading > span {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--meshwar-accent);
  font-size: 13px;
  font-weight: 800;
}
.meshwar-checkout-page-heading h1 {
  margin: 0 0 7px;
  color: var(--meshwar-ink);
  font-family: Cairo, sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.3;
}
.meshwar-checkout-page-heading p {
  margin: 0;
  color: var(--meshwar-muted);
  font-size: 14px;
}
.meshwar-checkout-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.meshwar-checkout-trust small {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(249, 115, 22, .09);
  color: var(--meshwar-ink);
  font-size: 11px;
  font-weight: 700;
}
body.woocommerce-checkout .woocommerce-form-coupon-toggle {
  margin-bottom: 16px;
}
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  margin: 0;
  padding: 15px 18px;
  border: 1px solid var(--meshwar-border);
  border-radius: 14px;
  background: var(--meshwar-bg);
  color: var(--meshwar-ink);
}
body.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-areas:
    "customer order-title"
    "customer order-review";
  grid-template-columns: minmax(0, 1fr) 410px;
  column-gap: 24px;
  align-items: start;
}
body.woocommerce-checkout form.checkout > .col2-set {
  grid-area: customer;
  width: 100% !important;
  float: none !important;
}
body.woocommerce-checkout form.checkout > #order_review_heading {
  grid-area: order-title;
  width: 100% !important;
  margin: 0 !important;
  padding: 22px 22px 0;
  border: 1px solid var(--meshwar-border);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: var(--meshwar-surface);
  font-family: Cairo, sans-serif;
  font-size: 21px;
}
body.woocommerce-checkout form.checkout > #order_review {
  grid-area: order-review;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px 22px 22px;
  border: 1px solid var(--meshwar-border);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: var(--meshwar-surface);
}
body.woocommerce-checkout .woocommerce-billing-fields {
  padding: 24px;
  border: 1px solid var(--meshwar-border);
  border-radius: 18px;
  background: var(--meshwar-surface);
}
body.woocommerce-checkout .woocommerce-billing-fields > h3 {
  margin: 0 0 18px;
  color: var(--meshwar-ink);
  font-family: Cairo, sans-serif;
  font-size: 22px;
}
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
body.woocommerce-checkout .meshwar-checkout-field--address {
  grid-column: 1 / -1;
}
body.woocommerce-checkout .woocommerce-billing-fields label {
  margin-bottom: 7px;
  color: var(--meshwar-ink);
  font-size: 13px;
  font-weight: 800;
}
body.woocommerce-checkout .woocommerce-billing-fields label .required {
  color: var(--meshwar-accent);
}
body.woocommerce-checkout .woocommerce-input-wrapper {
  display: block;
  width: 100%;
}
body.woocommerce-checkout .woocommerce-billing-fields input.input-text {
  width: 100%;
  min-height: 52px;
  padding: 11px 14px;
  border: 1px solid var(--meshwar-border);
  border-radius: 12px;
  background: var(--meshwar-bg);
  color: var(--meshwar-ink);
  font-family: Cairo, sans-serif;
  font-size: 14px;
  box-shadow: none;
}
body.woocommerce-checkout .woocommerce-billing-fields input.input-text:focus {
  border-color: var(--meshwar-accent);
  outline: 3px solid rgba(249, 115, 22, .13);
  background: var(--meshwar-surface);
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table {
  margin: 0 0 16px !important;
  border: 0 !important;
  font-size: 13px;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
  padding: 13px 4px !important;
  border-color: var(--meshwar-border) !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total {
  color: var(--meshwar-ink);
  font-size: 16px;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total .amount {
  color: var(--meshwar-accent);
  font-size: 19px;
}
body.woocommerce-checkout #payment {
  border-radius: 14px !important;
  background: var(--meshwar-bg) !important;
}
body.woocommerce-checkout #payment ul.payment_methods {
  padding: 16px !important;
  border-color: var(--meshwar-border) !important;
}
body.woocommerce-checkout #payment .payment_box {
  margin: 10px 0 0 !important;
  padding: 12px !important;
  border-radius: 10px;
  background: var(--meshwar-surface) !important;
  color: var(--meshwar-muted);
  font-size: 12px;
  line-height: 1.8;
}
body.woocommerce-checkout #payment .payment_box::before {
  border-bottom-color: var(--meshwar-surface) !important;
}
body.woocommerce-checkout #payment .place-order {
  padding: 16px !important;
}
body.woocommerce-checkout #place_order {
  width: 100%;
  min-height: 54px;
  margin: 0 !important;
  border: 0;
  border-radius: 12px;
  background: var(--meshwar-accent);
  color: var(--meshwar-surface);
  font-family: Cairo, sans-serif;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(249, 115, 22, .2);
}
body.woocommerce-checkout #place_order:hover {
  background: var(--meshwar-ink);
}
body.woocommerce-checkout .woocommerce-privacy-policy-text {
  color: var(--meshwar-muted);
  font-size: 11px;
  line-height: 1.8;
}
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-message {
  border-radius: 12px;
}
@media (max-width: 1024px) {
  body.woocommerce-checkout .content-container.site-container {
    width: min(100% - 28px, 960px) !important;
  }
  body.woocommerce-checkout form.checkout {
    grid-template-columns: minmax(0, 1fr) 350px;
    column-gap: 16px;
  }
}
@media (max-width: 767px) {
  body.woocommerce-checkout .content-container.site-container {
    width: calc(100% - 24px) !important;
  }
  body.woocommerce-checkout article.single-entry > .entry-content-wrap {
    padding-block: 18px 42px !important;
  }
  .meshwar-checkout-page-heading {
    margin-bottom: 14px;
    padding: 18px;
    border-radius: 16px;
  }
  .meshwar-checkout-page-heading > span {
    font-size: 11px;
  }
  .meshwar-checkout-page-heading h1 {
    margin-bottom: 5px;
    font-size: 25px;
  }
  .meshwar-checkout-page-heading p {
    font-size: 12px;
    line-height: 1.75;
  }
  .meshwar-checkout-trust {
    gap: 6px;
    margin-top: 12px;
  }
  .meshwar-checkout-trust small {
    padding: 6px 8px;
    font-size: 10px;
  }
  body.woocommerce-checkout .woocommerce-form-coupon-toggle {
    margin-bottom: 12px;
  }
  body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    padding: 12px 13px;
    border-radius: 12px;
    font-size: 12px;
  }
  body.woocommerce-checkout form.checkout {
    display: block;
  }
  body.woocommerce-checkout .woocommerce-billing-fields {
    padding: 18px 14px;
    border-radius: 16px;
  }
  body.woocommerce-checkout .woocommerce-billing-fields > h3 {
    margin-bottom: 14px;
    font-size: 19px;
  }
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  body.woocommerce-checkout .meshwar-checkout-field--address {
    grid-column: auto;
  }
  body.woocommerce-checkout .woocommerce-billing-fields input.input-text {
    min-height: 50px;
    font-size: 13px;
  }
  body.woocommerce-checkout form.checkout > #order_review_heading {
    margin-top: 14px !important;
    padding: 18px 16px 0;
    border-radius: 16px 16px 0 0;
    font-size: 19px;
  }
  body.woocommerce-checkout form.checkout > #order_review {
    padding: 10px 16px 16px;
    border-radius: 0 0 16px 16px;
  }
  body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
  body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    padding-block: 11px !important;
    font-size: 12px;
  }
  body.woocommerce-checkout #payment ul.payment_methods,
  body.woocommerce-checkout #payment .place-order {
    padding: 13px !important;
  }
  body.woocommerce-checkout #place_order {
    min-height: 52px;
    font-size: 15px;
  }
}

/* Hide checkout fields that are intentionally handled in the background */
body.woocommerce-checkout #billing_country_field,
body.woocommerce-checkout .woocommerce-additional-fields {
  display: none !important;
}

/* Meshwar Market — WooCommerce thank-you page */
body.woocommerce-order-received {
  background: var(--meshwar-bg);
  color: var(--meshwar-ink);
  font-family: Cairo, sans-serif;
}
body.woocommerce-order-received .content-container.site-container {
  width: min(calc(100% - 40px), 1120px) !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
}
body.woocommerce-order-received article.single-entry,
body.woocommerce-order-received article.single-entry > .entry-content-wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-inline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.woocommerce-order-received article.single-entry > .entry-content-wrap {
  padding-block: 36px 56px !important;
}
body.woocommerce-order-received .woocommerce,
body.woocommerce-order-received .woocommerce-order {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
}
body.woocommerce-order-received .woocommerce-thankyou-order-received {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 24px;
  padding: 30px 24px;
  border: 1px solid rgba(249, 115, 22, .28);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #fff8f2 100%);
  color: var(--meshwar-ink);
  text-align: center;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.45;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}
body.woocommerce-order-received .woocommerce-thankyou-order-received::before {
  content: "✓";
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 50%;
  background: var(--meshwar-accent);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(249, 115, 22, .24);
}
body.woocommerce-order-received .woocommerce-thankyou-order-received::after {
  content: "طلبك الآن قيد التأكيد، وسنتواصل معك عند بدء عملية التوصيل.";
  margin-top: 7px;
  color: var(--meshwar-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}
body.woocommerce-order-received .woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px !important;
  padding: 0 !important;
}
body.woocommerce-order-received .woocommerce-order-overview li {
  min-width: 0;
  margin: 0 !important;
  padding: 15px 16px !important;
  border: 1px solid var(--meshwar-border) !important;
  border-radius: 14px;
  background: var(--meshwar-surface);
  color: var(--meshwar-muted);
  font-size: 11px;
  line-height: 1.7;
}
body.woocommerce-order-received .woocommerce-order-overview li strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--meshwar-ink);
  font-size: 15px;
  font-weight: 800;
}
body.woocommerce-order-received .woocommerce-order-overview__email,
body.woocommerce-order-received .woocommerce-customer-details--email,
body.woocommerce-order-received address br + a[href^="mailto:"] {
  display: none !important;
}
body.woocommerce-order-received .woocommerce-order-overview + p {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-right: 4px solid var(--meshwar-accent);
  border-radius: 12px;
  background: #fff7ed;
  color: var(--meshwar-ink);
  font-size: 14px;
  line-height: 1.85;
}
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details {
  margin: 0 0 20px !important;
  padding: 24px;
  border: 1px solid var(--meshwar-border);
  border-radius: 18px;
  background: var(--meshwar-surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
}
body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-column__title {
  margin: 0 0 17px !important;
  color: var(--meshwar-ink);
  font-family: Cairo, sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.5;
}
body.woocommerce-order-received .woocommerce-order-details table {
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
}
body.woocommerce-order-received .woocommerce-order-details th,
body.woocommerce-order-received .woocommerce-order-details td {
  padding: 14px 12px !important;
  border-width: 0 0 1px !important;
  border-color: var(--meshwar-border) !important;
  color: var(--meshwar-ink);
  font-size: 14px;
  text-align: right;
  vertical-align: middle;
}
body.woocommerce-order-received .woocommerce-order-details thead th {
  background: #f8fafc;
  color: var(--meshwar-muted);
  font-size: 12px;
  font-weight: 800;
}
body.woocommerce-order-received .woocommerce-order-details thead th:first-child {
  border-radius: 0 10px 0 0;
}
body.woocommerce-order-received .woocommerce-order-details thead th:last-child {
  border-radius: 10px 0 0 0;
}
body.woocommerce-order-received .woocommerce-order-details .product-name a {
  color: var(--meshwar-ink);
  font-weight: 700;
  text-decoration: none;
}
body.woocommerce-order-received .woocommerce-order-details .amount,
body.woocommerce-order-received .woocommerce-order-details tfoot tr:last-child td {
  color: var(--meshwar-accent);
  font-weight: 800;
}
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns {
  display: block;
}
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-column {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
}
body.woocommerce-order-received .woocommerce-customer-details address {
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid var(--meshwar-border) !important;
  border-radius: 14px !important;
  background: #f8fafc;
  color: var(--meshwar-ink);
  font-style: normal;
  font-size: 14px;
  line-height: 2;
}
body.woocommerce-order-received .woocommerce-customer-details address p {
  margin: 7px 0 0 !important;
}
@media (max-width: 767px) {
  body.woocommerce-order-received .content-container.site-container {
    width: calc(100% - 24px) !important;
  }
  body.woocommerce-order-received article.single-entry > .entry-content-wrap {
    padding-block: 18px 36px !important;
  }
  body.woocommerce-order-received .woocommerce-thankyou-order-received {
    margin-bottom: 14px;
    padding: 23px 15px;
    border-radius: 16px;
    font-size: 23px;
    line-height: 1.5;
  }
  body.woocommerce-order-received .woocommerce-thankyou-order-received::before {
    width: 48px;
    height: 48px;
    margin-bottom: 11px;
    font-size: 24px;
  }
  body.woocommerce-order-received .woocommerce-thankyou-order-received::after {
    max-width: 290px;
    font-size: 12px;
  }
  body.woocommerce-order-received .woocommerce-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 13px !important;
  }
  body.woocommerce-order-received .woocommerce-order-overview li {
    padding: 12px !important;
    border-radius: 12px;
    font-size: 10px;
  }
  body.woocommerce-order-received .woocommerce-order-overview li strong {
    font-size: 13px;
  }
  body.woocommerce-order-received .woocommerce-order-overview + p {
    margin-bottom: 14px;
    padding: 12px;
    font-size: 12px;
  }
  body.woocommerce-order-received .woocommerce-order-details,
  body.woocommerce-order-received .woocommerce-customer-details {
    margin-bottom: 14px !important;
    padding: 16px 13px;
    border-radius: 16px;
  }
  body.woocommerce-order-received .woocommerce-order-details__title,
  body.woocommerce-order-received .woocommerce-column__title {
    margin-bottom: 12px !important;
    font-size: 20px;
  }
  body.woocommerce-order-received .woocommerce-order-details {
    overflow: hidden;
  }
  body.woocommerce-order-received .woocommerce-order-details table,
  body.woocommerce-order-received .woocommerce-order-details tbody,
  body.woocommerce-order-received .woocommerce-order-details tfoot,
  body.woocommerce-order-received .woocommerce-order-details tr,
  body.woocommerce-order-received .woocommerce-order-details th,
  body.woocommerce-order-received .woocommerce-order-details td {
    display: block;
    width: 100%;
  }
  body.woocommerce-order-received .woocommerce-order-details thead {
    display: none;
  }
  body.woocommerce-order-received .woocommerce-order-details tbody tr {
    margin-bottom: 10px;
    padding: 11px 12px;
    border: 1px solid var(--meshwar-border);
    border-radius: 12px;
    background: #f8fafc;
  }
  body.woocommerce-order-received .woocommerce-order-details tbody th,
  body.woocommerce-order-received .woocommerce-order-details tbody td {
    padding: 4px 0 !important;
    border: 0 !important;
    font-size: 12px;
  }
  body.woocommerce-order-received .woocommerce-order-details tfoot tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--meshwar-border);
  }
  body.woocommerce-order-received .woocommerce-order-details tfoot tr:last-child {
    border-bottom: 0;
  }
  body.woocommerce-order-received .woocommerce-order-details tfoot th,
  body.woocommerce-order-received .woocommerce-order-details tfoot td {
    width: auto;
    padding: 0 !important;
    border: 0 !important;
    font-size: 12px;
  }
  body.woocommerce-order-received .woocommerce-order-details tfoot td {
    text-align: left;
  }
  body.woocommerce-order-received .woocommerce-customer-details address {
    padding: 14px !important;
    border-radius: 12px !important;
    font-size: 12px;
    line-height: 1.9;
  }
}
@media (max-width: 390px) {
  body.woocommerce-order-received .woocommerce-order-overview {
    grid-template-columns: 1fr;
  }
}

/* Thank-you overview alignment and labelled customer information */
body.woocommerce-order-received .woocommerce-order-overview {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  align-items: stretch;
  width: 100% !important;
}
body.woocommerce-order-received .woocommerce-order-overview li,
body.woocommerce-order-received .woocommerce-order-overview li.woocommerce-order-overview__payment-method {
  display: block !important;
  grid-column: auto !important;
  grid-row: auto !important;
  width: auto !important;
  max-width: none !important;
  min-height: 80px;
  float: none !important;
  clear: none !important;
}
body.woocommerce-order-received .woocommerce-customer-details {
  display: none !important;
}
body.woocommerce-order-received .meshwar-customer-summary {
  margin: 0 0 20px;
  padding: 24px;
  border: 1px solid var(--meshwar-border);
  border-radius: 18px;
  background: var(--meshwar-surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
}
body.woocommerce-order-received .meshwar-customer-summary h2 {
  margin: 0 0 17px;
  color: var(--meshwar-ink);
  font-family: Cairo, sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.5;
}
body.woocommerce-order-received .meshwar-customer-summary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
body.woocommerce-order-received .meshwar-customer-summary__row {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--meshwar-border);
  border-radius: 14px;
  background: #f8fafc;
}
body.woocommerce-order-received .meshwar-customer-summary dt {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff1e7;
  color: var(--meshwar-accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}
body.woocommerce-order-received .meshwar-customer-summary dd {
  margin: 0;
  color: var(--meshwar-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
body.woocommerce-order-received .meshwar-customer-summary__phone {
  direction: ltr;
  text-align: right;
  unicode-bidi: isolate;
}
@media (max-width: 900px) {
  body.woocommerce-order-received .woocommerce-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.woocommerce-order-received .meshwar-customer-summary dl {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  body.woocommerce-order-received .woocommerce-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.woocommerce-order-received .woocommerce-order-overview li,
  body.woocommerce-order-received .woocommerce-order-overview li.woocommerce-order-overview__payment-method {
    min-height: 0;
  }
  body.woocommerce-order-received .meshwar-customer-summary {
    margin-bottom: 14px;
    padding: 16px 13px;
    border-radius: 16px;
  }
  body.woocommerce-order-received .meshwar-customer-summary h2 {
    margin-bottom: 12px;
    font-size: 20px;
  }
  body.woocommerce-order-received .meshwar-customer-summary dl {
    gap: 8px;
  }
  body.woocommerce-order-received .meshwar-customer-summary__row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
  }
  body.woocommerce-order-received .meshwar-customer-summary dt {
    justify-content: center;
    margin: 0;
    font-size: 10px;
  }
  body.woocommerce-order-received .meshwar-customer-summary dd {
    font-size: 12px;
  }
}
@media (max-width: 360px) {
  body.woocommerce-order-received .woocommerce-order-overview {
    grid-template-columns: 1fr !important;
  }
}

/* Never expose order billing email on the public store. */
body .woocommerce-order-overview__email,
body .woocommerce-customer-details--email,
body .woocommerce ul.order_details li.email,
body .woocommerce ul.order_details li[class~="email"],
body .woocommerce-account .woocommerce-customer-details--email,
body .social-link-email,
body a[href^="mailto:"] {
  display: none !important;
}

/* Lock the four public order facts to one desktop row. */
@media (min-width: 901px) {
  body.woocommerce-order-received .woocommerce-order-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
  }
  body.woocommerce-order-received .woocommerce-order-overview__order {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  body.woocommerce-order-received .woocommerce-order-overview__date {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }
  body.woocommerce-order-received .woocommerce-order-overview__total {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }
  body.woocommerce-order-received .woocommerce-order-overview__payment-method {
    grid-column: 4 !important;
    grid-row: 1 !important;
  }
}

/* Final desktop lock: four equal cards, no wrapping. */
@media (min-width: 901px) {
  body.woocommerce-order-received ul.woocommerce-order-overview,
  body.woocommerce-order-received .woocommerce-order-overview {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
  }
  body.woocommerce-order-received ul.woocommerce-order-overview > li,
  body.woocommerce-order-received .woocommerce-order-overview > li {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
  }
  body.woocommerce-order-received ul.woocommerce-order-overview > li[style*="display: none"],
  body.woocommerce-order-received .woocommerce-order-overview > li[style*="display: none"] {
    flex: 0 0 0 !important;
    width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
}

/* WooCommerce clearfix pseudo-elements must not consume responsive card slots. */
body.woocommerce-order-received ul.woocommerce-order-overview::before,
body.woocommerce-order-received ul.woocommerce-order-overview::after,
body.woocommerce-order-received .woocommerce-order-overview::before,
body.woocommerce-order-received .woocommerce-order-overview::after {
  content: none !important;
  display: none !important;
}

/* Site-wide inline product search — desktop header and responsive mobile drawer. */
body .search-toggle-open-container {
  display: block !important;
  width: auto;
}
body .meshwar-inline-product-search {
  display: flex;
  direction: rtl;
  align-items: center;
  width: clamp(180px, 15vw, 230px);
  height: 42px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--meshwar-border);
  border-radius: 12px;
  background: var(--meshwar-surface);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}
body .meshwar-inline-product-search:focus-within {
  border-color: var(--meshwar-accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .12);
}
body .meshwar-inline-product-search__input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  padding: 8px 13px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--meshwar-ink) !important;
  font-family: Cairo, sans-serif;
  font-size: 12px;
  box-shadow: none !important;
  -webkit-appearance: none;
}
body .meshwar-inline-product-search__input::placeholder {
  color: var(--meshwar-muted);
  opacity: .78;
}
body .meshwar-inline-product-search__button {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  place-items: center;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--meshwar-muted) !important;
  box-shadow: none !important;
  cursor: pointer;
}
body .meshwar-inline-product-search__button:hover,
body .meshwar-inline-product-search__button:focus-visible {
  background: #fff7ed !important;
  color: var(--meshwar-accent) !important;
}
body #search-drawer {
  display: none !important;
}
body .meshwar-mobile-search-slot {
  display: none !important;
}
body .meshwar-mobile-menu-search {
  display: none;
}
@media (max-width: 1024px) {
  body .meshwar-mobile-menu-search {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(203, 213, 225, .72);
  }
  body .meshwar-mobile-menu-search .meshwar-inline-product-search {
    width: 100%;
    max-width: none;
    height: 44px;
    border-radius: 12px;
    background: var(--meshwar-surface);
  }
}
@media (max-width: 767px) {
  body .meshwar-inline-product-search {
    width: clamp(145px, 48vw, 190px);
    height: 40px;
    border-radius: 11px;
  }
  body .meshwar-inline-product-search__input {
    padding-inline: 10px !important;
    font-size: 11px;
  }
  body .meshwar-inline-product-search__button {
    flex-basis: 38px;
    width: 38px;
  }
}


/* Meshwar Market informational, contact and policy pages. */
.meshwar-info-page {
  direction: rtl;
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 64px;
  color: #0F172A;
  font-family: Cairo;
}
.meshwar-info-page,
.meshwar-info-page * {
  box-sizing: border-box;
}
.meshwar-info-page > .wp-block-group__inner-container,
.meshwar-info-page > .wp-block-group__inner-container > * {
  max-width: none;
}
.meshwar-info-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid #CBD5E1;
  border-radius: 16px;
  background: #0F172A;
  color: #FFFFFF;
}
.meshwar-info-hero::after {
  content: "";
  position: absolute;
  inset-inline-start: -56px;
  bottom: -72px;
  width: 220px;
  height: 220px;
  border: 38px solid rgba(249, 115, 22, .16);
  border-radius: 50%;
  pointer-events: none;
}
.meshwar-info-page .meshwar-eyebrow {
  margin: 0 0 10px;
  color: #F97316;
  font-size: 14px;
  font-weight: 800;
}
.meshwar-info-page .meshwar-info-title {
  max-width: 820px;
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.3;
}
.meshwar-info-page .meshwar-info-lead {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 16px 0 0;
  color: #CBD5E1;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 2;
}
.meshwar-info-page .meshwar-info-actions {
  margin-top: 24px;
}
.meshwar-info-page .meshwar-primary-button .wp-block-button__link {
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: 10px;
  background: #F97316;
  color: #FFFFFF;
  font-family: Cairo;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .14);
}
.meshwar-info-page .meshwar-primary-button .wp-block-button__link:hover,
.meshwar-info-page .meshwar-primary-button .wp-block-button__link:focus-visible {
  background: #F97316;
  color: #FFFFFF;
  filter: brightness(.94);
}
.meshwar-content-section,
.meshwar-info-cta,
.meshwar-form-panel {
  margin: 16px 0;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid #CBD5E1;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}
.meshwar-section-soft {
  border-color: rgba(249, 115, 22, .28);
  background: #FAFAFA;
}
.meshwar-info-page h2 {
  margin: 0 0 14px;
  color: #0F172A;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.45;
}
.meshwar-info-page h3 {
  margin: 0 0 8px;
  color: #0F172A;
  font-size: 19px;
  font-weight: 800;
}
.meshwar-info-page p {
  color: #64748B;
  font-size: 16px;
  line-height: 2;
}
.meshwar-info-page p:last-child {
  margin-bottom: 0;
}
.meshwar-info-page strong {
  color: #0F172A;
  font-weight: 800;
}
.meshwar-feature-grid,
.meshwar-fact-grid,
.meshwar-contact-layout {
  gap: 16px;
  margin: 16px 0;
}
.meshwar-feature-panel,
.meshwar-mini-fact {
  min-width: 0;
  padding: 24px;
  border: 1px solid #CBD5E1;
  border-radius: 16px;
  background: #FFFFFF;
}
.meshwar-feature-panel {
  border-top: 4px solid #F97316;
}
.meshwar-mini-fact p {
  margin: 0;
}
.meshwar-info-separator {
  margin: 22px 0;
  border-color: #CBD5E1;
}
.meshwar-info-cta {
  border-color: #F97316;
  background: #FAFAFA;
}
.meshwar-contact-layout {
  align-items: stretch;
}
.meshwar-contact-layout > .wp-block-column {
  display: flex;
}
.meshwar-contact-layout > .wp-block-column > .wp-block-group {
  width: 100%;
  margin: 0;
}
.meshwar-form-panel {
  background: #FFFFFF;
}
.meshwar-contact-page .wpforms-container {
  margin: 18px 0 0;
}
.meshwar-contact-page .wpforms-container .wpforms-field {
  padding: 8px 0;
}
.meshwar-contact-page .wpforms-container label.wpforms-field-label {
  margin-bottom: 7px;
  color: #0F172A;
  font-family: Cairo;
  font-weight: 800;
}
.meshwar-contact-page .wpforms-container input,
.meshwar-contact-page .wpforms-container textarea {
  width: 100% !important;
  max-width: none !important;
  min-height: 48px;
  padding: 11px 14px !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 10px !important;
  background: #FFFFFF !important;
  color: #0F172A !important;
  font-family: Cairo !important;
  box-shadow: none !important;
}
.meshwar-contact-page .wpforms-container textarea {
  min-height: 150px;
  resize: vertical;
}
.meshwar-contact-page .wpforms-container input:focus,
.meshwar-contact-page .wpforms-container textarea:focus {
  border-color: #F97316 !important;
  outline: 3px solid rgba(249, 115, 22, .14) !important;
}
.meshwar-contact-page .wpforms-container button[type="submit"] {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  border: 0 !important;
  border-radius: 10px !important;
  background: #F97316 !important;
  color: #FFFFFF !important;
  font-family: Cairo !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 20px rgba(249, 115, 22, .18);
}
.meshwar-contact-page .wpforms-container .wpforms-error {
  color: #0F172A !important;
}
@media (max-width: 900px) {
  .meshwar-info-page {
    width: min(100% - 24px, 760px);
    margin-top: 20px;
  }
  .meshwar-info-page .meshwar-feature-grid,
  .meshwar-info-page .meshwar-fact-grid,
  .meshwar-info-page .meshwar-contact-layout {
    flex-wrap: wrap !important;
  }
  .meshwar-info-page .meshwar-feature-grid > .wp-block-column,
  .meshwar-info-page .meshwar-fact-grid > .wp-block-column {
    flex-basis: calc(50% - 8px) !important;
  }
  .meshwar-contact-layout > .wp-block-column {
    flex-basis: 100% !important;
  }
}
@media (max-width: 600px) {
  .meshwar-info-page {
    width: calc(100% - 20px);
    margin: 12px auto 44px;
  }
  .meshwar-info-hero {
    padding: 28px 20px;
    border-radius: 14px;
  }
  .meshwar-info-page .meshwar-info-title {
    font-size: 29px;
  }
  .meshwar-info-page .meshwar-info-lead,
  .meshwar-info-page p {
    font-size: 14px;
    line-height: 1.9;
  }
  .meshwar-content-section,
  .meshwar-info-cta,
  .meshwar-form-panel,
  .meshwar-feature-panel,
  .meshwar-mini-fact {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .meshwar-info-page .meshwar-feature-grid > .wp-block-column,
  .meshwar-info-page .meshwar-fact-grid > .wp-block-column {
    flex-basis: 100% !important;
  }
  .meshwar-info-page .meshwar-info-actions,
  .meshwar-info-page .meshwar-info-actions .wp-block-button,
  .meshwar-info-page .meshwar-primary-button .wp-block-button__link {
    width: 100%;
  }
  .meshwar-info-page .meshwar-primary-button .wp-block-button__link {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
