.product-gallery {
  --gallery-accent: #f7f8fa;
 
}

.product-hero {
  font-family: "DM Sans", sans-serif;
  /*background: #f7f8fa;*/
  padding: 48px 0 36px;
  border-bottom: 1px solid #e8ebf0;
}


.product-main-title {
  margin: 10px 0 0;
  font-size: clamp(1.45rem, 6vw, 1.9rem);
  line-height: 1.2;
  font-weight: 600;
  color: #3b52a4;
  word-break: break-word;
}

.product-breadcrumbs .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.product-breadcrumbs .breadcrumb-item {
  color: #5b6475;
}

.product-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  margin-right: 8px;
  color: #9098a7;
}

.product-breadcrumbs a {
  color: #3b52a4;
  text-decoration: none;
}

.single-product-section {
  font-family: "DM Sans", sans-serif;
  /*background: #f5f5f5;*/
  padding: 56px 0;
  border-bottom: 1px solid #e8ebf0;
}

.single-product-section .container,
.product-tabs-section .container,
.related-products .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.single-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.product-gallery {
  width: 100%;
}

.gallery-main {
  margin: 0;
  /*border: 2px solid var(--gallery-accent);*/
  /*border-radius: 10px;*/
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.gallery-main img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.22s ease;
}

.gallery-main img.is-fading {
  opacity: 0.82;
}

.gallery-main.is-transitioning {
  box-shadow: 0 0 0 3px rgba(150, 142, 131, 0.22);
}

.gallery-empty {
  min-height: 320px;
  display: grid;
  place-items: center;
  color: #6a7280;
}

.product-thumbnails-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.gallery-thumb {
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  border: 2px solid #e2e6ee;
  border-radius: 8px;
  padding: 5px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  border-color: var(--gallery-accent);
  box-shadow: 0 0 0 2px rgba(249, 156, 28, 0.2);
}

