/* =======================================================
   GLOBAL RESET & BASE
======================================================= */
html {
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #FFF7FA;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

/* =======================================================
   NAVBAR
======================================================= */
nav {
  background-color: white !important;
  height: 72px;
}

nav .max-w-7xl {
  display: flex !important;
  align-items: center !important;
}

/* -----------------------
   Logo & Title
------------------------ */
nav .flex.items-center {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0;
}

nav img,
.logo-img-custom {
  height: 50px !important;
  width: auto;
}

nav h1 {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  margin: 0 !important;
  color: #d63384 !important;
  white-space: nowrap;
}

/* -----------------------
   Menu Navigation
------------------------ */
nav .md\:flex {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;       
  margin: 0 auto !important; 
}

nav .md\:flex a {
  font-size: 16px !important;
  font-weight: 500 !important;
  padding: 4px 6px !important;
  white-space: nowrap;
  color: #374151 !important;
  position: relative;
  transition: color 0.25s ease;
}

nav .md\:flex a:hover {
    color: #FF69B4 !important;
}

nav .md\:flex a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #ff69b4;
  transition: width 0.3s ease;
}

nav .md\:flex a:hover::after {
  width: 100%;
}

nav .md\:flex a.active {
  color: #ff69b4 !important;
  font-weight: 600;
}

nav .md\:flex a.active::after {
  width: 100%;
}

/* -----------------------
   Navbar Button
------------------------ */
nav button {
  padding: 6px 14px !important;
  font-size: 14px !important;
  line-height: normal;
  background-color: #ffb6c1;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

nav button:hover {
  background-color: #d63384 !important;
  transform: translateY(-1px);
}

nav button:active {
  transform: scale(0.96);
}

main {
  padding-top: 0px !important;
}

/* =======================================================
   BUTTONS
======================================================= */
.btn-primary {
  background: #FFB6C1;
  color: #fff;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #d63384;
}

.btn-secondary {
  background: #fff;
  color: #FF69B4;
  border: 2px solid #FF69B4;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: #ffe6f1;
}

/* =======================================================
   BRAND SLIDER
======================================================= */
.brand-slider {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 40px;
  position: relative;
  background: transparent; 
  padding: 20px 0;
}

.brand-track {
  display: flex;
  flex-shrink: 0;
  gap: 40px; 
  min-width: 100%;
  align-items: center;
  justify-content: space-around;
  animation: scroll-left 25s linear infinite;
}

.brand-track img {
  height: 90px;      
  width: 160px;     
  object-fit: contain;
  background: white;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  flex-shrink: 0;   
 
  image-rendering: -webkit-optimize-contrast; 
  image-rendering: crisp-edges;               
  transform: translateZ(0);                   
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
}


@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* =======================================================
   FOOTER
======================================================= */
footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 40px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

footer img {
  max-width: 120px;
  height: 50px;
}

footer p {
  max-width: 280px;
  line-height: 1.6;
}

/* -----------------------
  TABLET
------------------------ */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
}

/* -----------------------
  MOBILE
------------------------ */
@media (max-width: 767px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer img {
    margin: 0 auto 10px;
  }

  footer ul {
    padding: 0;
  }

  footer ul li {
    margin-bottom: 6px;
  }
}

/* -----------------------
  COPYRIGHT
------------------------ */
footer .border-t {
  margin-top: 30px;
  padding-top: 15px;
  font-size: 12px;
  color: #cbd5f5;
  text-align: center;
}

footer .border-t p {
  margin: 0 auto;
}

/* =======================================================
   HERO SECTION
======================================================= */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding:40px;
  background: #ffe6f1;
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 1100px;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 50%;
  flex: 1;
}

.hero-text h1 {
  font-size: 40px;
  color: #d63384;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 18px;
  color: #555;
  margin-bottom: 25px;
}

.hero-img {
  flex: 1;
  width: 100%;
  max-width: 400px;   
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  object-fit: contain;
  margin: 0 auto; 
}

