/* ===== DETAIL SECTION ===== */
.detail-section {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px;
  align-items: flex-start;
}

/* ===== KIRI: GAMBAR ===== */
.detail-left { flex: 1; max-width: 460px; }

.detail-main-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #f5f5f5;
}

.detail-main-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.detail-thumbnails {
  display: flex;
  gap: 8px;
}

.thumb {
  width: 72px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.thumb:hover,
.thumb.active {
  border-color: var(--primary);
}

/* ===== KANAN: INFO ===== */
.detail-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
}

.detail-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  background: #f5f5f5;
  padding: 6px 16px;
  border-radius: 8px;
}

/* Rating */
.detail-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--secondary);
  font-size: 0.9rem;
}

.detail-rating span {
  color: var(--text-gray);
  font-size: 0.82rem;
  margin-left: 4px;
}

.detail-desc {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* Tabel Info */
.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.detail-table tr td {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.detail-table tr td:first-child {
  color: var(--text-gray);
  width: 130px;
  font-weight: 500;
}

.detail-table tr td:last-child {
  color: var(--text-dark);
  font-weight: 600;
}

.detail-cat {
  color: var(--primary);
  font-weight: 600;
}

.detail-cat:hover { text-decoration: underline; }

.tag-badge {
  display: inline-block;
  background: #f0f0f0;
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  margin-right: 4px;
}

.pedas-row i { color: var(--primary); font-size: 0.85rem; }
.pedas-row i.low { color: #ddd; }

/* Order */
.detail-order {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.qty-btn-group {
  display: flex;
  align-items: center;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  overflow: hidden;
}

.qty-btn-group button {
  width: 34px;
  height: 34px;
  border: none;
  background: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--primary);
  transition: background 0.2s;
}

.qty-btn-group button:hover { background: var(--light); }

.qty-btn-group span {
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 36px;
  text-align: center;
}

.btn-keranjang {
  flex: 1;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
  min-width: 200px;
}

.btn-keranjang:hover { background: var(--primary-dark); }

/* ===== MENU LAINNYA ===== */
.menu-lainnya {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.menu-lainnya h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.lainnya-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.lainnya-card {
  border: 1.5px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s;
  display: block;
}

.lainnya-card:hover {
  box-shadow: 0 4px 16px rgba(139,0,0,0.10);
}

.lainnya-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.lainnya-card h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  padding: 8px 10px 2px;
}

.lainnya-card span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  padding: 0 10px 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .detail-section { flex-direction: column; }
  .detail-left { max-width: 100%; }
  .lainnya-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .lainnya-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-order { flex-direction: column; align-items: stretch; }
  .btn-keranjang { min-width: unset; }
}