.listing-container {
    min-height: 100vh;
    padding-left: 10px;
    padding-right: 10px;
    position: relative;
}
.breadcrumb-sec {
    font-size: 12px;
}
.breadcrumb-sec a {
    color: inherit !important;
}
.shadow-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 14px;
    color: white !important;
    background-color: #0a714e;
    border: 2px solid black;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 4px 4px 0;
}
.shadow-btn::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 5px;
    width: 100%;
    height: calc(100% + 1px);
    border-radius: 10px;
    border: 2px solid black;
    z-index: -1;
    background: #000;
}
.shadow-btn svg {
    width: 16px;
    height: 16px;
}
.paper-note {
  position: relative;
  background: #f9f8e6; /* light paper color */
  padding: 20px;
  width: 250px;
  border: 1px solid #ddd;
  box-shadow: 2px 4px 6px rgba(0,0,0,0.2);
  /* transform: rotate(3deg); */
  margin: 0 auto;
  text-align: center;
}
.contact-btn p {
    margin: 0;
    width: fit-content;
    text-align: left;
}
.contact-btn p + p {
    border-top: 1px dashed #000;
}

/* folded corner */


/* tape effect */
.paper-note::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 80px;
  height: 25px;
  background: rgba(255, 255, 200, 0.7); /* semi-transparent tape */
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border-radius: 2px;
}
.listing-title {
    font-size: 30px;
    padding: 0 10px;
    position: relative;
    width: fit-content;
}
.listing-title:before {
    content: "";
    width:4px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #004aad;
    border-radius: 2px;
}
.listing-title:after {
    content: "";
    width:4px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #004aad;
    border-radius: 2px;
}
.social-link a svg {
    width: 25px;
    height: 25px;
}
.bordered-sec {
    border: 8px solid #004aad;
    border-radius: 30px;
    padding: 40px 20px 20px 20px;
    max-width: 100%;
    font-size: 18px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: end;
    position: relative;
}
.bordered-content {
    flex: 1;
    white-space: pre-line;
    overflow: hidden;
    text-overflow: ellipsis;
    /* display: -webkit-box; */
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
    line-height: 1.4;
}
.bordered-sec-title {
    font-size: 25px;
}
.bordered-sec .open-btn{
    padding: 0;
    width: fit-content;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 8px;
    right: 10px;
}
.close-custom-modal {
    padding: 0;
    width: fit-content;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 1;
}
.close-custom-modal svg {
    rotate: 45deg;
}
.about-sec {
    height: 380px;
    width: 100%;
    min-width: 350px;
}
.about-sec .bordered-content  {
    -webkit-line-clamp: 10;
}
.products-sec .bordered-content {
    -webkit-line-clamp: 7;
}
.products-sec {
    height: 300px;
    width: 100%;
    min-width: 350px;
}
.media-sec {
    height: 100px;
    width: 100%;
    min-width: 350px;
}
.certification-sec {
    height: 100px;
    width: 100%;
    min-width: 350px;
}
.listing-main-content {
        gap: 50px;
}

.adjecencies-sec span {
    background-color: #ccdbef;
    color: #000;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    margin: 2px;
    display: inline-block;
}
.adjecencies-sec {
    max-height: 105px;
    overflow-y: auto;
}
.main-content-sec {
    display: flex;
    align-items: flex-end;
    gap: 50px;
    flex-wrap: wrap;
}
.main-content-sec > div {
    flex: 1;
}
.listing-logo {
    display: flex;
    align-items: center;
}
.listing-logo img {
    max-height: 100px;
    max-width: 150px;
}
.listing-links-logo:has(.listing-logo img[src]:not([src=""])) .listing-links {
    margin-left: 20px;
}
.listing-links-logo:has(.listing-logo img[src]:not([src=""])) .listing-logo {
    padding-right: 20px;
    border-right: 1px dashed #ccc;
}
.product-img-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  /* justify-content: center; */
}
.product-video-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  /* justify-content: center; */
}
.product-video-row .product-video {
    width: 380px;
    height: 210px;
    /* min-width: 380px; */
    max-width: 100%;
}
.product-video-row .product-video iframe {
        width: 100%;
    height: 100%;
}
.company-link a {
    color: inherit !important;
}
.social-link a {
    font-size: 20px;
    color: inherit !important;
    line-height: 1;
}
.social-link {
    display: flex;
    gap: 10px;
}

.product-img,
.catalogue-card {
  flex: 0 1 calc(25% - 15px);
  min-width: 150px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  aspect-ratio: 1 / 1;
}

/* Product Image */
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.product-img > a {
  display: flex;
  align-items: center;
}
.product-img > a img {
  height: auto
}
.product-img .product-desc {
    margin: 5px 0;
    overflow: auto;
    text-overflow: ellipsis;
    display: -webkit-box;
    /* -webkit-line-clamp: 4; */
    -webkit-box-orient: vertical;
    /* max-height: 80px; */
    font-size: 12px;
}
.product-img .product-desc::-webkit-scrollbar {
  width: 6px;              /* slim scrollbar */
}
.product-img .product-desc::-webkit-scrollbar-track {
  background: transparent; /* no background */
}
.product-img .product-desc::-webkit-scrollbar-thumb {
  background: #999;        /* grey thumb */
  border-radius: 4px;
}
.product-img .product-desc::-webkit-scrollbar-thumb:hover {
  background: #666;        /* darker on hover */
}
/* Overlay Content (Hidden by Default) */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
}