@media (min-width: 1024px) {
  .hero-img {
    max-width: 550px; 
    height: auto;    
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-text {
    max-width: 100%;
    text-align: center;
    margin-bottom: 30px;
  }
  .hero {
    flex-direction: column-reverse; 
  }
}

/* =======================================================
   FEATURES
======================================================= */
.features h2, .brands h2 {
  text-align: center;
  font-size: 28px;
  color: #d63384;
  margin-bottom: 20px;
}

.feature-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 230px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
  transition: 0.3s;
}

.card img {
  max-width: 80px;
  margin-bottom: 15px;
}

.card:hover {
  transform: translateY(-6px);
}

.brand-list {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.brand-list img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.produk-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.produk-card p.text-gray-500 {
  flex-grow: 1;
}

.btn-manfaat {
  margin-top: 12px;
  padding: 8px 0;
  border-radius: 12px;
  background-color: #f4c2d7;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

.product-desc {
  font-size: 13px;
  line-height: 1.5;
  min-height: 60px;      /* ⬅️ INI YANG BIKIN SEJAJAR */
}


.card-spacer {
  flex-grow: 1;
}

#manfaatModal .relative {
  max-width: 420px;
}

#manfaatModal {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.product-card,
#manfaatModal {
  font-family: 'Inter', sans-serif;
}

/* =======================================================
   PRODUK PAGE
======================================================= */
.filter-sidebar {
  position: sticky;
  top: 100px;        
  height: max-content;
  background: #fff;
  border: 1px solid #ffd6e8;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.produk-page h1 {
  color: #d63384;
  text-align: center;
  margin-bottom: 15px;
}

