






/* Container */
.shop-swipe-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

/* Tombol navigasi */
.swipe-prev, .swipe-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 0px 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 9999;
  pointer-events: auto;
}

.swipe-prev { left: 10px; }
.swipe-next { right: 10px; }

.swipe-prev:hover, .swipe-next:hover {
  background: rgba(0,0,0,0.8);
}

/* Track */
.shop-swipe-track {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

.shop-swipe-track::-webkit-scrollbar { display: none; }

/* Item */
.shop-swipe-item {
  background: #fff;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: center;
  flex: 0 0 200px;
  max-width: 200px;
  scroll-snap-align: start;
}

.shop-swipe-item .shop-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.shop-swipe-item .shop-title {
  font-size: 16px;
  margin: 8px 10px 4px;
  height: 40px;
  text-align: left; line-height: 120%;
}

.shop-swipe-item .shop-price {
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.shop-swipe-item .shop-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.shop-swipe-item .shop-actions button,
.shop-swipe-item .shop-actions a.button {
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
}

.shop-swipe-item .shop-actions .product-check {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.shop-swipe-item .shop-actions .product-check:hover {
  background: #444;
}

.shop-swipe-item .shop-actions .shop-toggle-wishlist {
  background: #eee;
  color: #333;
}

.shop-swipe-item .shop-actions .shop-toggle-wishlist.in-wishlist {
  color: red;
}

/* Responsif */
@media (max-width: 1024px) {
  .shop-swipe-item { flex: 0 0 180px; max-width:180px; }
}

@media (max-width: 768px) {
  .shop-swipe-item { flex: 0 0 40%; max-width:40%; }
}

@media (max-width: 480px) {
  .shop-swipe-item { flex: 0 0 60%; max-width:60%; }
 
}
















.cover-btn-abs {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-size: 1rem;
  font-weight: normal;
  text-decoration: none;
  transition: all .3s ease;
  margin-top: 8px;
}

.cover-btn-abs:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 480px) {
  .cover-btn-abs {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
  }
}


















.cover-desktop { width: 100%; }


.shop-cover-image .cover-desktop { display:block !important; width:100%; }
.shop-cover-image .cover-mobile { display:none !important; }

@media (max-width:768px){
  .shop-cover-image .cover-desktop { display:none !important; }
  .shop-cover-image .cover-mobile { display:block !important; }
}



/* Slide Panel */
.slide-panel {
  display: flex;
  flex-direction: column;
  height: 100%; /* penuh tinggi */
}

/* Body yang berisi daftar produk */
.slide-panel-body {
  flex: 1;               /* ambil sisa tinggi */
  overflow-y: auto;      /* bisa discroll */
  padding: 12px;
}

/* Footer sticky di bawah */
.slide-panel-footer {
  border-top: 1px solid #ddd;
  padding: 12px;
  background: #fafafa;
  flex-shrink: 0;        /* jangan menyusut */
}


/* Toast container */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}



.shake {
  animation: shake 0.6s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}



/* Toast item */
.toast {
  background: #333;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Variasi warna opsional */
.toast.success { background: #000; }
.toast.error   { background: #000; }
.toast.info    { background: #000; }


.shop-grid .product-actions .button.product-check {
  background: #fff !important;
  color: #000 !important;
  padding: 2px 4px;
  border-radius: 0px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
  border: 4px solid #ccc; /* optional biar jelas */
}
.shop-grid .product-actions .button.product-check:hover {
  background: #f2f2f2 !important;
}


.button.product-check:hover {
  background: #333;
}



.slide-panel-footer {
  border-top: 1px solid #ddd;
  padding: 12px;
  background: #fafafa;
}

.cart-total {
  margin-bottom: 10px;
  font-size: 16px;
}

.checkout-btn {
  background: #000;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}
.checkout-btn:hover {
  background: #0056b3;
}









/* Floating Icons kanan tengah */
#floating-icons {
  position: fixed;
  right: 15px;
  top: 90%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.float-icon {
  position: relative;
  background:#000;
  color:#fff;
  width:50px;
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  text-decoration:none;
  font-size:22px;
  box-shadow:0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
}
.float-icon:hover { background:#333; }
.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background:#CD7E0D;
  color:#fff;
  font-size:12px;
  font-weight:bold;
  padding:0px 6px;
  border-radius:50%;
}

/* Slide Panel */
.slide-panel {
  position: fixed;
  top: 0;
  right: -120%;
  width: 320px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  z-index: 10000;
  display: flex;
  flex-direction: column;
}


/* Mobile full width */
@media (max-width: 768px) {
  .slide-panel {
    width: 100%;
  }
}
.slide-panel.active { right: 0; }

.slide-panel-header {
  background: #000;
  color:#fff;
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.slide-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.slide-panel .close-btn {
  cursor: pointer;
  font-size: 20px;
}
.product-item {
  border-bottom: 1px solid #eee;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}
.product-item h4 { font-size: 14px; margin:0; flex: 1; }
.product-item p { font-size: 13px; margin:0; }
.remove-btn {
  background:#CD7E0D;
  border:none;
  color:#fff;
  font-size:12px;
  border-radius:4px;
  padding:3px 6px;
  cursor:pointer;
}

/* =============================
   Slide Carousel (fix fade smooth)
============================= */

/* wrapper */
.slide-carousel-wrapper {
  position: relative;
}

/* item utama */
.slide-carousel-item {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out; /* ✅ fade lembut, tanpa overlay delay */
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 30px;
  position: absolute; /* tumpuk slide di atas satu sama lain */
  width: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}
.slide-carousel-item.active {
  display: grid;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease-in-out; /* ✅ fade masuk halus */
  position: relative;
  z-index: 1;
}

.slide-carousel-col.left video,
.slide-carousel-col.left img,
.slide-carousel-col.right img {
  width: 100%;
  border-radius: 0px;
}

/* thumbnail strip */
.slide-carousel-thumbs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}
.slide-carousel-thumbs img {
  max-height: 80px;
  flex: 0 0 auto;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: opacity 0.3s ease, transform 0.2s ease, border 0.3s ease;
}
.slide-carousel-thumbs img:hover {
  opacity: 1;
  transform: scale(1.05);
}
.slide-carousel-thumbs img.active {
  opacity: 1;
  border-color: #007bff;
}




/* Tambah jarak atas tombol di kolom tengah */
.slide-carousel-col.center .btn,
.slide-carousel-col.center button,
.slide-carousel-col.center a {
  margin-top: 12px; /* atur sesuai kebutuhan, misal 12px–20px */
  display: inline-block;
}












/* tombol panah */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 28px;
  padding: 2px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}
.carousel-prev { left: -10px; }
.carousel-next { right: -10px; }
.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0,0,0,0.8);
}

/* responsif mobile */
@media (max-width: 768px) {
  .slide-carousel-item {
    grid-template-columns: 1fr; /* 1 kolom */
  }
  .slide-carousel-col.center {
    margin: 15px;
  }
  .slide-carousel-thumbs img {
    max-height: 60px;
  }
}










/* =============================
   Shop Size
============================= */




.shop-size-option {
  display: inline-block;
  cursor: pointer;
}

.shop-size-option input {
  display: none; /* sembunyikan radio asli */
}

.shop-size-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  transition: 0.2s ease;
}

.shop-size-option input:checked + span {
  background: #CD7E0D; /* merah kalau dipilih */
  color: #fff;
}

.shop-size-option.out-of-stock span {
  background: #ccc !important; /* abu-abu kalau stok 0 */
  color: #666 !important;
  cursor: not-allowed;
  text-decoration: line-through;
}



.shop-size-option {
  display: inline-block;
  margin: 5px;
  cursor: pointer;
}

.shop-size-option input {
  display: none; /* sembunyikan radio asli */
}

.shop-size-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;   /* ukuran bulat */
  height: 40px;
  border-radius: 50%;
  background: #000;   /* default hitam */
  color: #fff;        /* teks putih */
  font-size: 14px;
  font-weight: bold;
  transition: 0.2s ease;
}

.shop-size-option input:checked + span {
  background: #CD7E0D;   /* merah kalau dipilih */
  color: #fff;
}




.shop-variant-img {
  border-radius: 8px;
  border: 2px solid #ddd;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.shop-variant-img.selected {
  border-color: #0073aa; /* biru khas WP */
  box-shadow: 0 0 6px rgba(0,115,170,0.4);
}




/* MOBILE: tombol tetap horizontal kanan-kiri, tanpa ubah HTML */
@media (max-width: 768px) {
    .shop-item-meta {
        flex-direction: column; /* harga tetap di atas */
    }

    .shop-item-meta .button.shop-add-to-cart,
    .shop-item-meta .shop-toggle-wishlist {
        display: inline-flex;   /* tetap horizontal */
        width: auto;             /* masing-masing setengah */
        justify-content: center;
        align-items: center;
        margin-bottom: 0;
    }

    .shop-item-meta .button.shop-add-to-cart {
        margin-right: 4%;       /* jarak antar tombol */
    }
}

/* =============================
   Shop Cover - Full Cover Style
============================= */



/* Responsive mobile untuk cover */
@media (max-width: 768px) {
    /* Semua shop-grid default jadi 2 kolom kecuali cover */
    .shop-grid:not(.shop-cover-grid) .shop-item {
        width: calc(50% - 0px);
    }

    /* Khusus shop-cover-grid jadi 1 kolom */
    .shop-grid.shop-cover-grid .shop-item {
        width: 100% !important;
    }
}

/* ===== MOBILE ONLY - BUTTON SPLIT ===== */
@media screen and (max-width: 768px) {
    .shop-item-meta {
        flex-direction: row;       /* tombol sejajar kanan-kiri */
        flex-wrap: wrap;
        gap: 4%;                   /* jarak kecil antar tombol */
    }

    .shop-item-meta .shop-price {
        width: 100%;               /* harga tetap full width di atas */
        margin-bottom: 4px; text-align: left;
    }

    .shop-item-meta .button.shop-add-to-cart,
    .shop-item-meta .button.shop-toggle-wishlist {
        width: auto    ;          /* split kanan-kiri */
        margin: 0;                  /* hapus margin kanan desktop */
    }
}

@media screen and (max-width: 480px) {
    .shop-item-meta .button.shop-add-to-cart,
    .shop-item-meta .button.shop-toggle-wishlist {
        width: auto;               /* tombol full width di HP kecil */
        margin: 0;
    }
}


/* ================================
   Shop Plugin Styles
   ================================ */

/* Grid (archive/product list) */
.shop-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    margin: 0px 0;
}
.shop-grid .shop-item {
    background: #fff;
    border: 0px solid #eee;
    padding: 0px;
    position: relative;
    transition: box-shadow .16s ease;
    width: 100%;
    box-sizing: border-box;
}
.shop-grid .shop-item:hover {
    box-shadow: none;
}
.shop-grid-cols-1 .shop-item { width: 100%; }
.shop-grid-cols-2 .shop-item { width: calc(50% - 0px); }
.shop-grid-cols-3 .shop-item { width: calc(33.333% - 13.333px); }
.shop-grid-cols-4 .shop-item { width: calc(25% - 0px); }

/* Item inner */
.shop-item-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.shop-item-title {
    font-size: 16px;
    margin: 8px 0;
    color: #222; padding: 0px 10px 0px 10px;
}
.shop-item-excerpt {
    font-size: 13px;
    color: #666;
    display: none;
}
.shop-item-image a,
.shop-item-title a {
    position: relative;
    z-index: 2;
}
.shop-item:hover .shop-item-excerpt {
    display: block;
    background: rgba(255,255,255,0.9);
    padding: 8px;
    border-radius: 4px;
}

/* Meta */
.shop-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px 10px 10px;
}
.shop-price {
    font-weight: 700;
    color: #111;
}

