/* Sibom Industry — Product pages */

.sibom-product {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
}

.sibom-product img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sibom-product .prod-card__img img,
.sibom-product .prod-gallery__main img {
  max-width: none;
}

.sibom-product .row2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.sibom-product .row3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.sibom-product .section-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Page header */
.prod-page-header {
  background: linear-gradient(180deg, #f3f3f3 0%, #f7f7f7 100%);
  border-bottom: 1px solid #e0e0e0;
  padding: 32px 0 40px;
}

.prod-page-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c45500;
  margin-top: 16px;
}

.prod-page-header h1 {
  font-size: clamp(30px, 4.2vw, 42px);
  font-weight: 700;
  margin: 10px 0 0;
  color: #1a1a1a;
  line-height: 1.15;
  max-width: 820px;
}

.prod-breadcrumb {
  font-size: 13px;
  color: #777;
}

.prod-breadcrumb a {
  color: #555;
  text-decoration: none;
}

.prod-breadcrumb a:hover {
  color: #c45500;
}

.prod-page-intro {
  max-width: 820px;
  margin-top: 16px;
  font-size: 17px;
  color: #555;
  line-height: 1.7;
}

/* Layout — sidebar + full-width product area */
.prod-layout {
  display: flex;
  flex-wrap: nowrap;
  gap: 32px;
  padding: 56px 0 72px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.prod-list-main {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.prod-list-context {
  margin: 0 0 28px;
  padding: 14px 18px;
  font-size: 14px;
  color: #555;
  background: #f7f7f7;
  border-left: 3px solid #c45500;
  line-height: 1.55;
}

.prod-list-context strong {
  color: #1a1a1a;
}

/* Sidebar */
.prod-sidebar {
  position: sticky;
  top: 24px;
  flex: 0 0 200px;
  width: 200px;
  max-width: 200px;
}

.prod-sidebar__head {
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 2px solid #1a1a1a;
}

.prod-sidebar__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  margin: 0;
}

.prod-sidebar__nav {
  display: flex;
  flex-direction: column;
}

.prod-sidebar__link {
  display: block;
  padding: 13px 14px;
  margin: 0 -14px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}

.prod-sidebar__link:hover {
  color: #1a1a1a;
  background: #f5f5f5;
  padding-left: 20px;
  border-bottom-color: #e0e0e0;
}

.prod-sidebar__link.is-active {
  color: #c45500;
  background: #fff8f3;
  padding-left: 20px;
  border-left: 3px solid #c45500;
  font-weight: 600;
}

.prod-sidebar__link--custom {
  margin-top: 6px;
  border-top: 1px solid #e8e8e8;
}

/* Category hub */
.prod-hub {
  padding: 56px 0 80px;
}

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

.prod-hub-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease;
  overflow: hidden;
}

.prod-hub-card:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.08);
}

.prod-hub-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f5f5;
}

.prod-hub-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.prod-hub-card:hover .prod-hub-card__img img {
  transform: scale(1.04);
}

.prod-hub-card__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.prod-hub-card__body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1a1a1a;
}

.prod-hub-card__body p {
  font-size: 15px;
  color: #666;
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}

.prod-hub-card__tags {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prod-hub-card__tags li {
  font-size: 12px;
  color: #555;
  background: #f3f3f3;
  padding: 4px 10px;
  border-radius: 2px;
}

.prod-hub-card__link {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: underline;
}

.prod-hub-card:hover .prod-hub-card__link {
  color: #c45500;
}

/* Product grid */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px;
  width: 100%;
  max-width: 100%;
}

/* Product list: max 3 columns, cards stretch to fill row */
.prod-list-main > .prod-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

@media (min-width: 960px) {
  .prod-list-main > .prod-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.prod-card,
a.prod-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  color: inherit;
  border: 1px solid #e0e0e0;
  background: #fff;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

a.prod-card {
  text-decoration: none;
}

.prod-card:hover,
a.prod-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: #d0d0d0;
}

.prod-card__img-wrap {
  display: block;
  text-decoration: none;
}

.prod-card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 512px;
  margin: 0 auto;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.prod-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 512px;
  max-height: 512px;
  margin: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}

.prod-card:hover .prod-card__img img,
a.prod-card:hover .prod-card__img img {
  transform: scale(1.03);
}

.prod-card__body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.prod-card__title,
.prod-card__body h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.35;
  color: #1a1a1a;
}

.prod-card__title a {
  color: inherit;
  text-decoration: none;
}

.prod-card__title a:hover {
  color: #c45500;
}

.prod-card__desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
  min-height: 2.8em;
}

.prod-card__desc:empty {
  display: none;
  min-height: 0;
  margin: 0;
}

.prod-card__apps {
  margin-bottom: 20px;
}

.prod-card__apps-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}

.prod-card__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prod-card__tags li {
  font-size: 12px;
  font-weight: 600;
  color: #444;
  background: #f3f3f3;
  padding: 5px 12px;
  border: 1px solid #e8e8e8;
}

.prod-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 12px 22px;
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease;
}

.prod-card__btn:hover {
  background: #c45500;
  color: #fff;
}

a.prod-card .prod-card__btn {
  margin-top: auto;
}

.prod-pagination {
  margin-top: 40px;
  text-align: center;
}

/* Empty state */
.prod-empty {
  text-align: center;
  padding: 64px 32px;
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  margin-top: 8px;
}

.prod-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border: 2px solid #ddd;
  border-radius: 4px;
  position: relative;
}

.prod-empty__icon::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 16px;
  border: 2px solid #ccc;
  border-bottom: none;
  border-radius: 2px 2px 0 0;
}

.prod-empty h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1a1a1a;
}

.prod-empty p {
  max-width: 480px;
  margin: 0 auto 24px;
  font-size: 15px;
  color: #666;
  line-height: 1.65;
}

