/* Dawlya Tools v2.3.18 preview — product detail and catalog card hierarchy. */

/* Product detail: prominent real image, concise purchase panel, Dawlya colors. */
.woocommerce .dawlya-single-product .dawlya-product-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: start;
  gap: clamp(16px, 2vw, 24px);
}
.dawlya-single-product > .dawlya-breadcrumb { margin-bottom: 14px; }
.dawlya-product-gallery .woocommerce-product-gallery__image,
.woocommerce div.product .dawlya-product-gallery div.images .woocommerce-product-gallery__image {
  min-height: clamp(320px, 35vw, 480px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}
.dawlya-product-gallery .woocommerce-product-gallery__image img {
  max-height: 480px;
  object-fit: contain;
}
.dawlya-product-gallery .flex-control-thumbs { gap: 8px; margin-top: 12px; }
.dawlya-product-gallery .flex-control-thumbs img {
  width: 74px;
  height: 66px;
  border-radius: 6px;
  background: #fff;
}
.dawlya-product-gallery .flex-control-thumbs img.flex-active { border-color: var(--orange); }
.dawlya-product-summary {
  padding: clamp(20px, 2vw, 24px);
  border: 1px solid #dce3e8;
  border-top: 4px solid var(--navy);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 31, 53, .07);
}
.dawlya-product-summary .dawlya-product-brand {
  margin-bottom: 10px;
  padding: 5px 10px;
  border-color: rgba(245, 130, 32, .35);
  border-radius: 4px;
  background: #fff8ef;
  color: var(--navy);
  font-size: 11px;
}
.dawlya-product-summary h1.product_title {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: clamp(27px, 2.7vw, 36px);
  line-height: 1.28;
  letter-spacing: 0;
}
.dawlya-product-model {
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}
.dawlya-product-model bdi {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--soft);
  color: var(--navy);
  font-weight: 800;
}
.dawlya-product-category { margin-bottom: 14px; }
.dawlya-product-summary p.price,
.dawlya-product-summary span.price {
  display: block;
  margin: 12px 0 8px;
  padding: 12px 16px;
  border: 1px solid rgba(245, 130, 32, .34);
  border-inline-start: 4px solid var(--orange);
  border-radius: 6px;
  background: #fff8ef;
  color: var(--navy);
  font-size: clamp(23px, 2.2vw, 29px);
  line-height: 1.35;
}
.dawlya-product-summary .price del { font-size: 15px; }
.dawlya-product-summary .price ins { color: var(--navy); }
.dawlya-product-availability {
  min-height: 30px;
  align-items: center;
  border-radius: 4px;
  font-size: 12px;
}
.dawlya-product-summary .woocommerce-product-details__short-description {
  margin: 12px 0 16px;
  color: #435663;
  font-size: 14px;
  line-height: 1.8;
}
.dawlya-product-summary .cart { gap: 9px; margin: 4px 0 10px; }
.dawlya-product-summary .quantity .qty {
  width: 80px;
  min-height: 48px;
  border-radius: 10px;
  font: 700 15px/1.2 "Cairo", "Tajawal", Arial, sans-serif;
}
.dawlya-product-summary .single_add_to_cart_button,
.dawlya-product-summary .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--orange);
  border-radius: 6px;
  background: var(--orange);
  color: var(--navy2);
  font-size: 14px;
  font-weight: 900;
}
.dawlya-product-summary .single_add_to_cart_button:hover {
  border-color: #d8660c;
  background: #e87512;
  color: #071f35;
}
.dawlya-product-summary .single_add_to_cart_button:disabled {
  border-color: #8a969e;
  background: #8a969e;
  color: #fff;
}
.dawlya-product-summary a.dawlya-yilmaz-offer {
  min-height: 58px;
  border-radius: 6px;
}
.dawlya-product-whatsapp {
  min-height: 48px;
  margin-top: 10px;
  border-radius: 6px;
  font-size: 13px;
}
.dawlya-product-summary .product_meta {
  margin-top: 15px;
  padding-top: 13px;
  font-size: 12px;
}
.dawlya-quick-specs {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(7, 31, 53, .045);
}
.dawlya-quick-specs h2,
.dawlya-product-details .related.products > h2 {
  margin-bottom: 13px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.4;
}
.dawlya-quick-specs dl { gap: 0 18px; }
.dawlya-quick-specs dl > div {
  padding: 11px 9px;
  border-top-color: #e8edf0;
}
.dawlya-quick-specs dt { color: #536572; font-size: 12px; }
.dawlya-quick-specs dd { color: var(--ink); font-size: 13px; font-weight: 700; }
.dawlya-product-details { margin-top: 30px; }
.dawlya-product-details .woocommerce-tabs ul.tabs {
  gap: 6px;
  padding-inline: 0;
  border-bottom-color: #d7e0e6;
}
.dawlya-product-details .woocommerce-tabs ul.tabs li a {
  padding: 12px 16px;
  border-bottom-width: 3px;
  color: #536572;
  font-size: 13px;
}
.dawlya-product-details .woocommerce-tabs ul.tabs li.active a {
  color: var(--navy);
}
.dawlya-product-details .woocommerce-Tabs-panel {
  padding: 18px 4px;
  color: #435663;
  font-size: 14px;
  line-height: 1.9;
}

/* Product cards: image first, scannable model and price, truthful action. */
.woocommerce ul.products li.product.dawlya-product-card {
  border-color: #dfe5e9;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(7, 31, 53, .025);
}
.woocommerce ul.products li.product.dawlya-product-card:hover {
  border-color: #c7d1d8;
  box-shadow: 0 12px 28px rgba(7, 31, 53, .11);
}
.dawlya-card-image {
  height: 216px;
  padding: 16px;
  border-bottom-color: #e7ecef;
  background: linear-gradient(180deg, #fff 0%, #f7f9fa 100%);
}
.dawlya-card-image img { object-fit: contain; }
.dawlya-product-card-body {
  gap: 8px;
  padding: 12px 16px;
}
.dawlya-product-card-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .015em;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.7em;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.45;
}
.dawlya-product-sku { color: #536572; font-size: 11px; }
.dawlya-product-sku span { color: var(--muted); }
.dawlya-product-card-price {
  padding-top: 9px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.45;
}
.dawlya-product-card-price .price { color: var(--navy); font-size: 17px; }
.dawlya-product-card-stock {
  min-height: 26px;
  align-items: center;
  border-radius: 4px;
  font-size: 11px;
}
.dawlya-product-card-actions { padding: 0 14px 14px; }
.woocommerce ul.products li.product .dawlya-product-card-actions .button {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
}
.woocommerce ul.products li.product .dawlya-product-card-actions .button:not(.dawlya-card-enquiry) {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--navy2);
}
.woocommerce ul.products li.product .dawlya-product-card-actions .button:not(.dawlya-card-enquiry):hover {
  border-color: #d8660c;
  background: #e87512;
}
.woocommerce ul.products li.product .dawlya-product-card-actions .dawlya-card-enquiry {
  border-color: var(--orange);
  background: #fff;
  color: #75400d;
}
.woocommerce ul.products li.product .dawlya-product-card-actions .dawlya-card-enquiry:hover {
  background: #fff8ef;
}
.dawlya-product-details .related.products ul.products { gap: 16px; }

/* Visible keyboard focus and reduced motion remain part of the UI. */
.dawlya-product-summary :focus-visible,
.dawlya-product-gallery :focus-visible,
.dawlya-quick-specs a:focus-visible,
.dawlya-product-details :focus-visible,
.woocommerce ul.products li.product.dawlya-product-card :focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .woocommerce ul.products li.product.dawlya-product-card,
  .dawlya-product-gallery .woocommerce-product-gallery__image img { transition: none; }
  .woocommerce ul.products li.product.dawlya-product-card:hover { transform: none; }
}

