html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e6e6e6;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #333;
  line-height: 1.6;
  transition: opacity 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

[data-lang-key], [data-lang-placeholder] {
    transition: opacity 0.3s ease-in-out;
}

.lang-loading [data-lang-key],
.lang-loading [data-lang-placeholder] {
    opacity: 0;
}

body.fade-out {
  opacity: 0;
}

.container {
  max-width: 1100px;
  margin: auto;
  overflow: hidden;
  padding: 0 20px;
}

header {
  background: #333;
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px 0 5px;
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  height: 50px;
  overflow: hidden;
}

.logo-img {
  height: 120px;
  width: 200px;
  margin-right: 15px;
  object-fit: cover;
  object-position: top;
  position: relative;
  top: 10px;
}

.logo-ase {
  color: #005ab0;
}

.logo-filling {
  color: #f9621e;
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-links li {
  padding: 0 15px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
  color: #00aaff;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: block;
  position: absolute;
  background-color: #333;
  min-width: 260px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #555;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown:focus-within .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropbtn i {
  margin-left: 5px;
}

.lang-switcher button {
  background: none;
  border: 1px solid #fff;
  color: #fff;
  padding: 5px 10px;
  margin-left: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 5px;
}

.lang-switcher button.active {
  background-color: #095dac;
  color: #fff;
  border-color: #095dac;
}

.hero-about-background {
  position: relative;
  max-width: 1200px;
  margin: 40px auto;
  border-radius: 10px;
  overflow: hidden;
}

.hero-about-background::before {
  content: "";
  position: absolute;
  transform: scale(1);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("assets/background.png");
  background-size: cover;
  background-position: center;
  filter: blur(0px);
  z-index: -1;
}

.hero-about-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, #e6e6e6 0%, transparent 10%),
    linear-gradient(to bottom, #e6e6e6 0%, transparent 10%),
    linear-gradient(to left, #e6e6e6 0%, transparent 5%),
    linear-gradient(to right, #e6e6e6 0%, transparent 5%);
}

#hero {
  text-align: center;
  padding: 4rem 20px;
  position: relative;
  z-index: 1;
  color: #000;
}

#hero p {
  background-color: rgba(255, 255, 255, 0.75);
  padding: 1rem;
  border-radius: 8px;
  display: inline-block;
  color: #000000;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

#about {
  position: relative;
  z-index: 1;
  color: #000;
  padding-top: 0;
  text-align: center;
  scroll-margin-top: 80px;
}

#about p {
  background-color: rgba(255, 255, 255, 0.75);
  padding: 1rem;
  border-radius: 8px;
  display: inline-block;
  max-width: 90%;
  color: #000000;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

h1,
h2,
h3 {
  font-weight: 700;
}

#hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 10px;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #005ab0;
}

p {
  font-size: 1.1rem;
  color: #555;
}

main {
  flex: 1;
}

