.shop-detail-wrapper {
  padding: 0px 0px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ===== Container Utama ===== */
.product-detail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 80px auto;
  align-items: flex-start;
  padding-left: 70px; /* Tambahkan ini untuk menggeser isi ke kanan */
}

/* ===== Galeri Produk ===== */
.product-gallery {
  padding: 10px;
}

.gallery-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
}

/* Card preview utama versi kecil dengan rasio 3:4 */
.main-preview-image {
  width: 375px;
  height: 500px;
  border: 2px solid #e67e22; /* Warna oranye SwiftMeal */
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.2); /* Shadow oranye halus */
  padding: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gambar akan dipaksa fit ke dalam rasio 3:4 */
.main-preview-image img {
  width: 100%;
  height: 100%; 
  object-fit: cover; /* Menggunakan contain untuk mempertahankan rasio gambar */
  border-radius: 16px;
  transition: opacity 0.2s ease;
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.25);
}

/* Thumbnail container */
.product-thumbnails {
  padding: 6px;
  border-radius: 10px;
  display: flex;
  gap: 10px;
}

/* Gambar thumbnail 1:1 dengan background dan shadow */
.product-thumbnails img {
  width: 90px;
  height: 90px;
  object-fit: cover; /* Tetap menggunakan cover untuk thumbnail */
  border-radius: 12px;
  background-color: white;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 4px;
  object-position: center; /* Menambahkan ini untuk memastikan thumbnail diposisikan dengan baik */
}

/* Efek hover dan aktif dengan warna oranye */
.product-thumbnails img.active,
.product-thumbnails img:hover {
  border-color: #e67e22;
  box-shadow: 0 0 10px rgba(230, 126, 34, 0.3);
}

/* ===== Info Produk ===== */
.product-info {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
}

.product-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.product-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: #e67e22;
  margin-top: 5px;
}

.product-rating {
  font-size: 1rem;
  color: #f39c12;
  margin-bottom: 5px;
}

.rating-score {
  font-weight: bold;
  color: #333;
}

/* ===== Tombol Keranjang ===== */
.add-to-cart-btn {
  margin-top: 16px;
  padding: 14px 24px;
  background-color: #e67e22;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
  background-color: #cf711f;
}

.product-meta {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #666;
}

/* ===== Ikon Sosial ===== */
.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.social-icons i {
  font-size: 20px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s;
}

.social-icons i:hover {
  color: #e67e22;
}

/* ===== Tabs Deskripsi ===== */
.product-tabs {
  display: flex;
  gap: 10px;
  margin: 0px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0;
}

.product-tabs .tab {
  padding: 10px 20px;
  border: none;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  color: #333;
}

.product-tabs .tab.active {
  background-color: orange;
  color: white;
}

.tab {
  padding: 12px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  color: #444;
}

.tab.active {
  color: #e67e22;
  border-color: #e67e22;
}

.tab-content {
  display: none;
  padding: 10px 0 0 0;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

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

.product-description-full {
  color: #000;
  max-height: none;
  overflow-y: auto;
  border-radius: 12px;
  padding: 0 0 0;
  line-height: 1.6;
}

.tab-content-wrapper {
  margin: 0;
  padding: 0;
}

/* ===== Responsif ===== */
@media (max-width: 768px) {
  .product-detail-container {
    flex-direction: column;
    padding: 20px;
  }

  .main-preview-image img {
    width: 100%;
    height: auto;
  }

  .product-gallery {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .add-to-cart-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

.vertical-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 500px;
  overflow-y: auto;
}

.fade-out {
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

.tab-content#reviews p {
  color: #000;
}

/* ===== Scrollable Horizontal Menu untuk Produk Serupa ===== */
.scrollmenu {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 20px;
  padding-bottom: 16px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.scrollmenu::-webkit-scrollbar {
  display: none; /* Sembunyikan scrollbar */
}

/* Tombol Scroll Kiri dan Kanan */
.scroll-btn-wrapper {
  position: relative;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.scroll-btn {
  background-color: #e67e22;
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.scroll-btn:hover {
  background-color: #cf711f;
}

.scroll-btn.left {
  margin-right: auto;
}

.scroll-btn.right {
  margin-left: auto;
}

/* Similar card tetap gunakan ini */

.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

.flash-message {
    background-color: #ffa726; /* oranye */
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    animation: fadeSlide 0.2s ease, hideFlash 3s ease forwards;
}

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

@keyframes hideFlash {
    0%   { opacity: 1; }
    90%  { opacity: 1; }
    100% { opacity: 0; }
}

.add-to-cart-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.flash-message-local {
  background-color: #e67e22;
  color: white;
  font-size: 0.9rem;
  padding: 10px 15px;
  border-radius: 8px;
  white-space: nowrap;
  animation: fadeSlide 0.2s ease, hideFlashLocal 2.5s ease forwards;
  display: inline-block;
  position: relative;
}

.flash-success,
.flash-error {
    transition: opacity 0.5s ease;
    opacity: 1;
}

@keyframes hideFlashLocal {
  0%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; visibility: hidden; height: 0; margin: 0; padding: 0; }
}

.fa-star {
    color: #ddd;
}
.fa-star.checked {
    color: #ffcc00;
}
.review-stars {
    display: inline-block;
}

/* === REVIEW STYLING === */
#reviews {
  color: #000;
  font-family: 'Poppins', sans-serif;
}

#reviews .review {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  color: #000;
}

#reviews .review strong {
  font-weight: 600;
  font-size: 1rem;
  color: #000;
}

#reviews .review-stars .fa-star {
  color: #ccc;
}

#reviews .review-stars .checked {
  color: #f5a623;
}

#reviews .review-comment {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #000;
}

#reviews .review-time {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #555;
}

.review-form {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 12px;
  max-width: 1280px;
  margin-top: 0px;
  margin-bottom: 30px; /* Tambahkan jarak bawah */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.review-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.review-form label {
  font-weight: bold;
  margin-bottom: 6px;
  color: #333;
}

.review-form select,
.review-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
}

.review-form textarea {
  min-height: 100px;
}

.submit-review-btn {
  margin-top: 10px;
  align-self: flex-end;
  background-color: #ff6600;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-review-btn:hover {
  background-color: #e65c00;
}

.admin-reply {
  margin-top: 8px;
  padding: 10px 12px;
  background-color: #f5f5f5;
  border-left: 4px solid #ff6600;
  font-style: italic;
  color: #333;
}

/* ==== Spacing Tambahan Antara Deskripsi dan Footer ==== */
.tab-content-wrapper {
  margin-bottom: 80px; /* kasih jarak besar biar gak nempel ke footer */
}

/* biar deskripsi dan review ada napas bawah juga */
.product-description-full,
#reviews {
  margin-bottom: 60px;
}

