html.no-scroll {
  overflow: hidden;
}
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  display: none;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  opacity: 1;html.no-scroll {
  overflow: hidden;
}
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  display: none;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  opacity: 1;
  visibility: visible;
}
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #e0e0e0;
  border-top: 5px solid #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.error-message {
  display: none;
  margin-top: 20px;
  font-size: 1.1rem;
  color: #555;
  text-align: center;
  padding: 0 20px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; 
  -moz-user-select: none;    
  -ms-user-select: none;     
  user-select: none;        
}
body {
  background: #f8f9fa;
  color: #222;
  overflow-x: hidden;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
nav {
  width: 100%;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  animation: slideDown 0.6s ease;
}
@keyframes slideDown {
  from {
    transform: translateY(-60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 600;
  color: #000000;
}
.nav-kanan {
  display: flex;
  align-items: center;
  gap: 30px;
}
ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}
ul li a {
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: color 0.3s ease, transform 0.3s ease;
}
ul li a:hover {
  color: #000000;
  transform: translateY(-2px);
}
ul li i {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}
ul li a span {
  display: none;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 5px;
  transition: 0.3s;
}

.slider-container {
    position: relative;
    width: 100%;
    margin-top: 60px; 
    overflow: hidden; 
}
.slider-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #222; 
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    opacity: 0;
    transition: opacity 0.8s ease-in-out; 
    z-index: 1; 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center; 
    color: white;
}
.slide.active {
    opacity: 1;
    z-index: 2; 
}
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}
.slide-content {
    position: relative; 
    z-index: 2;
    padding: 20px;
    max-width: 1100px; 
    width: 90%; 
    text-align: left; 
}
.slide-content h2 {
    font-size: 2.8rem; 
    margin-bottom: 10px;
    font-weight: 600;
}
.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 15px; 
    max-width: 600px; 
    transition: all 0.3s ease;

    line-height: 1.6;
}

.slide-content p.deskripsi-terpotong {
    cursor: pointer; 
}
.slide-content p.deskripsi-terpotong::after {
    content: "... (Selengkapnya)";
    color: #fff;
    margin-left: 4px; 
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    background: transparent;
    padding: 0px 4px;
    border-radius: 3px;
    font-size: 0.9rem; 
    transition: all 0.2s ease;
}
.slide-content p.deskripsi-terpotong:hover::after {
    text-decoration: none; 
    background: transparent; 
}

.cta-button-sedikit {
    display: inline-block; 
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
    margin-top: 5px; 
}
.cta-button-sedikit:hover {
    background-color: white;
    color: #222; 
    transform: translateY(-2px); 
}



.slider-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    width: 45px; 
    height: 45px;
    font-size: 22px;
    cursor: pointer;
    z-index: 10; 
    transition: background-color 0.3s;
}
.slider-nav:hover {
    background-color: rgba(255, 255, 255, 0.7);
}
.prev { left: 25px; } 
.next { right: 25px; }
.slider-dots {
    position: absolute;
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10; 
}
.dot {
    width: 30px; 
    height: 8px; 
    border-radius: 4px; 
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px; 
    cursor: pointer;
    transition: all 0.3s;
}
.dot.active {
    background-color: white;
    width: 40px; 
}
main {
  width: 100%;
}
.produk-container {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
  position: relative; 
}
.produk-container h2 {
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  margin-bottom: 40px;
  color: #7c7c7c;
}
.produk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.produk-card {
  display: block;
  text-decoration: none;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease-out, 
              transform 0.4s ease-out, 
              box-shadow 0.3s ease-out;
}
.produk-card.muncul {
  opacity: 1;
  transform: translateY(0);
}
.produk-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.produk-card:active {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.toko-kategori-card.muncul {
    opacity: 1;
    transform: translateY(0);
}
.produk-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.produk-info {
  padding: 20px;
}
.produk-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.produk-info p.harga {
  font-size: 1.2rem;
  font-weight: bold;
  color: #000000;
}

.galeri-container {
  max-width: 1100px;
  margin: auto;
  padding: 0px 20px 60px 20px;
  text-align: center;
}
.galeri-container h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}
.galeri-container p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 15px;
}
.galeri-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.galeri-item.muncul {
  opacity: 1;
  transform: translateY(0);
}
.galeri-item:nth-child(1) { grid-column: span 2; }
.galeri-item:nth-child(4) { grid-row: span 2; }
.galeri-item:nth-child(5) { grid-column: span 2; }
.galeri-item:nth-child(8) { grid-column: span 2; }