.filter-box {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.filter-box input, .filter-box select, .filter-box button {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.filter-box button {
  background: #FF69B4;
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.filter-box button:hover {
  background: #d63384;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .produk-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
  }

  .filter-sidebar {
    position: sticky;
    top: 90px;
  }
}

.produk-grid {
  display: grid;
  gap: 20px;
}

/* -----------------------
  DEKSTOP
------------------------ */
@media (min-width: 1024px) {
  .produk-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -----------------------
  TABLET
------------------------ */
@media (min-width: 768px) and (max-width: 1023px) {
  .produk-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -----------------------
  MOBILE
------------------------ */
@media (max-width: 767px) {
  .produk-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .produk-card img {
    height: 120px;
    object-fit: contain;
  }
}

.produk-card {
  background: #fff;
  border: 1px solid #ffd6e8;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.produk-card img {
  height: 180px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 10px;
}

.produk-card h3 {
  font-size: 18px;
  color: #FF69B4;
}

.produk-card .label-box span {
  display: inline-block;
  background: #ffe6f1;
  color: #FF1493;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  margin: 2px;
  text-align: left;
}

.reset-btn {
  background: #ffe6f1;
  color: #d63384;
  font-weight: bold;
  border: 1px solid #ffd6e8;
  padding: 10px;
  border-radius: 10px;
  width: 100%;
  margin-top: 10px;
  transition: 0.3s;
}

.reset-btn:hover {
  background: #ffd3e6;
}

.btn-manfaat {
  margin-top: auto;
  padding: 8px 0;
  border-radius: 12px;
  background-color: #f4c2d7;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

.card-spacer {
  flex-grow: 1;
}

#manfaatModal .relative {
  max-width: 420px;
}

#manfaatModal {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.product-card,
#manfaatModal {
  font-family: 'Inter', sans-serif;
}

/* =======================================================
   REKOMENDASI PAGE
======================================================= */
.rekomendasi-page h1 {
  text-align: center;
  color: #000;
  margin-bottom: 10px;
}

.recommend-form {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: auto;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recommend-form select, .recommend-form button {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.recommend-form button {
  background: #FF69B4;
  color: #fff;
  font-weight: bold;
}

#resultBox {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.grid-jenis-atas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

.grid-jenis-bawah {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;

  /* BIAR TENGAH */
  width: 70%;
  margin: 0 auto;
}

.grid-jenis-atas img,
.grid-jenis-bawah img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
}

.recommend-card {
  background: #fff;
  padding: 14px;                
  border-radius: 12px;
  border: 1px solid #ffd6e8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-size: 14px;             
  line-height: 1.5;

  /* animasi */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* hover lebih elegan */
.recommend-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  border-color: #ffb3d6;
}

.recommend-card img {
  display: block;
  margin: 0 auto 15px auto;        
  height: 130px;
  object-fit: contain;
}

.recommend-card p {
  margin-bottom: 4px;
}

.recommend-card h3 {
  font-size: 16px;              
  margin-bottom: 10px;
  text-align: center;
  min-height: 50px;
}

.recommend-details {
    min-height: 110px;    
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-title {
    min-height: 60px; 
    font-size: 16px;
    text-align: center;
    margin-bottom: 12px;
}

.card-details {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.label-box span {
  font-size: 11px;
  border-radius: 9999px;
  display: inline-block;
  padding: 4px 8px;
  font-weight: 500;
}

.label-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: start;
  row-gap: 6px;
  min-height: 50px;
  align-items: flex-start;
}

/* -----------------------
  ALERT 
------------------------ */
.note-alert {
    background-color: #ffe6ea;              
    color: #b30033;                         
    padding: 12px 14px;
    border-radius: 12px;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    border-left: 4px solid #ff4d6a;       
    display: block;
    align-items: flex-start;
    gap: 8px;
    margin-top: auto !important;
    text-align: justify;
}

.note-alert strong {
    font-weight: 200;
}

/* icon alert */
.note-icon {
    font-size: 14px;
    line-height: 1;
}

/* =======================================================
   CHATBOT
======================================================= */

/* BOT MESSAGE (Warna Netral Abu-abu Muda) */
.bot-message {
  background: #ffffff;
  color: #1e293b;;
  padding: 14px 18px;
  border-radius: 4px 20px 20px 20px;
  max-width: 85%;
  font-size: 14.5px;
  line-height: 1.5;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.user-message {
  background: #134e4a;
  color: #f0fdf4;
  padding: 12px 18px;
  border-radius: 20px 20px 4px 20px;
  align-self: flex-end;
  max-width: 80%;
  font-size: 14.5px;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.chat-input button, 
#chatForm button {
  background: #134e4a; 
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.chat-input button:hover,
#chatForm button:hover {
  background: #134e4a;
  box-shadow: 0 4px 12px rgba(122, 143, 102, 0.4);
}

.typing-bubble {
  display: inline-flex;
  gap: 4px;
  background: #f8fafc;;
  padding: 12px 16px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.typing-bubble::after {
  content: "...";
  font-weight: bold;
  letter-spacing: 2px;
  animation: typing 1.5s infinite;
}

@keyframes typing {
  0% { opacity: .2; }
  20% { opacity: 1; }
  100% { opacity: .2; }
}

#chatMessages::-webkit-scrollbar {
  width: 6px;
}
#chatMessages::-webkit-scrollbar-track {
  background: transparent;
}
#chatMessages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* =======================================================
   TENTANG PAGE
======================================================= */
.tentang-page {
  max-width: 900px;
  margin: auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tentang-page h1, 
.tentang-page h2 {
  color: #d63384;
  margin-bottom: 10px;
}

.tentang-page p {
  margin-bottom: 12px;
  color: #555;
}

/* =======================================================
   ANIMATIONS
======================================================= */
.fade-in {
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =======================================================
   MOBILE
======================================================= */
/* =======================
   NAVBAR 
======================= */
@media (max-width: 767px) {

  nav{
    height: auto;
  }
  
  nav .max-w-7xl {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 60px !important;
    padding: 0 15px !important;
  }

  nav .flex.items-center {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important; 
    justify-content: flex-start !important;
    width: auto !important;
  }

  nav img {
    height: 32px !important;
    width: auto !important;
    margin-right: 0 !important; 
    display: block !important;
  }

  nav h1, 
  nav .text-lg, 
  nav .text-2xl {
    color: #d63384 !important; 
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important; 
    line-height: 1 !important;
  }

  #hamburgerBtn {
    color: #d63384 !important;
    font-size: 28px !important;
    margin-left: auto !important;
    display: block !important;
    background: transparent !important;
    border: none !important;
  }

  nav .hidden.md\:flex, 
  nav .hidden.md\:block {
    display: none !important;
  }

  main {
    padding-top: 50px !important; 
  }
}

/* =======================
   HOME-PAGE 
======================= */
@media (max-width: 767px) {

  /* HERO */
  .home-page #home h2 {
    font-size: 18px !important;
    line-height: 1.3;
    text-align: center;
    padding: 0 10 px;
  }

  .home-page #home p {
    font-size: 12px !important;
    text-align: center;
    margin-top: 10px;
    padding: 0 15px;
  }

  .home-page #home .flex.space-x-4 {
    flex-direction: column !important;
    gap: 11px !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 0 !important; 
    width: 100%;
  }

  .home-page #home a,
  .home-page #home button {
    width: 220px !important; 
    height: 44px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto !important; 
    font-size: 13px !important;
    border-radius: 25px !important; 
    box-sizing: border-box !important;
  }

  .home-page #home img {
    margin-top: 10px;
    max-width: 150px;
  }

  /* ================= BRAND LOKAL ================= */

  .home-page section.bg-gray-50 h2 {
    font-size: 18px !important;
    margin-bottom: 20px !important;
  }

  /* Track brand */
  .home-page .brand-track {
    gap: 20px;
  }

  .home-page .brand-track img {
  height: 60px !important;      
  width: auto !important;
  max-width: 120px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast; 
  image-rendering: crisp-edges;
  filter: drop-shadow(0px 1px 1px rgba(0,0,0,0.05)); 
  padding: 4px;
}

  /* ================= FITUR FILTER ================= */

  #products aside {
    padding: 15px !important;
    margin-bottom: 20px;
  }

  #products h3.text-xl {
    font-size: 16px !important;
    margin-bottom: 12px !important;
  }

  #products h4.font-semibold {
    font-size: 13px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
  }

  #products aside .flex-col {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 8px !important;
    flex-direction: unset !important;
    margin-bottom: 15px !important;
  }

  #products label {
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1.2;
    cursor: pointer;
    margin: 0 !important;
  }

  #products input[type="text"] {
    height: 36px !important;
    font-size: 12px !important;
    padding: 0 10px !important;
  }

  #btnFilter {
    height: 38px !important;
    font-size: 13px !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px !important;
  }

  #products .mb-6:nth-child(5) .flex-col {
     grid-template-columns: 1fr !important; 
  }

  /* ================= PRODUK PREVIEW HOME ================= */
  .home-page #produkGridHome {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .home-page .produk-card img {
    height: 110px !important;
    object-fit: contain;
  }

  .home-page .produk-card h3 {
    font-size: 13px !important;
  }

  .home-page .produk-card p {
    font-size: 11px !important;
  }

   /* ================= HERO / PRODUK SKINCARE LOKAL ================= */
  .home-page h1,
  .home-page h2 {
    font-size: 18px !important;
    line-height: 1.3;
    text-align: center;
  }

  .home-page p {
    font-size: 12px !important;
    line-height: 1.4;
  }

  .btn-manfaat {
    margin-top: auto;
    padding: 6px 0;
    border-radius: 12px;
    background-color: #f4c2d7;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 6px;
  }

  #manfaatModal .relative {
    width: 90%;
    max-width: none;
    padding: 14px;
    margin-top: 80px;
    border-radius: 14px;
  }

  #manfaatModal h3 {
    font-size: 14px;
  }

  #manfaatContent {
    font-size: 12px;
    line-height: 1.5;
  }

  #closeManfaat {
    font-size: 12px;
    padding: 7px 0;
  }

  /* ================= CHATBOT 24/7 ================= */
  .home-page .chatbot-section h2 {
    font-size: 17px !important;
  }

  .home-page .chatbot-section p {
    font-size: 12px !important;
  }

  /* ================= TENTANG SKINALYZE ================= */
  .home-page .about-section h2 {
    font-size: 17px !important;
    text-align: center;
  }

  .home-page .about-section p {
    font-size: 12px !important;
    text-align: justify;
  }

  /* ================= FOOTER ================= */
  footer {
    text-align: left !important;
    padding-top: 15px !important;
    padding-bottom: 10px !important;
  }

  footer .max-w-7xl,
  footer .grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  footer img, 
  footer .logo-img-custom,
  footer a img {
    display: block !important;
    margin-left: 0 !important;      
    margin-right: auto !important;  
    max-width: 50px !important;     
    height: auto !important;
    margin-bottom: 5px !important;
  }

  footer .grid > div {
    text-align: left !important;
    align-items: flex-start !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  footer ul.grid-cols-2 {
    display: flex !important;
    flex-direction: column !important; 
    gap: 4px !important;
    width: 100% !important;
  }

  /* TAUTAN CEPAT & LAINNYA */
  footer ul {
    text-align: left !important;
    gap: 4px !important;
  }

  footer p, 
  footer a, 
  footer li {
    font-size: 11px !important;
    line-height: 1.3 !important;
    text-align: left !important;
  }

  /* COPYRIGHT: Dibuat ke TENGAH */
  footer .border-t {
    margin-top: 10px !important;
    padding-top: 10px !important;
    text-align: center !important; /* Ubah ke center */
    width: 100% !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  footer .border-t p {
    text-align: center !important; 
    font-size: 10px !important;
    margin: 0 auto !important;
  }
}


/* =======================
   PRODUK-PAGE 
======================= */
@media (max-width: 767px) {

  /* ================= FILTER ================= */
  .filter-sidebar {
    position: fixed;
    top: 10%;
    right: 0;
    height: auto;
    max-height: 80vh;
    width: 85%;
    max-width: 300px;
    z-index: 50;
    background: #ffffff;
    border-radius: 16px 0 0 16px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 16px;
  }

  .filter-sidebar.show {
    transform: translateX(0);
  }


  /* ================= GRID PRODUK ================= */
  .produk-page {
    padding-top: 20px !important;
  }

  .produk-page h2 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .produk-page .produk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 8px;
  }

  .produk-page .produk-card {
    padding: 10px;
    border-radius: 12px;
    background: #ffffff;
  }

  .produk-page .produk-card img {
    height: 110px;
    object-fit: contain;
    margin-bottom: 6px;
  }

  .produk-page .produk-card h3 {
    font-size: 12.5px;
    line-height: 1.35;
    margin-bottom: 2px;
  }

  .produk-page .produk-card p {
    font-size: 10.5px;
    line-height: 1.4;
  }

  /* ================= LABEL / BADGE ================= */
  .produk-page .produk-card span {
    font-size: 9.5px;
    padding: 3px 6px;
    border-radius: 9999px;
    line-height: 1;
  }

  .btn-manfaat {
    margin-top: auto;
    padding: 6px 0;
    border-radius: 12px;
    background-color: #f4c2d7;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 6px;
  }

  #manfaatModal .relative {
    width: 90%;
    max-width: none;
    padding: 14px;
    margin-top: 80px;
    border-radius: 14px;
  }

  #manfaatModal h3 {
    font-size: 10px;
  }

  #manfaatContent {
    font-size: 11px;
    line-height: 1.5;
  }

  #closeManfaat {
    font-size: 12px;
    padding: 7px 0;
  }
  
  #manfaatModal {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
}

