/* ═══════════════════ Hero Slider ═══════════════════ */
.slider {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
}

.slides { position: relative; height: 620px; }

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity .8s ease, transform 1.2s ease, visibility .8s;
  color: #fff;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.slide-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.slide-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.slide-1 .slide-bg { background: linear-gradient(125deg, #082F49 0%, #0C4A6E 45%, #0E7490 100%); }
.slide-2 .slide-bg { background: linear-gradient(125deg, #064E3B 0%, #065F46 45%, #0F766E 100%); }
.slide-3 .slide-bg { background: linear-gradient(125deg, #0C2D5A 0%, #0E4D7B 45%, #0369A1 100%); }

.slide-bg.has-image {
  background: #082F49;
}

.slide-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.slide-photo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 47, 73, .82) 0%, rgba(8, 47, 73, .55) 42%, rgba(8, 47, 73, .28) 100%),
    linear-gradient(180deg, rgba(8, 47, 73, .35) 0%, transparent 40%, rgba(8, 47, 73, .45) 100%);
  pointer-events: none;
}

.slide-pattern {
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='92' viewBox='0 0 80 92'%3E%3Cpath d='M40 0 80 23v46L40 92 0 69V23z' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3Ccircle cx='40' cy='46' r='9' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 80px 92px;
}

.slide-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}

.slide-1 .slide-glow { width: 520px; height: 520px; right: -140px; top: -120px;
  background: radial-gradient(circle, rgba(6,182,212,.32), transparent 65%); }
.slide-2 .slide-glow { width: 480px; height: 480px; left: -120px; bottom: -160px;
  background: radial-gradient(circle, rgba(52,211,153,.28), transparent 65%); }
.slide-3 .slide-glow { width: 500px; height: 500px; right: -100px; bottom: -180px;
  background: radial-gradient(circle, rgba(56,189,248,.3), transparent 65%); }

.slide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #A5F3FC;
  margin-bottom: 20px;
}

.slide-kicker::before {
  content: '';
  width: 28px;
  height: 2px;
  background: #22D3EE;
}

.slide-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.slide-title em { font-style: normal; color: #67E8F9; }

.slide-desc {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
  margin-bottom: 32px;
  max-width: 540px;
}

.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.slide-chips { display: flex; gap: 10px; flex-wrap: wrap; }

.slide-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 100px;
  background: rgba(255,255,255,.08);
}

.slide-panel {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.slide-panel h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slide-panel h3::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 4px rgba(52,211,153,.25);
}

.panel-list { display: grid; gap: 14px; margin-bottom: 22px; }

.panel-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(255,255,255,.9);
}

