/* Trang bảo trì / nâng cấp */
.maintenance-page {
  min-height: 40vh;
}
.header .logo img {
  border-radius: 5px;
  max-height: 46px;
}
.maintenance-box {
  padding: 2rem 1.75rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
@media (min-width: 768px) {
  .maintenance-box {
    padding: 2.5rem 3rem;
  }
}
.btn-primary {
  background-color: #1f4fa7;
  border-color: #1f4fa7;
}
.btn-primary:hover {
  background-color: #ff2709;
  border-color: #ff2709;
}
.box-wrapper {
  padding: 20px;
  border-radius: 10px;
  background-color: #fff;
}
.box-wrapper h1._title {
  border-bottom: 2px solid #dd3333;
  margin-bottom: 15px;
  color: #dd3333;
  font-size: 21px;
  padding-bottom: 10px;
  font-weight: bold;
}
.breadcrumb-wrap {
  margin-bottom: 1rem;
  background: #fff;
}
.breadcrumb-wrap .breadcrumb {
  background-color: #fff !important;
}
.breadcrumb__item {
  color: #1179ea;
  font-size: 0.875rem;
  padding-left: 5px;
}
.breadcrumb__item + .breadcrumb__item::before {
  float: left;
  color: var(--bs-breadcrumb-divider-color);
  font-family: "icomoon";
  padding-right: var(--bs-breadcrumb-item-padding-x);
  content: var(--bs-breadcrumb-divider, "")
    /* rtl: var(--bs-breadcrumb-divider, "") */;
}

.title-main {
  display: block;
  z-index: 10;
  margin-bottom: 10px;
  margin-bottom: 15px;
}
.title-main h3,
.title-main h2,
.title-main h1 {
  font-size: 22px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
  position: relative;
  color: #111;
  font-weight: 600;
}
.title-main h1::after {
  position: absolute;
  bottom: -3px;
  left: 0;
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background-color: var(--color-primary);
}

/* ===== Trang danh mục + product thumb (product-grid--category, category-list, …) ===== */
/* Hai class: override .product-grid trong style.css — desktop 5 cột, mobile 2 cột */
.product-grid.product-grid--category {
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.product-grid--category .product-name {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #111;
}
.product-grid__cell {
  min-width: 0;
}
.product-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.product-link:hover {
  color: inherit;
}
.product-prices {
  text-align: center;
  margin-top: 6px;
}
.product-price-old {
  font-size: 13px;
  color: #828282;
  text-decoration: line-through;
  margin-top: 2px;
}
.badge-inv {
  background: #e3f2fd;
  color: #0b8ad9;
  border: 1px solid #90caf9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.product-card__discount {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
}
.product-card__options {
  font-size: 12px;
  color: #666;
  margin: 8px 0 0;
  text-align: center;
}
.product-card__compare-form {
  margin: 0;
  text-align: right;
}
.product-card__compare {
  background: none;
  border: none;
  color: #0b8ad9;
  font-size: 13px;
  padding: 4px 0 0;
  cursor: pointer;
  text-decoration: underline;
}
.product-card__compare:hover {
  color: #0967a8;
}
.category-list__heading {
  display: flex;
  align-items: stretch;
  margin-bottom: 0;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  background: #0b8ad9;
}
.category-list__title {
  margin: 0;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  flex: 0 0 auto;
  max-width: 100%;
}
.category-list__sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 12px 16px;
  background: #f0f2f5;
  border: 1px solid #e5e5e5;
  border-top: none;
}
.category-list__sort-label {
  font-weight: 600;
  font-size: 14px;
  color: #444;
  white-space: nowrap;
}
.category-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.category-sort__opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  cursor: pointer;
}
.category-sort__opt:hover {
  color: #0b8ad9;
}
.category-sort__opt.is-active {
  font-weight: 600;
  color: #0b8ad9;
}
.category-sort__radio {
  width: 14px;
  height: 14px;
  border: 2px solid #9e9e9e;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.category-sort__opt.is-active .category-sort__radio {
  border-color: #0b8ad9;
  box-shadow:
    inset 0 0 0 3px #fff,
    inset 0 0 0 10px #0b8ad9;
}
.category-list__grid {
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #e5e5e5;
}
/* Khối sản phẩm: nền trắng, padding, tách nền sort phía trên */
.category-list__grid.box-wrapper {
  padding: 24px 28px 22px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.category-list__product-panel {
  background: #fff;
  padding: 8px 4px 4px;
  border-radius: 6px;
}
.product-grid--category .product-grid__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: #555;
  background: #fafafa;
  border: 1px dashed #ddd;
  border-radius: 6px;
}
.category-list__footer {
  margin-top: 1rem;
}

