* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  font-family: sans-serif;
  background-color: #fff;
}

/* Gambar biasa */
.image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}
.centered-image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Overlay section */
.overlay-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.overlay-content {
  z-index: 2;
  /*background-color: transparent; */
  padding: 0px;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  box-shadow: none;
  margin-top: 50px; /* video turun sedikit lebih jauh */
}


/* Video */
.video-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}

.video-wrapper {
  max-width: 720px;
  width: 100%;
}

.video-caption {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.4;
}

.video-promosi {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(235, 231, 230, 0.2);
}


/* Tombol katalog */
.catalog-link {
  text-align: center;
  padding: 10px 20px;
  background-color: #fff;
}
.catalog-link a {
  display: inline-block;
  background-color: #219150;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease;
}
.catalog-link a:hover {
  background-color: #800000;
}
.icon-img-small {
  width: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

/* Gambar Baris 3 */
.slider-wrapper {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background-color: #fff;
}

.main-display {
  margin-bottom: 20px;
  position: relative;
}

.main-display img {
  max-width: 50%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.main-caption {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
}

.thumbnail-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.thumbnail img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid transparent;
}

.thumbnail img:hover {
  transform: scale(1.1);
  border-color: #0063bb;
}

@media screen and (min-width: 1024px) {
  #mainImage {
    max-width: 500px;
    height: auto;
  }
}


/* Gambar Judul */
.testimoni-image {
  width: 700px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}
/* Wrapper untuk slider + tombol */
.snap-container-wrapper {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

/* Scroll Snap Slider */
.snap-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  border-radius: 12px;
}

.snap-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.snap-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Tombol Navigasi Anchor */
.snap-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 20px;
}

.slider-btn {
  background-color: #fff;
  color: #fff;
  font-size: 22px;
  padding: 10px 14px;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.3s;
}

.slider-btn:hover {
  background-color: #800000;
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .testimoni-image {
    width: 280px;
  }

  .snap-container-wrapper {
    max-width: 280px;
  }

  .slider-btn {
    font-size: 18px;
    padding: 8px 10px;
  }
}

.text-video {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px; /* Tinggi minimum untuk section, sesuaikan jika perlu */
    background: #fff; /* Warna latar belakang dasar */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.text-video h2 {
    text-align: center;
    font-family: 'Arial', sans-serif; /* Ganti dengan font stylish seperti 'Playfair Display' jika menggunakan Google Fonts */
    font-size: 1.5em;
    color: #111764; /* Warna putih untuk kontras dengan gradien latar */
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.text-video h2:hover {
    transform: scale(1.05);
}

/* Announcement Box */
.announcement-section {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.announcement-box {
  background-color: #ffffff;
  padding: 20px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  max-width: 600px;
  width: 100%;
}

.announcement-box h2 {
  color: #0063bb;
  font-size: 28px;
  margin-bottom: 10px;
}

.announcement-box h3 {
  font-size: 22px;
  color: #333;
}

/* ✅ Media query untuk layar HP */
@media (max-width: 480px) {
  .announcement-box {
    padding: 10px;
  }

  .announcement-box h2 {
    font-size: 20px;
  }

  .announcement-box h3 {
    font-size: 16px;
  }
}

/* Form Pemesanan */
.form-section {
  background-color: #fff;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-container {
  max-width: 700px;
  width: 100%;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.form-container h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 24px;
  color: #222;
}

form label {
  display: block;
  margin-top: 20px;
  font-weight: 600;
  color: #333;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 8px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

form textarea {
  resize: vertical;
  min-height: 100px;
}

form button {
  width: 100%;
  background-color: #0063bb;
  color: white;
  padding: 14px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

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

/* Sosmed */
.testimoni-image {
  width: 400px;
  max-width: 100%;
  display: block;
  margin: 0 auto 20px;
}

/* Wrapper untuk slider + tombol */
.snap-container-wrapper {
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

/* Scroll Snap Slider */
.snap-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  border-radius: 12px;
}

.snap-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.snap-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Tombol Navigasi Anchor */
.snap-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 20px;
}

.slider-btn {
  background-color: #000;
  color: #fff;
  font-size: 22px;
  padding: 10px 14px;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.3s;
}

.slider-btn:hover {
  background-color: #444;
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .testimoni-image {
    width: 280px;
  }

  .snap-container-wrapper {
    max-width: 280px;
  }

  .slider-btn {
    font-size: 18px;
    padding: 8px 10px;
  }
}

/* Sosial Media Footer */
.testimoni-image {
  width: 400px;
  max-width: 100%;
  display: block;
  margin: 0 auto 20px;
}

/* Wrapper untuk slider + tombol */
.snap-container-wrapper {
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

/* Scroll Snap Slider */
.snap-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  border-radius: 12px;
}

.snap-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.snap-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Tombol Navigasi Anchor */
.snap-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 20px;
}

.slider-btn {
  background-color: #fff;
  color: #fff;
  font-size: 22px;
  padding: 10px 14px;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.3s;
}

.slider-btn:hover {
  background-color: #444;
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .testimoni-image {
    width: 280px;
  }

  .snap-container-wrapper {
    max-width: 280px;
  }

  .slider-btn {
    font-size: 18px;
    padding: 8px 10px;
  }
}

/* Sosial Media Footer */
.social-footer {
  background: #eee;
  padding: 20px;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 50px;
}

.social-icon:hover {
  max-width: 160px;
}

.icon-img {
  width: 32px;
  transition: transform 0.3s ease;
}

.social-icon:hover .icon-img {
  transform: scale(1.1);
}

.icon-label {
  white-space: nowrap;
  color: #fff;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icon:hover .icon-label {
  opacity: 1;
}

/* Warna per platform */
.social-icon.instagram:hover {
  background-color: #e1306c;
}

.social-icon.tiktok:hover {
  background-color: #010101;
}

.social-icon.facebook:hover {
  background-color: #3b5998;
}

.social-icon.youtube:hover {
  background-color: #ff0000;
}



.map-wrapper {
  padding: 40px 20px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-box {
  width: 100%;
  max-width: 800px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(192, 192, 192, 0.1);
  padding: 20px;
  text-align: center;
}

.map-box h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 22px;
}

.map-box iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 12px;
}

/*slide gallery*/
.kain-viral-section {
  background-color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.judul-kain {
  font-size: 32px;
  color: #111764;
  font-weight: 700;
  margin-bottom: 30px;
}

.kain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* tetap 2 kolom */
  gap: 16px;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.kain-item {
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
}

.kain-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.caption-box {
  background-color: #F0CF8F;
  color: #000;
  font-weight: 600;
  margin-top: 8px;
  padding: 10px;
  border-radius: 4px;
  font-size: 16px;
  text-align: center;
}


/* Layar pembuka video */
#videoCover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 20px;
}

/* Judul dan deskripsi di overlay */
#videoCover h1 {
  font-size: 28px;
  margin-bottom: 12px;
}
#videoCover p {
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 300px;
}

