/* Product detail page */

body.view-page {
  background: #faf7f2;
  line-height: 2;
}

body.view-page #main {
  margin-top: 0;
}

.view-hero {
  position: relative;
  padding: 88px 0 32px;
  background:
    linear-gradient(135deg, rgba(74, 10, 18, 0.9) 0%, rgba(107, 15, 26, 0.78) 100%),
    url('../img/bgg.jpg') top center/cover no-repeat;
  color: #fff;
}

.view-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c9a227, transparent);
}

.view-hero .container {
  position: relative;
  z-index: 2;
}

.view-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 2;
}

.view-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.view-breadcrumb a:hover {
  color: #f6e6b8;
}

.view-breadcrumb i {
  font-size: 12px;
  opacity: 0.7;
}

.view-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 3.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.75;
  color: #fff;
}

.view-hero__lead {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.92);
}

.view-section {
  padding: 28px 0 40px;
}

.view-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(74, 10, 18, 0.08);
  border: 1px solid rgba(107, 15, 26, 0.06);
}

.view-cover {
  margin-bottom: 20px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3efe8;
}

.view-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.view-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.view-gallery__item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f3efe8;
}

.view-gallery__item a {
  display: block;
}

.view-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease;
}

.view-gallery__item:hover img {
  transform: scale(1.03);
}

.view-content {
  font-size: 16px;
  line-height: 2;
  color: #2b2b2b;
}

.view-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 12px 0;
}

.view-content p {
  margin-bottom: 1em;
}

.view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 2;
  text-decoration: none;
  transition: 0.25s ease;
}

.view-btn-primary {
  background: #c9a227;
  color: #4a0a12;
}

.view-btn-primary:hover {
  background: #dbb42e;
  color: #4a0a12;
}

.view-btn-line {
  background: #06c755;
  color: #fff;
}

.view-btn-line:hover {
  background: #05a847;
  color: #fff;
}

.view-btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.view-btn-shopee {
  background: #ee4d2d;
  color: #fff;
}

.view-btn-shopee:hover {
  background: #d73211;
  color: #fff;
}

.view-btn-outline {
  border: 2px solid #6b0f1a;
  color: #6b0f1a;
  background: #fff;
}

.view-btn-outline:hover {
  background: #6b0f1a;
  color: #fff;
}

.view-notice {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #faf7f2;
  border: 1px solid rgba(107, 15, 26, 0.1);
  font-size: 14px;
  line-height: 2;
  color: #6b6b6b;
}

.view-notice img {
  max-width: 220px;
  margin-top: 12px;
  border-radius: 10px;
}

.view-sidebar {
  width: 100%;
}

.view-sidebar-block {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(74, 10, 18, 0.08);
  border: 1px solid rgba(107, 15, 26, 0.06);
}

.view-sidebar-block:last-child {
  margin-bottom: 0;
}

.view-sidebar-block h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 2;
  color: #6b0f1a;
  border-bottom: 2px solid #c9a227;
  padding-bottom: 8px;
}

.view-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.view-sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: #2b2b2b;
  line-height: 1.65;
}

.view-sidebar-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.view-sidebar-item span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
}

.view-sidebar-item:hover span {
  color: #6b0f1a;
}

.view-sidebar-empty {
  margin: 0;
  color: #6b6b6b;
  font-size: 14px;
}

.view-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.view-tag-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #faf7f2;
  border: 1px solid rgba(107, 15, 26, 0.12);
  color: #6b0f1a;
  font-size: 13px;
  line-height: 1.65;
  text-decoration: none;
}

.view-tag-chip:hover {
  background: #6b0f1a;
  color: #fff;
}

.view-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #fff;
  border-top: 1px solid rgba(107, 15, 26, 0.1);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}

.view-sticky-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 8px 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #6b0f1a;
}

.view-sticky-bar a.is-line {
  background: rgba(6, 199, 85, 0.08);
  color: #058f3d;
}

@media (min-width: 768px) {
  .view-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {

  .view-section .row {
    align-items: flex-start;
  }
}

@media (max-width: 991px) {
  .view-sidebar {
    margin-top: 24px;
  }
}