@charset "utf-8";
/* CSS Document */

/* ==========================================================================================================================================
   														HALAMAN AVAILABLE DAN SOLD
   ========================================================================================================================================== */
.filters-button-group .btn {
  margin: 0 5px 10px 5px;
  border-radius: 25px;
  transition: 0.3s;
}
.filters-button-group .btn.is-checked,
.filters-button-group .btn:hover {
  background-color: #0d6efd;
  color: #fff;
}

/* Card available dan sold */
.card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
  margin-top:10px;
  margin-bottom:10px;
  background-color:#FFF;
}

.card:hover {
  box-shadow: 0 5px 5px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}
.card > .card-inner {
  padding:10px;
}
.card .header h2, h3 {
  margin-bottom: 0px;
  margin-top:0px;
}
.card .header {
  margin-bottom:5px;
}
.card img{
  width:100%;
}
.card-body h5{
	font-size: 1em;
	font-weight: bold;
}
/* ============================
   Card Body Background putih
   ============================ */
.card.product-card .card-body {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 15px 10px;
}

.card.product-card .card-title a {
  color: #0677BF;
  text-decoration: none;
}

.card.product-card .card-title a:hover {
  color: #47A7E4;
}


/* Style portfolio item dengan overlay hitam transparan */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.portfolio-item img {
  transition: all 0.4s ease;
  width: 100%;
  height: auto;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.portfolio-item:hover .portfolio-info {
  opacity: 1;
}

.portfolio-links {
  margin-top: 10px;
}

.portfolio-links a {
  color: #fff;
  font-size: 24px;
  margin: 0 10px;
  transition: 0.3s;
}

.portfolio-links a:hover {
  color: #00ff66;
}

/* ==============================
   ✨ Isotope Filter Animation
   ============================== */
.element-item {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.grid {
  transition: all 0.3s ease-in-out;
}

.element-item.isotope-hidden {
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
}

.element-item:not(.isotope-hidden) {
  opacity: 1;
  transform: scale(1);
}
.element-item {
  transition: transform 0.5s ease, opacity 0.4s ease;
}
.filters-button-group .btn.is-checked {
  background-color: #0d6efd;
  color: #fff;
}

/* ==============================
   ✨ AOS Custom Smooth Transition
   ============================== */
[data-aos] {
  will-change: transform, opacity;
}

/* ============================================================
   3D CORNER RIBBON — SOLD OUT (reflektif & embossed)
   ============================================================ */
.ribbon-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 200px;
  overflow: hidden;
  pointer-events: none;
  z-index: 30;
}

/* Pita utama */
.ribbon {
  position: absolute;
  width: 210px;
  top: 28px;           /* posisi diagonal */
  right: -65px;
  padding: 8px 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #ff4040 0%, #c91a1a 45%, #8f1010 100%);
  box-shadow: 0 5px 10px rgba(0,0,0,0.45);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(0,0,0,0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

/* Lapisan gradasi bayangan dalam */
.ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 60%);
  border-radius: 1px;
}

/* Refleksi cahaya lembut di bagian atas */
.ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.45), rgba(255,255,255,0));
  mix-blend-mode: screen;
  opacity: 0.6;
}

/* Lipatan bawah kecil */
.ribbon span::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #6a0b0f;
}

/* Tambahan depth */
.ribbon::selection {
  background: transparent;
}

/* Efek gambar sold redup */
.product-card.sold img {
  filter: grayscale(100%) brightness(0.6);
}

/* ==========================================================================================================================================
   															HALAMAN PRODUCT DETAIL
   ========================================================================================================================================== */

.whatsapp-button a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.whatsapp-button a:hover {
    background-color: #128C7E;
    transition: background-color 0.3s ease;
}

/* Tambahkan ke CSS kustom Anda */
.gthumbs {
    height: 80px; /* Berikan tinggi yang terlihat */
    z-index: 1000000; /* Pastikan ia berada di atas elemen lain */
    /* Mungkin tambahkan background jika ingin melihat apakah elemennya ada */
    /* background: rgba(255, 0, 0, 0.5); */ 
}