/* Carousel basic */
.shop-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 12px 0;
    -webkit-overflow-scrolling: touch;
}
.shop-carousel-item {
    min-width: 240px;
    flex: 0 0 auto;
    position: relative;
    border: 1px solid #eee;
    padding: 8px;
    background: #fff;
}
.shop-carousel-item img {
    width: 100%;
    display: block;
}
.shop-carousel-overlay { padding: 6px 0; }




/* ================================
   Single Product Layout - Desktop tetap
   ================================ */
.shop-single-wrap {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 24px;
    margin: 0px 30px 30px 30px;
}





/* Fix: Make left & right side columns scrollable on desktop
   - Paste this at the end of your existing shop.css (or replace the old .shop-single-left/.shop-single-right block)
*/

@media (min-width: 769px) {
  .shop-single-wrap > .shop-single-left,
  .shop-single-wrap > .shop-single-right {
    position: sticky !important;
    top: 100px !important;
    align-self: start !important;
    box-sizing: border-box !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: hidden !important;   /* default: no scroll */
  }

 .shop-single-wrap > .shop-single-left:hover,
.shop-single-wrap > .shop-single-right:hover {
  overflow-y: auto !important;
  scrollbar-width: none; /* Firefox */
}

.shop-single-wrap > .shop-single-left:hover::-webkit-scrollbar,
.shop-single-wrap > .shop-single-right:hover::-webkit-scrollbar {
  display: none;
}


  .shop-single-wrap > .shop-single-left::-webkit-scrollbar,
  .shop-single-wrap > .shop-single-right::-webkit-scrollbar {
    width: 8px;
  }
  .shop-single-wrap > .shop-single-left::-webkit-scrollbar-thumb,
  .shop-single-wrap > .shop-single-right::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.18);
    border-radius: 6px;
  }
}