.panel-list li svg { color: #67E8F9; flex-shrink: 0; }

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.panel-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.panel-metric span {
  font-size: 12px;
  color: rgba(255,255,255,.65);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-arrow:hover { background: rgba(255,255,255,.25); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  border: none;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.slider-dot.active { background: #fff; width: 52px; }

.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  z-index: 6;
  background: #22D3EE;
  width: 0;
  opacity: .8;
}

.slider-progress.run { animation: slideProgress 5s linear; }
@keyframes slideProgress { from { width: 0; } to { width: 100%; } }

/* ═══════════════════ Inner page hero ═══════════════════ */
.page-hero {
  position: relative;
  background: linear-gradient(125deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  padding: 72px 0 64px;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='92' viewBox='0 0 80 92'%3E%3Cpath d='M40 0 80 23v46L40 92 0 69V23z' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 80px 92px;
  pointer-events: none;
}

.page-hero--photo {
  background: #082F49;
}

.page-hero--photo::after {
  display: none;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.page-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 47, 73, .48) 0%, rgba(8, 47, 73, .28) 50%, rgba(8, 47, 73, .12) 100%),
    linear-gradient(180deg, rgba(8, 47, 73, .14) 0%, transparent 50%, rgba(8, 47, 73, .18) 100%);
  pointer-events: none;
}

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

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  max-width: 640px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.breadcrumb a { color: rgba(255,255,255,.85); transition: color .2s; }
.breadcrumb a:hover { color: #67E8F9; }
.breadcrumb svg { opacity: .5; }

/* ═══════════════════ Product catalog ═══════════════════ */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 24px;
}

.sidebar-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-box h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.cat-list { padding: 8px 0; }

.cat-list button,
.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 20px;
  border: none;
  background: none;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.cat-list button:hover,
.cat-list a:hover { background: var(--gray-50); color: var(--primary); text-decoration: none; }

.cat-list button.active,
.cat-list a.active {
  color: var(--primary);
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  border-left: 3px solid var(--primary-light);
  padding-left: 17px;
}

.cat-count {
  font-size: 12px;
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 2px 9px;
  border-radius: 100px;
  font-weight: 600;
}

.cat-list button.active .cat-count,
.cat-list a.active .cat-count { background: var(--primary); color: #fff; }

.sidebar-help {
  padding: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.sidebar-help h3 {
  color: #fff;
  background: none;
  border: none;
  padding: 0 0 8px;
  font-size: 16px;
}

.sidebar-help p {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  margin-bottom: 14px;
  line-height: 1.6;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.catalog-search {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.catalog-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--white);
}

.catalog-search input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(14,116,144,.1);
}

.catalog-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.result-count {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
  white-space: nowrap;
}

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

.p-item {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.p-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.p-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.p-item-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary-light);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 100px;
}

.p-item h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.35;
}

.p-item p {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.p-item-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding: 14px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.p-item-meta span {
  font-size: 12px;
  color: var(--gray-500);
}

.p-item-meta strong {
  display: block;
  font-size: 13px;
  color: var(--gray-800);
  font-weight: 600;
}

.p-item-actions { display: flex; gap: 10px; }

.p-item-actions .btn { flex: 1; }

.btn-ghost {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-ghost:hover { background: var(--gray-200); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--gray-500);
}

.empty-panel {
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
  padding: 56px 32px;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--gray-200));
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--primary-light) 22%, transparent), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
  box-shadow: 0 18px 40px -28px color-mix(in srgb, var(--primary-dark) 45%, transparent);
}

.container > .empty-panel {
  max-width: 720px;
  margin-inline: auto;
}

.empty-panel-glow {
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-soft) 80%, transparent), transparent 70%);
  pointer-events: none;
}

.empty-panel-icon {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--primary);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent-soft) 90%, #fff), #fff);
  border: 1px solid color-mix(in srgb, var(--primary-light) 28%, transparent);
  box-shadow: 0 10px 24px -16px var(--primary-dark);
}

.empty-panel h3 {
  position: relative;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.empty-panel p {
  position: relative;
  margin: 0 auto 24px;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-500);
}

.empty-panel-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ═══════════════════ Product detail ═══════════════════ */
.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 40px;
  align-items: start;
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
}

.detail-head { margin-bottom: 24px; }

.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.detail-badges span {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
}

.badge-cat { color: var(--primary-light); background: var(--accent-soft); }
.badge-cert { color: #047857; background: #D1FAE5; }

.detail-card h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.25;
  margin-bottom: 12px;
}

.detail-summary {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.75;
}

.product-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.product-highlight {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.product-highlight dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.product-highlight dd {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
}

.product-rich-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
}

.product-rich-content figure {
  margin: 18px 0;
}

.product-rich-content ul,
.product-rich-content ol {
  margin: 0 0 14px 1.2em;
  color: var(--gray-600);
  line-height: 1.75;
}

.product-rich-content li { margin-bottom: 6px; }

.product-rich-content h2,
.product-rich-content h3 {
  margin-top: 8px;
}

.detail-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}

.spec-table { width: 100%; border-collapse: collapse; }

.spec-table tr { border-bottom: 1px solid var(--gray-100); }
.spec-table tr:last-child { border-bottom: none; }

.spec-table th {
  text-align: left;
  width: 32%;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-50);
}