/* Tombol Play Video */
#videoCover button {
  background-color: #27ae60;
  color: white;
  padding: 14px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}
#videoCover button:hover {
  background-color: #219150;
}

/* Responsive */
@media (max-width: 480px) {
  #videoCover h1 {
    font-size: 20px;
  }
  #videoCover p {
    font-size: 14px;
  }
  #videoCover button {
    font-size: 14px;
    padding: 12px 20px;
  }
}
#videoCover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

#videoCover video {
  max-width: 320px; /* Ukuran video diperkecil */
  width: 90%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Carousel Styles */
.carousel-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background-color: #fff;
}

.carousel-container {
  display: flex;
  align-items: center;
  max-width: 1000px;
  width: 100%;
  gap: 20px;
}

.carousel-btn {
  background-color: #219150;
  color: white;
  border: none;
  font-size: 24px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
  height: fit-content;
}

.carousel-btn:hover {
  background-color: #1a6e3d;
}

.carousel-track-wrapper {
  overflow: hidden;
  flex: 1;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  gap: 15px;
  transition: transform 0.5s ease;
  padding: 10px;
}

.carousel-item {
  min-width: 200px;
  height: 250px;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.carousel-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* show full image without cropping */
  display: block;
  background-color: #ffffff; /* prevents transparent gap look */
}

/* Caption overlay: start hidden below, slide up on hover */
.item-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  background: linear-gradient(180deg, rgba(33,145,80,0) 0%, rgba(33,145,80,0.95) 100%);
  color: white;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  transform: translateY(100%);
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  z-index: 2;
}

.carousel-item:hover .item-caption,
.carousel-item:focus-within .item-caption {
  transform: translateY(0);
  opacity: 1;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: transparent;
  margin: 0;
  padding: 0;
  border-radius: 0;
  width: 95%;
  max-width: 100%;
  height: 90vh;
  box-shadow: none;
  text-align: center;
  animation: slideDown 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-btn {
  color: white;
  float: right;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  line-height: 20px;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10001;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.3);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
  color: #fff;
  background: rgba(0,0,0,0.7);
}

/* Zoom Image Container - Full Screen */
.modal-image-container {
  position: relative;
  display: flex;
  flex: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.modal-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  overflow: auto;
  cursor: grab;
}

.modal-image-wrapper.zoomed {
  cursor: grabbing;
}

#modalProductImage {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 0;
  transition: transform 0.2s ease;
  user-select: none;
  object-fit: contain;
}

/* Simple Zoom Level Display */
.zoom-level {
  font-size: 12px;
  font-weight: bold;
  color: white;
  position: relative;
}

/* Product Info Overlay */
.modal-info-overlay {
  padding: 80px 20px 30px 20px;
  text-align: center;
  color: white;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  animation: slideUpInfo 0.3s ease;
}

@keyframes slideUpInfo {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-info-overlay h2 {
  color: #fff;
  margin: 0 0 10px 0;
  font-size: 20px;
}

.modal-info-overlay p {
  color: #ddd;
  margin: 0 0 15px 0;
  font-size: 13px;
}

#modalProductName {
  color: #fff;
  margin: 0 0 10px 0;
  font-size: 22px;
}

#modalProductDesc {
  color: #ddd;
  margin-bottom: 15px;
  font-size: 13px;
}

.order-btn {
  display: inline-block;
  background-color: #219150;
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.order-btn:hover {
  background-color: #1a6e3d;
}

@media (max-width: 768px) {
  .carousel-item {
    min-width: 150px;
    height: 200px;
  }

  .carousel-item img {
    height: 100%;
    object-fit: contain;
  }

  .modal-content {
    margin: 0;
    width: 100%;
    height: 100vh;
  }
  
  .modal-info-overlay {
    padding: 60px 15px 20px 15px;
  }
  
  .close-btn {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
  
  #modalProductName {
    font-size: 18px;
  }
  
  #modalProductDesc {
    font-size: 12px;
  }
}