/* Mobile: 2 cột (theo breakpoint Bootstrap md) */
@media (max-width: 767px) {
  .product-grid.product-grid--category {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ===== Trang chi tiết sản phẩm (product.twig — Bootstrap + pd-*) ===== */
#product-info .box-wrapper-product {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 8px;
  padding: 18px 16px;
}

.pd-gallery-wrap {
  border: 1px solid #eaeaea;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.pd-gallery-main-img {
  max-height: 360px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}
.pd-gallery-bar {
  background: #f0f0f0;
  border-top: 1px solid #e5e5e5;
  font-size: 0.8125rem;
}
.pd-swiper-nav {
  color: #999;
  width: 36px;
  height: 36px;
  margin-top: -18px;
}
.pd-swiper-nav::after {
  font-size: 1rem;
}
.pd-highlights-title {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.pd-price-line {
  font-size: 0.95rem;
}
.pd-price-value {
  color: #d0021b;
  font-size: 1.1rem;
}
.pd-promo-box {
  border: 1px solid #d0e8f7;
  border-radius: 4px;
  overflow: hidden;
  background: #f7fbfd;
}
.pd-promo-head {
  background: #eef6fb;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.875rem;
  border-bottom: 1px solid #d0e8f7;
}
.pd-promo-body {
  padding: 12px;
}
.pd-trust-box {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px 14px;
  background: #fff;
  height: 100%;
}
.pd-trust-title {
  color: #2e7d32;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.35;
}
.pd-trust-list li {
  margin-bottom: 8px;
  line-height: 1.4;
}
.pd-toc {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 12px 14px;
  background: #fafafa;
}
.pd-toc-title {
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.pd-toc-links a {
  color: #0b8ad9;
  text-decoration: none;
}
.pd-toc-links a:hover {
  text-decoration: underline;
}
.pd-spec-table th {
  font-weight: 600;
  font-size: 0.875rem;
}
.pd-sidebar-spec {
  padding: 16px;
}

/* Bảng thông số từ HTML trong `content` (sidebar chi tiết sản phẩm) */
.pd-inline-spec-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
}
.pd-inline-spec-table tbody tr:not(:last-child) {
  border-bottom: 1px solid #eee;
}
.pd-inline-spec-table th[scope="row"] {
  width: 42%;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #444;
  background: #f7f9fb;
  vertical-align: top;
  border-right: 1px solid #eee;
}
.pd-inline-spec-table td {
  padding: 10px 12px;
  vertical-align: top;
  color: #333;
  background: #fff;
}
.pd-inline-spec-table td p {
  margin: 0;
}
.pd-inline-spec-table td p + p {
  margin-top: 0.35rem;
}
.pd-inline-spec-table td a {
  color: #0b8ad9;
  text-decoration: none;
}
.pd-inline-spec-table td a:hover {
  text-decoration: underline;
}
.pd-related-articles {
  padding: 16px;
}

/* Trang danh sách tin CMS — lưới 3 cột */
.cms-blog-page .box-wrapper {
  max-width: 100%;
}
.cms-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 576px) {
  .cms-blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (min-width: 992px) {
  .cms-blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
.cms-blog-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cms-blog-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.cms-blog-card__media {
  display: block;
  text-decoration: none;
  color: inherit;
}
.cms-blog-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f0f0;
}
.cms-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.cms-blog-card:hover .cms-blog-card__image img {
  transform: scale(1.04);
}
.cms-blog-card__body {
  padding: 1rem 1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.cms-blog-card__date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}
.cms-blog-card__date .fa {
  opacity: 0.85;
}
.cms-blog-card__title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 700;
}
.cms-blog-card__title a {
  color: #111;
  text-decoration: none;
  text-transform: uppercase;
  display: block;
}
.cms-blog-card__title a:hover {
  color: #0b8ad9;
}
.cms-blog-pagination {
  margin-top: 1.5rem;
}
