/* ==========================================================================
   Mykhalij v6: logo, immersive header over the hero, mobile centring
   ========================================================================== */

/* ---------- Logo (L'Arche: double arch + diamond) ---------- */
.px-body .mk-logo { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.mk-logo__mark { width: 32px; height: 38px; flex: none; display: block; }
.mk-logo__outer { stroke: #1E4FA3; fill: none; }
.mk-logo__inner { stroke: #0B1F3A; fill: none; }
.mk-logo__diamond { fill: #1E4FA3; }
.mk-logo__text { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.px-body .mk-logo__latin { font-family: 'Marcellus', 'Times New Roman', serif; font-size: 21px; font-weight: 400; letter-spacing: .22em; color: #0B1F3A; direction: ltr; line-height: 1; padding-inline-start: .22em; }
.px-body .mk-logo__arabic { font-family: 'Reem Kufi', 'Almarai', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0; color: #1E4FA3; direction: rtl; line-height: 1; }
/* light-on-dark version (footer, drawer header, transparent header) */
.px-footer .mk-logo__outer, .px-template-index .px-header:not(.is-solid) .mk-logo__outer { stroke: #8DB8F2; }
.px-footer .mk-logo__inner, .px-template-index .px-header:not(.is-solid) .mk-logo__inner { stroke: #fff; }
.px-footer .mk-logo__diamond, .px-template-index .px-header:not(.is-solid) .mk-logo__diamond { fill: #8DB8F2; }
.px-body .px-footer .mk-logo__latin, .px-body.px-template-index .px-header:not(.is-solid) .mk-logo__latin { color: #fff; }
.px-body .px-footer .mk-logo__arabic, .px-body.px-template-index .px-header:not(.is-solid) .mk-logo__arabic { color: #8DB8F2; }
.px-footer .mk-logo__mark { width: 40px; height: 47px; }
.px-body .px-footer .mk-logo__latin { font-size: 25px; }
.px-body .px-footer .mk-logo__arabic { font-size: 15px; }
.px-drawer__head .mk-logo__mark { width: 28px; height: 33px; }
.px-body .px-drawer__head .mk-logo__latin { font-size: 18px; }
@media (max-width: 960px) {
  .mk-logo__mark { width: 27px; height: 32px; }
  .px-body .mk-logo { gap: 9px; }
  .px-body .mk-logo__latin { font-size: 17px; }
  .px-body .mk-logo__arabic { font-size: 11px; }
}

/* ---------- Immersive header: the home page hero runs behind it ---------- */
.px-template-index #youcan-section--header { margin-block-end: calc(-1 * var(--mk-hh, 64px)); }
.px-template-index .px-header { transition: color .25s ease; }
.px-template-index .px-header::before { transition: background .25s ease; }
.px-template-index .px-header:not(.is-solid) { color: #fff; border-block-end-color: transparent; }
.px-template-index .px-header:not(.is-solid)::before {
  background: linear-gradient(180deg, rgba(5, 14, 30, .7) 0%, rgba(5, 14, 30, 0) 100%);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.px-body.px-template-index .px-header:not(.is-solid) yc-drawer#cart .cart-btn,
.px-body.px-template-index .px-header:not(.is-solid) .px-iconbtn,
.px-body.px-template-index .px-header:not(.is-solid) .px-lang--toggle { color: #fff; }
.px-template-index .px-header:not(.is-solid) .px-nav { border-block-start-color: rgba(255, 255, 255, .16); }
.px-body.px-template-index .px-header:not(.is-solid) .px-nav__item > a { color: #fff; opacity: .92; }
.px-body.px-template-index .px-header:not(.is-solid) .px-nav__item > a::after { background: #8DB8F2; }
.px-template-index .px-header:not(.is-solid) .px-search { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .3); }
.px-body.px-template-index .px-header:not(.is-solid) .px-search input[type='search'] { color: #fff; }
.px-template-index .px-header:not(.is-solid) .px-search input::placeholder { color: rgba(255, 255, 255, .78); }
.px-template-index .px-header:not(.is-solid) .px-search button { color: #fff; }
.px-template-index .px-header.is-solid { box-shadow: 0 8px 30px rgba(11, 31, 58, .08); }

/* hero: full screen, content clears the header */
.px-hero[data-layout='overlay'] .px-hero__slide { min-height: clamp(580px, calc(100svh - 38px), 900px); }
.px-hero[data-layout='overlay'] .px-hero__content { padding-block-start: calc(var(--mk-hh, 64px) + 28px); }
.px-hero[data-layout='overlay'] .px-hero__slide:not(.px-hero__slide--art) .px-hero__media::after {
  background: linear-gradient(180deg, rgba(5, 14, 30, .3) 0%, rgba(5, 14, 30, .34) 45%, rgba(5, 14, 30, .62) 100%);
}
@media (max-width: 768px) {
  .px-hero[data-layout='overlay'] .px-hero__slide { min-height: clamp(560px, calc(100svh - 38px - 62px), 820px); }
  .px-hero[data-layout='overlay'] .px-hero__content { align-items: flex-end; padding-block-end: 56px; }
  .px-hero__text { justify-items: center; text-align: center; }
  .px-hero__lead { margin-inline: auto; }
  .px-hero__cta { justify-content: center; width: 100%; }
  .px-hero__cod { justify-content: center; }
}

/* ---------- Phones: centre badges, steps, trust icons, footer ---------- */
@media (max-width: 768px) {
  .px-features[data-style='strip'] .px-feature,
  .px-features[data-style='cards'] .px-feature,
  .px-features[data-style='plain'] .px-feature {
    display: flex; flex-direction: column; align-items: center; justify-items: center; text-align: center; gap: 10px;
  }
  .px-features[data-style='strip'] .px-feature > div,
  .px-features[data-style='cards'] .px-feature > div { text-align: center; }
  .px-features[data-style='cards'] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-feature__icon { margin-inline: auto; }
  .px-steps li { text-align: center; justify-items: center; display: grid; }
  .px-steps__icon { margin-inline: auto; }
  .px-head, .px-section-head { text-align: center; }
  .px-pd-cod, .px-pd-benefits li { justify-content: center; text-align: center; }
  .px-pd-cod { flex-direction: column; align-items: center; gap: 8px; }
  .px-info-cards article { text-align: center; }
  .px-footer__grid { text-align: center; justify-items: center; }
  .px-footer__brand { display: grid; justify-items: center; gap: 14px; }
  .px-footer__col ul { justify-items: center; }
  .px-footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .px-footer__cod { justify-content: center; }
}

/* ---------- Inner pages: navy title band + readable card (same language as hero and footer) ---------- */
.px-template-page main yc-section:first-of-type { padding-block-start: 0 !important; padding-inline: 0 !important; }
.px-template-page yc-section-head { position: relative; display: block; text-align: center; padding: clamp(44px, 7vw, 84px) 20px clamp(64px, 9vw, 108px); background: radial-gradient(120% 140% at 50% 0%, #1A3D73 0%, #0B1F3A 62%); color: #fff; overflow: hidden; margin-block-end: 0; width: 100% !important; max-width: none !important; margin-inline: 0 !important; box-sizing: border-box; }
.px-template-page yc-section-head::before { content: ''; position: absolute; inset-inline-end: 6%; inset-block: 14% -40%; width: 220px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 52' fill='none' stroke='%238DB8F2' stroke-width='1.2' opacity='.18'%3E%3Cpath d='M3 50V22C3 11.5 11.5 3 22 3s19 8.5 19 19v28'/%3E%3Cpath d='M11 50V24c0-6 5-11 11-11s11 5 11 11v26'/%3E%3C/svg%3E") center bottom/contain no-repeat; pointer-events: none; }
.px-template-page yc-section-head h1 { position: relative; color: #fff !important; font-size: clamp(28px, 4.4vw, 44px) !important; font-weight: 700; }
.px-template-page yc-section-head h1::after { content: ''; display: block; width: 54px; height: 3px; margin: 16px auto 0; border-radius: 3px; background: #8DB8F2; }
.px-body.px-template-page .page { position: relative; max-width: 820px !important; width: calc(100% - 32px) !important; margin: -48px auto 56px; padding: clamp(24px, 4vw, 44px); background: #fff; border: 1px solid var(--px-border); border-radius: 24px; box-shadow: 0 22px 60px rgba(11, 31, 58, .10); }
.px-body.px-template-page .page p { font-size: 16px !important; line-height: 2; color: #33425b; }
.px-body.px-template-page .page h2, .px-body.px-template-page .page h3, .px-body.px-template-page .page h4 { color: #0B1F3A; font-size: 19px; line-height: 1.5; margin-block: 1.4em .4em; padding-inline-start: 14px; border-inline-start: 4px solid #1E4FA3; }
.px-body.px-template-page .page h4:first-child, .px-body.px-template-page .page h2:first-child, .px-body.px-template-page .page h3:first-child { margin-block-start: 0; }
.px-body.px-template-page .px-sec-features, .px-body.px-template-page .px-sec-info { background: var(--px-surface); }
/* transparent header: nav links stay white (theme sets them with !important) */
.px-body.px-template-index .px-header:not(.is-solid) .px-nav__item > a, .px-body.px-template-index .px-header:not(.is-solid) .px-nav__item > a span { color: #fff !important; }

/* ---------- v8: aligned product cards, aligned checklists, airy product description ---------- */
.px-grid > li { display: flex; }
.px-body .product-card { display: flex; flex-direction: column; width: 100%; height: 100%; }
.px-body .product-card .info { flex: 1; display: flex; flex-direction: column; }
.px-body .product-card .info .title { flex: 1; }
.px-body .product-card .info .price { margin-block-end: 12px; }
.px-body .product-card .info > a.yc-btn, .px-body .product-card .info > a.yc-btn.secondary { margin-block-start: auto !important; width: 100%; text-align: center; justify-content: center; }

/* benefit checklist under the buy box: checks stacked in one column, text aligned to the start */
.px-body .px-pd-benefits { gap: 14px; }
.px-body .px-pd-benefits li { justify-content: flex-start !important; text-align: start !important; line-height: 1.8; }

/* product description */
.px-body yc-product-info .description { font-size: 16px; line-height: 2.1; color: #25344d; }
.px-body yc-product-info .description p { margin: 0 0 16px; }
.px-body yc-product-info .description h3 { margin: 8px 0 12px; font-size: 21px; line-height: 1.5; color: #0B1F3A; }
.px-body yc-product-info .description h4 { margin: 28px 0 12px; font-size: 17px; line-height: 1.6; color: #1E4FA3; }
.px-body yc-product-info .description ul, .px-body yc-product-info .description ol { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.px-body yc-product-info .description li { position: relative; padding-inline-start: 36px; line-height: 1.9; }
.px-body yc-product-info .description ul li::before { content: ''; position: absolute; inset-inline-start: 0; top: .35em; width: 22px; height: 22px; border-radius: 50%; background: #E6EEFB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E4FA3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.px-body yc-product-info .description ol { counter-reset: mkstep; }
.px-body yc-product-info .description ol li { counter-increment: mkstep; }
.px-body yc-product-info .description ol li::before { content: counter(mkstep); position: absolute; inset-inline-start: 0; top: .3em; width: 24px; height: 24px; border-radius: 50%; background: #0B1F3A; color: #fff; font-size: 13px; font-weight: 700; line-height: 24px; text-align: center; }
.px-body yc-product-info .description strong { color: #0B1F3A; }

/* v13: contact form on phones. The anti-spam field sat at left:-9999px, which in RTL created 10000px of sideways scroll, and the fields were wider than the form. */
.page form input[name='hidden_check'] { left: auto !important; right: 0 !important; width: 1px !important; height: 1px !important; min-width: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; }
.page form { grid-template-columns: minmax(0, 1fr); }
.page .form-group, .page .field { width: 100%; min-width: 0; }
.page form input, .page form textarea { min-width: 0; max-width: 100%; }

/* v16 thank-you: cash-on-delivery note as wide as the order card, icon and text centred */
.px-body .thank-you-cod { box-sizing: border-box; width: 500px; max-width: 100%; margin-inline: auto; justify-content: center; text-align: center; }

/* v21: the browser clips Arabic placeholders (dots under the last letter were cut off) */
input::placeholder, textarea::placeholder { overflow: visible !important; }

/* v21: clear confirmation after the contact form is sent; the form itself is hidden */
.mk-sent { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 8px; text-align: center; width: 100%; }
.mk-sent svg { width: 72px; height: 72px; color: #178a4c; }
.mk-sent__title { font-size: 22px; font-weight: 800; color: #0B1F3A; line-height: 1.6; margin: 0; }
.mk-sent__text { font-size: 16px; line-height: 1.8; color: #3d4a63; margin: 0; }
.mk-sent__link { display: inline-block; margin-top: 8px; padding: 12px 28px; border-radius: 999px; background: #1E4FA3; color: #fff !important; font-weight: 700; text-decoration: none !important; }
.mk-sent ~ * { display: none !important; }