.galeri-item img,
.galeri-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  background-color: #000;
}
.galeri-item:hover img,
.galeri-item.is-playing video {
  transform: scale(1.1);
}
.galeri-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 40px 20px 20px 20px;
  transform: translateY(30%);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 3;
}
.galeri-item:hover .galeri-info {
  transform: translateY(0);
  opacity: 1;
}
.galeri-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.galeri-info p {
  font-size: 0.9rem;
  color: #eee;
  margin: 0;
}

.video-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.galeri-item.video:hover .video-controls {
  opacity: 1;
}
.galeri-item.video.is-playing .video-controls {
  opacity: 0;
}
.galeri-item.video.is-playing:hover .video-controls {
  opacity: 1;
}
.play-pause-btn {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid white;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.play-pause-btn i {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}
.galeri-item.is-playing .play-pause-btn i {
  margin-left: 0;
}
.video-sound-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.galeri-item.video:hover .video-sound-toggle {
  opacity: 1;
}
.mute-btn {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.mute-btn i {
  width: 18px;
  height: 18px;
}
main.halaman-toko {
  padding-top: 60px;
  min-height: calc(100vh - 300px);
}
.toko-header {
  background: linear-gradient(135deg, #000000 0%, #000000 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  border-radius: 0 0 25px 25px;
  margin-bottom: -30px;
  position: relative;
  z-index: 10;
}
.toko-header h1 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.toko-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}
.toko-kategori-container {
  max-width: 1100px;
  margin: auto;
  padding: 90px 20px 60px 20px;
  position: relative;
  z-index: 1;
}
.toko-kategori-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.toko-kategori-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 25px;
  text-decoration: none;
  color: #333;
  background: white;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #a2a2a2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease,
              opacity 0.6s ease-out, transform 0.6s ease-out;
  opacity: 0;
  transform: translateY(30px);
}

.toko-kategori-card.muncul {
    opacity: 1;
    transform: translateY(0);
}

.toko-kategori-card:hover {
  transform: translateY(-8px);
  border-color: #000000;
  box-shadow: 0 12px 25px rgba(183, 183, 183, 0.1);
}
.toko-kategori-card:active {
  transform: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.icon-wrapper {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f3f3f3;
  transition: all 0.3s ease;
}
.toko-kategori-card i {
  width: 30px;
  height: 30px;
  color: #000000;
  margin-bottom: 0;
}
.toko-kategori-card:hover .icon-wrapper {
  background-color: #c8c8c8;
}
.toko-kategori-card:hover i {
  color: #ffffff;
}
.toko-kategori-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
}
.toko-kategori-card h3::after {
  content: '→';
  position: absolute;
  opacity: 0;
  color: #ffffff;
  font-size: 1.8rem;
  transition: all 0.3s ease;
  right: -20px;
  top: 0;
}
.toko-kategori-card:hover h3::after {
  opacity: 1;
  right: -5px;
}
.toko-kategori-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.search-wrapper {
  position: relative;
  margin-bottom: 30px;
}
.search-wrapper svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  stroke-width: 2;
  width: 20px;
  height: 20px;
  z-index: 2;
}
#search-bar {
  width: 100%;
  padding: 14px 20px 14px 50px;
  font-size: 1.1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  position: relative;
  z-index: 1;
}
#search-bar:focus {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}
.suggestions-container {
  display: none; 
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.08);
  z-index: 900; 
  max-height: 300px;
  overflow-y: auto;
}
.suggestion-item {
  padding: 12px 20px;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover,
.suggestion-item.active {
  background-color: #f8f9fa;
}

.no-results {
  display: none;
  text-align: center;
  font-size: 1.2rem;
  color: #777;
  margin-top: 40px;
}

footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.footer-col {
  padding: 0 10px;
}
.footer-col .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  display: block;
}
.footer-col h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 25px;
}
.footer-col p {
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  display: block;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  flex-direction: row;
}
.footer-col ul li a:hover {
  color: #000000;
  transform: translateX(4px);
}
.footer-coll {
  padding: 0 10px;
}
.footer-coll .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  display: block;
}
.footer-coll h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 25px;
}
.footer-coll p {
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-coll ul {
  list-style: none;
  padding: 0;
  display: block;
}
.footer-coll ul li {
  margin-bottom: 12px;
}
.footer-coll ul li a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  flex-direction: row;
}
.footer-coll ul li a:hover {
  color: #ffffff;
  transform: translateX(4px);
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  color: #94a3b8;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.social-links a:hover {
  color: #7d7d7d;
  border-color: #c4c4c4;
  transform: translateY(-3px);
}
.footer-bottom {
  background-color: transparent;
  padding: 25px 20px;
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #64748b;
  border-top: 1px solid #334155;
}


