/* AMBAT V240 product configurator */
#productPageDemo.ambat-builder-open{position:fixed!important;inset:0!important;z-index:99999!important;background:#fbf8f4!important;overflow:auto!important;padding:24px 0 60px!important;display:block!important}
#productPageDemo.ambat-builder-open>.wrap{max-width:1480px!important;width:calc(100% - 32px)!important}
#productPageDemo .ambat-product-builder{display:grid!important;grid-template-columns:minmax(360px,44%) minmax(420px,56%)!important;gap:24px!important;align-items:start!important;direction:ltr}
#productPageDemo .xpreview,#productPageDemo .xconfig{direction:rtl;background:#fff;border:1px solid #eadfd2;border-radius:28px;padding:24px;box-sizing:border-box}
#productPageDemo .xpreview{position:sticky;top:20px;min-height:620px}
.xpreview-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.xpreview-head b{font-size:22px}.xpreview-head small{display:block;color:#756b63}.xmodel-thumb{width:74px;height:58px;object-fit:cover;border-radius:12px;border:1px solid #e4dbd1}
.xscene{height:500px;border-radius:24px;background:linear-gradient(#e8e2da 0 58%,#d6c8b9 58%);position:relative;overflow:hidden;display:flex;justify-content:center;align-items:center}.xscene:after{content:"";position:absolute;left:0;right:0;bottom:37%;height:1px;background:#c5b9ac}
.xmirror{position:absolute;top:48px;width:42%;height:34%;background:linear-gradient(135deg,#eef2f2,#cfd7d7);border:8px solid #f4eee7;border-radius:4px;box-shadow:0 10px 30px #0001}.xmirror.gift{border-radius:50%}.xmirror.led{border-radius:50%;box-shadow:0 0 0 5px #fff,0 0 28px 9px #fff9}.xmirror.none{display:none}
.xvanity{position:absolute;top:270px;width:66%;height:180px}.xtop{position:absolute;top:0;left:-3%;width:106%;height:18px;background:#f5f3ee;border-radius:8px;z-index:3;box-shadow:0 3px 6px #0002}.xcab{position:absolute;top:18px;left:0;width:100%;height:125px;background:var(--cab);border-radius:4px;box-shadow:0 14px 24px #0002}.xline{position:absolute;left:3%;right:3%;top:50%;height:1px;background:#0003}.xcubby{display:none;position:absolute;right:-22%;top:0;width:20%;height:100%;background:#7a573c;border-radius:4px}.has-cubby .xcubby{display:block}.xlegs{display:none;position:absolute;top:143px;left:8%;right:8%;justify-content:space-between}.standing .xlegs{display:flex}.xlegs i{width:10px;height:38px;background:#4d463f}.xsink{position:absolute;left:50%;top:-4px;transform:translateX(-50%);width:34%;height:12px;border-radius:4px;background:#e8e8e6;border:2px solid #cfcfca}.integral .xsink,.corian-integrated .xsink{height:8px;border-radius:50%;background:#d9d9d4}.butcher{background:#9b6d47}.butcher .xsink,.corian-slab .xsink{height:18px;top:-12px;border-radius:45%;background:#fff;border:2px solid #ddd}.xsink.black{background:#252525}.xsink.double{box-shadow:70px 0 0 #e3e3df,-70px 0 0 #e3e3df;width:22%}.xfaucet{position:absolute;top:-22px;left:43%;width:5px;height:25px;background:#2a2927;border-radius:4px}.xfaucet:after{content:"";position:absolute;width:20px;height:5px;right:0;top:0;background:#2a2927}.xpreview-note{display:block;color:#786e66;margin-top:14px;line-height:1.5}
.xkicker{font-size:12px;letter-spacing:.11em;color:#9a7b54}.xconfig h2{font-size:38px;margin:6px 0}.xmuted{color:#766d66;margin-top:0}.xprice{background:#f3ede5;border-radius:20px;padding:18px 20px;margin:18px 0}.xprice small{margin-left:12px}.xprice strong{font-size:25px}.xprice span{display:block;margin-top:6px;color:#70665d;font-size:13px}.xstep{border-top:1px solid #eadfd5;padding:20px 0}.xstep-title{margin-bottom:12px}.xstep-title b{font-size:20px}.xstep-title small{display:block;color:#7c7269;margin-top:4px}.xstep.required>.xstep-title b:after{content:" *";color:#a54c3d}.xchoice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.xchoice-grid.tops{grid-template-columns:repeat(2,1fr)}.xchoice{background:#faf7f2;border:1px solid #e6ddd4;border-radius:16px;padding:14px;text-align:right;cursor:pointer;color:#211c18}.xchoice b{display:block}.xchoice small{display:block;color:#746a62;margin-top:4px}.xchoice.active,.xchip.active,.xswatch.active,.xproduct.active,.xbowl.active{border-color:#9c6f34!important;box-shadow:0 0 0 2px #d9bd8f55;background:#fffaf1!important}.xchips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.xchip{border:1px solid #ddd2c6;background:#fff;border-radius:999px;padding:10px 14px;cursor:pointer}.xmeasure{display:grid;grid-template-columns:1fr 1fr;gap:10px}.xmeasure label,.xfaucet-measure label{background:#faf7f2;border:1px solid #e5dcd2;border-radius:14px;padding:10px;font-weight:700}.xmeasure input,.xfaucet-measure input,.xinline input,.xinline select{width:100%;box-sizing:border-box;border:0;background:#fff;border-radius:10px;padding:11px;margin-top:6px;font-size:16px}.xhint{color:#7a7169}.xsubhead{font-weight:700;margin:18px 0 9px}.xswatches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.xswatch{border:1px solid #e4d9cf;background:#fff;border-radius:14px;padding:8px;cursor:pointer}.xswatch i{display:block;height:54px;border-radius:9px;margin-bottom:6px}.xswatch i.wood{background:repeating-linear-gradient(92deg,var(--wood),var(--wood) 7px,color-mix(in srgb,var(--wood),#5b3e28 14%) 8px,color-mix(in srgb,var(--wood),#5b3e28 14%) 10px)}.xswatch span{font-size:13px}.xswatch small{display:block;color:#83766b}.xdetails{margin-top:10px;background:#f8f3ec;border-radius:14px;padding:12px}.xdetails summary{cursor:pointer;font-weight:700}.xinline{display:grid;grid-template-columns:130px 1fr auto;gap:8px;margin-top:10px}.xinline button{border:0;background:#211f1b;color:#fff;border-radius:10px;padding:0 16px}.xincluded,.xwarn,.xtip{margin-top:12px;background:#f4efe7;border-radius:14px;padding:13px}.xwarn{background:#fff2ed}.xtip b,.xtip span{display:block}.xtoggle{display:flex;gap:8px;align-items:center;background:#faf7f2;border-radius:14px;padding:12px;margin-top:10px}.xtoggle input{width:18px;height:18px}.xbowl-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.xbowl{border:1px solid #e5d9cd;background:#fff;border-radius:16px;padding:10px;cursor:pointer}.countertop{display:block;height:92px;background:#f4f3ef;border-radius:8px;position:relative;box-shadow:0 5px 14px #0001}.bowl{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:58%;height:48%;background:radial-gradient(ellipse at 50% 25%,#fbfbf9,#d9d9d4);box-shadow:inset 0 7px 12px #0002;border-radius:22px}.bowl.oval{border-radius:50%}.bowl.round-rect{border-radius:35%}.xbowl b,.xbowl small{display:block;margin-top:6px}.xfaucet-measure{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.xfaucet-measure details{background:#f8f3ec;border-radius:14px;padding:12px}.measure-diagram{height:60px;display:flex;align-items:center;justify-content:space-between;gap:5px}.measure-diagram i{flex:1;height:2px;background:#9c6f34;position:relative}.measure-diagram i:before,.measure-diagram i:after{content:"";position:absolute;width:8px;height:8px;border-left:2px solid #9c6f34;border-bottom:2px solid #9c6f34;top:-4px;transform:rotate(45deg)}.measure-diagram i:before{left:0}.measure-diagram i:after{right:0;transform:rotate(225deg)}
.xcatalog{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;max-height:520px;overflow:auto;padding:2px}.xproduct{border:1px solid #e5dcd2;background:#fff;border-radius:14px;overflow:hidden;cursor:pointer;padding:0;text-align:right}.xproduct img{width:100%;height:120px;object-fit:contain;background:#faf9f7}.xproduct span{display:block;padding:9px}.xproduct b,.xproduct small,.xproduct em{display:block}.xproduct small{color:#7c7067}.xproduct em{font-style:normal;color:#7c572b;font-weight:700;margin-top:3px}.xmore{border:0;background:none;text-decoration:underline;margin-top:9px;cursor:pointer}.mirrors .xproduct img{height:150px}.xcustom{margin-top:10px;border:0;background:none;text-decoration:underline;cursor:pointer;font-weight:700}.xsummary{position:sticky;bottom:0;background:#fff;border-top:1px solid #e4d9cf;margin:16px -24px -24px;padding:18px 24px;border-radius:0 0 28px 28px;box-shadow:0 -10px 25px #0000000a}.xsummary p{margin:5px 0;color:#625951}.xmissing{color:#a04d3c;font-size:13px}.xmissing.ok{color:#39744a}.xadd{width:100%;border:0;background:#1e1d1a;color:#fff;border-radius:999px;padding:15px;font-size:17px;font-weight:700;margin-top:10px}.xadd:disabled{opacity:.35}.xsummary>small{display:block;text-align:center;color:#7c7268;margin-top:8px}.xhandoff{position:fixed;inset:0;background:#0007;z-index:100500;display:none;align-items:center;justify-content:center;padding:20px}.xhandoff.show{display:flex}.xhandoff>div{max-width:520px;width:100%;background:#fff;border-radius:24px;padding:24px;position:relative;direction:rtl}.xclose{position:absolute;left:15px;top:12px;border:0;background:#eee;border-radius:50%;width:36px;height:36px;font-size:24px}.xrep{width:100%;border:0;background:#1e1d1a;color:white;border-radius:999px;padding:14px;font-weight:700}.xhandoff small{display:block;color:#766b62;margin-top:8px}.ambat-builder-close{position:fixed!important;top:20px!important;left:22px!important;z-index:100100!important}
@media(max-width:900px){#productPageDemo .ambat-product-builder{grid-template-columns:1fr!important}.xpreview{position:relative!important;min-height:0!important}.xscene{height:360px}.xconfig h2{font-size:30px}.xswatches{grid-template-columns:repeat(2,1fr)}.xcatalog{grid-template-columns:repeat(2,1fr)}.xbowl-grid{grid-template-columns:repeat(2,1fr)}.xinline{grid-template-columns:1fr}.xfaucet-measure{grid-template-columns:1fr}}
/* V241 refinements: real veneer swatches, image-only faucets, reliable Corian measuring help */
.xswatch .xveneer-img{display:block;width:100%;height:78px;object-fit:cover;border-radius:10px;margin-bottom:7px;background:#f6f1ea}
.xswatch:has(.xveneer-img){padding:7px;text-align:center}
.xfaucet-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:540px;overflow:auto;padding:2px;margin-top:10px}
.xfaucet-card{position:relative;border:1px solid #e5dcd2;background:#fff;border-radius:14px;overflow:hidden;cursor:pointer;padding:0;aspect-ratio:1/1;transition:.15s ease}
.xfaucet-card:hover{transform:translateY(-1px);box-shadow:0 5px 16px #00000010}
.xfaucet-card.active{border-color:#9c6f34!important;box-shadow:0 0 0 2px #d9bd8f55;background:#fffaf1!important}
.xfaucet-card img{display:block;width:100%;height:100%;object-fit:contain;background:#faf9f7;padding:7px;box-sizing:border-box}
.xmeasure-help-wrap{background:#f8f3ec;border-radius:14px;padding:10px;align-self:stretch}
.xmeasure-help{width:100%;border:1px solid #ddcbb8;background:#fff;border-radius:12px;padding:12px 14px;font-weight:700;cursor:pointer;color:#4b3823}
.xmeasure-help-box{margin-top:9px;background:#fff;border:1px solid #eadfd4;border-radius:12px;padding:12px}
.xmeasure-help-box p{margin:7px 0 0;color:#625950;font-size:14px;line-height:1.55}
.xmeasure-help-box .measure-diagram{height:72px}
@media(max-width:900px){.xfaucet-grid{grid-template-columns:repeat(3,1fr)}.xswatch .xveneer-img{height:92px}}
@media(max-width:560px){.xfaucet-grid{grid-template-columns:repeat(2,1fr)}}

/* V242 – wall-side and valve helpers */
.xvalve-guide{display:flex;align-items:center;gap:12px;background:#f8f3ec;border:1px solid #eadfd4;border-radius:16px;padding:12px;margin-bottom:12px}.xvalve-drawing{width:92px;min-width:92px;background:#fff;border-radius:12px;padding:4px}.xvalve-drawing svg{display:block;width:100%;height:auto}.xvalve-guide b,.xvalve-guide span{display:block}.xvalve-guide span{font-size:13px;color:#756b62;margin-top:3px}.xvalve-colors{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.xvalve-colors .xchoice{text-align:center;position:relative;padding-top:42px}.xvalve-colors .xchoice:before{content:"";position:absolute;top:10px;left:50%;transform:translateX(-50%);width:24px;height:24px;border-radius:50%;border:1px solid #cfc5ba;box-shadow:inset 0 0 0 3px #fff}.xvalve-colors .xchoice[data-val="nickel"]:before{background:linear-gradient(135deg,#f4f4f4,#9c9c9c)}.xvalve-colors .xchoice[data-val="gold"]:before{background:linear-gradient(135deg,#f6dd8b,#b38724)}.xvalve-colors .xchoice[data-val="black"]:before{background:#242424}.xvalve-colors .xchoice[data-val="white"]:before{background:#fff}.xwall-side{margin-top:12px}.xwall-side .xsubhead{margin:10px 0 8px}@media(max-width:640px){.xvalve-colors{grid-template-columns:repeat(2,1fr)}.xvalve-guide{align-items:flex-start}.xvalve-drawing{width:76px;min-width:76px}}

/* V243 — image zoom + free-first catalog polish */
.ximgwrap{position:relative;display:block;width:100%}
.ximgwrap>img{display:block}
.xzoom{position:absolute;left:7px;top:7px;width:30px;height:30px;border-radius:50%;background:#fff;border:1px solid #ded5cb;box-shadow:0 2px 9px #0002;display:flex;align-items:center;justify-content:center;font-size:20px;line-height:1;color:#2c2925;z-index:3;cursor:zoom-in;font-weight:700}
.xzoom:hover{transform:scale(1.06)}
.xswatch .ximgwrap{margin-bottom:6px}.xswatch .ximgwrap .xveneer-img{margin-bottom:0}
.xfaucet-card .ximgwrap,.xfaucet-card .ximgwrap>img{width:100%;height:100%}
.xmodel-thumb-wrap{position:relative;display:inline-block}.xmodel-thumb-wrap .xzoom{width:25px;height:25px;font-size:16px;left:3px;top:3px}
.ximage-lightbox{position:fixed;inset:0;background:#000b;z-index:100900;display:none;align-items:center;justify-content:center;padding:24px;direction:rtl}
.ximage-lightbox.show{display:flex}
.ximage-lightbox-inner{position:relative;max-width:min(920px,94vw);max-height:92vh;background:#fff;border-radius:22px;padding:18px;box-shadow:0 24px 70px #0007;text-align:center}
.ximage-lightbox-inner img{display:block;max-width:100%;max-height:78vh;object-fit:contain;margin:auto;border-radius:12px;background:#faf9f7}
.ximage-lightbox-inner>div{font-weight:700;margin-top:10px;color:#3b352f}
.ximage-lightbox-close{position:absolute;left:12px;top:12px;width:38px;height:38px;border:0;border-radius:50%;background:#fff;box-shadow:0 2px 12px #0003;font-size:28px;line-height:1;cursor:pointer;z-index:2}
@media(max-width:650px){.xzoom{width:28px;height:28px}.ximage-lightbox{padding:10px}.ximage-lightbox-inner{padding:12px;border-radius:16px}.ximage-lightbox-inner img{max-height:80vh}}
/* V244 cubby configurator */
.xcubby-config{margin-top:12px;padding:14px;background:#fff;border:1px solid #eadfd5;border-radius:16px}.xcubby-result{background:#faf7f2;border:1px solid #e5dcd2;border-radius:14px;padding:12px;display:flex;flex-direction:column;justify-content:center}.xcubby-result span{margin-top:6px;color:#6f655d}.xcubby-sketch{display:flex;height:76px;margin-top:12px;border:2px solid #b99b77;border-radius:10px;overflow:hidden;background:#f8f4ee}.xcubby-sketch i{font-style:normal;display:flex;align-items:center;justify-content:center;padding:6px;text-align:center}.xcubby-sketch .cubby{flex:1;background:#efe3d2;border-inline:1px solid #cdb89d}.xcubby-sketch .drawers{flex:2.2;background:repeating-linear-gradient(to bottom,#faf7f2 0,#faf7f2 35px,#d8c9b7 36px,#d8c9b7 38px)}


/* V247 — realistic 16:9 smart preview */
#productPageDemo .xpreview{min-height:0}
.xreal-stage{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  border-radius:24px;
  overflow:hidden;
  background:#f3efe9;
  border:1px solid #e7ddd2;
  box-shadow:0 18px 45px rgba(54,43,32,.08);
}
.xreal-hero{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  transform:scale(1.005);
}
.xreal-soft-vignette{
  position:absolute;inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(30,20,10,.05));
  box-shadow:inset 0 0 70px rgba(36,27,20,.05);
}
.xreal-color-key{
  position:absolute;
  right:16px;
  bottom:16px;
  display:flex;
  gap:9px;
  align-items:center;
  max-width:58%;
  padding:9px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);
  border:1px solid rgba(220,209,197,.9);
  box-shadow:0 8px 25px rgba(0,0,0,.09);
  font-size:12px;
}
.xreal-color-key i{
  width:22px;height:22px;border-radius:50%;
  border:1px solid rgba(0,0,0,.13);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.45);
  flex:0 0 auto;
}
.xreal-chips{
  position:absolute;
  left:14px;
  top:14px;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  max-width:70%;
  direction:rtl;
}
.xreal-chips span{
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(7px);
  border:1px solid rgba(224,214,203,.9);
  border-radius:999px;
  padding:7px 10px;
  font-size:11px;
  box-shadow:0 5px 16px rgba(0,0,0,.06);
}
.xreal-components{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
.xreal-component{
  min-height:78px;
  border:1px solid #eadfd2;
  border-radius:16px;
  background:#faf8f5;
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 10px;
  overflow:hidden;
}
.xreal-component img{
  width:55px;height:55px;object-fit:contain;
  background:#fff;border-radius:10px;
  flex:0 0 auto;
}
.xreal-component b{font-size:11px;line-height:1.3}
.xreal-enlarge{
  border:1px solid #e2d6c9;
  background:#f8f4ef;
  color:#2c2621;
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  font:inherit;
  font-size:12px;
}
.xreal-empty{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#8b8178;
  font-size:14px;
}
@media(max-width:900px){
  .xreal-components{grid-template-columns:repeat(2,minmax(0,1fr))}
  .xreal-color-key{max-width:80%}
}


/* V249 — live visual changes inside the realistic preview */
.xreal-cabinet-recolor,
.xreal-cabinet-veneer{
  position:absolute;
  z-index:2;
  left:13.5%;
  top:53.5%;
  width:73%;
  height:34%;
  border-radius:2px 2px 8px 8px;
  pointer-events:none;
}
.xreal-cabinet-recolor{
  background:var(--tint);
  mix-blend-mode:color;
  opacity:.92;
}
.xreal-cabinet-recolor.light{
  mix-blend-mode:screen;
  opacity:.64;
  box-shadow:inset 0 0 0 999px color-mix(in srgb,var(--tint) 35%,transparent);
}
.xreal-cabinet-recolor.dark{
  mix-blend-mode:multiply;
  opacity:.72;
}
.xreal-cabinet-recolor.mid{
  mix-blend-mode:color;
  opacity:.94;
}
.xreal-cabinet-veneer{
  background-size:cover;
  background-position:center;
  mix-blend-mode:multiply;
  opacity:.82;
}
.xreal-top-material{
  position:absolute;
  z-index:4;
  left:12.7%;
  top:49.1%;
  width:74.5%;
  height:6.2%;
  pointer-events:none;
  clip-path:polygon(2% 18%,98% 18%,100% 74%,0 74%);
  border-radius:4px;
  box-shadow:0 2px 3px rgba(0,0,0,.13);
}
.xreal-top-material.butcher{
  background-size:cover;
  background-position:center;
  filter:saturate(.93) contrast(.98);
}
.xreal-top-material.corian{
  background:linear-gradient(180deg,#fff,#eeeae4);
}
.xreal-top-material.corian.integrated{
  height:7%;
}
.xreal-top-material.corian.integrated i{
  position:absolute;
  width:30%;
  height:105%;
  left:35%;
  top:-5%;
  border-radius:46%;
  background:radial-gradient(ellipse at center,#ddd 0 16%,#f4f2ef 55%,transparent 58%);
  opacity:.8;
}
.xreal-stage .xreal-soft-vignette{z-index:5}
.xreal-stage .xreal-color-key,
.xreal-stage .xreal-chips{z-index:8}
@media(max-width:900px){
  .xreal-cabinet-recolor,.xreal-cabinet-veneer{left:12%;width:76%;top:54%;height:33%}
  .xreal-top-material{left:11.5%;width:77%;top:49.5%}
}


/* V250 — original model image + AI preview on demand */
.xoriginal-stage{background:#f4efe8}
.xoriginal-stage .xreal-hero{object-fit:cover}
.xoriginal-stage ~ .xreal-components{margin-top:12px}
.xswatch-card i{
  width:55px;height:55px;border-radius:10px;border:1px solid #ded4c8;display:block;flex:0 0 auto;
}
.xai-cta{
  margin:16px 0;
  padding:16px;
  border:1px solid #dfd1c1;
  border-radius:18px;
  background:linear-gradient(135deg,#f8f2ea,#fff);
  display:grid;
  gap:7px;
  text-align:right;
}
.xai-cta b{font-size:16px}
.xai-cta span{font-size:12px;color:#746b63;line-height:1.5}
.xai-cta button{
  margin-top:4px;border:0;border-radius:999px;padding:12px 18px;
  background:#2a2521;color:#fff;font:inherit;font-weight:800;cursor:pointer;
}
.xai-cta button:disabled{opacity:.35;cursor:not-allowed}
.xai-modal{
  position:fixed;inset:0;z-index:100000;
  background:rgba(24,20,17,.62);display:none;align-items:center;justify-content:center;
  padding:20px;backdrop-filter:blur(5px);
}
.xai-modal.show{display:flex}
.xai-dialog{
  width:min(760px,96vw);max-height:92vh;overflow:auto;position:relative;
  background:#fff;border-radius:26px;padding:24px;direction:rtl;
  box-shadow:0 25px 90px rgba(0,0,0,.28);
}
.xai-close{
  position:absolute;left:16px;top:14px;width:38px;height:38px;border:0;border-radius:50%;
  background:#f2ede7;font-size:26px;cursor:pointer;
}
.xai-title{font-size:26px;font-weight:900;margin-bottom:6px}
.xai-dialog>p{color:#70665d;margin:0 0 16px;line-height:1.55}
.xai-source{
  display:grid;grid-template-columns:150px 1fr;gap:14px;align-items:center;
  border:1px solid #e8ded4;border-radius:18px;padding:10px;background:#faf8f5;
}
.xai-source img{width:150px;height:105px;object-fit:cover;border-radius:12px}
.xai-source div{display:grid;gap:5px}
.xai-source span{font-size:12px;color:#746b63;line-height:1.45}
.xai-result{
  min-height:170px;margin:14px 0;border:1px dashed #d8c8b8;border-radius:18px;
  background:#fcfaf7;display:flex;align-items:center;justify-content:center;padding:14px;
}
.xai-ready,.xai-error,.xai-loading{display:grid;gap:7px;text-align:center;max-width:460px}
.xai-ready span,.xai-error span,.xai-loading span{font-size:12px;color:#746b63}
.xai-loading i{
  width:28px;height:28px;border:3px solid #dfd7ce;border-top-color:#2a2521;
  border-radius:50%;margin:auto;animation:xspin .8s linear infinite;
}
@keyframes xspin{to{transform:rotate(360deg)}}
.xai-generated{width:100%;display:grid;gap:10px}
.xai-generated img{width:100%;max-height:480px;object-fit:contain;border-radius:14px;background:#f4efe8}
.xai-generated button{justify-self:center;border:1px solid #ddd0c3;background:#fff;border-radius:999px;padding:9px 15px;cursor:pointer}
.xai-generate{
  width:100%;border:0;border-radius:999px;padding:14px 18px;background:#1e1b19;color:#fff;
  font:inherit;font-weight:900;cursor:pointer;
}
.xai-generate:disabled{opacity:.5;cursor:wait}
.xai-dialog>small{display:block;margin-top:10px;color:#857a70;text-align:center}
@media(max-width:650px){
  .xai-source{grid-template-columns:1fr}
  .xai-source img{width:100%;height:180px}
}


/* V251 — keep the choices area clean; move summary/AI/cart to a bottom tray */
#productPageDemo .xsummary{display:none!important}

.xcheckout-tray{
  position:sticky;
  bottom:0;
  z-index:8500;
  width:min(1180px,calc(100% - 28px));
  margin:14px auto 0;
  background:rgba(255,255,255,.97);
  border:1px solid #e4d8ca;
  border-radius:22px 22px 0 0;
  box-shadow:0 -14px 38px rgba(54,43,32,.12);
  backdrop-filter:blur(12px);
  overflow:hidden;
  direction:rtl;
}
.xcheckout-toggle{
  width:100%;
  border:0;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 18px;
  cursor:pointer;
  font:inherit;
}
.xcheckout-title{font-weight:900;font-size:15px}
.xcheckout-status{
  font-size:12px;
  color:#9a5c44;
  background:#fff2ec;
  padding:6px 10px;
  border-radius:999px;
}
.xcheckout-tray.complete .xcheckout-status{
  color:#2f6f4b;
  background:#edf8f1;
}
.xcheckout-body{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:0 18px 14px;
  border-top:1px solid #efe6dc;
}
.xcheckout-summary{padding-top:12px}
.xcheckout-summary b{font-size:14px}
.xcheckout-summary p{
  margin:4px 0 7px;
  font-size:12px;
  color:#70665d;
  line-height:1.45;
  max-height:38px;
  overflow:hidden;
}
.xcheckout-summary .xmissing{
  margin:0;
  font-size:12px;
  background:transparent;
  padding:0;
  border:0;
}
.xcheckout-actions{
  display:flex;
  gap:9px;
  align-items:center;
  padding-top:12px;
}
.xcheckout-actions button{
  min-width:150px;
  border-radius:999px;
  padding:12px 18px;
  font:inherit;
  font-weight:900;
  cursor:pointer;
}
.xcheckout-actions .xai-inline{
  border:1px solid #d8c7b6;
  background:#f8f2eb;
  color:#2a2521;
}
.xcheckout-actions .xadd{
  width:auto;
  margin:0;
  border:0;
  background:#1f1c1a;
  color:#fff;
}
.xcheckout-actions button:disabled{
  opacity:.35;
  cursor:not-allowed;
}
.xcheckout-tray:not(.open) .xcheckout-body{display:none}
.xcheckout-tray.open .xcheckout-toggle{
  box-shadow:0 1px 0 #efe6dc;
}

/* Zoom buttons must stay inside their own image cards */
.xzoom-button,
[data-zoom].xzoom-button{
  z-index:5!important;
}
.ximgwrap,
.xchoice-image,
.xproduct-card,
.xmirror-card,
.xfaucet-card,
.xsink-card,
.xveneer-card{
  overflow:hidden;
  position:relative;
}

@media(min-width:901px){
  .xcheckout-tray.complete{position:sticky}
}
@media(max-width:900px){
  .xcheckout-tray{
    width:100%;
    margin:8px 0 0;
    border-radius:18px 18px 0 0;
  }
  .xcheckout-body{
    grid-template-columns:1fr;
    gap:8px;
  }
  .xcheckout-actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
    padding-top:0;
  }
  .xcheckout-actions button{min-width:0;width:100%}
}


/* V252 — compact frozen top order header */
.xcheckout-tray{display:none!important}

.xorder-sticky{
  position:sticky;
  top:0;
  z-index:9000;
  width:100%;
  direction:rtl;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid #e7ddd2;
  box-shadow:0 5px 18px rgba(54,43,32,.07);
  backdrop-filter:blur(12px);
}
.xorder-bar{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px 18px;
}
.xorder-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.xorder-brand>b{
  font-size:14px;
  white-space:nowrap;
}
.xorder-status{
  font-size:11px;
  padding:5px 9px;
  border-radius:999px;
  background:#fff0e9;
  color:#a05d45;
  white-space:nowrap;
}
.xorder-sticky.complete .xorder-status{
  background:#edf8f1;
  color:#34704e;
}
.xorder-quick{
  display:flex;
  align-items:center;
  gap:7px;
}
.xorder-quick button,
.xorder-panel-actions button{
  border-radius:999px;
  padding:8px 13px;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.xorder-summary-btn{
  border:1px solid #ded2c6;
  background:#fff;
  color:#29231f;
}
.xorder-summary-btn span{
  display:inline-block;
  margin-right:3px;
  transition:transform .2s ease;
}
.xorder-sticky.open .xorder-summary-btn span{transform:rotate(180deg)}
.xorder-ai{
  border:1px solid #d9c7b5;
  background:#f8f1e9;
  color:#2a2521;
}
.xorder-cart{
  border:0;
  background:#1f1c1a;
  color:#fff;
}
.xorder-panel{
  display:none;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  padding:12px 18px 15px;
  border-top:1px solid #eee5dc;
  background:#fff;
}
.xorder-sticky.open .xorder-panel{display:grid}
.xorder-panel p{
  margin:4px 0 5px;
  font-size:12px;
  color:#71675e;
  line-height:1.45;
}
.xorder-panel .xmissing{
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  font-size:11px;
}
.xorder-panel-actions{
  display:flex;
  gap:8px;
}
.xorder-panel-actions button{
  border:1px solid #d9c7b5;
  background:#f8f1e9;
}
.xorder-panel-actions .xadd{
  width:auto;
  margin:0;
  border:0;
  background:#1f1c1a;
  color:#fff;
}
.xorder-panel-actions button:disabled{
  opacity:.35;
  cursor:not-allowed;
}

/* keep image controls below the frozen header */
.xreal-enlarge,[data-zoom]{z-index:20}
.xorder-sticky [data-action]{z-index:auto}

@media(max-width:700px){
  .xorder-bar{padding:6px 10px;min-height:48px}
  .xorder-brand{gap:6px}
  .xorder-brand>b{font-size:13px}
  .xorder-status{font-size:10px;padding:4px 7px}
  .xorder-quick{gap:5px}
  .xorder-quick button{padding:7px 9px;font-size:11px}
  .xorder-panel{grid-template-columns:1fr;padding:11px 12px 13px}
  .xorder-panel-actions{display:grid;grid-template-columns:1fr 1fr}
  .xorder-panel-actions button{width:100%}
}

/* V284 – live price under product image */
.xlive-price{margin-top:14px;background:#201c18;color:#fff;border-radius:17px;padding:15px 18px;box-shadow:0 10px 28px #0002;display:grid;gap:2px;position:relative;z-index:20}
.xlive-price small{font-size:12px;color:#d8c7ae;font-weight:700}
.xlive-price strong{font-size:29px;line-height:1.15;letter-spacing:.01em}
.xlive-price span{font-size:11px;color:#e8dfd5}
@media(max-width:900px){.xlive-price{position:fixed;left:12px;bottom:82px;width:auto;min-width:145px;margin:0;padding:11px 14px;border-radius:15px;z-index:10020;box-shadow:0 10px 30px #0005}.xlive-price strong{font-size:22px}.xlive-price span{display:none}}
/* V312 — compact cabinet measuring guide */
.xmeasure-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;flex-wrap:wrap}
.xmeasure-guide-btn{border:1px solid #d9c3a8;background:#fffaf4;color:#4b3823;border-radius:999px;padding:8px 13px;font:inherit;font-weight:700;cursor:pointer}
.xmeasure-guide{display:grid;grid-template-columns:180px 1fr;gap:18px;align-items:center;background:#faf6f0;border:1px solid #eadfd4;border-radius:18px;padding:16px;margin:0 0 14px}
.xmeasure-sketch{position:relative;height:130px;display:flex;align-items:center;justify-content:center}
.xmg-cabinet{width:120px;height:66px;border:2px solid #9b7a52;border-radius:4px;display:grid;grid-template-columns:1fr 1fr;background:#fff}
.xmg-cabinet i{border-left:1px solid #c8b69f}.xmg-cabinet i:first-child{border-left:0}
.xmg-width{position:absolute;top:8px;font-size:13px;font-weight:700}.xmg-depth{position:absolute;left:0;bottom:12px;font-size:13px;font-weight:700;transform:rotate(-90deg)}
.xmeasure-guide-copy b{font-size:16px}.xmeasure-guide-copy p{margin:7px 0;color:#625950;line-height:1.55;font-size:14px}.xmeasure-guide-copy small{display:block;margin-top:9px;color:#8a7867;line-height:1.5}
@media(max-width:700px){.xmeasure-guide{grid-template-columns:1fr}.xmeasure-sketch{height:105px}.xmeasure-title-row{align-items:flex-start}.xmeasure-guide-btn{padding:7px 11px}}

/* V315 model-specific width validation */
.xmeasure label.xmeasure-invalid{border-color:#b34f3f!important;background:#fff7f4!important}.xmeasure label.xmeasure-invalid input{outline:1px solid #b34f3f}.xmeasure-title-row .xhint b{color:#3e2f22}
