/* ============ PRODUCT PAGE STYLES ============ */

.product-page-main {
  padding-top: 130px;
  padding-bottom: 90px;
  min-height: 80vh;
  position: relative;
}
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.product-breadcrumb a {
  color: var(--cyan-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}
[data-theme="deep"] .product-breadcrumb a {
  color: var(--cyan-bright);
}
.product-breadcrumb a:hover {
  text-decoration: underline;
}
.product-page-card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 205, 224, 0.28);
  border-radius: 32px;
  padding: 44px;
  box-shadow: var(--shadow-tight), 0 30px 70px -20px rgba(0, 168, 190, 0.15);
  position: relative;
  overflow: hidden;
}
[data-theme="deep"] .product-page-card {
  background: linear-gradient(150deg, rgba(14, 38, 64, 0.95), rgba(7, 20, 36, 0.98));
  border-color: rgba(0, 229, 255, 0.32);
  box-shadow: 0 35px 80px -20px rgba(0, 0, 0, 0.7), 0 0 50px -10px rgba(0, 229, 255, 0.18);
}
.product-page-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}
.product-page-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 110px;
}
.product-page-img-frame {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(0, 205, 224, 0.25);
  box-shadow: 0 20px 45px -12px rgba(0, 20, 40, 0.25);
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(240,248,252,0.85));
  position: relative;
}
[data-theme="deep"] .product-page-img-frame {
  background: linear-gradient(145deg, rgba(14,35,58,0.95), rgba(7,20,34,0.98));
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6), 0 0 35px -5px rgba(var(--accent-rgb),0.22);
}
.product-page-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
  display: block;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.product-page-img-frame:hover img {
  transform: scale(1.04);
}
.product-gallery-thumbs {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.gallery-thumb-btn {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  overflow: hidden;
  padding: 4px;
  box-sizing: border-box;
  border: 2px solid transparent;
  background: var(--card-bg);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
  position: relative;
}
.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-thumb-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 205, 224, 0.6);
}
.gallery-thumb-btn.active {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
  transform: scale(1.05);
}
.gallery-view-caption {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  min-height: 18px;
}
.product-page-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.product-page-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.product-page-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  font-family: var(--font-display);
}
[data-theme="deep"] .product-page-title {
  color: #FFFFFF;
}
.product-page-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
[data-theme="deep"] .product-page-desc {
  color: rgba(240, 247, 250, 0.8);
}
.product-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.product-spec-box {
  background: rgba(0, 168, 190, 0.05);
  border: 1px solid rgba(0, 168, 190, 0.18);
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
[data-theme="deep"] .product-spec-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(0, 229, 255, 0.2);
}
.product-spec-box.full-width {
  grid-column: 1 / -1;
}
.product-spec-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cyan-deep);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
[data-theme="deep"] .product-spec-heading {
  color: var(--cyan-bright);
}
.product-spec-detail {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
}
[data-theme="deep"] .product-spec-detail {
  color: #E2E8F0;
}
.product-actions-bar {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.btn-page-inquire {
  flex: 1;
  min-width: 220px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--navy-mid), var(--cyan-deep));
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px -4px rgba(0, 168, 190, 0.4);
}
.btn-page-inquire:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(0, 168, 190, 0.6);
  color: #FFFFFF;
}
.btn-page-back {
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}
.btn-page-back:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
/* ============ RELATED PRODUCTS SECTION & CARDS GRID ============ */
.other-products-section {
  margin-top: 65px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.other-products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.other-products-title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--ink);
  font-family: var(--font-display);
  margin-top: 6px;
  margin-bottom: 0;
}
[data-theme="deep"] .other-products-title {
  color: #FFFFFF;
}