/* ===========================
   PRODUCT CARD GRID FIX
   Semua gambar punya tinggi seragam
=========================== */

/* =====================================
   CARD & GRID STYLE UNTUK PRODUK AKTIF & TERJUAL
   (mobil-siap-pakai dan mobil-terjual)
===================================== */
#mobil-siap-pakai .product-card,
#mobil-terjual .product-card {
  overflow: hidden;
  border-radius: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#mobil-siap-pakai .product-card:hover,
#mobil-terjual .product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* FRAME GAMBAR (SAMA UNTUK SEMUA SECTION) */
#mobil-siap-pakai .product-card .portfolio-item,
#mobil-terjual .product-card .portfolio-item {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;  /* rasio landscape seragam */
  overflow: hidden;
  background: #f3f3f3;
}

/* GAMBAR DI DALAM CARD */
#mobil-siap-pakai .product-card .portfolio-item img,
#mobil-terjual .product-card .portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* crop otomatis biar rapi */
  object-position: center;  /* fokus tengah */
  display: block;
  transition: transform 0.4s ease;
}

/* HOVER ZOOM */
#mobil-siap-pakai .product-card .portfolio-item:hover img,
#mobil-terjual .product-card .portfolio-item:hover img {
  transform: scale(1.05);
}

/* OVERLAY INFO DI ATAS GAMBAR */
#mobil-siap-pakai .portfolio-info,
#mobil-terjual .portfolio-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#mobil-siap-pakai .portfolio-item:hover .portfolio-info,
#mobil-terjual .portfolio-item:hover .portfolio-info {
  opacity: 1;
}

/* GRID FLEX - RAPI DAN RESPONSIVE */
#mobil-siap-pakai .grid,
#mobil-terjual .grid {
  display: flex;
  flex-wrap: wrap;
}

#mobil-siap-pakai .element-item,
#mobil-terjual .element-item {
  flex: 1 0 25%;           /* 4 kolom per baris */
  padding: 8px;
  box-sizing: border-box;
  display: flex;
}

/* RESPONSIVE ADAPTATION */
@media (max-width: 991px) {
  #mobil-siap-pakai .element-item,
  #mobil-terjual .element-item {
    flex: 1 0 33.333%;     /* tablet: 3 kolom */
  }
}

@media (max-width: 767px) {
  #mobil-siap-pakai .element-item,
  #mobil-terjual .element-item {
    flex: 1 0 50%;         /* mobile: 2 kolom */
  }
}

@media (max-width: 575px) {
  #mobil-siap-pakai .element-item,
  #mobil-terjual .element-item {
    flex: 1 0 100%;        /* layar kecil: 1 kolom */
  }
}

/* SEDIKIT TWEAK UNTUK MOBILE – RASIO LEBIH TINGGI */
@media (max-width: 767px) {
  #mobil-siap-pakai .product-card .portfolio-item,
  #mobil-terjual .product-card .portfolio-item {
    aspect-ratio: 4 / 3;  /* biar foto sedikit lebih tinggi di HP */
  }
}


/* ================================================
   🎨 STYLE: Carousel, Gambar, Video, dan Embed
================================================ */

/* --- Wrapper umum Splide --- */
.carousel-wrapper {
  padding: 0;
  margin: 0;
}
#main-slider {
  width: 100%;
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
}

/* --- Rasio aspek (16:9) untuk menjaga proporsi --- */
#main-slider .splide__track {
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
#main-slider .splide__list {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
#main-slider .splide__slide {
  width: 100%; height: 100%;
  display: flex; justify-content: center; align-items: center;
}
.slide-content {
  width: 100%; height: 100%;
  display: block;
  cursor: pointer;
}

/* --- Gambar di slide utama --- */
#main-slider img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

/* --- Video lokal di slide --- */
.local-video-wrapper {
  width: 100%; height: 100%;
  display: flex; justify-content: center; align-items: center;
  background: #000;
}
.local-video-wrapper video {
  width: 100%; height: 100%;
  object-fit: contain;
  background-color: #000;
  border: none;
  outline: none;
}

