/* MKFOOL Premium Product V5 — intentionally scoped, mobile-first RTL */
html,body{max-width:100%;overflow-x:clip} *,*::before,*::after{box-sizing:border-box}img{max-width:100%}
:root{--pm-ink:#152327;--pm-gold:#aa8551;--pm-line:#e8e6e2;--pm-bg:#faf9f7}
body{background:var(--pm-bg)} .premium-product{max-width:1120px;margin:0 auto;min-width:0} .premium-product-top{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:42px;align-items:start}
.premium-visual,.premium-buy{min-width:0}.premium-main-photo{background:#f1f0ee;border:1px solid var(--pm-line);border-radius:24px;overflow:hidden;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center}.premium-photo-main{width:100%;height:100%;object-fit:contain;display:block}.premium-photo-note{text-align:center;color:#8b8b87;font-size:12px;margin-top:10px}
.premium-buy{padding:10px 0}.premium-eyebrow,.premium-section-kicker{display:inline-block;color:#917048;font-weight:800;letter-spacing:.2px;font-size:12px}.premium-buy h1{font-size:clamp(27px,3.2vw,43px);line-height:1.26;letter-spacing:-.6px;margin:12px 0 20px;color:var(--pm-ink)}.premium-price{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-bottom:18px}.premium-price-now{font-size:clamp(30px,4vw,41px);font-weight:900;color:#14634b;line-height:1.2}.premium-price-old{display:flex;align-items:center;gap:10px;color:#9f9e9a;font-size:17px}.premium-price-old del{text-decoration-color:#b76b67;text-decoration-thickness:1.5px}.discount-chip{background:#f4ebe5;color:#9f4e2c;padding:4px 9px;border-radius:7px;font-size:11px;font-weight:800}.premium-perks{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}.premium-perks span{background:#f1f7f3;color:#23624b;border:1px solid #dcebe0;font-size:12px;font-weight:800;padding:7px 12px;border-radius:10px}
.premium-order-box{background:#fff;border:1px solid #e8e6e2;border-radius:22px;box-shadow:0 16px 50px rgba(40,42,35,.07);padding:24px}.premium-order-box h2{font-size:24px;margin:0 0 1px;color:var(--pm-ink)}.premium-order-box>p{font-size:13px;color:#7c8081;margin:0 0 20px}.premium-order-box .field{font-size:13px;color:#24363b;font-weight:800;margin:0 0 15px;gap:7px}.premium-order-box .field input,.premium-order-box .field textarea{border:1px solid #dedfdf!important;border-radius:12px!important;background:#fcfcfb!important;font-size:16px!important;padding:13px 14px!important;line-height:1.4;max-width:100%;box-shadow:none}.premium-order-box .field textarea{min-height:90px;resize:vertical}.premium-order-box .field input:focus,.premium-order-box .field textarea:focus{outline:2px solid #b6d9c9!important;border-color:#347a5b!important}.premium-total{padding:15px 0;border-top:1px solid #edeeea;border-bottom:1px solid #edeeea;display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px;font-size:14px}.premium-total strong{color:#14634b;font-size:20px}.premium-order-box .check{font-size:12px;color:#697577;margin:14px 0}.premium-submit{background:#173d31!important;border-radius:14px!important;min-height:56px;font-size:16px;gap:12px;box-shadow:0 9px 20px rgba(20,75,54,.16)}.premium-submit:hover{background:#225b49!important}.premium-form-footer{text-align:center;font-size:11px;color:#7a8381;margin-top:12px}
.premium-description,.premium-gallery{max-width:800px;margin:65px auto 0;min-width:0}.premium-description h2,.premium-gallery h2{font-size:clamp(23px,3vw,32px);margin:8px 0 18px}.premium-description-text{background:#fff;border:1px solid #eceae6;padding:30px;border-radius:20px;line-height:2;color:#37464b;overflow-wrap:anywhere;white-space:normal}.premium-photo-stack{display:flex;flex-direction:column;gap:18px}.premium-stack-item{border-radius:19px;overflow:hidden;background:#f1f0ee;border:1px solid var(--pm-line);min-width:0}.premium-stacked-photo{width:100%;height:auto;display:block;object-fit:contain}.premium-end-cta{background:#1d352f;color:white;text-align:center;padding:36px 18px;border-radius:20px;margin:45px auto 12px;max-width:800px}.premium-end-cta h2{font-size:24px;color:white;margin:0}.premium-end-cta p{color:#d9e8df;font-size:13px}.premium-end-cta .btn{background:#fff!important;color:#173d31!important;min-width:210px}.premium-mobile-sticky{display:none}.admin-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.admin-gallery-photo{width:100%;aspect-ratio:1/1;object-fit:contain;background:#f7f7f7;border-radius:10px}.admin-gallery-item{padding:10px;border:1px solid #ddd;border-radius:12px}
@media(max-width:820px){.premium-product-top{grid-template-columns:minmax(0,1fr);gap:14px}.premium-visual{margin:0 -2px}.premium-main-photo{border-radius:16px;aspect-ratio:1/1}.premium-buy{padding:4px 0}.premium-buy h1{font-size:28px;margin:8px 0 15px}.premium-price-now{font-size:34px}.premium-order-box{padding:18px;border-radius:17px;box-shadow:0 8px 24px rgba(20,40,32,.06)}.premium-perks{margin-bottom:15px}.premium-description,.premium-gallery{margin-top:38px}.premium-description-text{padding:18px;border-radius:15px}.premium-photo-stack{gap:12px}.premium-stack-item{border-radius:14px}.premium-end-cta{margin-bottom:85px}.premium-mobile-sticky{display:flex;position:fixed;z-index:35;bottom:0;left:0;right:0;min-height:60px;align-items:center;justify-content:space-between;padding:9px 20px calc(9px + env(safe-area-inset-bottom));background:#173d31;color:#fff;box-shadow:0 -8px 28px rgba(0,0,0,.16);font-weight:800;text-decoration:none}.premium-mobile-sticky .money{color:white}main{padding-top:17px}.header .nav{min-width:0}.header .nav nav{min-width:0}.container{max-width:100%;min-width:0}.premium-product *{max-width:100%}.premium-buy h1,.premium-description-text{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Mkfool V6 — product-first luxury layout, accessible scroll target */
.premium-product-title{font-size:clamp(25px,3.4vw,43px);line-height:1.35;letter-spacing:-.4px;color:var(--pm-ink);margin:4px 0 22px;font-weight:850;overflow-wrap:anywhere}
.premium-buy{padding-top:0}
.premium-price{margin:0 0 22px}
.premium-order-box h2{font-size:clamp(18px,2.4vw,23px);line-height:1.5;margin:0 0 6px}
.premium-delivery-message{font-size:14px!important;font-weight:750!important;color:#176447!important;margin:0 0 19px!important}
#order-form{scroll-margin-top:22px}
.premium-mobile-sticky{gap:10px;justify-content:center;text-align:center}
.premium-mobile-sticky span{pointer-events:none}
html,body{width:100%;max-width:100%;overflow-x:clip}
.premium-product,.premium-product-top,.premium-buy,.premium-visual,.premium-gallery,.premium-description{min-width:0;max-width:100%}
.premium-product-title,.premium-price,.premium-order-box{overflow-wrap:anywhere}
@media(max-width:820px){
  .premium-product-title{font-size:27px;margin:6px 0 15px}
  .premium-product-top{gap:17px}
  .premium-buy{padding:0}
  .premium-main-photo{aspect-ratio:1/1}
  .premium-mobile-sticky{min-height:64px;bottom:0;left:0;right:0;width:100%;font-size:17px;background:#173d31;padding:12px 18px calc(12px + env(safe-area-inset-bottom));}
  #order-form{scroll-margin-top:18px}
  .premium-end-cta{margin-bottom:calc(90px + env(safe-area-inset-bottom))}
}

/* MKFOOL V7 — center logo in header on all screen sizes */
.header .nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.header .mkfool-centered-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  flex: none;
  line-height: 0;
  max-width: min(52vw, 240px);
}
.header .mkfool-centered-logo img {
  display: block;
  width: auto;
  height: 64px;
  max-width: 100%;
  object-fit: contain;
}
.header .nav > nav {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}
.header .nav > nav > span {display: none;}
@media (max-width: 760px) {
  .header .nav { min-height: 74px; padding: 8px 0; }
  .header .mkfool-centered-logo {max-width: min(48vw, 190px);}
  .header .mkfool-centered-logo img {height: 55px;}
  .header .nav > nav {font-size: 11px; gap: 6px;}
}

/* MKFOOL V8 — Arabic typography, product form, trust & order success */
html,body,button,input,textarea,select{font-family:'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif!important}
body{overflow-x:clip} .premium-main-photo{aspect-ratio:1/1!important} .premium-photo-main{width:100%;height:100%;object-fit:contain}
.premium-form-heading{text-align:center;margin:0 0 18px}
.premium-form-heading h2{text-align:center;margin-bottom:5px;font-size:22px}
.premium-form-heading .premium-delivery-message{text-align:center;margin:0!important;color:#176447!important;font-weight:700!important}
.mkfool-trust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:17px;max-width:100%}
.mkfool-trust div{min-width:0;padding:10px 4px;border:1px solid #e3e9e3;border-radius:12px;background:#f8faf8;color:#2c5945;text-align:center;font-weight:700;font-size:11px;line-height:1.65}
.mkfool-trust div span{display:block;font-size:22px;line-height:1.2;color:#186747}
.mkfool-privacy-note{font-size:11px;color:#667371;text-align:center;line-height:1.9;margin:14px 0 0}
.mkfool-field-error{display:block;min-height:0;font-size:12px;font-weight:700;color:#c82832;line-height:1.65;margin-top:4px}
.mkfool-field-error:empty{display:none}
.premium-order-box .field input.mkfool-invalid,.premium-order-box .field textarea.mkfool-invalid{border:2px solid #c82832!important;background:#fff8f8!important;outline:none!important}
.mkfool-form-alert{padding:12px;background:#fff1f1;border:1px solid #f1b1b1;color:#a61c27;border-radius:10px;font-size:13px;font-weight:700}
.mkfool-thank-you{max-width:640px;margin:35px auto 60px;background:#fff;border:1px solid #e8e6e2;border-radius:25px;padding:36px 28px;text-align:center;box-shadow:0 15px 45px rgba(22,52,36,.06)}
.mkfool-thank-icon{width:68px;height:68px;background:#e0f3e9;color:#15744c;border-radius:50%;display:grid;place-items:center;font-size:35px;font-weight:800;margin:0 auto 16px}
.mkfool-thank-you h1{font-size:clamp(24px,3vw,32px);margin:5px 0 10px;line-height:1.45}
.mkfool-confirm-message{color:#245b43;background:#f0f8f2;border:1px solid #d3e9d8;border-radius:12px;padding:14px;line-height:1.8;font-weight:700}
.mkfool-order-summary{border:1px solid #e5e9e6;border-radius:17px;margin:26px 0 20px;padding:18px;text-align:right}
.mkfool-order-summary h2{display:flex;justify-content:space-between;gap:10px;font-size:18px;margin:0 0 12px}
.mkfool-order-summary h2 span{direction:ltr;color:#64726a}
.mkfool-summary-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:11px 0;border-top:1px solid #edf0ed;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.mkfool-summary-row span{color:#697673;flex:0 0 36%}
.mkfool-summary-row strong{color:#22382f;text-align:left;min-width:0;flex:1}
.mkfool-summary-total strong{color:#147549;font-size:19px}
.mkfool-back-home{display:inline-block;min-width:200px;text-decoration:none}
@media(max-width:600px){.mkfool-thank-you{padding:23px 14px;margin:16px auto 95px;border-radius:16px}.mkfool-order-summary{padding:13px}.premium-order-box{padding:17px 13px}.mkfool-trust{gap:5px}.mkfool-trust div{font-size:10px}.premium-form-heading h2{font-size:19px}}


/* MKFOOL V9 — normal header + seamless vertical product gallery */
/* Header scrolls away with the page. Mobile order CTA remains fixed. */
html body .header {
  position: static !important;
  top: auto !important;
  inset-block-start: auto !important;
}

/* Remove ALL inter-image spacing on desktop and mobile. */
.premium-gallery .premium-photo-stack {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  row-gap: 0 !important;
  column-gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0;
}
.premium-gallery .premium-stack-item {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  line-height: 0;
  overflow: hidden;
}
.premium-gallery .premium-stacked-photo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  vertical-align: top;
}


/* MKFOOL V10: force scrollable header and centered product heading/pricing */
html body > header.header,
html body header.header,
html body .header {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  inset: auto !important;
  transform: none !important;
  z-index: 10;
}
/* Main product heading is above the hero image. */
html body .premium-product .premium-product-title {
  width: 100%;
  text-align: center !important;
  margin-inline: auto !important;
  text-wrap: balance;
}
/* Center both old and new prices, including savings label. */
html body .premium-product .premium-price {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100%;
  margin-inline: auto !important;
}
html body .premium-product .premium-price-now,
html body .premium-product .premium-price-old {
  text-align: center !important;
  justify-content: center !important;
}
/* Avoid moving or hiding the mobile order-now button. */


/* ===================================================
   MKFOOL V15 — MOBILE WIDTH SAFETY + LIVING PRODUCT UX
   Only product page enhanced; preserves Snap Pixel,
   order form, AI builder, URL routing, and admin.
   =================================================== */
:root { --mk-ease: cubic-bezier(.22,1,.36,1); }
html {
  inline-size: 100%;
  max-inline-size: 100%;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
}
body {
  inline-size: 100%;
  max-inline-size: 100%;
  overflow-x: hidden !important;
  margin-inline: 0;
}
body > main, body > .header, body > footer,
main.container, .container, .premium-product,
.premium-product-top, .premium-visual, .premium-buy,
.premium-order-box, .premium-main-photo,
.premium-gallery, .premium-photo-stack,
.premium-description, .ai-public-page,
.ai-public-section, .ai-public-photo,
.premium-end-cta, .premium-product-title {
  box-sizing: border-box;
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
}
.premium-product img, .premium-product video,
.premium-product iframe, .premium-product svg,
.ai-public-page img, .ai-public-page video {
  max-inline-size: 100% !important;
}
.premium-product iframe { aspect-ratio: 16 / 9; }
.premium-product p,.premium-product h1,.premium-product h2,
.premium-product h3,.premium-product a,.premium-product label,
.ai-public-page p,.ai-public-page h2 {
  overflow-wrap: anywhere;
  word-break: normal;
}
.premium-product-top { grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); }
.premium-order-box input, .premium-order-box textarea,
.premium-order-box button, .premium-order-box form {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.premium-gallery .premium-photo-stack { gap: 0 !important; }
.premium-gallery .premium-stack-item {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0;
}
.premium-gallery .premium-stacked-photo,
.ai-public-photo .ai-public-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
/* Non-sticky header; sticky mobile order CTA remains unchanged */
html body .header, html body > header.header {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
}
/* Center product name and price */
.premium-product .premium-product-title {
  text-align: center !important;
  margin-inline: auto !important;
  text-wrap: balance;
}
.premium-product .premium-price {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  flex-wrap: wrap;
  margin-inline: auto;
}
.premium-product .premium-price-old { justify-content: center; }
/* Image depth and interactive feedback */
.premium-main-photo {
  position: relative;
  isolation: isolate;
  background: linear-gradient(145deg,#faf9f6 0%,#f1f3ee 100%);
  box-shadow: 0 16px 45px rgba(33,55,45,.08);
  transition: box-shadow .45s var(--mk-ease),transform .45s var(--mk-ease);
}
.premium-main-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.48);
}
.premium-photo-main {
  transition: transform .9s var(--mk-ease);
  will-change: auto;
}
@media (hover:hover) and (pointer:fine) {
  .premium-main-photo:hover { box-shadow: 0 22px 55px rgba(33,55,45,.13); }
  .premium-main-photo:hover .premium-photo-main { transform:scale(1.035); }
}
.premium-price-now { text-shadow: 0 5px 22px rgba(29,112,72,.09); }
.premium-order-box {
  border: 1px solid rgba(44,107,74,.13);
  box-shadow: 0 16px 48px rgba(18,61,40,.075);
}
.premium-submit {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .2s ease, box-shadow .3s ease, filter .3s ease;
  box-shadow: 0 7px 18px rgba(17,81,56,.19);
}
.premium-submit:active { transform:scale(.985); }
.premium-submit:hover { filter: brightness(1.065); box-shadow:0 9px 24px rgba(17,81,56,.23); }
.premium-order-box input:focus-visible,
.premium-order-box textarea:focus-visible {
  outline: 2px solid rgba(30,112,74,.72);
  outline-offset: 1px;
  border-color: #24845b;
  box-shadow: 0 0 0 4px rgba(36,132,91,.09);
}
.mkfool-trust div {transition: transform .3s var(--mk-ease),background .3s ease;}
@media (hover:hover) { .mkfool-trust div:hover {transform:translateY(-2px);background:#f1f8f4;} }
/* Scroll reveal never hides content (safe if JS fails). */
.mkfool-motion-enabled .mkfool-reveal {
  transition: opacity .75s var(--mk-ease), transform .75s var(--mk-ease);
}
.mkfool-motion-enabled .mkfool-reveal:not(.mkfool-inview) {
  opacity: .82;
  transform: translate3d(0,12px,0);
}
.mkfool-motion-enabled .mkfool-reveal.mkfool-inview {
  opacity: 1;
  transform: translate3d(0,0,0);
}
/* Thin progress indicator gives long image landing pages a sense of movement. */
.mkfool-scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 100%;
  height: 3px;
  z-index: 100;
  pointer-events: none;
  transform-origin: right center;
  transform: scaleX(0);
  background: linear-gradient(90deg,#bd9e6b,#236e4f);
  will-change: transform;
}
@media (max-width: 820px) {
  html,body { width:100% !important; max-width:100% !important; overflow-x:hidden !important; }
  main.container { min-width:0 !important; width:100%; }
  .premium-product-top { grid-template-columns:minmax(0,1fr) !important; }
  .premium-product, .premium-gallery, .premium-photo-stack,
  .premium-order-box, .premium-visual, .premium-buy { width:100%;min-width:0 !important; }
  .premium-mobile-sticky {
    box-sizing:border-box;
    max-width:100vw !important;
    min-width:0 !important;
    padding-inline:max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-left));
  }
  .premium-main-photo { aspect-ratio:1/1 !important; }
  .premium-product .premium-product-title { max-width:100% !important; }
  .premium-end-cta {max-width:100%;}
  .ai-public-page { width:100%; max-width:100%; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
  .mkfool-scroll-progress{display:none!important;}
  .mkfool-reveal {opacity:1!important;transform:none!important;}
}