.spec-table td {
  padding: 13px 16px;
  font-size: 14px;
  color: var(--gray-800);
  font-weight: 500;
}

.uses-list { display: grid; gap: 12px; }

.uses-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
}

.uses-list li svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }

.detail-side { position: sticky; top: 96px; display: grid; gap: 20px; }

.quote-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
}

.quote-box h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
}

.quote-box p {
  font-size: 14px;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  margin-bottom: 20px;
}

.quote-box .btn { margin-bottom: 10px; }

.side-contact {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  gap: 14px;
}

.side-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
}

.side-contact a:hover { color: var(--primary); }
.side-contact svg { color: var(--primary-light); flex-shrink: 0; }

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

/* ═══════════════════ News / Blog cards ═══════════════════ */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 9px 22px;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}

a.filter-tab { text-decoration: none; display: inline-block; }
.filter-tab:hover { border-color: var(--primary-light); color: var(--primary); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

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

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.article-cover {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.article-cover svg { opacity: .28; }

.cover-company { background: linear-gradient(135deg, #0C4A6E, #0E7490); }
.cover-industry { background: linear-gradient(135deg, #065F46, #0D9488); }
.cover-exhibition { background: linear-gradient(135deg, #7C2D12, #EA580C); }
.cover-blog { background: linear-gradient(135deg, #1E3A8A, #0891B2); }

.article-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(4px);
  padding: 5px 12px;
  border-radius: 100px;
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.article-meta span { display: inline-flex; align-items: center; gap: 5px; }

.article-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 10px;
}

.article-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-light);
  transition: var(--transition);
}

.read-more:hover { gap: 10px; color: var(--primary); }

/* Featured blog post */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow-md);
}

.featured-post-cover {
  min-height: 340px;
  background: linear-gradient(135deg, #0C2D5A, #0E7490);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.featured-post-cover svg { opacity: .25; }

.featured-post-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }

.featured-post-body h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.3;
  margin: 12px 0 14px;
}

.featured-post-body p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 22px;
}

/* ═══════════════════ Article detail ═══════════════════ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.article-main {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 44px;
}

.article-main h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-main-meta {
  display: flex;
  gap: 18px;
  font-size: 13.5px;
  color: var(--gray-400);
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

.article-lead {
  font-size: 17px;
  color: var(--gray-700);
  line-height: 1.8;
  font-weight: 500;
  padding: 20px 24px;
  background: var(--gray-50);
  border-left: 4px solid var(--primary-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 32px;
}

.article-section { margin-bottom: 32px; }

.article-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 14px;
}

.article-section p {
  font-size: 15.5px;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 14px;
  white-space: pre-line;
}

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid var(--gray-200);
}

.article-tags a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 5px 14px;
  border-radius: 100px;
  transition: var(--transition);
}

.article-tags a:hover { background: var(--accent-soft); color: var(--primary); }

.article-side { position: sticky; top: 96px; display: grid; gap: 24px; }

.side-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.side-widget h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.recent-list { padding: 8px 0; }

.recent-list a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  line-height: 1.5;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

.recent-list a:last-child { border-bottom: none; }
.recent-list a:hover { color: var(--primary); background: var(--gray-50); }

.recent-date { display: block; font-size: 12px; color: var(--gray-400); margin-top: 4px; font-weight: 400; }

/* ═══════════════════ About page ═══════════════════ */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.story-visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--gray-100);
  min-height: 420px;
  overflow: hidden;
}

.story-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.story-body .lead {
  font-size: 19px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.6;
  margin-bottom: 18px;
}

.story-body p {
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 16px;
}

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

.mvv-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
}

.mvv-card .advantage-icon { margin: 0 auto 18px; }
.mvv-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.mvv-card p { font-size: 14.5px; color: var(--gray-600); line-height: 1.7; }

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

.svc-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px 26px 24px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 6px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.svc-card:hover {
  border-color: #b8d0e4;
  box-shadow: 0 10px 28px rgba(12, 74, 110, .08);
  transform: translateY(-1px);
}

.svc-num {
  grid-row: 1 / span 2;
  align-self: start;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .02em;
  line-height: 1.2;
  min-width: 2.2em;
}

.svc-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.35;
}