.prod-empty__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Product Detail ===== */
.prod-detail {
  padding: 48px 0 0;
}

.prod-detail__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

.prod-detail__main {
  min-width: 0;
}

/* Hero */
.prod-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid #e8e8e8;
}

/* Hero gallery — 700 main / 75 thumbs / 2100 zoom */
.prod-gallery {
  max-width: 700px;
}

.prod-gallery__zoom {
  position: relative;
  max-width: 700px;
}

.prod-gallery__main {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 1 / 1;
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  overflow: hidden;
}

.prod-gallery__main img {
  width: 100%;
  height: 100%;
  max-width: 700px;
  max-height: 700px;
  object-fit: contain;
  cursor: zoom-in;
}

.prod-gallery__zoom-pane {
  display: none;
  position: absolute;
  top: 0;
  right: -20px;
  width: min(360px, 42vw);
  height: 360px;
  transform: translateX(100%);
  border: 1px solid #e0e0e0;
  background-color: #fff;
  background-repeat: no-repeat;
  background-size: 300%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 3;
}

.prod-gallery__zoom.is-zooming .prod-gallery__zoom-pane {
  display: block;
}

.prod-gallery__hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #888;
  text-align: right;
}

.prod-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.prod-gallery__thumb {
  width: 75px;
  height: 75px;
  flex: 0 0 75px;
  border: 2px solid #e8e8e8;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  padding: 0;
}

.prod-gallery__thumb.is-active,
.prod-gallery__thumb:hover {
  border-color: #c45500;
}

.prod-gallery__thumb img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  object-position: center;
  background: #fafafa;
}

.prod-info__category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c45500;
  margin: 0 0 10px;
}

.prod-info h1 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #1a1a1a;
}

.prod-info__tagline {
  font-size: 17px;
  color: #555;
  line-height: 1.55;
  margin: 0 0 24px;
}

.prod-info__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.prod-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.prod-btn--primary {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.prod-btn--primary:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

.prod-btn--outline {
  background: transparent;
  color: #1a1a1a;
  border-color: #1a1a1a;
}

.prod-btn--outline:hover {
  background: #1a1a1a;
  color: #fff;
}

.prod-info__points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prod-info__points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.5;
}

.prod-info__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #c45500;
  font-weight: 700;
}

/* Content sections */
.prod-section {
  padding: 56px 0;
  border-bottom: 1px solid #e8e8e8;
}

.prod-section:last-of-type {
  border-bottom: none;
}

.prod-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #1a1a1a;
}

.prod-section p {
  font-size: 16px;
  color: #555;
  line-height: 1.75;
  margin: 0 0 14px;
}

.prod-section__content {
  max-width: 800px;
}

.prod-section__content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
}

.prod-section__content table th,
.prod-section__content table td {
  border: 1px solid #e0e0e0;
  padding: 12px 16px;
  text-align: left;
}

.prod-section__content table th {
  background: #f7f7f7;
  font-weight: 600;
}

/* Applications */
.prod-apps__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.prod-app {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.prod-app img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-app span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Features */
.prod-features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.prod-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: #f9f9f9;
  border-left: 3px solid #c45500;
}

.prod-feature__icon {
  color: #c45500;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.prod-feature p {
  margin: 0;
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}

/* Inquiry */
.prod-inquiry {
  padding: 64px 0;
  background: #1a1a1a;
  color: #fff;
}

.prod-inquiry__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.prod-inquiry h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}

.prod-inquiry p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 28px;
  line-height: 1.65;
}

.prod-inquiry .prod-btn--primary {
  background: #c45500;
  border-color: #c45500;
}

.prod-inquiry .prod-btn--primary:hover {
  background: #d46200;
  border-color: #d46200;
}

.prod-inquiry__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Related */
.prod-related {
  padding: 56px 0;
}

.prod-related h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 28px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prod-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid #e8e8e8;
  margin-top: 24px;
}

.prod-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
}

.prod-nav a:hover {
  color: #c45500;
}

/* Modal form */
.prod-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.prod-modal.is-open {
  display: flex;
}

.prod-modal__dialog {
  background: #fff;
  width: 100%;
  max-width: 480px;
  padding: 32px;
  position: relative;
}

.prod-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.prod-form input,
.prod-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  font-size: 14px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.prod-form textarea {
  min-height: 100px;
  resize: vertical;
}

/* Responsive */
@media (max-width: 1024px) {
  .prod-layout {
    flex-direction: column;
    gap: 36px;
  }

  .prod-detail__layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .prod-sidebar {
    position: static;
    flex: none;
    width: 100%;
    max-width: none;
  }

  .prod-sidebar__nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .prod-sidebar__link {
    margin: 0;
    border-right: 1px solid #eee;
  }

  .prod-grid,
  .prod-list-main > .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .prod-hub__grid {
    grid-template-columns: 1fr;
  }

  .prod-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .prod-apps__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .sibom-product .section-inner {
    padding: 0 16px;
  }

  .prod-page-header {
    padding: 24px 0 28px;
  }

  .prod-page-intro {
    font-size: 15px;
  }

  .prod-layout {
    padding: 36px 0 56px;
  }

  .prod-sidebar__nav {
    grid-template-columns: 1fr;
  }

  .prod-sidebar__link {
    border-right: none;
  }

  .prod-grid,
  .prod-list-main > .prod-grid,
  .prod-features__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .prod-card__img {
    min-height: 220px;
    padding: 16px;
  }

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

  .prod-btn {
    width: 100%;
  }

  .prod-info__actions {
    flex-direction: column;
  }

  .prod-hub-card__body {
    padding: 20px;
  }

  .prod-inquiry {
    padding: 48px 0;
  }
}
