/* Zein v0.7.0 — product titles, contact cleanup, and commerce pages. */

/* Product names only: Amiri. Other interface text remains Cairo. */
.woocommerce-loop-product__title,
.aw-book-card__title,
.aw-book-card__title a,
.zl-book-card h3,
.zl-book-card h3 a,
.zp-product-card h3,
.zp-product-card h3 a,
.single-product .product_title,
.single-product .zein-sp__title,
.zein-sp__r-title,
.zein-sp__r-title a,
.zein-reader__title,
.related.products .woocommerce-loop-product__title,
.upsells.products .woocommerce-loop-product__title,
.zein-cart-item__head h2,
.zein-cart-item__head h2 a,
.zein-wishlist-card__title,
.zein-wishlist-card__title a,
.woocommerce-checkout-review-order .product-name,
.woocommerce-order-details .product-name,
.wc-block-components-product-name {
  font-family: "Amiri", "Noto Naskh Arabic", serif !important;
  letter-spacing: 0 !important;
}

/* Catalogue titles are short in markup (five words) and remain visually stable. */
.aw-book-card__title,
.zl-book-card h3,
.zp-product-card h3,
.zein-sp__r-title,
ul.products li.product .woocommerce-loop-product__title {
  font-size: 18px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
  min-height: 54px !important;
  margin: 0 0 8px !important;
  overflow: hidden;
}