/* Mobile: keep default stacked behavior */
@media (max-width: 768px) {
  .shop-single-wrap > .shop-single-left,
  .shop-single-wrap > .shop-single-right {
    max-height: none !important;
    overflow-y: visible !important;
    position: relative !important;
    top: auto !important;
  }
}













/* Featured + gallery images */
.shop-featured,
.shop-thumbnail,
.shop-gallery img {
    margin-bottom: 0;
}
.shop-gallery img:last-child {
    margin-bottom: 0;
}
.shop-featured img,
.shop-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.shop-gallery img {
    width: 100%;
    display: block;
}

/* ================================
   Responsive Mobile: Featured naik atas
   ================================ */
@media (max-width: 768px) {
    /* Stack semua konten */
    .shop-single-wrap {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin: 0 15px;
    }

    /* Featured image tampil paling atas */
    .shop-featured.shop-featured--variant-target {
        order: -1; /* pastikan di atas semua */
        margin-bottom: 0px;
        width: 100%;
    }

    /* Konten utama (judul, harga, deskripsi) */
    .shop-single-left { 
        order: 0; 
        width: 100%;
        position: relative; 
        top: auto; 
    }

    /* Konten kanan / ekstra */
    .shop-single-right { 
        order: 1; 
        width: 100%;
        position: relative; 
        top: auto; 
    }

    /* Thumbnail & gallery tetap di bawah */
    .shop-thumbnail,
    .shop-gallery {
        order: 2;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0px;
    }

    /* Gambar featured tetap responsif */
    .shop-featured img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
}






/* ================================
   Wishlist & Utilities
   ================================ */
.shop-toggle-wishlist.in-wishlist {
    color: #CD7E0D;
    font-weight: 700;
}
.shop-no-image {
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}