.product-img:hover .overlay {
  opacity: 1;
}

/* Button Styling */
.overlay .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background: #0056d2;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.3s;
}

.overlay .btn:hover {
  background: #003f9c;
}

.product-img img[src=""] + .product-title + .overlay,
.product-img img:not([src]) + .product-title + .overlay {
  position: relative;
  opacity: 1;
  height: auto;
  background: white;
  color: #004aad;
  border: 1px solid #004aad;
}
.product-img img[src=""] {
    display: none;
}
/* Catalogue Card */
.catalogue-card {
  border: 2px solid #0056d2;
  background: #fff;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  transition: all 0.3s ease;
}
.catalogue-card:hover {
  background: #f1f7ff;
  transform: translateY(-3px);
}
.catalogue-card img {
  width: 50px;
  margin-bottom: 10px;
}
.catalogue-card p {
  margin: 0;
  font-weight: bold;
  color: #0056d2;
  font-size: 14px;
}

.catalogue-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.catalogue-description {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  max-height: 120px;         /* sets maximum height */
  overflow-y: auto;          /* enables scrollbar */
  padding-right: 10px;       /* spacing before scrollbar */
}
.catalogue-description.no-images {
    max-height: none;
}
.catalogue-description:empty {
  display: none;
}
/* WebKit browsers */
.catalogue-description::-webkit-scrollbar {
  width: 6px;              /* slim scrollbar */
}
.catalogue-description::-webkit-scrollbar-track {
  background: transparent; /* no background */
}
.catalogue-description::-webkit-scrollbar-thumb {
  background: #999;        /* grey thumb */
  border-radius: 4px;
}
.catalogue-description::-webkit-scrollbar-thumb:hover {
  background: #666;        /* darker on hover */
}
.catalogue-description::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

/* Firefox */
.catalogue-description {
  scrollbar-width: thin;           /* slim scrollbar */
  scrollbar-color: #999 transparent; /* grey thumb, transparent bg */
}

.catalogue-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  /* border: 2px solid #0056d2; */
  padding: 10px 15px;
  border-radius: 10px;
  background: #fff;
  transition: all 0.3s ease;
}

.catalogue-btn:hover {
  /* background: #f1f7ff; */
  /* transform: translateY(-2px); */
}

.catalogue-btn img {
  width: 40px;
  margin-bottom: 5px;
}

.catalogue-btn span {
  font-weight: bold;
  font-size: 14px;
  color: #0056d2;
}

.product-title {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    /* font-weight: bold; */
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 1;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* If you want title to disappear on hover */
.product-img:hover .product-title {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.product-img img[src=""] + .product-title {
    display: none;
}
.mobile-sec {
  display: none;
}
.main-title-row {
  padding-right:320px
}
.buyer-vendor-sec {
  flex: 1;
  padding: 6px;
}
.buyer-vendor-title {
  font-size: 16px;
}
.buyer-sec {
  /* border: 8px solid #c2cdff2e; */
  /* background: #f9f8f8; */
}
.vendor-sec {
  /* border: 8px solid #e4ffc22e; */
  /* background: #fbfff6; */
}
.buyer-vendor-desc {
  font-size: 10px;
  text-align: center;
  color: #000;
  margin-top: 3px;
}
.buyer-vendor-btn {
    background: #0a714e;
    border-radius: 8px;
    color: #fff !important;
    display: flex;
    align-items: center;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgb(24 24 27);
    border: 2px solid #fff;
    width: fit-content;
    margin: 0 auto;
    gap: 3px;
    padding: 2px 5px;
    margin-top: 3px;
    text-align: center;
    margin: 0 auto;
    transition: transform 0.3s ease-in-out;
}
.buyer-vendor-btn:hover {
    transform: scale(1.05);
}
.buyer-vendor-btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 fit-content;
  fill: #fff;
}
.buyer-vendor-btn span {
  /* border: 2px solid #fff; */
  display: block;
  font-size: 10px;
}
@media screen and (max-width:980px) {
  .desktop-sec {
    display: none;
  }
  .mobile-sec {
    display: block;
  }
  .main-title-row {
    padding-right:0;
    margin-top: 10px !important;
  }
  .listing-title {
    font-size: 22px;
  }
  .bordered-sec {
    font-size: 16px;
  }
  .bordered-sec-title {
    font-size: 20px;
  }
  .breadcrumb-sec {
    position: sticky;
    top: 58px;
    background: #fff;
    z-index: 99;
  }
  /* .buyer-vendor-sec {
    display: none;
  } */
  .buyer-vendor-btn {
    width: fit-content;
    margin: 0 auto;
  }
  .paper-note {
    display: none
  }
  .listing-links-logo {
    margin-bottom: 20px !important;
    margin-top: 20px;
  }
  .products-sec , .about-sec , .media-sec , .certification-sec {
    height: fit-content;
    max-height: 380px;
  }
}
@media screen and (max-width:784px) {
  .certification-sec {
    margin-top: 0 !important;
  }
  .media-sec {
    margin-top: 0 !important;
  }
  /* .media-sec + .certification-sec {
    margin-top: 50px !important;
  } */
}
@media screen and (max-width:580px) {
  .product-img {
    flex: 0 1 calc(50% - 8px) !important;
    min-width: 123px;
  }
  
}
@media screen and (max-width:620px) {
  .catalogue-top-row {
    flex-direction: column;
  }

}
