body {
  margin: 0;
  font-family: 'Segoe UI', 'Inter', 'Poppins', sans-serif;
  background: linear-gradient(135deg, #181824 0%, #23233a 100%);
  color: #f8f8f8;
  min-height: 100vh;
  overflow-x: hidden;
}

.main-header {
  background: rgba(20, 20, 40, 0.98);
  box-shadow: 0 2px 16px 0 #0002;
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-right: 1rem;
  box-shadow: 0 2px 8px #0003;
}
.brand-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f8f8f8;
  margin-right: auto;
}
.main-nav {
  display: flex;
  gap: 1.5rem;
}
.nav-link {
  color: #f8f8f8;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.nav-link:hover {
  color: #ffd700;
}
.bi-list::before {
    font-size: 24px;
}
.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  text-align: center;
  color: #ffd700;
  letter-spacing: 1px;
}
.product-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 1rem 1rem;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.product-card {
  background: #23233a;
  border-radius: 18px;
  box-shadow: 0 4px 24px #0003;
  padding: 1.5rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px #0005;
}
.product-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px #0002;
}
.product-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.5rem 0 0.2rem 0;
  color: #ffd700;
}
.product-card p {
  margin: 0.2rem 0 1rem 0;
  font-size: 1.1rem;
}
.btn-beli {
  background: linear-gradient(90deg, #ffd700 0%, #ffb300 100%);
  color: #23233a;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-beli:hover {
  background: #fffde4;
  color: #ffb300;
}
.footer {
  background: #181824;
  color: #bbb;
  padding: 2rem 0 1rem 0;
  margin-top: 3rem;
  border-top: 1px solid #23233a;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-right: 0.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fffde4;
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  color: #ffd700;
  font-size: 1.5rem;
  transition: color 0.2s;
}
.footer-social a:hover {
  color: #fffde4;
}
@media (max-width: 800px) {
  .header-inner, .footer-content, .product-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .main-nav {
    gap: 1rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
}

    body {
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      background-color: #0d0d17;
      color: #f8f8f8;
      display: flex;
      min-height: 100vh;
      overflow-x: hidden;
    }
    main.main {
        display: block;
        position: relative;
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
        width: 100vw;
        height: 100vh;
    }
    .sidebar {
      width: 260px;
      background-color: #0f0f1a;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      transition: width 0.3s ease;
    }

    .sidebar.collapsed {
      width: 60px;
    }

    .sidebar h2 {
      margin: 0;
      font-size: 1.2rem;
      padding-bottom: 1rem;
    }

    .sidebar .section {
      margin-top: 1rem;
      font-size: 0.9rem;
      color: #bbb;
    }

    .main {
      flex: 1;
      padding: 2rem;
    }

    .header {
      font-size: 2rem;
      font-weight: 600;
      margin-bottom: 1rem;
    }

    .input-box {
      position: relative;
      max-width: 500px;
      width: auto;
      max-height: 100px;
      height: 100%;
      top: 50%;
      left: 50%;
      transform: translate(-50%, 70%);
      background-color: #1b1b2d;
      padding: 1rem;
      border-radius: 12px;
      margin-bottom: 1.5rem;
    }

    .input-box input {
      width: 100%;
      border: none;
      background: transparent;
      color: white;
      font-size: 1rem;
      outline: none;
    }

    .quick-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .quick-buttons button {
      background-color: #1f1f30;
      color: #ddd;
      border: none;
      border-radius: 8px;
      padding: 0.6rem 1rem;
      cursor: pointer;
      transition: background 0.3s;
    }

    .quick-buttons button:hover {
      background-color: #2a2a3d;
    }

    .toggle-btn {
      cursor: pointer;
      background: none;
      border: none;
      color: white;
      font-size: 1.5rem;
      margin-bottom: 1rem;
      align-self: flex-end;
    }

.chat-input-container {
    position: absolute;
    
    left: 50%;
    transform: translate(-50%, 50%);
    max-width: 500px;
    width: 100%;
    align-items: flex-end;
    background: #1b1b2d;
    border-radius: 16px;
    padding: 12px;
    box-shadow: inset 0px 2px 20px 15px #28283f9e;
}

.chat-input-container textarea {
  background-color: #1b1b2d;
  color: white;
  flex: 1;
  resize: none;
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1rem;
  line-height: 1.4;
  max-height: 150px;
  overflow-y: auto;
  outline: none;
  width: -webkit-fill-available;
}
.chat-buttons {
    display: flex;
    flex-direction: row-reverse;
}
.chat-icon-btn {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chat-icon-btn:hover {
  background-color: #0056b3;
}
.assya.loading {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.assya.loading.fade-out {
  opacity: 0;
}

#chat-box.main {
  position: relative;
  padding: 1rem;
  max-width: 820px;
  padding-bottom: 180px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-bubble.assya .assya-katalog {
  max-width: 100% !important;
  background: transparent;
  padding: 0;
  border: none;
  margin: 0.75rem 0;
}
.assya-katalog .grid {
  padding: 0.5rem;
}

.chat-bubble {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 80%;
}
.chat-bubble.user {
  align-self: flex-end;
  background: #dcedc8;
  color: #33691e;
  padding: 0.6rem 1rem;
  border-radius: 1rem 1rem 0 1rem;
}
.chat-bubble.assya {
  align-self: flex-start;
  background: none;
  color: rgb(234 242 255 / 68%);
  padding: 0;
}
.chat-bubble.assya.welcome-header {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.chat-form {
  position: relative;
  bottom: 0;
  left: 0; right: 0;
  max-width: 640px;
  margin: auto;
  display: flex;
  padding: 0.5rem;
  background: #f9f9f9;
}
.chat-form input {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.chat-form button {
  margin-left: 0.5rem;
  padding: 0.6rem 1rem;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
}
#chat-form {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  transition: transform 0.8s ease, opacity 0.6s ease;
  bottom: auto;
  opacity: 0;
}

#chat-form.active {
  transform: translateX(-50%) translateY(0);
  bottom: 20px;
  opacity: 1;
}


/* Responsive */
@media (max-width: 768px) {
      .sidebar {
        position: fixed;
        height: 100vh;
        z-index: 1000;
        left: 0;
        top: 0;
        transform: translateX(-100%);
      }
#chat-form.active {
    transform: translateX(-50%) translateY(0);
    bottom: 15px;
    height: 130px;
    opacity: 1;
    width: 360px;
}
      .sidebar.active {
        transform: translateX(0);
      }

      .main {
        padding: 1rem;
      }

      .toggle-btn {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1100;
      }
    }

.ai-chat-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem 3rem 1rem;
}
.ai-chat-hero {
  text-align: center;
  margin-bottom: 2rem;
}
.ai-chat-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 0.5rem;
}
.ai-chat-desc {
  color: #bbb;
  font-size: 1.1rem;
}
.ai-chat-container {
  width: 100%;
  max-width: 520px;
  background: #23233a;
  border-radius: 18px;
  box-shadow: 0 4px 24px #0003;
  padding: 1.5rem 1rem 1rem 1rem;
  margin: 0 auto;
}
.ai-chat-box {
  min-height: 320px;
  max-height: 60vh;
  overflow-y: auto;
  margin-bottom: 1rem;
}
@media (max-width: 600px) {
  .ai-chat-container {
    padding: 1rem 0.2rem 0.5rem 0.2rem;
    border-radius: 10px;
  }
  .ai-chat-title {
    font-size: 1.3rem;
  }
  .ai-chat-section {
    padding: 1rem 0.2rem 2rem 0.2rem;
  }
}
