/* YOUR ORIGINAL CSS (UNCHANGED) */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #eaaeae;
  color: #333;
}

@media only screen and (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
}

header {
  position: fixed;
  width: 100vw;
  background-color: #1f2937;
  color: white;
  text-align: center;
  gap: 3%;
  padding: 2%;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  justify-content: center;
  gap: 20%;
  flex-direction: column;
  text-align: center;
}

header nav ul li a {
  color: white;
  text-decoration: none;
}

.video {
  width: 100%;
  align-content: center;
}

summary::after {
  content: " Read More...";
}

.about {
  color: rgb(17, 13, 13);
  text-align: center;
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 10%;
}

section {
  padding: 10% 5%;
  max-width: 1000vw;
  margin: auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1%;
}

.crystal {
  position: fixed;
  right: 20px;
  top: 80%;
  transform: translateY(-50%);
  perspective: 800px;
  z-index: 1000;
}

.dice {
  width: 60px;
  height: 60px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate 6s infinite linear;
}

@keyframes colorShift {
  0% { background: #e91e63; }
  20% { background: #9c27b0; }
  40% { background: #3f51b5; }
  60% { background: #03a9f4; }
  80% { background: #4caf50; }
  100% { background: #130c01; }
}
.bot {
  text-align: left;
  color: #0077ff;
  font-weight: 600;
  padding: 4px 0;
}
.user {
  text-align: right;
  color: #111;
  padding: 4px 0;
}

.face {
  position: absolute;
  width: 60px;
  height: 60px;
  background: #a618ff;
  color: white;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  font-weight: bold;
  animation: colorShift 5s infinite linear;
}
/* Chat Messages Box */
.chat-messages {
  height: 170px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  margin-bottom: 10px;
  font-size: 14px;
}

.chat-messages .user {
  text-align: right;
  color: #1f2937;
  margin: 4px 0;
}

.chat-messages .bot {
  text-align: left;
  color: #0b7dda;
  margin: 4px 0;
  font-weight: 600;
}

.front { transform: rotateY(0deg) translateZ(30px); }
.back { transform: rotateY(180deg) translateZ(30px); }
.right { transform: rotateY(90deg) translateZ(30px); }
.left { transform: rotateY(-90deg) translateZ(30px); }
.top { transform: rotateX(90deg) translateZ(30px); }
.bottom { transform: rotateX(-90deg) translateZ(30px); }

@keyframes rotate {
  from { transform: rotateX(0) rotateY(0); }
  to { transform: rotateX(360deg) rotateY(360deg); }
}

.product-card {
  background: white;
  border-radius: 4%;
  padding: 2%;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 60%;
  height: auto;
  border-radius: 3%;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: auto;
}

form input, form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  background-color: #1f2937;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background-color: #111827;
}

footer {
  background-color: #1f2937;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* --------------------------- */
/* ADDED ORDER & CHAT CSS      */
/* --------------------------- */
#orderform {
  display: none;
  justify-content: right;
    align-items: right;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgb(228, 14, 14);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 10000;

}
/* NEW MODERN ORDER POPUP */
.order-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 330px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  display: none;
  z-index: 9999;
  animation: popupFade 0.25s ease-out forwards;
}

/* Heading Style */
.order-window h3 {
  margin-top: 0;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #1f2937;
  letter-spacing: 1px;
}

/* Inputs inside form */
.order-window input,
.order-window textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #aaa;
  margin-bottom: 12px;
  font-size: 14px;
}

/* Confirm button */
.order-window button {
  width: 100%;
  padding: 12px;
  background: #1f2937;
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}
.order-window button:hover {
  background: #1d59db;
}

/* Animation */
@keyframes popupFade {
  from {
    opacity: 0;
    transform: translate(-50%, -55%) scale(0.7);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
.order-btn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #1f2937;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.order-btn:hover {
  background: #111827;
}

.chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1f2937;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 9999;
}

.chat-window, .order-window {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 260px;
  background: white;
  padding: 15px;
  border-radius: 10px;
  display: none;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  z-index: 9999;
}

.order-window {
  top: 50%;
  left: 50%;
  right: unset;
  transform: translate(-50%, -50%);
}

.chat-window input, 
.chat-window textarea,
.order-window input,
.order-window textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}