@media (max-width: 768px) {
  .nav-kanan {
    gap: 20px;
  }
  .menu-toggle {
    display: flex;
  }
  
  ul#menu {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    gap: 18px;
    padding: 20px 0;
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex; 
  }
  ul#menu.active {
    transform: translateY(0);
  }

  ul li a {
    flex-direction: row;
    gap: 10px;
  }
  ul li a span {
    display: inline;
    font-weight: 500;
  }

  .slide-content h2 {
    font-size: 2.1rem; 
  }
  .slide-content p {
    font-size: 1rem;
  }
  
  .produk-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .produk-card img {
    height: 200px;
  }
  
  .galeri-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .galeri-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
  .galeri-item:nth-child(1) { grid-column: span 2; }
  .galeri-item:nth-child(4) { grid-column: span 2; }
  .galeri-item:nth-child(5) { grid-column: span 2; }
  
  .toko-kategori-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .toko-kategori-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 20px;
  }
  .toko-kategori-card p {
    display: none;
  }
  .toko-kategori-card i {
    margin-bottom: 10px;
  }
  
  .toko-kategori-card h3::after {
      display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .footer-col {
    margin-bottom: 20px;
  }

  .footer-coll {
    display: none;
  }
}

@media (max-width: 480px) {
  .produk-grid {
    gap: 15px;
  }
  .produk-card img {
      height: 180px;
  }
  .produk-info {
      padding: 15px;
  }
  .produk-info h3 {
      font-size: 1rem;
  }
  
  .search-wrapper svg {
    left: 12px;
    width: 18px;
    height: 18px;
  }
  #search-bar {
    font-size: 1rem;
    padding: 12px 15px 12px 42px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-col {
    text-align: center; 
  }
  
  .footer-col ul.footer-links,
  .footer-col ul.footer-contact {
    display: block;
  }

  .social-links {
    justify-content: center;
  }
  
  .galeri-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .galeri-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
  
  .toko-kategori-card {
      padding: 15px;
  }
  .toko-kategori-card i {
      margin-bottom: 10px;
  }
  .footer-coll {
    display: none;
  }
}
  visibility: visible;
}
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #e0e0e0;
  border-top: 5px solid #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.error-message {
  display: none;
  margin-top: 20px;
  font-size: 1.1rem;
  color: #555;
  text-align: center;
  padding: 0 20px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; 
  -moz-user-select: none;    
  -ms-user-select: none;     
  user-select: none;        
}
body {
  background: #f8f9fa;
  color: #222;
  overflow-x: hidden;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
nav {
  width: 100%;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  animation: slideDown 0.6s ease;
}
@keyframes slideDown {
  from {
    transform: translateY(-60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 600;
  color: #000000;
}
.nav-kanan {
  display: flex;
  align-items: center;
  gap: 30px;
}
ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}
ul li a {
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: color 0.3s ease, transform 0.3s ease;
}
ul li a:hover {
  color: #000000;
  transform: translateY(-2px);
}
ul li i {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}
ul li a span {
  display: none;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 5px;
  transition: 0.3s;
}

/* === INI BAGIAN YANG DI-ROMBAK === */
.slider-container {
    position: relative;
    width: 100%;
    margin-top: 60px; 
    overflow: hidden; 
}
.slider-wrapper {
    position: relative;
    
    /* * HAPUS: height: calc(100vh - 60px); 
     * HAPUS: min-height: 450px;
     */
     
    /* TAMBAH: Ini kuncinya. Paksa rasio 16:9 (widescreen) */
    aspect-ratio: 16 / 9;
    /* Kasih warna jaga-jaga kalo gambar lambat ke-load */
    background-color: #222; 
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    opacity: 0;
    transition: opacity 0.8s ease-in-out; 
    z-index: 1; 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center; 
    color: white;
}
.slide.active {
    opacity: 1;
    z-index: 2; 
}
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}
.slide-content {
    position: relative; 
    z-index: 2;
    padding: 20px;
    max-width: 1100px; 
    width: 90%; 
    text-align: left; 
}
.slide-content h2 {
  margin-top: 30%;
    font-size: 2.8rem; 
    margin-bottom: 10px;
    font-weight: 600;
}


.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 25px; 
    max-width: 600px; 
}
.cta-button {
    display: none;
    padding: 12px 25px;
    background-color: #000000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}
.cta-button:hover {
    background-color: white;
    color: #222; 
    transform: translateY(-2px); 
}
.slider-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    width: 45px; 
    height: 45px;
    font-size: 22px;
    cursor: pointer;
    z-index: 10; 
    transition: background-color 0.3s;
}
.slider-nav:hover {
    background-color: rgba(255, 255, 255, 0.7);
}
.prev { left: 25px; } 
.next { right: 25px; }
.slider-dots {
    position: absolute;
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10; 
}
.dot {
    width: 30px; 
    height: 8px; 
    border-radius: 4px; 
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px; 
    cursor: pointer;
    transition: all 0.3s;
}
.dot.active {
    background-color: white;
    width: 40px; 
}
main {
  width: 100%;
}
.produk-container {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
  position: relative; 
}
.produk-container h2 {
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  margin-bottom: 40px;
  color: #7c7c7c;
}
.produk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.produk-card {
  display: block;
  text-decoration: none;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease-out, 
              transform 0.4s ease-out, 
              box-shadow 0.3s ease-out;
}
.produk-card.muncul {
  opacity: 1;
  transform: translateY(0);
}
.produk-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.produk-card:active {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.toko-kategori-card.muncul {
    opacity: 1;
    transform: translateY(0);
}
.produk-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.produk-info {
  padding: 20px;
}
.produk-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.produk-info p.harga {
  font-size: 1.2rem;
  font-weight: bold;
  color: #000000;
}

.galeri-container {
  max-width: 1100px;
  margin: auto;
  padding: 0px 20px 60px 20px;
  text-align: center;
}
.galeri-container h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}
.galeri-container p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 15px;
}
.galeri-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.galeri-item.muncul {
  opacity: 1;
  transform: translateY(0);
}
.galeri-item:nth-child(1) { grid-column: span 2; }
.galeri-item:nth-child(4) { grid-row: span 2; }
.galeri-item:nth-child(5) { grid-column: span 2; }
.galeri-item:nth-child(8) { grid-column: span 2; }