/* =======================
   REKOMENDASI-PAGE 
======================= */
@media (max-width: 767px) {

  /* ================= NAV REKOMENDASI ================= */
  .rekomendasi-page {
    padding-top: 0 !important; 
    padding-bottom: 0 !important;
    min-height: auto !important;
  }

  .rekomendasi-page nav .max-w-7xl {
    display: flex !important;
    flex-direction: row !important; 
    justify-content: space-between !important;
    align-items: center !important;
    height: 60px !important;
    padding: 0 15px !important;
  }

  .rekomendasi-page nav .flex.items-center {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important; 
    justify-content: flex-start !important;
    width: auto !important;
  }

  .rekomendasi-page nav img {
    height: 32px !important;
    width: auto !important;
    margin-right: 0 !important; 
    display: block !important;
  }

  .rekomendasi-page nav h1, 
  .rekomendasi-page nav .text-lg, 
  .rekomendasi-page nav .text-2xl {
    color: #d63384 !important; 
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important; 
    line-height: 1 !important;
  }

  .rekomendasi-page #hamburgerBtn {
    color: #d63384 !important;
    font-size: 28px !important;
    margin-left: auto !important;
    display: block !important;
    background: transparent !important;
    border: none !important;
  }

  .rekomendasi-page nav .hidden.md\:flex, 
  .rekomendasi-page nav .hidden.md\:block {
    display: none !important;
  }

  .rekomendasi-page main {
    padding-top: 65px !important; 
  }

  /* ================= FORM REKOMENDASI ================= */

  .rekomendasi-page h1 { 
    font-size: 17px !important; 
    margin-top: 0 !important; 
    margin-bottom: 6px !important;
  }

  .rekomendasi-page p.text-center { 
    font-size: 11px !important; 
    margin-bottom: 15px !important; 
  }

  .rekomendasi-page #recommendForm {
    margin-bottom: 0px !important;
  }
  
  .rekomendasi-page select {
    font-size: 11px !important;
    height: 32px !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
  }
  
  .rekomendasi-page label {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }

  .rekomendasi-page .text-center img {
    width: 50px !important; 
    height: 50px !important;
    margin-bottom: 10px !important;
  }

  .rekomendasi-page .text-center {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .rekomendasi-page input[type="radio"] {
    width: 14px !important;
    height: 14px !important;
    margin: 0 0 4px 0 !important;
    display: block !important;
  }

  .rekomendasi-page .text-center label {
    font-size: 10px !important;
    margin-left: 0 !important;
    display: block !important;
  }

  .grid-jenis-atas, .grid-jenis-bawah {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-top: 10px !important;
  }

  /* ================= HASIL REKOMENDASI ================= */
  #resultBox:empty {
    display: none !important;
  }
  #resultBox {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 10px 0 !important;
    margin-bottom: 20px !important;
  }

  .rekomendasi-page .recommend-card {
    padding: 6px !important;
    border-radius: 8px !important;
  }

  .rekomendasi-page .produk-img {
    height: 60px !important; 
    margin-bottom: 5px !important;
  }

  .rekomendasi-page .recommend-card h3 {
    font-size: 10px !important;
    height: 2.2em !important;
    margin-bottom: 3px !important;
  }

  .rekomendasi-page .card-details p {
    font-size: 8.5px !important;
    line-height: 1.1 !important;
  }

  .rekomendasi-page .label-box {
    gap: 4px !important;
    margin-top: 5px !important;
  }

  .rekomendasi-page .label-box span {
    font-size: 7.5px !important;
    padding: 1px 4px !important;
  }

  .rekomendasi-page .note-alert {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important; 
    text-align: left !important; 
    gap: 6px !important;
    padding: 8px !important;
    line-height: 1.3 !important; 
    font-size: 8.5px !important;
  }

  .rekomendasi-page .note-icon {
    flex-shrink: 0 !important; 
    margin-top: 2px !important;
  }

  .rekomendasi-page .note-alert div {
    text-align: left !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
  }

  /* 5. Tombol Cari */
  .rekomendasi-page button[type="submit"] {
    padding: 8px 20px !important;
    font-size: 12px !important;
    height: auto !important;
    width: 80% !important;
  }

  /* ================= REKOMENDASI FOOTER ================= */

  .rekomendasi-page footer {
    text-align: left !important;
    padding-top: 15px !important;
    padding-bottom: 4px !important;
  }

  .rekomendasi-page footer .max-w-7xl,
  .rekomendasi-page footer .grid {
     display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .rekomendasi-page footer img, 
  .rekomendasi-page footer .logo-img-custom,
  .rekomendasi-page footer a img {
    display: block !important;
    margin-left: 0 !important;      
    margin-right: auto !important;  
    max-width: 50px !important;     
    height: auto !important;
    margin-bottom: 5px !important;
  }

  .rekomendasi-page footer .grid > div {
    text-align: left !important;
    align-items: flex-start !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .rekomendasi-page footer ul.grid-cols-2 {
    display: flex !important;
    flex-direction: column !important; 
    gap: 4px !important;
    width: 100% !important;
  }

  .rekomendasi-page footer ul {
    text-align: left !important;
    gap: 4px !important;
  }

  .rekomendasi-page footer p, 
  .rekomendasi-page footer a, 
  .rekomendasi-page footer li {
    font-size: 11px !important;
    line-height: 1.3 !important;
    text-align: left !important;
  }

  .rekomendasi-page footer .border-t {
    margin-top: 10px !important;
    padding-top: 10px !important;
    text-align: center !important; 
    width: 100% !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  .rekomendasi-page footer .border-t p {
    text-align: center !important; 
    font-size: 10px !important;
    margin: 0 auto !important;
  }
}

/* =======================
   CHATBOT-PAGE 
======================= */
@media (max-width: 767px) {
  .skinalyze-header h2 { font-size: 16px; margin-bottom: 4px; }
  .skinalyze-header p { font-size: 11px; margin-bottom: 10px; }

  .chatbot-container {
    max-width: 90%;
    margin: 0 auto;
  }

  .chatbot-message {
    font-size: 13px !important; 
    line-height: 1.4 !important;  
    padding: 8px 12px !important; 
    letter-spacing: -0.2px;      
  }

  .chatbot-message b, 
  .chatbot-message strong {
    font-weight: 600 !important; 
    color: #333;
  }

  .chatbot-input {
    font-size: 12px;
    padding: 4px 8px;
    height: 32px !important;
  }

  .chatbot-send {
    padding: 0px 10px;
    font-size: 11px;
    height: 32px !important;
  }
  
  .chatbot-suggestion,
  .chatbot-suggestion * {
    text-align: left !important;
  }

  #chatForm {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  #chatForm input {
    height: 38px;
    font-size: 13px;
    border-radius: 8px;
    padding: 0 12px;
  }

  #chatForm button {
    height: 35px; 
    padding: 0 15px;
    font-size: 12px;
    border-radius: 8px;
    background-color: #0d4d4d;
  }

  #chatQuick {
    margin-bottom: 5px;
  }

  #chatQuick .flex {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
  }

  #chatQuick button {
    font-size: 11px;
    padding: 5px 10px;
    height: auto;
    white-space: nowrap;
    flex-shrink: 0;
    width: auto !important;
    border-radius: 15px;
  }

  #chatQuick .flex::-webkit-scrollbar {
    display: none;
  }
}

