/* ==========================================================
   PRODUCT.CSS — Dùng cho trang danh sách + chi tiết sản phẩm
   Trưng bày — KHÔNG giỏ hàng, KHÔNG nút mua
   Palette: --brand #055360 | --accent #FF5E14
   ========================================================== */

/* ==========================================================
   [1] BREADCRUMB
   ========================================================== */
.product-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .7);
}
.product-breadcrumb a { color: rgba(255, 255, 255, .85); transition: color .2s ease; }
.product-breadcrumb a:hover { color: #fff; }
.product-breadcrumb svg { flex-shrink: 0; opacity: .6; }
.product-breadcrumb span.current {
  color: #fff; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 320px;
}

/* ==========================================================
   [2] HERO
   ========================================================== */
.product-hero {
  position: relative; overflow: hidden;
  padding: 2.5rem 0;
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(255, 94, 20, .20), transparent 60%),
    linear-gradient(135deg, #055360 0%, #044650 55%, #022A31 100%);
}
.product-hero--small { padding: 1.5rem 0; }
@media (min-width: 768px) {
  .product-hero { padding: 3.5rem 0; }
  .product-hero--small { padding: 1.75rem 0; }
}
.product-hero::after {
  content: ""; position: absolute;
  right: -80px; bottom: -120px;
  width: 340px; height: 340px;
  border-radius: 9999px;
  background: rgba(255, 94, 20, .12);
  filter: blur(50px);
  pointer-events: none;
}
.product-hero__title {
  font-weight: 800; color: #fff;
  line-height: 1.15; letter-spacing: -.02em;
}
.product-hero__desc { color: rgba(255, 255, 255, .8); line-height: 1.65; }

/* ==========================================================
   [3] FILTER BAR
   ========================================================== */
.product-filter {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 18px -12px rgba(5, 83, 96, .3);
}
.product-filter__tabs { display: flex; flex-wrap: wrap; gap: .35rem; }
.product-filter__tab {
  padding: .5rem .9rem;
  font-size: .82rem; font-weight: 700;
  color: #475569; background: transparent;
  border-radius: 9999px;
  transition: all .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.product-filter__tab:hover { color: var(--brand, #055360); background: #E9F4F5; }
.product-filter__tab--active,
.product-filter__tab--active:hover {
  background: var(--brand, #055360);
  color: #fff;
}
.product-filter__select {
  padding: .5rem 2rem .5rem .85rem;
  font-size: .82rem; font-weight: 600;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  transition: all .2s ease;
}
.product-filter__select:focus { border-color: var(--brand, #055360); }

/* ==========================================================
   [4] PRODUCT GRID + CARD
   ========================================================== */
.product-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-item {
  display: flex; flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #E7EDEF;
  box-shadow: 0 4px 18px -12px rgba(5, 83, 96, .4);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.product-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -24px rgba(5, 83, 96, .55);
  border-color: #C9E3E6;
}
.product-item__img {
  position: relative; overflow: hidden;
  aspect-ratio: 5 / 4;
  background: #E9F4F5;
  display: block;
}
.product-item__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.product-item:hover .product-item__img img { transform: scale(1.06); }
.product-item__tag {
  position: absolute; top: 12px; left: 12px;
  z-index: 2;
  background: var(--brand, #055360);
  color: #fff;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 9999px;
  box-shadow: 0 8px 16px -8px rgba(5, 83, 96, .9);
}
.product-item__tag--accent {
  background: var(--accent, #FF5E14);
  box-shadow: 0 8px 16px -8px rgba(255, 94, 20, .9);
}
.product-item__body {
  padding: 1.15rem 1.35rem 1.35rem;
  display: flex; flex-direction: column;
  flex: 1;
}
.product-item__category {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent, #FF5E14);
  margin-bottom: .35rem;
}
.product-item__title {
  font-weight: 800; color: var(--brand-deep, #022A31);
  font-size: 1.05rem; line-height: 1.4;
  margin-bottom: .55rem;
  transition: color .2s ease;
}
.product-item__title a { color: inherit; }
.product-item:hover .product-item__title { color: var(--brand, #055360); }
.product-item__excerpt {
  font-size: .86rem; color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-item__specs {
  display: grid; gap: .35rem;
  padding: .75rem 0;
  border-top: 1px dashed #e2e8f0;
  border-bottom: 1px dashed #e2e8f0;
  margin-bottom: 1rem;
}
.product-item__spec {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; font-size: .82rem;
}
.product-item__spec .label { color: #64748b; }
.product-item__spec .value {
  font-weight: 700; color: var(--brand, #055360);
  text-align: right;
}
.product-item__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .84rem; font-weight: 700;
  color: var(--accent, #FF5E14);
  transition: gap .2s ease;
}
.product-item__link svg {
  width: 15px; height: 15px;
  transition: transform .2s ease;
}
.product-item:hover .product-item__link { gap: .6rem; }
.product-item:hover .product-item__link svg { transform: translateX(3px); }

/* ==========================================================
   [5] PAGINATION
   ========================================================== */
.pagination {
  display: flex; justify-content: center;
  align-items: center; flex-wrap: wrap;
  gap: .35rem; margin-top: 2.5rem;
}
.pagination__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 .75rem;
  border-radius: 10px;
  font-size: .88rem; font-weight: 700;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: all .2s ease;
}
.pagination__link:hover {
  background: var(--brand, #055360);
  color: #fff;
  border-color: var(--brand, #055360);
}
.pagination__link--active {
  background: var(--brand, #055360);
  color: #fff;
  border-color: var(--brand, #055360);
  pointer-events: none;
}
.pagination__link--dots {
  pointer-events: none; background: transparent; border: none;
}

/* ==========================================================
   [6] PRODUCT DETAIL
   ========================================================== */
.product-detail__gallery {
  display: flex; flex-direction: column;
  gap: .75rem;
  position: sticky; top: 100px;
}
@media (max-width: 1023px) {
  .product-detail__gallery { position: static; }
}
.product-detail__main-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #E9F4F5;
  aspect-ratio: 5 / 4;
  box-shadow: 0 18px 40px -28px rgba(5, 83, 96, .4);
}
.product-detail__main-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.product-detail__main-img:hover img { transform: scale(1.03); }
.product-detail__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent, #FF5E14);
  color: #fff;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 9999px;
  box-shadow: 0 8px 16px -8px rgba(255, 94, 20, .9);
}
.product-detail__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
.product-detail__thumb {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: #E9F4F5;
  border: 2px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
  padding: 0;
}
.product-detail__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.product-detail__thumb:hover { border-color: #C9E3E6; }
.product-detail__thumb.is-active {
  border-color: var(--accent, #FF5E14);
  box-shadow: 0 6px 14px -6px rgba(255, 94, 20, .6);
}

/* Thông tin sản phẩm */
.product-detail__info {
  display: flex; flex-direction: column;
  gap: 1rem;
}
.product-detail__category {
  display: inline-block;
  align-self: flex-start;
  background: #E9F4F5;
  color: var(--brand, #055360);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 9999px;
}
.product-detail__title {
  font-size: 1.6rem; font-weight: 800;
  color: var(--brand-deep, #022A31);
  line-height: 1.2; letter-spacing: -.02em;
}
@media (min-width: 768px) {
  .product-detail__title { font-size: 2rem; }
}
.product-detail__short-desc {
  font-size: .98rem;
  color: #475569;
  line-height: 1.7;
}
.product-detail__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem .75rem;
  padding: 1rem;
  background: #f8fafb;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}
@media (min-width: 640px) {
  .product-detail__specs { gap: .65rem 1.25rem; }
}
.product-detail__spec {
  display: flex; flex-direction: column;
  font-size: .82rem;
}
.product-detail__spec .label {
  font-size: .74rem;
  color: #94a3b8;
  margin-bottom: .15rem;
}
.product-detail__spec .value {
  font-weight: 700;
  color: var(--brand, #055360);
}
.product-detail__features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .45rem;
}
.product-detail__features li {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .88rem; color: #475569;
}
.product-detail__features svg {
  width: 16px; height: 16px; flex-shrink: 0;
  color: var(--accent, #FF5E14);
  margin-top: .15rem;
}

/* Nút gọi điện */
.product-detail__cta {
  display: flex; flex-direction: column;
  gap: .6rem;
  margin-top: .5rem;
}
@media (min-width: 480px) {
  .product-detail__cta { flex-direction: row; }
}
.btn-call {
  flex: 1;
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .85rem 1.15rem;
  border-radius: 14px;
  background: var(--accent, #FF5E14);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 24px -14px rgba(255, 94, 20, .95);
  transition: all .25s ease;
  text-align: left;
}
.btn-call:hover {
  background: #E94C05;
  transform: translateY(-2px);
  box-shadow: 0 18px 28px -14px rgba(255, 94, 20, .95);
}
.btn-call__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .22);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.btn-call__icon svg { width: 20px; height: 20px; }
.btn-call__text { display: flex; flex-direction: column; line-height: 1.2; }
.btn-call__label { font-size: .72rem; opacity: .9; font-weight: 600; letter-spacing: .02em; }
.btn-call__number { font-size: .95rem; font-weight: 800; }
.btn-call--outline {
  background: #fff;
  color: var(--brand, #055360);
  border: 2px solid var(--brand, #055360);
  box-shadow: none;
}
.btn-call--outline:hover {
  background: var(--brand, #055360);
  color: #fff;
  box-shadow: 0 14px 24px -14px rgba(5, 83, 96, .95);
}
.btn-call--outline .btn-call__icon {
  background: #E9F4F5;
  color: var(--brand, #055360);
}
.btn-call--outline:hover .btn-call__icon {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}
.product-detail__note {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .82rem; color: #64748b;
  line-height: 1.55;
  padding: .75rem 1rem;
  background: #FFF3ED;
  border-radius: 10px;
  border: 1px solid #FFDFD0;
  margin-top: .5rem;
}
.product-detail__note svg {
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--accent, #FF5E14);
  margin-top: .1rem;
}

/* ==========================================================
   [7] TABS
   ========================================================== */
.product-detail__tabs {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 12px 32px -24px rgba(5, 83, 96, .4);
}
.product-detail__tab-nav {
  display: flex; flex-wrap: wrap;
  background: #f8fafb;
  border-bottom: 1px solid #e2e8f0;
}
.product-detail__tab-btn {
  padding: 1rem 1.5rem;
  font-size: .9rem; font-weight: 700;
  color: #64748b;
  border-bottom: 3px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
  background: transparent;
}
.product-detail__tab-btn:hover { color: var(--brand, #055360); }
.product-detail__tab-btn.is-active {
  color: var(--brand, #055360);
  background: #fff;
  border-bottom-color: var(--accent, #FF5E14);
}
.product-detail__tab-panel {
  display: none;
  padding: 1.5rem 1.35rem;
}
@media (min-width: 768px) {
  .product-detail__tab-panel { padding: 2rem 2.25rem; }
}
.product-detail__tab-panel.is-active { display: block; }

/* Typography nội dung tab */
.product-content {
  font-size: .96rem;
  line-height: 1.75;
  color: #334155;
}
@media (min-width: 768px) {
  .product-content { font-size: 1rem; }
}
.product-content > * + * { margin-top: 1rem; }
.product-content h3 {
  font-size: 1.2rem; font-weight: 800;
  color: var(--brand-deep, #022A31);
  margin-top: 1.5rem; margin-bottom: .65rem;
  padding-left: .75rem;
  border-left: 3px solid var(--accent, #FF5E14);
}
.product-content h4 {
  font-size: 1.02rem; font-weight: 700;
  color: var(--brand-deep, #022A31);
  margin-top: 1.25rem; margin-bottom: .4rem;
}
.product-content p { margin-bottom: .9rem; }
.product-content a {
  color: var(--brand, #055360);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.product-content a:hover { color: var(--accent, #FF5E14); }
.product-content strong { color: var(--brand-deep, #022A31); font-weight: 700; }
.product-content ul, .product-content ol {
  padding-left: 1.5rem; margin-bottom: 1rem;
}
.product-content ul { list-style: disc; }
.product-content ol { list-style: decimal; }
.product-content li { margin-bottom: .4rem; }
.product-content li::marker { color: var(--accent, #FF5E14); }

/* Bảng thông số kỹ thuật */
.product-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.product-specs-table tr + tr { border-top: 1px solid #e2e8f0; }
.product-specs-table th {
  text-align: left;
  padding: .75rem 1rem;
  background: #f8fafb;
  color: var(--brand-deep, #022A31);
  font-weight: 700;
  width: 40%;
  border-right: 1px solid #e2e8f0;
}
.product-specs-table td {
  padding: .75rem 1rem;
  color: #475569;
}
@media (max-width: 640px) {
  .product-specs-table th { width: 45%; font-size: .82rem; padding: .6rem .7rem; }
  .product-specs-table td { font-size: .82rem; padding: .6rem .7rem; }
}

/* ==========================================================
   [8] RELATED HEADING
   ========================================================== */
.related-heading {
  font-size: 1.25rem; font-weight: 800;
  color: var(--brand-deep, #022A31);
  display: flex; align-items: center;
  gap: .65rem;
  padding-bottom: .75rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}
.related-heading::after {
  content: ""; position: absolute;
  left: 0; bottom: -2px;
  width: 60px; height: 2px;
  background: var(--accent, #FF5E14);
}

/* ==========================================================
   [9] RESPONSIVE
   ========================================================== */
@media (max-width: 640px) {
  .product-breadcrumb span.current { max-width: 180px; }
  .product-detail__title { font-size: 1.4rem; }
  .product-detail__tab-btn { padding: .85rem 1rem; font-size: .84rem; }
  .product-detail__tab-panel { padding: 1.25rem 1rem; }
  .btn-call { padding: .75rem 1rem; }
  .btn-call__icon { width: 36px; height: 36px; }
  .btn-call__number { font-size: .88rem; }
}