#kioskPrompt {
  position: fixed;
  z-index: 15;
  transform: translate(-50%, -100%);
  max-width: 290px;
  border: 1px solid #94ece0;
  border-radius: 12px;
  background: #103f3cef;
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  box-shadow: 0 5px 20px #0003;
}
#kioskPrompt.visible {
  opacity: 1;
  pointer-events: auto;
}
#kioskOverlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #102c2bab;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #203638;
  font-family:
    Segoe UI,
    Cairo,
    sans-serif;
}
#kioskOverlay[dir="rtl"] {
  font-family:
    Cairo,
    Segoe UI,
    sans-serif;
}
#kioskOverlay button {
  color: inherit;
  border: 0;
  cursor: pointer;
  transition:
    background 0.18s,
    transform 0.18s;
  font-size: 13px;
  font-weight: 600;
}
#kioskOverlay button:hover {
  transform: none;
  background: #d7eeeb;
}
#kioskOverlay button:focus-visible {
  outline: 3px solid #bd7028;
  outline-offset: 2px;
}
#kioskOverlay button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.kioskShell {
  width: min(1120px, 100%);
  height: min(880px, 94dvh);
  background: #fbfcfa;
  border: 7px solid #fff;
  border-radius: 26px;
  box-shadow: 0 25px 100px #001b2850;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.ktop {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e8efec;
  flex-shrink: 0;
  background: white;
  z-index: 2;
}
.kbrand {
  font-weight: 950;
  letter-spacing: -1px;
  font-size: 18px;
  line-height: 1;
}
.kbrand span {
  color: #2daeb0;
  margin-inline-start: 4px;
}
.kbrand small {
  display: block;
  font-size: 9px;
  color: #7a918d;
  letter-spacing: 1px;
  margin-top: 6px;
}
.ktoggle {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: #eef6f4;
  border-radius: 24px;
}
.ktoggle button {
  padding: 8px 12px !important;
  border-radius: 20px;
  background: transparent;
  color: #567571 !important;
}
.ktoggle button[aria-pressed="true"] {
  background: #2daeb0 !important;
  color: white !important;
}
.klanguages button {
  padding: 8px 10px !important;
}
.kcancel {
  margin-inline-start: auto;
  background: #f1f6f5;
  border-radius: 20px;
  padding: 10px 16px !important;
  white-space: nowrap;
}
.kbody {
  display: flex;
  flex: 1;
  min-height: 0;
}
.kside {
  width: 148px;
  flex-shrink: 0;
  padding: 16px 10px;
  background: #f6faf7;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-inline-end: 1px solid #e8efec;
}
.kside button {
  width: 100%;
  background: white;
  padding: 15px 8px !important;
  min-height: 78px;
  border-radius: 13px;
  line-height: 1.3;
  text-align: center;
  font-size: 12px !important;
  color: #496565 !important;
}
.kside button > span {
  display: block;
  font-size: 23px;
  color: #2daeb0;
  margin-bottom: 5px;
}
.kside button[aria-pressed="true"] {
  background: #2daeb0 !important;
  color: #fff !important;
  box-shadow: 0 5px 15px #2daeb029;
}
.kside button[aria-pressed="true"] > span {
  color: white;
}
.kcontent {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 22px 26px 30px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.kheading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.kheading small {
  color: #379b95;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.kheading h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  margin: 6px 0;
}
.kheading p {
  font-size: 12px;
  color: #6f8583;
  margin: 0;
}
.klive {
  color: #648680;
  font-size: 10px;
  line-height: 1.6;
  max-width: 140px;
  align-self: center;
}
.kbanners {
  display: grid;
  gap: 8px;
}
.kbanners article {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff0df;
  border-radius: 14px;
  padding: 10px 12px;
  min-height: 62px;
}
.kbanners img {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: 10px;
}
.kbanners article > div {
  flex: 1;
  min-width: 0;
}
.kbanners strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}
.kbanners small {
  color: #9a8068;
  font-size: 10px;
}
.kprice {
  background: #c07a30;
  color: white !important;
  border-radius: 20px;
  padding: 6px 10px;
  display: inline-block;
  white-space: nowrap;
  font-weight: 800;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.kbanners button {
  padding: 8px 12px !important;
  background: #fff;
  border-radius: 20px;
  color: #ac6529 !important;
}
.kcontent h2 {
  font-size: 17px;
  margin: 23px 0 14px;
}
.kproducts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.kproduct {
  background: white;
  border-radius: 18px;
  border: 1px solid #edf2ee;
  overflow: hidden;
  box-shadow: 0 4px 18px #163c2b05;
}
.kphoto {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  background-color: #f9f1e7;
}
.kbubble {
  background-image: url("../assets/kiosk/reference.png");
  background-size: 283.0645% 793.6709%;
  background-repeat: no-repeat;
}
.kproductInfo {
  padding: 14px;
}
.kproduct h3 {
  font-size: 15px;
  margin: 0 0 5px;
  font-weight: 800;
}
.kproduct p {
  font-size: 11px;
  color: #81918f;
  line-height: 1.5;
  margin: 0;
  min-height: 33px;
}
.kproduct footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
}
.kplus {
  border-radius: 50% !important;
  background: #2daeb0 !important;
  color: white !important;
  font-size: 25px !important;
  width: 38px;
  height: 38px;
  padding: 0 !important;
  line-height: 38px;
}
.kempty {
  grid-column: 1/-1;
  padding: 30px 20px;
  text-align: center;
  color: #68837e;
  background: #edf5f1;
  border-radius: 16px;
  line-height: 1.7;
  font-size: 13px;
}
.kempty p {
  margin-bottom: 0;
}
.kbottom {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 22px;
  background: #fff;
  border-top: 1px solid #e7efeb;
  z-index: 4;
  flex-shrink: 0;
}
.kcartToggle {
  display: flex;
  gap: 12px;
  align-items: center;
  background: transparent !important;
  text-align: start;
  padding: 0 !important;
}
.kbadge {
  min-width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #e3f5ef;
  color: #228e89;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.kcartToggle strong {
  display: block;
  font-size: 17px;
  margin-top: 3px;
}
.kcartToggle > span:last-child {
  font-size: 11px;
  color: #59736e;
}
.knotice {
  font-size: 11px;
  color: #24988f;
  flex: 1;
}
.kvalidate {
  background: #2daeb0 !important;
  color: white !important;
  border-radius: 14px;
  padding: 15px 24px !important;
  font-size: 14px !important;
  white-space: nowrap;
  box-shadow: 0 4px 14px #2daeb02a;
}
.kcart {
  position: absolute;
  z-index: 3;
  inset-block-start: 82px;
  inset-block-end: 77px;
  inset-inline-end: 0;
  width: min(440px, 100%);
  background: #fff;
  box-shadow: -15px 0 45px #163b2a22;
  display: flex;
  flex-direction: column;
  padding: 22px;
  transform: translateX(105%);
  transition: transform 0.25s;
  visibility: hidden;
  overflow: auto;
}
.kcart.open {
  transform: translateX(0);
  visibility: visible;
}
#kioskOverlay[dir="rtl"] .kcart {
  transform: translateX(-105%);
  box-shadow: 15px 0 45px #163b2a22;
}
#kioskOverlay[dir="rtl"] .kcart.open {
  transform: translateX(0);
}
.kcartHead {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.kcartHead h2 {
  font-size: 19px;
  margin: 0;
}
.kcartHead button {
  font-size: 11px !important;
  padding: 8px !important;
  background: #eef5f2;
}
.kcartItems {
  flex: 1;
}
.kcartItems article {
  border-bottom: 1px solid #e5eeeb;
  padding: 18px 0;
}
.kcartItems strong {
  font-size: 14px;
}
.kcartItems small {
  display: block;
  color: #8a9b96;
  font-size: 12px;
  margin-top: 4px;
}
.kquantity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.kquantity button {
  background: #e9f5ef;
  padding: 7px 12px !important;
  border-radius: 8px;
}
.kquantity .kremove {
  margin-inline-start: auto;
  background: #fff2eb;
  color: #af7243 !important;
  font-size: 11px !important;
}
.kcartTotal {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}
.kadded {
  animation: kpop 0.4s ease;
}
@keyframes kpop {
  50% {
    transform: scale(1.3);
    box-shadow: 0 0 0 8px #2daeb032;
  }
}
@media (max-width: 700px) {
  #kioskOverlay {
    padding: 0;
  }
  .kioskShell {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .ktop {
    gap: 6px;
    padding: 10px;
    flex-wrap: wrap;
  }
  .kbrand {
    font-size: 14px;
    min-width: 66px;
  }
  .ktype button {
    font-size: 10px !important;
    padding: 7px 8px !important;
  }
  .klanguages button {
    font-size: 10px !important;
    padding: 7px !important;
  }
  .kcancel {
    font-size: 11px !important;
    padding: 8px !important;
  }
  .kside {
    width: 82px;
    padding: 10px 5px;
    gap: 7px;
  }
  .kside button {
    font-size: 9px !important;
    padding: 12px 3px !important;
    min-height: 68px;
  }
  .kside button > span {
    font-size: 21px;
  }
  .kcontent {
    padding: 15px 10px;
  }
  .kheading {
    margin-bottom: 12px;
  }
  .kheading h1 {
    font-size: 21px;
  }
  .kheading p,
  .klive {
    display: none;
  }
  .kbanners article {
    padding: 8px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .kbanners img {
    width: 30px;
    height: 30px;
  }
  .kbanners strong {
    font-size: 10px;
  }
  .kbanners small {
    display: none;
  }
  .kbanners .kprice {
    font-size: 9px;
    padding: 5px 7px;
  }
  .kbanners button {
    font-size: 9px !important;
    padding: 5px 8px !important;
  }
  .kproducts {
    gap: 7px;
  }
  .kproduct {
    border-radius: 11px;
  }
  .kproductInfo {
    padding: 9px;
  }
  .kproduct h3 {
    font-size: 11px;
    line-height: 1.4;
  }
  .kproduct p {
    font-size: 9px;
    min-height: 41px;
  }
  .kproduct footer {
    gap: 3px;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .kproduct .kprice {
    font-size: 10px;
    padding: 5px 6px;
  }
  .kplus {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 21px !important;
  }
  .kbottom {
    padding: 11px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .knotice {
    display: none;
  }
  .kvalidate {
    font-size: 11px !important;
    padding: 13px !important;
    margin-inline-start: auto;
  }
  .kcartToggle strong {
    font-size: 14px;
  }
  .kbadge {
    min-width: 30px;
    height: 30px;
  }
  .kcart {
    inset-block-start: 70px;
    inset-block-end: 68px;
    padding: 18px;
  }
  .kcontent h2 {
    font-size: 14px;
  }
}
@media (max-height: 500px) {
  .kioskShell {
    height: 100dvh;
  }
  .ktop {
    padding-block: 7px;
  }
  .kheading {
    display: none;
  }
  .kside button {
    min-height: 60px;
    padding-block: 7px !important;
  }
  .kbottom {
    padding-block: 7px;
  }
  .kcart {
    inset-block-start: 58px;
    inset-block-end: 62px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #kioskOverlay *,
  #kioskPrompt {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto;
  }
}
.kside svg {
  width: 25px;
  height: 25px;
  display: block;
  margin: auto;
}
.kphotoFrame {
  height: 154px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbf8f2;
}
.kphotoFrame img.kphoto {
  height: 100%;
  width: 100%;
  object-fit: contain;
  aspect-ratio: auto;
}
.kphotoFrame .kbubble {
  width: min(100%, 243px);
  height: auto;
  aspect-ratio: 123/76;
  background-size: 285.36585% 825%;
  flex-shrink: 0;
}
.kproduct h3 {
  line-height: 1.4;
}
@media (max-width: 700px) {
  .kphotoFrame {
    height: 100px;
  }
  .kphotoFrame .kbubble {
    width: min(100%, 161px);
  }
  .kside svg {
    width: 23px;
    height: 23px;
  }
}
.kcart.open {
  animation: kcartIn 0.22s ease-out;
}
#kioskOverlay[dir="rtl"] .kcart.open {
  animation-name: kcartInRTL;
}
@keyframes kcartIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes kcartInRTL {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Produit en rupture déclarée : visible mais grisé, pour montrer « une saisie, pas dix ». */
.kproduct.krupture { filter: grayscale(1); opacity: 0.55; }
.ksoldout { font-weight: 700; padding: 0.25rem 0.6rem; border: 1px solid currentColor; border-radius: 999px; }