@media (max-width: 1050px) {
  .woocommerce .dawlya-single-product .dawlya-product-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .98fr);
    gap: 16px;
  }
  .dawlya-card-image { height: 192px; }
}
@media (max-width: 900px) {
  .woocommerce .dawlya-single-product .dawlya-product-layout { grid-template-columns: 1fr; }
  .dawlya-product-gallery .woocommerce-product-gallery__image,
  .woocommerce div.product .dawlya-product-gallery div.images .woocommerce-product-gallery__image {
    min-height: 360px;
  }
}
@media (max-width: 760px) {
  .dawlya-product-summary { padding: 19px 16px; }
  .dawlya-product-summary h1.product_title { font-size: 27px; }
  .dawlya-card-image { height: 160px; padding: 12px; }
  .dawlya-product-card-body { padding: 10px 11px 9px; gap: 5px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13px; }
  .dawlya-product-card-price,
  .dawlya-product-card-price .price { font-size: 14px; }
  .dawlya-product-card-actions { padding: 0 11px 11px; }
  .woocommerce ul.products li.product .dawlya-product-card-actions .button { min-height: 44px; font-size: 11px; }
  .dawlya-quick-specs { padding: 16px; }
}
@media (max-width: 480px) {
  .dawlya-product-gallery .woocommerce-product-gallery__image,
  .woocommerce div.product .dawlya-product-gallery div.images .woocommerce-product-gallery__image { min-height: 270px; }
  .dawlya-product-summary { padding: 16px 13px; }
  .dawlya-product-summary h1.product_title { font-size: 24px; }
  .dawlya-product-summary p.price,
  .dawlya-product-summary span.price { padding: 11px 12px; font-size: 23px; }
  .dawlya-product-summary .cart { align-items: stretch; }
  .dawlya-product-summary .single_add_to_cart_button { flex: 1 1 auto; }
  .dawlya-card-image { height: 140px; padding: 8px; }
  .dawlya-product-card-body { padding: 9px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 3em; font-size: 12px; }
  .dawlya-product-card-kicker,
  .dawlya-product-sku,
  .dawlya-product-card-stock { font-size: 10px; }
  .dawlya-product-card-actions { padding: 0 9px 9px; }
  .woocommerce ul.products li.product .dawlya-product-card-actions .button { padding-inline: 6px; font-size: 10px; }
  .dawlya-quick-specs dl { grid-template-columns: 1fr; }
  .dawlya-product-details .related.products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}