.galeri-item img,
.galeri-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  background-color: #000;
}
.galeri-item:hover img,
.galeri-item.is-playing video {
  transform: scale(1.1);
}
.galeri-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 40px 20px 20px 20px;
  transform: translateY(30%);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 3;
}
.galeri-item:hover .galeri-info {
  transform: translateY(0);
  opacity: 1;
}
.galeri-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.galeri-info p {
  font-size: 0.9rem;
  color: #eee;
  margin: 0;
}

.video-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.galeri-item.video:hover .video-controls {
  opacity: 1;
}
.galeri-item.video.is-playing .video-controls {
  opacity: 0;
}
.galeri-item.video.is-playing:hover .video-controls {
  opacity: 1;
}
.play-pause-btn {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid white;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.play-pause-btn i {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}
.galeri-item.is-playing .play-pause-btn i {
  margin-left: 0;
}
.video-sound-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.galeri-item.video:hover .video-sound-toggle {
  opacity: 1;
}
.mute-btn {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.mute-btn i {
  width: 18px;
  height: 18px;
}
main.halaman-toko {
  padding-top: 60px;
  min-height: calc(100vh - 300px);
}
.toko-header {
  background: linear-gradient(135deg, #000000 0%, #000000 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  border-radius: 0 0 25px 25px;
  margin-bottom: -30px;
  position: relative;
  z-index: 10;
}
.toko-header h1 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.toko-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}
.toko-kategori-container {
  max-width: 1100px;
  margin: auto;
  padding: 90px 20px 60px 20px;
  position: relative;
  z-index: 1;
}
.toko-kategori-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.toko-kategori-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 25px;
  text-decoration: none;
  color: #333;
  background: white;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #a2a2a2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease,
              opacity 0.6s ease-out, transform 0.6s ease-out;
  opacity: 0;
  transform: translateY(30px);
}

.toko-kategori-card.muncul {
    opacity: 1;
    transform: translateY(0);
}

.toko-kategori-card:hover {
  transform: translateY(-8px);
  border-color: #000000;
  box-shadow: 0 12px 25px rgba(183, 183, 183, 0.1);
}
.toko-kategori-card:active {
  transform: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.icon-wrapper {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f3f3f3;
  transition: all 0.3s ease;
}
.toko-kategori-card i {
  width: 30px;
  height: 30px;
  color: #000000;
  margin-bottom: 0;
}
.toko-kategori-card:hover .icon-wrapper {
  background-color: #c8c8c8;
}
.toko-kategori-card:hover i {
  color: #ffffff;
}
.toko-kategori-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
}
.toko-kategori-card h3::after {
  content: '→';
  position: absolute;
  opacity: 0;
  color: #ffffff;
  font-size: 1.8rem;
  transition: all 0.3s ease;
  right: -20px;
  top: 0;
}
.toko-kategori-card:hover h3::after {
  opacity: 1;
  right: -5px;
}
.toko-kategori-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.search-wrapper {
  position: relative;
  margin-bottom: 30px;
}
.search-wrapper svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  stroke-width: 2;
  width: 20px;
  height: 20px;
  z-index: 2;
}
#search-bar {
  width: 100%;
  padding: 14px 20px 14px 50px;
  font-size: 1.1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  position: relative;
  z-index: 1;
}
#search-bar:focus {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}
.suggestions-container {
  display: none; 
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.08);
  z-index: 900; 
  max-height: 300px;
  overflow-y: auto;
}
.suggestion-item {
  padding: 12px 20px;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover,
.suggestion-item.active {
  background-color: #f8f9fa;
}

.no-results {
  display: none;
  text-align: center;
  font-size: 1.2rem;
  color: #777;
  margin-top: 40px;
}

footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.footer-col {
  padding: 0 10px;
}
.footer-col .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  display: block;
}
.footer-col h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 25px;
}
.footer-col p {
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  display: block;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  flex-direction: row;
}
.footer-col ul li a:hover {
  color: #000000;
  transform: translateX(4px);
}
.footer-coll {
  padding: 0 10px;
}
.footer-coll .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  display: block;
}
.footer-coll h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 25px;
}
.footer-coll p {
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-coll ul {
  list-style: none;
  padding: 0;
  display: block;
}
.footer-coll ul li {
  margin-bottom: 12px;
}
.footer-coll ul li a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  flex-direction: row;
}
.footer-coll ul li a:hover {
  color: #ffffff;
  transform: translateX(4px);
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  color: #94a3b8;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.social-links a:hover {
  color: #7d7d7d;
  border-color: #c4c4c4;
  transform: translateY(-3px);
}
.footer-bottom {
  background-color: transparent;
  padding: 25px 20px;
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #64748b;
  border-top: 1px solid #334155;
}