.svc-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.team-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.team-card:hover {
  border-color: #b8d0e4;
  box-shadow: 0 12px 28px rgba(12, 74, 110, .08);
  transform: translateY(-2px);
}

.team-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--gray-100);
}

.team-card-body {
  padding: 18px 20px 22px;
}

.team-card-body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 8px;
  line-height: 1.35;
}

.team-card-body p {
  margin: 0;
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.7;
}

.team-closing {
  margin: 22px 0 0;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--primary-light) 40%, var(--gray-200) 90%);
}

.tl-item {
  position: relative;
  padding: 0 0 20px 64px;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-item-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 22px 26px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tl-item:hover .tl-item-card {
  border-color: #b8d0e4;
  box-shadow: 0 10px 28px rgba(12, 74, 110, .08);
  transform: translateY(-1px);
}

.tl-item:hover .tl-dot {
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(14, 116, 144, .16);
}

.tl-dot {
  position: absolute;
  left: 10px;
  top: 28px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary-light);
  box-shadow: 0 0 0 4px rgba(14, 116, 144, .1);
  z-index: 1;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.tl-year {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .02em;
  margin-bottom: 6px;
  white-space: nowrap;
  line-height: 1.2;
}

.tl-item h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.35;
}

.tl-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.7;
}

.tl-photo {
  margin: 0 0 20px 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.tl-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

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

.facility-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.facility-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  white-space: nowrap;
}

.facility-card span { font-size: 13.5px; color: var(--gray-500); }

.quality .certs-banner {
  margin-top: 36px;
}

.quality .cert-grid {
  margin-bottom: 28px;
}

.certs-banner {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  margin-bottom: 22px;
}

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

.cert-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 180px;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  cursor: zoom-in;
  overflow: hidden;
  font: inherit;
  color: inherit;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cert-card:hover {
  border-color: #b8d0e4;
  box-shadow: 0 12px 28px rgba(12, 74, 110, .08);
  transform: translateY(-2px);
}

.cert-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.cert-thumb {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}

.cert-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(12, 40, 60, .72);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  transition: opacity .2s ease;
}

.cert-card:hover .cert-zoom-hint,
.cert-card:focus-visible .cert-zoom-hint {
  opacity: 1;
}

.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 64px 72px;
  background: rgba(10, 22, 34, .86);
  box-sizing: border-box;
}

.cert-lightbox[hidden] {
  display: none !important;
}

body.cert-lightbox-open {
  overflow: hidden;
}

.cert-lightbox-stage {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
  user-select: none;
}

.cert-lightbox-stage.is-zoomed {
  cursor: grab;
}

.cert-lightbox-stage.is-zoomed:active {
  cursor: grabbing;
}

.cert-lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  transition: transform .05s linear;
  will-change: transform;
}

.cert-lightbox-image {
  display: block;
  max-width: min(960px, 100%);
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  pointer-events: none;
}

.cert-lightbox-close,
.cert-lightbox-nav,
.cert-lightbox-tool {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s ease;
  z-index: 2;
}

.cert-lightbox-close:hover,
.cert-lightbox-nav:hover,
.cert-lightbox-tool:hover {
  background: rgba(255, 255, 255, .28);
}

.cert-lightbox-close {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  font-size: 22px;
  line-height: 1;
}

.cert-lightbox-nav {
  top: 50%;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}

.cert-lightbox-prev { left: 16px; }
.cert-lightbox-next { right: 16px; }

.cert-lightbox-tools {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(10, 22, 34, .72);
  transform: translateX(-50%);
}

.cert-lightbox-tool {
  position: static;
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.cert-lightbox-zoom-label {
  min-width: 52px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* ═══════════════════ Contact page ═══════════════════ */
.contact-page-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.info-stack { display: grid; gap: 16px; margin-bottom: 24px; }

.info-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.info-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); }

