/* Trang ruột danh mục — phong cách catalog mẫu in */
.product-page-main {
  padding-bottom: 48px;
}

.breadcrumb-nav {
  background: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
  font-size: 13px;
}

.breadcrumb-nav .container {
  padding: 10px 16px;
}

.breadcrumb-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb-nav li + li::before {
  content: "/";
  margin-right: 6px;
  color: #999;
}

.breadcrumb-nav a {
  color: var(--brand);
}

.breadcrumb-nav a:hover {
  color: var(--accent-red);
}

.product-hero-banner {
  background: #f0f0f0;
  line-height: 0;
}

.product-hero-banner img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.product-hero-banner--placeholder {
  min-height: 180px;
  background: linear-gradient(135deg, #e8eef8 0%, #f5f0e8 50%, #e8eef8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.product-hero-banner--placeholder img {
  max-width: min(420px, 90%);
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
}

.product-title-band {
  background: linear-gradient(180deg, #f7f7f7 0%, #efefef 100%);
  border-bottom: 1px solid #e0e0e0;
}

.product-title-band .container {
  padding: 18px 16px;
}

.product-title-band h1 {
  margin: 0;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-darker);
  letter-spacing: 0.03em;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  padding-top: 24px;
  align-items: start;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sample-card {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: 6px;
  padding: 10px 10px 14px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sample-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(21, 58, 122, 0.25);
}

.sample-card__label {
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
  margin: 0 0 8px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sample-card__figure {
  position: relative;
  background: var(--white);
  border-radius: 8px;
  padding: 8px;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 353 / 319;
}

.sample-card__figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sample-card__hover {
  position: absolute;
  inset: 0;
  background: rgba(21, 58, 122, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: 8px;
}

.sample-card:hover .sample-card__hover {
  opacity: 1;
}

.sample-card__hover span {
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
}

.sample-card__order {
  margin-top: 12px;
}

.sample-card__order a {
  display: block;
  background: var(--white);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.sample-card__order a:hover {
  background: var(--accent-red);
  color: var(--white);
}

.product-sidebar {
  position: sticky;
  top: 16px;
}

.sidebar-box {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(21, 58, 122, 0.08);
}

.sidebar-box h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--brand-darker);
}

.sidebar-box p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.sidebar-hotline a {
  display: block;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
}

.sidebar-hotline a:hover {
  color: var(--accent-red);
}

.sidebar-cta {
  display: block;
  margin-top: 14px;
  text-align: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--white);
  font-weight: 700;
  padding: 12px;
  border-radius: 6px;
}

.sidebar-cta:hover {
  background: linear-gradient(135deg, var(--accent-red), var(--brand));
}

.sidebar-cta--alt {
  background: var(--white);
  color: var(--brand-dark);
  border: 2px solid #d6e3fb;
}

.sidebar-cta--alt:hover {
  background: var(--brand-light);
  color: var(--brand-darker);
}

.sample-empty {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(21, 58, 122, 0.08);
}

.sample-empty h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--brand-darker);
}

.sample-empty p {
  margin: 0 0 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.sample-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.sample-empty__actions .sidebar-cta {
  margin-top: 0;
  flex: 1 1 180px;
}

.product-info-card {
  margin-top: 18px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(21, 58, 122, 0.08);
}

.product-info-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--brand-darker);
  text-transform: uppercase;
}

.product-info-card > p {
  margin: 0 0 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.product-info-list {
  margin: 0 0 14px;
  padding-left: 20px;
  color: #374151;
}

.product-info-list li {
  margin: 0 0 8px;
}

.product-specs {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.product-specs__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  font-size: 14px;
}

.product-specs__row:last-child {
  border-bottom: none;
}

.product-specs__row span {
  color: #6b7280;
}

.product-specs__row b {
  color: var(--brand-darker);
}

.product-not-found {
  padding: 60px 20px;
  text-align: center;
}

@media (max-width: 992px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    position: static;
  }

  .sample-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-specs__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .sample-grid {
    grid-template-columns: 1fr;
  }
}

.sample-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ——— Trang chi tiết mẫu (mau-*) ——— */
.sample-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 24px 16px 48px;
  align-items: start;
}

.sample-detail__top {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.sample-gallery__main {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 12px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sample-gallery__main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sample-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.sample-thumb {
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 2px;
  background: var(--white);
  cursor: pointer;
}

.sample-thumb.active {
  border-color: var(--brand);
}

.sample-thumb img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.sample-summary h1 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  color: var(--brand-darker);
  line-height: 1.2;
}

.sample-views {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.sample-highlights {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.sample-highlights li {
  margin-bottom: 6px;
}

.sample-intro {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sample-intro--rich ul {
  margin: 8px 0;
  padding-left: 20px;
}

.sample-intro--rich img {
  max-width: 200px;
  height: auto;
}

.sample-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.sample-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--white);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 6px;
}

.sample-cta:hover {
  background: linear-gradient(135deg, var(--accent-red), var(--brand));
  color: var(--white);
}

.sample-cta--outline {
  background: var(--white);
  color: var(--brand);
  border: 2px solid var(--brand);
}

.sample-cta--outline:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.sample-article {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 32px;
}

.sample-article__title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-darker);
  text-transform: uppercase;
  border-bottom: 3px solid var(--accent-red);
  padding-bottom: 10px;
  display: inline-block;
}

.sample-article__body {
  font-size: 15px;
  line-height: 1.65;
  color: #333;
}

.sample-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 12px 0;
}

.sample-article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.sample-article__body th,
.sample-article__body td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
}

.sample-article__body th {
  background: var(--brand-light);
  color: var(--brand-darker);
}

.sample-related h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--brand-darker);
}

.sample-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.related-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(21, 58, 122, 0.12);
}

.related-card img {
  width: 100%;
  aspect-ratio: 353/319;
  object-fit: contain;
  padding: 8px;
  background: #fafafa;
}

.related-card span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 6px 10px;
  color: var(--brand-dark);
  line-height: 1.3;
}

.sample-sidebar {
  position: sticky;
  top: 16px;
}

.consult-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.consult-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.consult-card:last-child {
  border-bottom: none;
}

.consult-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-light);
}

.consult-card__name {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-darker);
}

.consult-card__role {
  margin: 2px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.consult-card__phone {
  font-weight: 700;
  color: var(--brand);
  font-size: 14px;
}

@media (max-width: 992px) {
  .sample-detail-layout {
    grid-template-columns: 1fr;
  }

  .sample-sidebar {
    position: static;
  }

  .sample-detail__top {
    grid-template-columns: 1fr;
  }

  .sample-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sample-related__grid {
    grid-template-columns: 1fr;
  }

  .sample-article {
    padding: 16px;
  }
}