section {
  padding: 2rem 0;
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.from-left {
  transform: translateX(-30px);
}

.from-right {
  transform: translateX(30px);
}

.from-bottom {
  transform: translateY(30px);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.product-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none; /* Remove underline from link */
  color: inherit; /* Inherit text color */
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-item img {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.news-grid, .product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-item .news-date-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #888;
    margin-top: auto;
    padding-top: 15px;
}

.product-item .news-date-container i {
    font-size: 14px;
}

.fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.fab {
  width: 60px;
  height: 60px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.fab:hover {
  transform: scale(1.1);
}

.fab i {
  font-size: 24px;
  color: #005ab0;
  line-height: 1;
}

.fab-options {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: all 0.3s ease-out;
  transform: scale(0) translateY(50px);
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
}

.fab-container.active .fab-options {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

.fab-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  background-color: #fff;
  padding: 10px 15px;
  border-radius: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.fab-option span {
  margin-right: 10px;
}

.fab-icon-wrapper {
  width: 40px;
  height: 40px;
  background-color: #f0f0f0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fab-icon-wrapper i {
  font-size: 20px;
  color: #005ab0;
  line-height: 1;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
  animation: slide-down 0.4s ease-out;
}

@keyframes slide-down {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: black;
}

#feedback-form input,
#feedback-form textarea {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

#feedback-form input.invalid,
#feedback-form textarea.invalid {
  border-color: #e74c3c;
}

#feedback-form button {
  width: 100%;
  background-color: #007bff;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#feedback-form button:hover {
  background-color: #0056b3;
}

.form-message {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  display: none;
  text-align: center;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.contact-details a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  font-size: 1.1rem;
  color: #333;
  text-decoration: none;
}

.contact-details i {
  font-size: 22px;
  color: #005ab0;
}

footer {
  text-align: center;
  padding: 2rem 0;
  background: #333;
  color: #ccc;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social .social-link {
  color: #ccc;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social .social-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  nav {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    text-align: center;
  }

  .nav-links li {
    padding: 0;
  }

  .lang-switcher {
    margin-top: 10px;
  }

  #hero h1 {
    font-size: 2rem;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .product-list {
    grid-template-columns: 1fr;
  }

  .hero-about-background {
    margin: 20px;
  }

  .fab-container {
    bottom: 20px;
    right: 20px;
  }

  .modal-content {
    width: 90%;
    margin: 20% auto;
    padding: 15px;
  }

  #feedback-form input,
  #feedback-form textarea,
  #feedback-form button {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.75rem 0;
  }

  nav {
    padding: 0 12px;
  }

  .logo-img {
    height: 80px;
    width: 140px;
    margin-right: 10px;
    top: 6px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .nav-links a {
    padding: 0.35rem 0.55rem;
    font-size: 0.85rem;
  }

  .nav-links {
    gap: 4px 8px;
  }

  .lang-switcher {
    margin-top: 6px;
  }

  .lang-switcher button {
    padding: 4px 8px;
    font-size: 0.85rem;
  }

  #hero {
    padding: 3rem 12px;
  }

  #hero h1 {
    font-size: 1.6rem;
  }

  #hero p,
  #about p {
    font-size: 0.95rem;
  }

  section {
    padding: 28px 12px;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .product-list {
    gap: 16px;
  }

  .product-item img {
    height: 180px;
  }

  .category-sidebar {
    padding: 16px;
  }

  .category-title {
    font-size: 1.6rem;
  }

  .product-detail-top {
    gap: 20px;
  }

  .product-description-content,
  .product-detailed-description {
    font-size: 0.95rem;
  }

  .product-specifications table th,
  .product-specifications table td {
    padding: 6px;
    font-size: 0.9rem;
  }

  #map {
    height: 300px;
  }

  .contact-info-box {
    padding: 20px;
  }

  .fab {
    width: 52px;
    height: 52px;
  }

  .fab i {
    font-size: 20px;
  }

  .fab-option {
    padding: 8px 12px;
  }

  .fab-icon-wrapper {
    width: 34px;
    height: 34px;
  }

  .modal-content {
    margin: 25% auto;
    padding: 12px;
  }
}

#product-detail-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.product-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.24fr); /* Reduced 1st col by 20%, added to 2nd */
    gap: 30px; /* Matches sidebar gap */
    align-items: flex-start;
    overflow: visible;
}

.product-overview-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(17, 34, 68, 0.08);
    border: 1px solid rgba(0,0,0,0.03);
}

.product-overview-card h2 {
    margin-top: 0;
    font-size: 2rem;
}

.product-overview-card .overview {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 0;
}

.product-gallery .main-image {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    cursor: pointer;
    width: 100%;
}

.product-gallery {
    overflow: visible;
}

.product-gallery .main-image img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.image-skeleton img {
    opacity: 0;
    visibility: hidden;
}

.main-image .loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
}

.main-image.image-skeleton .loader {
    display: block;
    z-index: 3;
}

.main-image.image-skeleton::before {
    display: none;
}

.main-image.image-skeleton {
    overflow: visible !important;
    padding-bottom: 16px;
}

.loader {
  --fill-color: #2a78f5;
  --shine-color: rgba(0, 90, 176, 0.2);
  width: 100px;
  height: 100px;
  position: relative;
  filter: drop-shadow(0 0 10px var(--shine-color));
}

.loader--cloud {
  --cloud-color: #4387f4;
  --arrows-color: #80b1ff;
  --time-animation: 1s;
  transform: scale(1);
  overflow: visible;
}

.main-image.image-skeleton .loader--cloud {
  transform: translate(-50%, -62%) scale(1.25);
}

.loader--cloud #cloud {
  width: 100px;
  height: 100px;
  overflow: visible;
}

.loader--cloud #cloud rect {
  fill: var(--cloud-color);
}

.loader--cloud #cloud g:nth-child(3) {
  transform-origin: 50% 72.8938%;
  fill: var(--arrows-color);
  filter: drop-shadow(0 0 8px black);
  animation: rotation var(--time-animation) linear infinite;
}

.loader--cloud #shapes g g circle {
  animation: cloud calc(var(--time-animation) * 2) linear infinite;
}

.loader--cloud #shapes g g circle:nth-child(2) {
  animation-delay: calc((var(--time-animation) * 2) / -3);
}

.loader--cloud #shapes g g circle:nth-child(3) {
  animation-delay: calc((var(--time-animation) * 2) / -1.5);
}