@media (max-width: 768px) {
  .nav-kanan {
    gap: 20px;
  }
  .menu-toggle {
    display: flex;
  }
  
  ul#menu {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    gap: 18px;
    padding: 20px 0;
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex; 
  }
  ul#menu.active {
    transform: translateY(0);
  }

  ul li a {
    flex-direction: row;
    gap: 10px;
  }
  ul li a span {
    display: inline;
    font-weight: 500;
  }

  .slide-content h2 {
    font-size: 2.1rem; 
  }
  .slide-content p {
    font-size: 1rem;
  }
  
  .produk-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .produk-card img {
    height: 200px;
  }
  
  .galeri-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .galeri-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
  .galeri-item:nth-child(1) { grid-column: span 2; }
  .galeri-item:nth-child(4) { grid-column: span 2; }
  .galeri-item:nth-child(5) { grid-column: span 2; }
  
  .toko-kategori-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .toko-kategori-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 20px;
  }
  .toko-kategori-card p {
    display: none;
  }
  .toko-kategori-card i {
    margin-bottom: 10px;
  }
  
  .toko-kategori-card h3::after {
      display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .footer-col {
    margin-bottom: 20px;
  }

  .footer-coll {
    display: none;
  }
}

@media (max-width: 480px) {
  .produk-grid {
    gap: 15px;
  }
  .produk-card img {
      height: 180px;
  }
  .produk-info {
      padding: 15px;
  }
  .produk-info h3 {
      font-size: 1rem;
  }
  
  .search-wrapper svg {
    left: 12px;
    width: 18px;
    height: 18px;
  }
  #search-bar {
    font-size: 1rem;
    padding: 12px 15px 12px 42px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-col {
    text-align: center; 
  }
  
  .footer-col ul.footer-links,
  .footer-col ul.footer-contact {
    display: block;
  }

  .social-links {
    justify-content: center;
  }
  
  .galeri-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .galeri-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
  
  .toko-kategori-card {
      padding: 15px;
  }
  .toko-kategori-card i {
      margin-bottom: 10px;
  }
  .footer-coll {
    display: none;
  }
}