.cat-catalog-grid,
.product-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) {
  .cat-catalog-grid,
  .product-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
@media (max-width: 800px) {
  .cat-catalog-grid,
  .product-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 500px) {
  .cat-catalog-grid,
  .product-catalog-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.cat-catalog-grid .catalog-card,
.product-catalog-grid .catalog-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-tight);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.cat-catalog-grid .catalog-card:hover,
.product-catalog-grid .catalog-card:hover {
  transform: translateY(-7px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-soft), 0 20px 40px -15px rgba(var(--accent-deep-rgb), 0.2);
}
[data-theme="deep"] .cat-catalog-grid .catalog-card,
[data-theme="deep"] .product-catalog-grid .catalog-card {
  background: linear-gradient(160deg, rgba(14, 35, 58, 0.85), rgba(7, 20, 34, 0.92));
  border-color: rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 16px 35px -12px rgba(0, 0, 0, 0.5);
}
[data-theme="deep"] .cat-catalog-grid .catalog-card:hover,
[data-theme="deep"] .product-catalog-grid .catalog-card:hover {
  border-color: var(--cyan-bright);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.7), 0 0 35px -8px rgba(var(--accent-rgb), 0.25);
}

.cat-catalog-grid .catalog-card-media,
.product-catalog-grid .catalog-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(244, 248, 251, 0.9), rgba(227, 242, 247, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="deep"] .cat-catalog-grid .catalog-card-media,
[data-theme="deep"] .product-catalog-grid .catalog-card-media {
  background: linear-gradient(135deg, rgba(7, 29, 51, 0.9), rgba(4, 15, 29, 0.95));
}
.cat-catalog-grid .catalog-card-img,
.product-catalog-grid .catalog-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
  display: block;
  transition: transform 0.6s var(--ease);
}
.cat-catalog-grid .catalog-card:hover .catalog-card-img,
.product-catalog-grid .catalog-card:hover .catalog-card-img {
  transform: scale(1.06);
}

.cat-catalog-grid .catalog-card-company-tag,
.product-catalog-grid .catalog-card-company-tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--accent-deep-rgb), 0.2);
  letter-spacing: 0.4px;
}
[data-theme="deep"] .cat-catalog-grid .catalog-card-company-tag,
[data-theme="deep"] .product-catalog-grid .catalog-card-company-tag {
  background: rgba(7, 29, 51, 0.92);
  color: var(--cyan-bright);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.cat-catalog-grid .catalog-card-badge-tag,
.product-catalog-grid .catalog-card-badge-tag {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-deep), var(--cyan-bright));
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(var(--accent-deep-rgb), 0.35);
}

.cat-catalog-grid .catalog-card-body,
.product-catalog-grid .catalog-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.cat-catalog-grid .catalog-card-cat,
.product-catalog-grid .catalog-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan-deep);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
[data-theme="deep"] .cat-catalog-grid .catalog-card-cat,
[data-theme="deep"] .product-catalog-grid .catalog-card-cat {
  color: var(--cyan-bright);
}
.cat-catalog-grid .catalog-card-title,
.product-catalog-grid .catalog-card-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 8px;
  font-family: var(--font-display);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme="deep"] .cat-catalog-grid .catalog-card-title,
[data-theme="deep"] .product-catalog-grid .catalog-card-title {
  color: #FFFFFF;
}
.cat-catalog-grid .catalog-card-desc,
.product-catalog-grid .catalog-card-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme="deep"] .cat-catalog-grid .catalog-card-desc,
[data-theme="deep"] .product-catalog-grid .catalog-card-desc {
  color: rgba(240, 247, 250, 0.72);
}
.cat-catalog-grid .catalog-card-footer,
.product-catalog-grid .catalog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.cat-catalog-grid .catalog-card-action,
.product-catalog-grid .catalog-card-action {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease;
}
.cat-catalog-grid .catalog-card:hover .catalog-card-action,
.product-catalog-grid .catalog-card:hover .catalog-card-action {
  gap: 9px;
}
[data-theme="deep"] .cat-catalog-grid .catalog-card-action,
[data-theme="deep"] .product-catalog-grid .catalog-card-action {
  color: var(--cyan-bright);
}

@media (max-width: 900px) {
  .product-page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-page-visual {
    position: static;
    max-width: 340px;
    margin: 0 auto;
  }
  .product-specs-list {
    grid-template-columns: 1fr;
  }
  .product-page-card {
    padding: 28px 20px;
  }
  .product-page-title {
    font-size: 24px;
  }
}