.loader--cloud svg #lines g line {
  stroke-width: 5;
  transform-origin: 50% 50%;
  rotate: -65deg;
  animation: lines calc(var(--time-animation) / 1.33) linear infinite;
}

.loader #pegtopone,
.loader #pegtoptwo,
.loader #pegtopthree {
  width: 100%;
  height: auto;
}

.loader #pegtopone {
  position: absolute;
  animation: flowe-one 1s linear infinite;
}

.loader #pegtoptwo {
  position: absolute;
  opacity: 0;
  transform: scale(0) translateY(-200px) translateX(-100px);
  animation: flowe-two 1s linear infinite;
  animation-delay: 0.3s;
}

.loader #pegtopthree {
  position: absolute;
  opacity: 0;
  transform: scale(0) translateY(-200px) translateX(100px);
  animation: flowe-three 1s linear infinite;
  animation-delay: 0.6s;
}

.loader--pegtop svg g path:first-child {
  fill: var(--fill-color);
}

@keyframes flowe-one {
  0% { transform: scale(0.5) translateY(-200px); opacity: 0; }
  25% { transform: scale(0.75) translateY(-100px); opacity: 1; }
  50% { transform: scale(1) translateY(0px); opacity: 1; }
  75% { transform: scale(0.5) translateY(50px); opacity: 1; }
  100% { transform: scale(0) translateY(100px); opacity: 0; }
}

@keyframes flowe-two {
  0% { transform: scale(0.5) rotateZ(-10deg) translateY(-200px) translateX(-100px); opacity: 0; }
  25% { transform: scale(1) rotateZ(-5deg) translateY(-100px) translateX(-50px); opacity: 1; }
  50% { transform: scale(1) rotateZ(0deg) translateY(0px) translateX(-25px); opacity: 1; }
  75% { transform: scale(0.5) rotateZ(5deg) translateY(50px) translateX(0px); opacity: 1; }
  100% { transform: scale(0) rotateZ(10deg) translateY(100px) translateX(25px); opacity: 0; }
}

@keyframes flowe-three {
  0% { transform: scale(0.5) rotateZ(10deg) translateY(-200px) translateX(100px); opacity: 0; }
  25% { transform: scale(1) rotateZ(5deg) translateY(-100px) translateX(50px); opacity: 1; }
  50% { transform: scale(1) rotateZ(0deg) translateY(0px) translateX(25px); opacity: 1; }
  75% { transform: scale(0.5) rotateZ(-5deg) translateY(50px) translateX(0px); opacity: 1; }
  100% { transform: scale(0) rotateZ(-10deg) translateY(100px) translateX(-25px); opacity: 0; }
}

@keyframes spin {
  0%,
  100% {
    box-shadow: .2em 0px 0 0px currentcolor;
  }
  12% {
    box-shadow: .2em .2em 0 0 currentcolor;
  }
  25% {
    box-shadow: 0 .2em 0 0px currentcolor;
  }
  37% {
    box-shadow: -.2em .2em 0 0 currentcolor;
  }
  50% {
    box-shadow: -.2em 0 0 0 currentcolor;
  }
  62% {
    box-shadow: -.2em -.2em 0 0 currentcolor;
  }
  75% {
    box-shadow: 0px -.2em 0 0 currentcolor;
  }
  87% {
    box-shadow: .2em -.2em 0 0 currentcolor;
  }
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

@keyframes lines {
  0% { transform: translateY(-10px); }
  100% { transform: translateY(8px); }
}

@keyframes cloud {
  0% { cx: 20; cy: 60; r: 15; }
  50% { cx: 50; cy: 45; r: 20; }
  100% { cx: 80; cy: 60; r: 15; }
}
.image-skeleton {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 8px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-skeleton::before {
    content: "";
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(farthest-side, #005ab0 94%, #0000) top/8px 8px no-repeat,
        conic-gradient(#0000 30%, #005ab0);
    -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
    animation: l13 1s infinite linear;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

@keyframes l13 {
    100% { transform: translate(-50%, -50%) rotate(1turn); }
}

.product-gallery .thumbnail-carousel {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.product-gallery .thumbnail-carousel .thumbnail-item {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    display: none;
}

.product-gallery .thumbnail-carousel .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    transform: scale(0.8);
    display: block;
}

.product-gallery .thumbnail-carousel .thumbnail-item img.active {
    opacity: 1;
    transform: scale(1.2);
    border: 2px solid #007bff;
}

.product-gallery .thumbnail-carousel .thumbnail-item img.prev,
.product-gallery .thumbnail-carousel .thumbnail-item img.next {
}

.product-gallery .thumbnail-carousel .thumbnail-item.is-visible {
    display: block;
}

.thumbnail-item.image-skeleton {
    background: #ffffff;
    min-height: 0;
    display: block;
    align-items: unset;
    justify-content: unset;
}

.thumbnail-item.image-skeleton::before {
    display: none;
}

.thumbnail-item.image-skeleton img {
    opacity: 0;
    visibility: hidden;
}

.thumbnail-item .thumb-loader {
    display: none;
}

.thumbnail-item.image-skeleton .thumb-loader {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%) rotateZ(45deg);
    perspective: 1000px;
    border-radius: 50%;
    color: #005ab0;
}

.thumbnail-item.image-skeleton .thumb-loader:before,
.thumbnail-item.image-skeleton .thumb-loader:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: 1s spin linear infinite;
}

.thumbnail-item.image-skeleton .thumb-loader:after {
    color: #f9621e;
    transform: rotateY(70deg);
    animation-delay: .4s;
}

.loader--thumb #pegtopone {
  animation-duration: 0.8s;
}

.loader--thumb #pegtoptwo {
  animation-duration: 0.8s;
  animation-delay: 0.2s;
}

.loader--thumb #pegtopthree {
  animation-duration: 0.8s;
  animation-delay: 0.4s;
}