/* =======================================================
   TABLET
======================================================= */

/* =======================
   NAVBAR
======================= */
@media (min-width: 768px) and (max-width: 1024px) {

  main,
  .home-page main,
  .produk-page main,
  .rekomendasi-page main,
  .chatbot-page main {
    padding-top: 64px !important;
  }

  .produk-page,
  .rekomendasi-page,
  .chatbot-page {
    padding-top: 64px !important;
  }

  nav {
    background-color: white !important;
    height: 64px;
  }

  nav .max-w-7xl {
    display: flex !important;
    align-items: center !important;
  }

  /* LOGO + TEKS */
  nav .flex.items-center {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0;
  }

  nav img,
  .logo-img-custom {
    height: 40px !important;
    width: auto;
  }

  nav h1 {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin: 0 !important;
    color: #d63384 !important;
    white-space: nowrap;
  }

  nav .md\:flex {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;      
    margin: 0 auto !important; 
  }

  nav .md\:flex a {
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 4px 6px !important;
    white-space: nowrap;
    color: #374151 !important;
    position: relative;
    transition: color 0.25s ease;
  }

  nav .md\:flex a:hover {
    color: #FF69B4 !important;
  }

  nav .md\:flex a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #ff69b4;
  transition: width 0.3s ease;
}

 /* hover underline */
  nav .md\:flex a:hover::after {
    width: 100%;
  }

  nav .md\:flex a.active {
    color: #ff69b4 !important;
    font-weight: 600;
  }

  nav .md\:flex a.active::after {
    width: 100%;
  }

  nav button {
    padding: 6px 14px !important;
    font-size: 14px !important;
    line-height: normal;
    background-color: #ffb6c1;
    transition: background-color 0.25s ease, transform 0.2s ease;
  }

  nav button:hover {
    background-color: #d63384 !important;
    transform: translateY(-1px);
  }

  /* klik */
  nav button:active {
    transform: scale(0.96);
  }

  /* JARAK KONTEN KE NAVBAR */
  main {
    padding-top: 50px !important;
  }
}