.info-card .contact-icon { width: 52px; height: 52px; }

.info-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.info-card a, .info-card span { font-size: 14.5px; color: var(--gray-600); line-height: 1.6; }
.info-card a:hover { color: var(--primary); }

.map-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: linear-gradient(135deg, #E0F2FE, #CFFAFE);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-box-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.map-pin {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--primary);
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(12, 74, 110, .08);
}

.map-pin strong { display: block; margin-top: 10px; font-family: var(--font-display); color: var(--gray-900); }
.map-pin span { font-size: 13.5px; color: var(--gray-500); }

.form-success {
  display: none;
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #065F46;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.form-success.show { display: block; }

/* ═══════════════════ Home preview sections ═══════════════════ */
.home-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 24px;
}

.home-preview-head .section-header { text-align: left; margin-bottom: 0; }
.home-preview-head .section-tag { margin-bottom: 12px; }

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-light);
  white-space: nowrap;
  transition: var(--transition);
}

.view-all:hover { gap: 12px; color: var(--primary); }

.dual-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mini-list { display: grid; gap: 4px; }

.mini-item {
  display: flex;
  gap: 18px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--gray-200);
  align-items: flex-start;
}

.mini-item:last-child { border-bottom: none; }

.mini-date {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mini-date strong { font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1; }
.mini-date span { font-size: 11px; font-weight: 600; text-transform: uppercase; }

.mini-item h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.45;
  margin-bottom: 6px;
}

.mini-item h4 a:hover { color: var(--primary); }
.mini-item p { font-size: 13.5px; color: var(--gray-500); line-height: 1.6; }

/* ═══════════════════ Responsive ═══════════════════ */
@media (max-width: 1024px) {
  .slides { height: auto; }
  .slide { position: relative; display: none; min-height: 560px; }
  .slide.active { display: flex; }
  .slide-inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 24px 72px; }
  .slide-photo-shade {
    background:
      linear-gradient(180deg, rgba(8, 47, 73, .72) 0%, rgba(8, 47, 73, .48) 45%, rgba(8, 47, 73, .78) 100%);
  }
  .slider-arrow { display: none; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .cat-list { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; }
  .cat-list button,
  .cat-list a { white-space: nowrap; border-radius: 100px; padding: 8px 16px; width: auto; }
  .cat-list button.active,
  .cat-list a.active { padding-left: 16px; border-left: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .related-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post-cover { min-height: 220px; }
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .mvv-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-page-grid { grid-template-columns: 1fr; }
  .dual-preview { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .slides .slide { min-height: 600px; }
  .slide-panel { padding: 24px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .certs-banner { max-height: 200px; }
  .cert-zoom-hint { opacity: 1; }
  .cert-lightbox { padding: 56px 12px 78px; }
  .cert-lightbox-stage { height: calc(100vh - 150px); }
  .cert-lightbox-image { max-height: calc(100vh - 150px); }
  .cert-lightbox-nav { width: 38px; height: 38px; }
  .cert-lightbox-prev { left: 8px; }
  .cert-lightbox-next { right: 8px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-main, .detail-card { padding: 24px; }
  .featured-post-body { padding: 28px; }
  .p-item-meta { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 0; }
  .home-preview-head { flex-direction: column; align-items: flex-start; }
}

/* ── Product card cover media ── */
.p-item { padding: 0; overflow: hidden; }
.p-item-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.p-item-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--gray-100); }
.p-item-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.p-item:hover .p-item-media img { transform: scale(1.06); }
.p-item h3 a { color: inherit; }
.p-item h3 a:hover { color: var(--primary-light); }
.p-item-top { margin-bottom: 0; }

/* Featured cards with cover (home + related products) */
.product-media-card { padding: 0; overflow: hidden; }
.product-media-card .featured-header,
.product-media-card h3,
.product-media-card .featured-desc,
.product-media-card .btn { margin-left: 28px; margin-right: 28px; }
.product-media-card .btn { margin-bottom: 28px; }
.featured-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--gray-100); margin-bottom: 24px; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.featured-card:hover .featured-media img { transform: scale(1.06); }
.featured-card h3 a { color: inherit; }
.featured-card h3 a:hover { color: var(--primary-light); }

/* ── Article covers as images ── */
.article-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-cover .article-cat { z-index: 1; }
.featured-post-cover { padding: 0; }
.featured-post-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.page-link { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gray-200); border-radius: 10px; background: var(--white); color: var(--gray-700); font-weight: 600; font-size: 14px; transition: var(--transition); }
.page-link:hover { border-color: var(--primary-light); color: var(--primary); }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-link.disabled { opacity: .35; pointer-events: none; }
.page-gap { color: var(--gray-400); padding: 0 4px; }