/* --- Placeholder YouTube --- */
.youtube-placeholder {
  position: relative;
  width: 100%; height: 100%;
  background: #000;
  display: flex; justify-content: center; align-items: center;
}
.youtube-placeholder img {
  width: 100%; height: auto;
  filter: brightness(70%);
}
.youtube-play-icon {
  position: absolute;
  font-size: 50px;
  color: #fff;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  padding: 10px;
  transition: all 0.3s ease;
}
.youtube-placeholder:hover .youtube-play-icon {
  color: #CD2A2C;
  transform: scale(1.1);
}

/* --- Instagram embed (CSS BARU) --- */
.instagram-container {
    display: flex;
    flex-direction: column;
    /* 💡 KRUSIAL: Gunakan center untuk senter vertikal dan horizontal */
    justify-content: center; 
    align-items: center;
    width: 100%; 
    height: 100%;
    background: #000; /* Background hitam untuk mengisi area 16:9 yang kosong */
    overflow-y: auto;
    padding: 0; 
}

.instagram-embed-content {
    /* 💡 Biarkan max-width Instagram yang mengatur (default 540px) */
    max-width: 540px; 
    width: 100%;
    margin: auto; 
    
    /* Hapus paksaan tinggi */
    height: auto; 
    display: block; 
}

.instagram-embed-content blockquote {
    /* Hapus semua paksaan tinggi/lebar/margin/padding yang agresif */
    width: 100% !important; /* Agar mengisi max-width 540px */
    margin: 0 auto !important;
    height: auto !important;
    max-height: none !important;
}
/* --- Thumbnails --- */
#thumbnails {
  padding: 10px 0;
  margin-top: 0 !important;
}
#thumbnails .splide__list {
  display: flex;
  justify-content: center;
  min-height: 60px;
}
/*#thumbnails .splide__slide {
  cursor: pointer;
  width: 180px !important; height: 120px !important;
  margin-right: 10px;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: opacity 0.3s, border-color 0.3s;
}*/
#thumbnails .splide__slide {
    width: 180px !important;
    height: 120px !important;
    flex: 0 0 auto; /* supaya ga maksa stretch */
}
#thumbnails img,
#thumbnails .youtube-placeholder img,
#thumbnails .local-video-wrapper video,
#thumbnails .instagram-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* wajib */
    display: block;
}

@media (max-width: 480px) {
  #thumbnails .splide__slide {
      width: 75px !important;
      height: 50px !important;
      margin-right: 6px;
  }
}
#thumbnails .splide__slide.is-active {
  border-color: #CD2A2C;
  opacity: 1;
}
/*#thumbnails img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}*/
#thumbnails .video-thumb::after {
  content: "\f144"; /* icon play */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 24px;
}

/* --- Panah navigasi Splide --- */
.splide__arrows {
  z-index: 50;
}
.splide__arrow {
  background: rgba(0,0,0,0.3);
  color: #fff;
  transition: 0.3s;
}
.splide__arrow:hover {
  background: rgba(205,42,44,0.9);
}

/* --- Responsive tweaks --- */
@media (max-width: 767px) {
  #main-slider .splide__track {
    padding-bottom: 75%;
  }
  #thumbnails .splide__slide {
    width: 80px !important;
    height: 60px !important;
    margin-right: 6px;
  }
}
/* =============================== */
/* 🎬 Custom Tombol Play / Pause   */
/* =============================== */
.local-video-wrapper {
  position: relative;
  background: #000;
}

.local-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

.local-video-wrapper .video-toggle {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 0px;
  z-index: 9;
  font-size: 14px;
  transition: background 0.2s;
}

.local-video-wrapper .video-toggle:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Tombol YouTube di Thumbnail (placeholder) */
.youtube-placeholder {
  position: relative;
  cursor: pointer;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.youtube-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(65%);
  transition: transform 0.4s ease;
}

.youtube-placeholder:hover img {
  transform: scale(1.05);
}

.youtube-play-icon {
  position: absolute;
  font-size: 48px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  padding: 12px 15px;
  z-index: 2;
  transition: all 0.3s;
}