/* Refined v2.3.18.1 — tighten the product first fold and win over WooCommerce defaults. */
body.single-product #main-content.dawlya-product-main {
  padding-top: 16px;
}
body.single-product #main-content.dawlya-product-main #primary.content-area > main#main.site-main {
  padding-top: 0;
}
body.single-product #main-content.dawlya-product-main .dawlya-single-product {
  padding-top: 0;
}
.woocommerce div.product .dawlya-product-summary p.price,
.woocommerce div.product .dawlya-product-summary span.price,
.woocommerce div.product .dawlya-product-summary .price .woocommerce-Price-amount,
.woocommerce div.product .dawlya-product-summary .price .woocommerce-Price-amount bdi,
.woocommerce div.product .dawlya-product-summary .price ins {
  color: var(--navy);
}
.woocommerce div.product .dawlya-product-summary .price del,
.woocommerce div.product .dawlya-product-summary .price del .woocommerce-Price-amount,
.woocommerce div.product .dawlya-product-summary .price del .woocommerce-Price-amount bdi {
  color: #596c79;
}
.woocommerce div.product .dawlya-product-summary form.cart .single_add_to_cart_button,
.woocommerce div.product .dawlya-product-summary form.cart .button.single_add_to_cart_button {
  min-height: 48px;
  border: 1px solid var(--orange);
  border-radius: 6px;
  background: var(--orange);
  color: var(--navy2);
  font-family: "Cairo", "Tajawal", Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
}
.woocommerce div.product .dawlya-product-summary form.cart .single_add_to_cart_button:hover,
.woocommerce div.product .dawlya-product-summary form.cart .button.single_add_to_cart_button:hover {
  border-color: #d8660c;
  background: #e87512;
  color: #071f35;
}
.woocommerce div.product .dawlya-product-summary form.cart .single_add_to_cart_button:disabled,
.woocommerce div.product .dawlya-product-summary form.cart .single_add_to_cart_button.disabled {
  border-color: #8a969e;
  background: #8a969e;
  color: #fff;
}
.woocommerce div.product .dawlya-product-summary a.button.dawlya-product-whatsapp {
  border-radius: 6px;
}
.woocommerce div.product .dawlya-product-summary form.cart .single_add_to_cart_button:focus-visible,
.woocommerce div.product .dawlya-product-summary a.button.dawlya-product-whatsapp:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}


/* v2.3.18.2 — responsive product-image scale and tighter action spacing. */
@media (min-width: 901px) {
  .woocommerce div.product .dawlya-product-gallery .woocommerce-product-gallery__image,
  .woocommerce div.product .dawlya-product-gallery div.images .woocommerce-product-gallery__image {
    min-height: clamp(380px, 38vw, 540px);
  }
  .woocommerce div.product .dawlya-product-gallery .woocommerce-product-gallery__image img {
    max-height: 540px;
  }
}
@media (max-width: 900px) {
  .woocommerce div.product .dawlya-product-gallery .woocommerce-product-gallery__image,
  .woocommerce div.product .dawlya-product-gallery div.images .woocommerce-product-gallery__image {
    min-height: clamp(320px, 52vw, 420px);
  }
  .woocommerce div.product .dawlya-product-gallery .woocommerce-product-gallery__image img {
    max-height: 420px;
  }
}
@media (max-width: 480px) {
  .woocommerce div.product .dawlya-product-gallery .woocommerce-product-gallery__image,
  .woocommerce div.product .dawlya-product-gallery div.images .woocommerce-product-gallery__image {
    min-height: 320px;
  }
  .woocommerce div.product .dawlya-product-gallery .woocommerce-product-gallery__image img {
    width: auto;
    max-width: 100%;
    max-height: 320px;
    margin-inline: auto;
  }
}
.woocommerce div.product .dawlya-product-summary form.cart {
  margin-bottom: 0;
}
.woocommerce div.product .dawlya-product-summary a.button.dawlya-product-whatsapp {
  margin-top: 12px;
}