.product-description-block {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(17, 34, 68, 0.08);
    border: 1px solid rgba(0,0,0,0.03);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-description-block h3 {
    margin-top: 0;
    font-size: 1.6rem;
}

.product-description-content {
    margin-top: 20px;
    color: #333;
    line-height: 1.75;
    font-size: 1rem;
}

.product-description-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.product-description-content table td,
.product-description-content table th {
    border: 1px solid #e5e5e5;
    padding: 10px 12px;
    text-align: left;
}

.product-description-content ul,
.product-description-content ol {
    padding-left: 1.4rem;
}

.product-description-content {
    white-space: pre-line;
}

.product-specifications {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.product-specifications h4 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.product-specifications table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure table doesn't get too squeezed */
}

.product-specifications .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.product-specifications table th,
.product-specifications table td {
    padding: 8px; /* Reduced padding */
    border: 1px solid #e5e5e5;
    text-align: left;
    font-size: 1rem; /* Match description font size */
}

.product-specifications table th {
    background-color: #f9f9f9;
    font-weight: normal; /* Remove bold */
    color: #333; /* Darker color for readability */
}

/* Header row specific styling if needed, currently reusing th style */
.product-specifications table tr:first-child th {
    font-weight: 600; /* Make top header slightly bolder if preferred, or keep normal */
    background-color: #f0f0f0;
}

.product-specifications table td.text-center {
    text-align: center;
}

.product-detailed-description {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #333;
    line-height: 1.75;
    font-size: 1rem;
}

.product-detailed-description p,
.product-detailed-description li {
    font-size: 1rem;
    line-height: 1.75;
}

.product-detailed-description h3, 
.product-detailed-description h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.product-video-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(17, 34, 68, 0.08);
    border: 1px solid rgba(0,106,255,0.15);
}

.product-video-section h3 {
    margin-top: 0;
    font-size: 1.6rem;
    color: #333;
}

.video-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.video-preview-card {
    background: #f7fbff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,106,255,0.12);
    box-shadow: 0 10px 30px rgba(2, 74, 184, 0.08);
}

.video-preview-card iframe,
.video-preview-card video {
    width: 100%;
    min-height: 230px;
    border: none;
}

.video-preview-card video {
    background: #000;
}

.video-preview-card .video-caption {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #09509c;
}

.video-preview-card .video-caption span {
    font-size: 0.95rem;
}

.zoom-indicator {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}

.main-image:hover .zoom-indicator {
    transform: scale(1.15);
    background: rgba(0,0,0,0.7);
}

.zoom-indicator i {
    font-size: 18px;
    line-height: 1;
    display: flex;
}

.media-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(3, 9, 26, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 30px;
}

.media-lightbox.open {
    display: flex;
}

.media-lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}

.media-lightbox .loader {
    display: none;
}

.media-lightbox.image-skeleton .loader {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 1;
}

.media-lightbox.image-skeleton::before {
    display: none;
}



.media-lightbox.image-skeleton .media-lightbox-content img {
    opacity: 0;
    visibility: hidden;
}

.media-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
}

.media-lightbox-nav {
    background: rgba(0,0,0,0.55);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
}

.media-lightbox-nav.prev { left: 30px; }
.media-lightbox-nav.next { right: 30px; }

.lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .product-detail-top {
        grid-template-columns: 1fr;
    }
    .media-lightbox-nav.prev { left: 10px; }
    .media-lightbox-nav.next { right: 10px; }
}

/* Category Page Two-Column Layout */
#category-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 1320px; /* Increased by 10% from standard 1200px */
}

.category-sidebar {
    flex: 0 0 330px; /* Sidebar width increased by 10% */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.category-sidebar h2 {
    font-size: 1.2rem;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

#category-product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#category-product-list li {
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

#category-product-list li.fade-item {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    transition-delay: var(--delay, 0ms);
}

#category-product-list li.fade-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#category-product-list li:hover {
    background-color: #f0f5fa;
}

#category-product-list li.active {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
}

.category-main-content {
    flex: 1;
    min-height: 750px; /* Prevents layout shift when product description changes */
}

.category-title {
    margin: 0 0 20px;
    font-size: 2rem;
    color: #333;
}

@media (max-width: 992px) {
    #category-container {
        flex-direction: column;
    }
    .category-sidebar {
        flex: 1;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Map and Contact Section */
#contact-map-section {
    padding-top: 40px;
    --contact-card-height: 455px;
}

.map-contact-container {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 30px;
    align-items: start;
}

@media (max-width: 1200px) {
    .map-contact-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.product-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.24fr);
    gap: 30px;
    align-items: flex-start;
}

#map {
    height: var(--contact-card-height);
    min-height: var(--contact-card-height);
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1; /* Ensure map is clickable */
}


.contact-info-box {
    background: #fff;
    padding: 18px 24px 22px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: var(--contact-card-height);
    box-sizing: border-box;
}

.contact-info-box h3 {
    margin-top: 2px;
    font-size: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.contact-info-box p {
    margin-bottom: 9px;
    line-height: 1.4;
}

.contact-info-box p[data-lang-key="contact_box_tel"] {
    white-space: normal;
}

.contact-info-box p[data-lang-key="contact_box_tel"] strong {
    display: block;
    margin-bottom: 4px;
}

.contact-info-box p:last-of-type {
    margin-bottom: 8px;
}

.contact-info-box hr {
    margin: 9px 0 11px;
}


.news-card-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* Spacing between arrows and image */
}

.news-card-image-container {
    overflow: hidden;
    flex-grow: 1;
}

.news-card-carousel-wrapper .carousel-arrow {
    background-color: transparent;
    color: #333;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.news-card-carousel-wrapper .carousel-arrow:hover {
    background-color: #f0f0f0;
    opacity: 1;
    transform: scale(1.1);
}




.contact-info-box strong {
    color: #333;
}

.instagram-widget h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.instagram-widget h3 i {
    color: #e1306c;
    font-size: 22px;
}

.instagram-widget {
    height: var(--contact-card-height);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.instagram-subtitle {
    margin: 0 0 6px;
    color: #666;
    font-size: 0.95rem;
}

.instagram-subtitle-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #005ab0;
    font-weight: 600;
}

.instagram-subtitle-link::after {
    content: "→";
    font-size: 0.95em;
    transition: transform 0.2s ease;
}

.instagram-subtitle-link:hover {
    text-decoration: underline;
}

.instagram-subtitle-link:hover::after {
    transform: translateX(2px);
}

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-content: stretch;
    gap: 14px;
    margin: 8px 0 12px;
    flex: 1;
}

.instagram-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #edf0f4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instagram-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.instagram-card-media {
    display: block;
    overflow: hidden;
}

.instagram-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.instagram-card-placeholder {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #c4c9d4;
    font-size: 32px;
}

.instagram-card:hover img {
    transform: scale(1.03);
}

.instagram-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.instagram-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.instagram-card-caption {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.instagram-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #005ab0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    align-self: center;
    width: 100%;
    max-width: 150px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f1f5ff;
    border: 1px solid #d7e3ff;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: auto;
    line-height: 1.2;
    white-space: normal;
    box-sizing: border-box;
}

.instagram-card-link:hover {
    background: #e4eeff;
    transform: translateY(-1px);
}


.instagram-placeholder,
.instagram-error {
    grid-column: 1 / -1;
    background: #f6f7f9;
    border-radius: 8px;
    padding: 12px;
    color: #666;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .instagram-feed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .instagram-feed {
        grid-template-columns: 1fr;
    }

    .instagram-card img {
        height: 190px;
    }

    .instagram-card-placeholder {
        height: 190px;
    }
}

@media (max-width: 992px) {
    .map-contact-container {
        grid-template-columns: 1fr;
    }

    #map {
        height: 360px;
        min-height: 360px;
    }

    .contact-info-box,
    .instagram-widget {
        height: auto;
        min-height: 0;
    }
}