.thumb-nav {
  display: none;
  width: 34px;
  height: 34px;
  border: 2px solid var(--gallery-accent);
  background: #fff;
  color: var(--gallery-accent);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.thumb-nav:hover {
  background: var(--gallery-accent);
  color: #fff;
}

.product-subtitle {
  margin: 0 0 8px;
   font-size: clamp(1.35rem, 5.7vw, 1.8rem);
  line-height: 1.3;
  font-weight: 600;
  word-break: break-word;
}

.product-right {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-description {
  border-radius: 8px;
  padding: 16px;
  max-width: 100%;
  color: #555;
  line-height: 1.72;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.product-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.product-social__label,
.product-social__link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  text-decoration: none;
}

.product-social__icon {
  width: 28px;
  height: 28px;
  display: block;
}

.product-social__link {
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.product-social__link::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  background: #3B52A4;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.product-social__link:hover::after,
.product-social__link:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-social__link:hover {
  color: #f99c1c;
  transform: translateY(-1px);
}



.btn-inquire {
  display: inline-block;
  background: #f99c1c;
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}

.btn-inquire:hover {
  background:  #3b52a4; 
  color: #fff;
}
.product-actions {
  margin-top: 6px;
}




.product-inquiry {
  margin-top: 16px;
  border: 1px solid #dfdfdf;
  border-radius: 20px;
  background: #f6f6f6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.34s ease, opacity 0.25s ease;
}

.product-inquiry.is-open {
  max-height: 900px;
  opacity: 1;
}

.product-inquiry__title {
font-family: "DM Sans", sans-serif;
  margin: 0;
  padding: 20px 22px;
  border-bottom: 1px solid #dfdfdf;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.28;
  color: #121212;
}

.product-inquiry-form {
  padding: 22px;
}

.product-inquiry-notice {
  margin: 18px 22px 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  line-height: 1.45;
}

.product-inquiry-notice--success {
font-family: "DM Sans", sans-serif;
  border-color: #bfe3c8;
  background: #eef9f1;
  color: #18542a;
}

.product-inquiry-notice--error {
 font-family: "DM Sans", sans-serif;
  border-color: #f2c7c7;
  background: #fff2f2;
  color: #8d1f1f;
}

.product-inquiry-form__field + .product-inquiry-form__field {
  margin-top: 14px;
}

.product-inquiry-form input,
.product-inquiry-form textarea {
  width: 100%;
  border: 1px solid #d3d3d3;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: 0.95rem;
  padding: 14px 16px;
  line-height: 1.35;
}

.product-inquiry-form textarea {
  min-height: 205px;
  resize: vertical;
}

.product-inquiry-form input::placeholder,
.product-inquiry-form textarea::placeholder {
  color: #1a1a1a;
  opacity: 1;
}

/*.product-inquiry-form input:focus,*/
/*.product-inquiry-form textarea:focus {*/
/*  outline: 2px solid #f99c1c;*/
/*  outline-offset: 0;*/
/*}*/

.product-inquiry-form__submit {
  margin-top: 18px;
  border: 0;
  border-radius: 0;
  background: #3b52a4;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 30px;
  cursor: pointer;
}

.product-inquiry-form__submit:hover {
  background: #1f1f20;
}




.product-tabs-section {
  font-family: "DM Sans", sans-serif;
  /*background: #f5f5f5;*/
  padding: 56px 0;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.tab-btn {
  border: 0;
  background: #d6dbe4;
  color: #263248;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active,
.tab-btn:hover {
  background: #f99c1c;
  color: #fff;
}

.tab-content {
  display: none;
  color: #444;
  line-height: 1.75;
  overflow-x: auto;
}

.tab-content table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  border: 1px solid #d8dee9;
  margin: 14px 0 18px;
  background: #fff;
  font-size: 0.86rem;
}

.tab-content.active {
  display: block;
}


/* For TinyMCE Editor*/

.tab-content h1,
.tab-content h2,
.tab-content h3,
.tab-content h4 {
  margin: 0 0 12px;
  color: #24324a;
  line-height: 1.3;
}

.tab-content p,
.tab-content ul,
.tab-content ol {
  margin: 0 0 14px;
}

.tab-content ul,
.tab-content ol {
  padding-left: 20px;
}

.tab-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d8dee9;
  margin: 14px 0 18px;
  background: #fff;
  font-size: 14px;
}

.tab-content table th,
.tab-content table td {
  border: 1px solid #d8dee9;
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}

.tab-content table th {
  background: #eef2f7;
  color: #1f2c44;
  font-weight: 700;
}

.tab-content table tbody tr:nth-child(even) {
  background: #f9fbfd;
}

.tab-content table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: #24324a;
  margin-bottom: 8px;
}



.related-products {
  font-family: "DM Sans", sans-serif;
  padding: 56px 0 72px;
}

.related-title {
  margin: 0 0 22px;
  font-size: 28px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.related-card a {
  display: block;
  text-decoration: none;
}

.related-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.related-name {
  margin: 0;
  padding: 12px;
  background: #eff2f7;
  color: #273045;
  text-align: center;
  font-size: 16px;
}

.related-empty {
  color: #667085;
}

* Tablet (481px–768px) */
@media (min-width: 481px) {
  .product-hero {
    padding: 40px 0 28px;
  }

  .single-product-section,
  .product-tabs-section {
    padding: 44px 0;
  }

  .single-product-section .container,
  .product-tabs-section .container,
  .related-products .container {
    padding: 0 20px;
  }

  .gallery-thumb {
    flex-basis: 84px;
    width: 84px;
    height: 84px;
  }

  .product-description {
    padding: 18px;
  }

  .tab-buttons {
    gap: 12px;
    margin-bottom: 22px;
  }

  .tab-btn {
    padding: 11px 16px;
    font-size: 0.92rem;
  }

  .related-products {
    padding: 44px 0 54px;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}


@media (max-width: 480px) {
  .related-card img {
    height: 300px;
  }
}

/* Laptop (769px–1024px) */
@media (min-width: 769px) {
  .product-hero {
    padding: 48px 0 36px;
  }

  .product-main-title {
    font-size: 2rem;
  }

  .single-product-section,
  .product-tabs-section {
    padding: 56px 0;
  }

  .single-product-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
  }

  .gallery-empty {
    min-height: 320px;
  }

  .gallery-thumb {
    flex-basis: 92px;
    width: 92px;
    height: 92px;
    padding: 6px;
  }

  .thumb-nav {
    display: inline-flex;
  }

  .product-right,
  .product-description {
    max-width: 560px;
  }

  .product-description {
    padding: 20px;
  }

  .product-subtitle {
    font-size: 24px;
  }

  .tab-buttons {
    margin-bottom: 28px;
  }

  .tab-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .tab-content table {
    min-width: 0;
    font-size: 14px;
  }

  .related-title {
    font-size: 28px;
  }

  .related-grid {
    gap: 22px;
  }

  .related-card img {
    height: 220px;
  }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
  .single-product-layout {
    grid-template-columns: minmax(0, 540px) minmax(0, 520px);
    justify-content: space-between;
    gap: 36px;
  }

  .related-products {
    padding: 56px 0 72px;
  }

  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