.single-product .product_title,
.single-product .zein-sp__title {
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

/* Contact bars: one WhatsApp presentation only. */
.zl-topbar__whatsapp { border-color: rgba(37,211,102,.35) !important; }
.zl-topbar__whatsapp span { color: #bdebc9 !important; }
.zein-social-links--header .zein-social-links__link--whatsapp,
.zein-social-links--footer .zein-social-links__link--whatsapp,
.zein-social-links--header .zein-social-links__link--email,
.zein-social-links--footer .zein-social-links__link--email { display: none !important; }

/* Shared commerce canvas. */
body.zein-cart-page,
body.zein-wishlist-page,
body.zein-checkout-page,
body.woocommerce-cart,
body.woocommerce-checkout {
  overflow-x: hidden !important;
  background: #faf8f4 !important;
}

.zein-commerce-page,
.zein-checkout-shell {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
  padding: 36px 0 76px;
  box-sizing: border-box;
}

.zein-cart-template {
  width: 100%;
  max-width: none;
  padding: 0;
}

.zein-commerce-missing {
  padding: 28px;
  border: 1px solid #eadbd0;
  border-radius: 18px;
  background: #fff;
  color: #6f5a5e;
  text-align: center;
}

/* Checkout progress and assurance. */
.zein-checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.zein-checkout-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid #e5d7cc;
  border-radius: 14px;
  background: #fff;
  color: #887277;
}
.zein-checkout-steps span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: #f2ebe5;
  color: #5b0f1a;
  font-weight: 700;
}
.zein-checkout-steps li.is-done,
.zein-checkout-steps li.is-current { border-color: rgba(200,164,106,.72); color: #451017; }
.zein-checkout-steps li.is-current { background: #fffaf2; box-shadow: inset 0 0 0 1px rgba(200,164,106,.18); }
.zein-checkout-steps li.is-done span { background: #5b0f1a; color: #fff; }
.zein-checkout-steps li.is-current span { background: #c8a46a; color: #35070d; }

.zein-checkout-assurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.zein-checkout-assurance > div {
  padding: 15px 16px;
  border: 1px solid #eadfd6;
  border-radius: 15px;
  background: rgba(255,255,255,.78);
}
.zein-checkout-assurance strong { display: block; margin-bottom: 3px; color: #5b0f1a; font-size: 13px; }
.zein-checkout-assurance span { display: block; color: #7c686c; font-size: 12px; line-height: 1.7; }

.zein-checkout-content .woocommerce { width: 100%; }
.zein-checkout-content form.checkout {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(340px,.85fr);
  gap: 24px;
  align-items: start;
}
.zein-checkout-content #customer_details,
.zein-checkout-content #order_review,
.zein-checkout-content .woocommerce-order,
.zein-checkout-content .woocommerce-form-login,
.zein-checkout-content .woocommerce-form-coupon {
  min-width: 0;
  padding: 24px;
  border: 1px solid #e7d9cf;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(53,7,13,.055);
  box-sizing: border-box;
}
.zein-checkout-content #customer_details { display: grid; gap: 20px; }
.zein-checkout-content #customer_details .col-1,
.zein-checkout-content #customer_details .col-2 { float: none !important; width: 100% !important; }
.zein-checkout-content #order_review_heading {
  margin: 0 0 12px;
  color: #35070d;
  font-size: 22px;
  font-weight: 650;
}
.zein-checkout-content #order_review { position: sticky; top: 22px; }
.zein-checkout-content h3 { color: #35070d; font-weight: 650; }
.zein-checkout-content .form-row { margin-bottom: 13px; }
.zein-checkout-content label { display: block; margin-bottom: 6px; color: #51383d; font-size: 13px; font-weight: 600; }
.zein-checkout-content input.input-text,
.zein-checkout-content textarea,
.zein-checkout-content select,
.zein-checkout-content .select2-container .select2-selection {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ddd0c6 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #35272a !important;
  box-shadow: none !important;
  box-sizing: border-box;
}
.zein-checkout-content input.input-text,
.zein-checkout-content textarea { padding: 11px 13px; }
.zein-checkout-content textarea { min-height: 110px; resize: vertical; }
.zein-checkout-content input:focus,
.zein-checkout-content textarea:focus,
.zein-checkout-content select:focus { border-color: #c8a46a !important; outline: 0; box-shadow: 0 0 0 4px rgba(200,164,106,.14) !important; }
.zein-checkout-content table.shop_table { width: 100%; border: 0 !important; border-collapse: collapse; }
.zein-checkout-content table.shop_table th,
.zein-checkout-content table.shop_table td { padding: 12px 6px !important; border-bottom: 1px solid #eee3da !important; }
.zein-checkout-content .order-total th,
.zein-checkout-content .order-total td { color: #5b0f1a; font-size: 17px; }
.zein-checkout-content #payment { border-radius: 15px !important; background: #f8f3ee !important; }
.zein-checkout-content #place_order {
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  border: 0 !important;
  border-radius: 12px !important;
  background: #5b0f1a !important;
  color: #fff !important;
  font-family: "Cairo", sans-serif !important;
  font-weight: 700 !important;
}
.zein-checkout-content #place_order:hover { background: #35070d !important; }

/* Cart and wishlist title sizing after Amiri switch. */
.zein-cart-item__head h2,
.zein-wishlist-card__title { font-size: 20px !important; line-height: 1.45 !important; }

@media (max-width: 900px) {
  .zein-checkout-content form.checkout { grid-template-columns: 1fr; }
  .zein-checkout-content #order_review { position: static; }
  .zein-checkout-assurance { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .zein-commerce-page,
  .zein-checkout-shell { width: min(100% - 20px, 1160px); padding: 24px 0 54px; }
  .zein-checkout-steps { gap: 6px; }
  .zein-checkout-steps li { min-height: 50px; padding: 8px; justify-content: center; }
  .zein-checkout-steps li b { display: none; }
  .zein-checkout-assurance { grid-template-columns: 1fr; }
  .zein-checkout-content #customer_details,
  .zein-checkout-content #order_review,
  .zein-checkout-content .woocommerce-order,
  .zein-checkout-content .woocommerce-form-login,
  .zein-checkout-content .woocommerce-form-coupon { padding: 16px; border-radius: 16px; }
  .aw-book-card__title,
  .zl-book-card h3,
  .zp-product-card h3,
  ul.products li.product .woocommerce-loop-product__title { font-size: 16px !important; min-height: 48px !important; }
}
