* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  color-scheme: dark;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #050505;
}

body {
  display: grid;
  place-items: center;
  font-family: Tahoma, Arial, sans-serif;
  touch-action: manipulation;
}

.app {
  position: relative;
  width: min(100vw, calc(100dvh * 2 / 3));
  height: min(100dvh, calc(100vw * 3 / 2));
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 40px rgba(0,0,0,.65);
}

.page {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
  transform: scale(.995);
}

.page.active {
  display: block;
  animation: pageIn .22s ease forwards;
}

.page img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  z-index: 5;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

/* برای دیدن محل دکمه‌ها هنگام تست، مقدار زیر را موقتاً فعال کنید:
.hotspot { outline: 2px solid red; background: rgba(255,0,0,.12); }
*/

.cover-start {
  left: 27%;
  top: 75%;
  width: 46%;
  height: 9%;
}

.menu-products {
  left: 11%;
  top: 40.5%;
  width: 77%;
  height: 13.2%;
}

.menu-about {
  left: 11%;
  top: 54.2%;
  width: 77%;
  height: 12.8%;
}

.menu-contact {
  left: 11%;
  top: 67.5%;
  width: 77%;
  height: 12.8%;
}

.menu-start {
  left: 25%;
  top: 90%;
  width: 50%;
  height: 7%;
}

.bottom-back {
  left: 24%;
  width: 52%;
  height: 8%;
}

.about-back {
  top: 81.5%;
}

.contact-back {
  top: 87%;
}

.product-back {
  left: 27%;
  top: 93.5%;
  width: 46%;
  height: 5.5%;
}

.side-prev,
.side-next {
  top: 32%;
  width: 14%;
  height: 54%;
}

.side-prev { left: 0; }
.side-next { right: 0; }

.floating-home {
  display: none;
  position: absolute;
  z-index: 20;
  left: 12px;
  top: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(210,157,75,.75);
  background: rgba(0,0,0,.58);
  color: #d7a55b;
  font-size: 24px;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.app:not([data-current="cover"]):not([data-current="menu"]) .floating-home {
  display: block;
}

@keyframes pageIn {
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
  .app {
    width: 100vw;
    height: 100dvh;
  }

  .page img {
    object-fit: contain;
    background: #000;
  }
}


/* لینک‌های فعال صفحه ارتباط با ما — تنظیم‌شده روی contact.jpg */
.contact-phone {
  left: 18.5%;
  top: 39.2%;
  width: 62.0%;
  height: 5.2%;
}

.contact-whatsapp,
.contact-telegram,
.contact-instagram {
  top: 73.4%;
  height: 11.8%;
  border-radius: 12px;
}

.contact-whatsapp {
  left: 19.0%;
  width: 15.5%;
}

.contact-telegram {
  left: 34.5%;
  width: 15.5%;
}

.contact-instagram {
  left: 49.8%;
  width: 15.5%;
}

.contact-phone:hover,
.contact-whatsapp:hover,
.contact-telegram:hover,
.contact-instagram:hover,
.contact-phone:focus-visible,
.contact-whatsapp:focus-visible,
.contact-telegram:focus-visible,
.contact-instagram:focus-visible {
  outline: 2px solid rgba(218, 166, 86, 0.75);
  background: rgba(218, 166, 86, 0.10);
}

.contact-phone:active,
.contact-whatsapp:active,
.contact-telegram:active,
.contact-instagram:active {
  background: rgba(218, 166, 86, 0.20);
}