.youtube-placeholder:hover .youtube-play-icon {
  color: #CD2A2C;
  transform: scale(1.15);
}
/* ==============================
   FIX VIDEO & REELS DISPLAY
   ============================== */

/* Semua video & iframe dalam slider */
#portfolio-details .slide-content iframe,
#portfolio-details .slide-content video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background-color: #000;
  border: none;
  display: block;
}

/* Reels/Shorts portrait mode biar gak gepeng */
#portfolio-details .slide-content[data-type="youtube"] iframe {
  aspect-ratio: auto;
  max-height: 75vh;
  width: auto;
  margin: 0 auto;
  display: block;
}

/* Placeholder YouTube (gambar sebelum play) */
#portfolio-details .youtube-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#portfolio-details .youtube-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  color: #fff;
  opacity: 0.85;
  pointer-events: none;
}

/* Responsif */
@media (max-width: 768px) {
  #portfolio-details .slide-content iframe,
  #portfolio-details .slide-content video {
    aspect-ratio: auto;
    height: auto;
    max-height: 60vh;
  }
}	
/* ======================
🎬 Tombol Play/Pause Animasi
====================== */
.video-toggle {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.local-video-wrapper:hover .video-toggle {
  opacity: 1;
}

/* Optional: efek hover di tombol */
.video-toggle:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  transform: scale(1.05);
}

/* YouTube Placeholder agar rapi */
.youtube-placeholder {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0px;
  aspect-ratio: 16 / 9;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.youtube-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.youtube-placeholder:hover img {
  transform: scale(1.05);
}

.youtube-play-icon {
  position: absolute;
  font-size: 60px;
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.youtube-placeholder:hover .youtube-play-icon {
  opacity: 1;
}

/* Saat video portrait (shorts/reels) */
.portrait iframe,
.portrait video {
  object-fit: cover;
  height: 100%;
  width: auto;
  margin: 0 auto;
}

/* ==========================================================================================================================================
   															HALAMAN PRODUCT DETAIL (ENHANCED STYLES)
   ========================================================================================================================================== */

/* Umum: Card styling untuk Detail dan Deskripsi */
.detail-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Soft, modern shadow */
    transition: all 0.3s ease;
}

/* Header/Judul Mobil */
.product-details h2 {
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

/* Price Box */
.product-details .price-box {
    background: linear-gradient(135deg, #f8d7da 0%, #dc3545 100%); /* Light red/danger background */
    color: #fff;
    padding: 25px !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px !important;
}
.price-box strong {
    color: #fff !important; /* Force white color */
    font-size: 3rem !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Detail Ringkas (Spec List) */
.spec-list {
    margin-top: 15px;
}
.spec-item {
    background-color: #f8f9fa; /* Light grey background for each item */
    border-radius: 5px;
    border-left: 4px solid #0d6efd; /* Blue accent border */
    transition: background-color 0.2s ease;
    height: 100%; /* Ensure all boxes have same height */
}
.spec-item:hover {
    background-color: #e9ecef;
}
.spec-item i {
    font-size: 1.5rem;
    color: #dc3545 !important; /* Change icon color to red/danger for contrast */
}
.spec-item p {
    font-size: 1.1rem;
    line-height: 1.2;
}
.spec-item small {
    display: block;
    font-size: 0.8rem;
    color: #6c757d !important;
}

/* WhatsApp Button (Override default) */
.whatsapp-button.my-4 a {
    display: block; /* Make it full width */
    background-color: #25D366;
    color: white;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    font-size: 1.5rem !important;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}
.whatsapp-button.my-4 a:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.6);
}

/* Deskripsi */
.portfolio-description.detail-card {
    padding-top: 15px;
}
.portfolio-description h4 {
    color: #333;
    border-bottom: 2px solid #0d6efd; /* Blue accent under description title */
    padding-bottom: 10px;
    margin-bottom: 15px !important;
}
.instagram-container,
.instagram-embed-content {
  all: unset !important;
  /* reset semua gaya instagram bawaan */
}

video {
  background: #000;
}