/* =======================
   PRODUK-PAGE 
======================= */
@media (min-width: 768px) and (max-width: 1023px) {

  .produk-page {
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: start;
  }

  .produk-page main,
  .produk-page {
    display: block !important;
    justify-content: unset !important;
  }

  .produk-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .produk-page .produk-grid {
    width: 100%;
    min-width: 0;
  }


  .filter-sidebar {
    position: sticky;
    top: 90px;
    font-size: 13px;
  }

  .filter-sidebar label {
    font-size: 13px;
    line-height: 1.4;
  }

  .filter-sidebar button {
    font-size: 13px;
    padding: 8px 10px;
  }

  .filter-sidebar .filter-item {
    margin-bottom: 6px;
  }

  select {
    font-size: 13px;
    padding: 8px 10px;
  }

  .btn-manfaat {
    margin-top: auto;
    padding: 7px 0;
    border-radius: 12px;
    background-color: #f4c2d7;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 8px;
  }

  #manfaatModal .relative {
    max-width: 360px;
    padding: 16px;
    margin-top: 120px;
  }

}

/* =======================
   REKOMENDASI-PAGE 
======================= */
@media (min-width: 768px) and (max-width: 1023px) {

  .rekomendasi-page h1 {
    font-size: 22px;
  }

  .rekomendasi-page p {
    font-size: 14px;
  }

  #resultBox {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .recommend-card h3 {
    font-size: 13px;
  }

}

/* =======================
   CHATBOT-PAGE 
======================= */
@media (min-width: 768px) and (max-width: 1023px) {

  .chatbot-container {
    max-width: 80%;
  }

  .chatbot-message {
    font-size: 14px;
    padding: 10px 14px;
  }

  .chatbot-input {
    font-size: 13px;
    height: 36px;
  }

  .chatbot-send {
    font-size: 13px;
    height: 36px;
  }

}

/* =======================
   FOOTER
======================= */
@media (min-width: 768px) and (max-width: 1023px) {

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
    justify-content: center;
  }

  footer img {
    margin: 12px;
  }

}