/* ── Product detail gallery & detail images ── */
.detail-gallery { padding: 16px; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #EEF4F8; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumb { width: 86px; height: 86px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid var(--gray-200); background: #EEF4F8; cursor: pointer; transition: var(--transition); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { border-color: var(--primary-light); }
.gallery-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(14,116,144,.18); }
.detail-img { display: block; width: 100%; height: auto; margin-top: 18px; border: 1px solid var(--gray-100); border-radius: 14px; }

@media (max-width: 640px) {
  .gallery-thumb { width: 64px; height: 64px; }
  .product-media-card .featured-header,
  .product-media-card h3,
  .product-media-card .featured-desc,
  .product-media-card .btn { margin-left: 20px; margin-right: 20px; }
  .product-media-card .btn { margin-bottom: 20px; }
}

/* Prevent grid overflow on mobile from wide media/tables */
.detail-layout > * { min-width: 0; }
.gallery-main, .detail-img { min-width: 0; }
.spec-table td, .spec-table th { word-break: break-word; }

/* ── Product image carousel ── */
.detail-gallery { padding: 16px; }
.carousel-viewport {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #EEF4F8;
}
.carousel-track { position: absolute; inset: 0; }
.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s;
}
.carousel-slide.active { opacity: 1; visibility: visible; }
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.carousel-slide figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border-radius: 100px;
  background: rgba(3, 20, 36, .58);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.carousel-slide figcaption span { color: rgba(255,255,255,.72); font-weight: 500; font-size: 12.5px; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(3, 20, 36, .42);
  backdrop-filter: blur(4px);
  cursor: pointer;
  z-index: 2;
  transition: background .25s ease, transform .25s ease;
}
.carousel-arrow:hover { background: var(--primary); }
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }
.carousel-arrow:active { transform: translateY(-50%) scale(.92); }
.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 58px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.carousel-dot.active { width: 26px; border-radius: 100px; background: #fff; }
.gallery-thumbs { display: flex;
  gap: 10px;
  margin-top: 12px;
}
.gallery-thumb {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1 / 1;
  height: auto;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--gray-200);
  background: #EEF4F8;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { border-color: var(--primary-light); }
.gallery-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(14,116,144,.18); }

@media (max-width: 640px) {
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
  .carousel-slide figcaption { font-size: 12px; padding: 8px 14px; }
  .gallery-thumb { border-width: 1.5px; }
}

/* ── Article / blog detail hero & cover ── */
.article-hero { padding: 56px 0 52px; }
.article-hero h1 {
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.28;
  max-width: 920px;
  margin-top: 14px;
  margin-bottom: 14px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  font-size: 14px;
  color: rgba(255,255,255,.82);
  position: relative;
  z-index: 1;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span:not(:last-child)::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  margin-left: 14px;
}
.article-cover-banner {
  margin: 0 0 30px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gray-100);
}
.article-cover-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-layout > * { min-width: 0; }

@media (max-width: 640px) {
  .article-hero { padding: 40px 0 36px; }
  .hero-meta { gap: 8px 16px; font-size: 13px; }
  .article-cover-banner { margin-bottom: 22px; border-radius: 10px; }
}
