@import url('https://fonts.googleapis.com/css2?family=Zain:ital,wght@0,200;0,300;0,400;0,700;0,800;0,900;1,300;1,400&display=swap');



.product-container{
    background-image: url(../images/svg\ \(13\).png);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position-y: 4.5rem;
}


/* Main Container */
.product-container {
    max-width: 6000000px;
    margin: 0rem auto;
    padding: 7rem 1rem;
}

/* Product Display */
.product-display {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    top: 3rem;
    position: relative;
}

.product-title{
    color: rgb(255, 255, 255);
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    font-size: 35px;
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

.product-gallery {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Adds space between main image and thumbnails */
    
}
.main-image-container {
    margin-bottom: 0;
    display: block;
}


.main-image-container {
    position: relative;
    width: 100%;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image-container:hover .main-image {
    transform: scale(1.02);
}

/* Image Count Badge */
.image-count-badge {
    position: absolute;
    top: 16px;
    right: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.image-count-badge svg {
    width: 16px;
    height: 16px;
}

/* Thumbnail Slider */
.thumbnail-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thumbnails-wrapper {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnails-wrapper::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: #f5f5f5;
}

.thumbnail:hover {
    border-color: #ddd;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #00a49f;
    box-shadow: 0 0 0 1px #00a49f;
}

/* Navigation Buttons */
.nav-button {
    background-image:linear-gradient(rgb(255, 162, 0),rgb(255, 140, 0));
    border: 0;
    font-weight: 600;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    color: white;
    margin: 0px 31px;
}

#shareicon{
    color: rgb(255, 255, 255);
    transform: rotateY(-180deg);
}

polyline{
    color: white;
}

.nav-button:active {
    transform: scale(0.95);
}

.nav-button svg {
    color: #333;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightboxImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 40px;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #333;
}

.lightbox-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.image-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .nav-button {
        width: 32px;
        height: 32px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}


.main-image {
    width: 100%;
    height: 300px;
    max-height: 500px;
    object-fit: contain;
    background:linear-gradient(rgba(250, 206, 125, 0.466),rgb(237, 237, 237));
    border-radius: 8px;
    
}

.thumbnail-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    overflow: hidden;
    width: 100%;
}


.slider-control {
    background: red;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    outline: none;
}

.thumbnail-container {
    width: 100%;
    justify-content: center; /* Center thumbnails if they don't fill the width */
    padding: 10px 0;
    gap: 10px; /* Space between thumbnails */
}
.thumbnails-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 400px; /* or whatever suits your design */
}

.thumbnail {
    flex: 0 0 auto; /* Prevent shrinking */
    width: 80px;
    height: 80px;
    object-fit: fill;
    border: 2px solid transparent;
    transition: border-color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}


.thumbnail:last-child {
    margin-right: 0;
}

.thumbnail.active {
    border-color: #000102; /* Highlight active thumbnail */
    opacity: 1;
}
#thumbnailbutton{
    background-image:linear-gradient(rgb(255, 162, 0),rgb(255, 140, 0));
    border: 0;
    font-weight: 600;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    color: white;
    margin: 0px 31px;
    
}
.thumbnails-wrapper::-webkit-scrollbar {
    display: none;
}

.thumbnails-wrapper {
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
}
/* Save Ad Button Styles */
.save-ad-container {
    margin: 15px 0;
}

.save-btn {
   background-image:linear-gradient(rgb(255, 162, 0),rgb(255, 140, 0));
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #f5f1f1;
}

.save-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.save-btn.saved {
    background-color: #e3f2fd;
    border-color: #bbdefb;
    color:linear-gradient(rgb(255, 162, 0),rgb(255, 140, 0));
}

.save-btn i {
    font-size: 16px;
}

.save-btn.saved i {
    color:rgb(248, 245, 242);
}

.dark .gmap_canvas {
    color: white;
    font-size: 14px;
}

.map1{
    position: relative;
    top: -0.5rem;
}
.gmap_canvas {
    font-size: 14px;
}
.share-wrapper {
   position: relative;
   display: inline-block;
 }
 .share-button {
   padding: 7px 16px;
   background-color:rgb(0, 90, 150);
   color: white;
   border: none;
   border-radius: 4px;
   cursor: pointer;
 }
 .share-box {
   position: absolute;
   top: 0;
   left: 110%;
   background-color: #f7f7f7;
   border: 1px solid #ccc;
   border-radius: 8px;
   padding: 10px;
   min-width: 200px;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
   display: none;
   z-index: 2;
}

    .share-box.visible {
      display: block;
    }

    .share-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: bold;
      margin-bottom: 8px;
    }

    .close-share {
      cursor: pointer;
      color: #ff0000;
      font-size: 16px;
      border: none;
      background: none;
    }

    .share-links a {
      display: block;
      margin-bottom: 6px;
      text-decoration: none;
      font-size: 18px;
      color: #333;
    }

    .share-links a:hover {
      text-decoration: underline;
    }

.fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.886);
    padding: 40px 20px;
    box-sizing: border-box;
}

.fullscreen-gallery {
    max-width: 900px;
    margin: auto;
    text-align: center;
    position: relative;
    top: 6rem;
}

.fullscreen-modal .main-image {
    max-width: 100%;
    max-height: 70vh;
    margin-bottom: 20px;
}

.fullscreen-modal .thumbnails-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    justify-content: center;
}

.fullscreen-modal .thumbnail {
    width: 80px;
    height: auto;
    cursor: pointer;
    border: 2px solid transparent;
}

.fullscreen-modal .thumbnail.active {
    border-color: #fff;
}

.fullscreen-modal .nav-button {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}
    .fullscreen-gallery #thumbnailbutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.fullscreen-modal .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.buttonline{
    display: flex;
    position: relative;
}

/* Product Details */
.product-details {
    flex: 1 1 400px;
    top: 0rem;
    position: relative;
}


.detail-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.dark .detail-item {
    color: white;
}

.detail-label {
    font-family: "Zain", sans-serif;
    color: #000000;
    font-size: 13px;

}
.detail-label:lang(si) {
    font-size: 16px; /* Adjust as needed */
    font-family: 'Iskoola Pota', 'Noto Sans Sinhala', sans-serif;
}
.detail-label {
  font-size: clamp(1.3rem, 22vw, 1rem);
}

.applicationurl {
    color: #000000;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 4px;
    transition: all 0.3s ease;
}


.detail-list {
    list-style: disc;
    margin: 0px 20px;
    padding: 0;
    display: grid;
    width: 45%;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 4 columns */
    gap: 0.5rem 0rem; /* row gap, column gap */
}

.detail-list li {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* responsive: 2 columns on tablets, 1 on small phones */
@media (max-width: 992px) {
    .detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
    .detail-list { grid-template-columns: 1fr; }
}


/* Messaging System Styles */
.messaging-container {
    margin: 0 10px;
    position: relative;
}

.message-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.message-btn:hover {
    background: #0056b3;
}

.message-btn.logged-in {
    background-image:linear-gradient(rgb(255, 162, 0),rgb(255, 140, 0));
}

.message-btn.logged-in:hover {
    background-image:linear-gradient(rgb(252, 174, 38),rgb(255, 140, 0));
}

.message-box {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    z-index: 1;
    top: 8.5rem;
    flex-direction: column;
    border: 1px solid #ddd;
}

.message-header {
    padding: 15px 15px;
    background: #007bff;
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-header h4 {
    margin: 0;
    padding: 15px 20px;
    font-size: 16px;
}

.close-message {
    background: rgb(255, 125, 60);
    border: none;
    color: rgb(255, 255, 255);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin: 0 10px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-conversation {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    max-height: 350px;
    border-bottom: 1px solid #eee;
}

.message-bubble {
    margin-bottom: 15px;
    max-width: 80%;
}

.message-bubble.sent {
    margin-left: auto;
    text-align: right;
}

.message-bubble.received {
    margin-right: auto;
}

.message-header {
    padding: 0;
    background: none;
    color: #1c1c1d;
    text-align: right;
    margin-bottom: 5px;
}

.message-bubble.sent .message-header {
    text-align:right;
    right: -100%;
    color: #000000da;
    display: block;
}

.message-header strong {
    font-size: 14px;
}

.message-time {
    font-size: 12px;
    color: #999;
    display: none;
    margin-left: 8px;
}

.message-content {
    background: #f1f1f1;
    padding: 10px 15px;
    border-radius: 18px;
    display: inline-block;
    word-wrap: break-word;
}

.message-bubble.sent .message-content {
    background: #007bff;
    color: white;
}

.message-bubble.received .message-content {
    background: #e9ecef;
    color: #333;
}

.message-input-container {
    padding: 15px;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.input-group textarea {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    resize: none;
    min-height: 14px;
    max-height: 40px;
    font-family: inherit;
    font-size: 14px;
}

.send-btn {
    background: #ffaa00;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.send-btn:hover:not(:disabled) {
    background: #da9202;
}

.send-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.loading-messages, .no-messages, .error-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.error-message {
    color: #dc3545;
}

/* Responsive design */
@media (max-width: 768px) {
    .message-box {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
}



.dark .applicationurl {
    color: white;
}
.other-item {
    top: -1rem;
    padding-bottom: 1rem;
    position: relative;
}


.other-label {
    font-weight: bold;
    display: inline-block;
    min-width: 150px;
}

.otherdetails{
    color: #000;
    font-size: 15px;
}

.dark .other-item, .dark .detail-label, .dark .similar-products-title{
    color: white;
}

.dark .lead{
    color: #000;
}

iframe{
    width: 40%;
}
.card{
    top: 4rem;
    position: relative;
}

.share-button{
     transform: rotateY(180deg);
     background-image:linear-gradient(rgb(255, 162, 0),rgb(255, 140, 0));
     border: 1px solid #ddd;
     border-radius: 4px;
     padding: 8px 15px;
}

.promotebtn{
    background-image:linear-gradient(rgb(255, 162, 0),rgb(255, 140, 0));
    text-decoration: none;
    padding: 12px 22px;
    color: white;
    border-radius: 8px;
    top: 1rem;
}

.promotebtn:hover {
    background-image:linear-gradient(rgb(252, 174, 38),rgb(255, 140, 0));
}

.similar-products-title{
    top: 9rem;
     font-family: "Kanit", sans-serif;
    font-weight: 300;
    position: relative;
}

.dark .similar-products-title a, .dark .detail-value a{
    color: #ffffff;
}
/* Similar Products */
.similar-products-container {
    margin: 3rem 0;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}
    /* Button to open form */
.open-button {
background-image:linear-gradient(rgb(255, 162, 0),rgb(255, 140, 0));
  color: white;
  padding: 9px 12px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  margin: 0px;
}

.open-button:hover {
    background-image:linear-gradient(rgb(252, 174, 38),rgb(255, 140, 0));
}


/* Popup form container */
.form-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  overflow: visible;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background-color: #fff;
  padding: 25px;
  border: 2px solid #ccc;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
.form-popup h2 {
  text-align: center;
  margin-bottom: 20px;
}
.form-popup input,
.form-popup textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: visible;
  font-size: 14px;
  box-sizing: border-box;
}
.form-popup textarea {
  height: 100px;
  resize: vertical;
}
.form-popup .btn {
  width: 100%;
  font-size: 16px;
  padding: 8px 0px;
  margin: 12px 0px;
  border: none;
  border-radius: 6px;
  color: rgb(255, 255, 255);
  cursor: pointer;
  background-color: #ff8400;
}
.form-popup .send-btn {
background-image:linear-gradient(rgb(255, 162, 0),rgb(255, 140, 0));
  margin-bottom: 10px;
}
.form-popup .close-btn {
  background-color: #f80921;
}
.form-popup .btn:hover {
  opacity: 0.9;
}
.ad{
    width: 100%;
    position: relative;
    top: 6.5rem;
}
 .ad img{
    width: 80%;
    height: 300px;
    transform: translate(-50%);
    left: 50%;
    position: relative;
}

.jumbotron{
    background-color: #f0efef;
    box-shadow: 0px 0px 2px 0px rgb(160, 160, 160);
    position: relative;
    top: 3rem;
    padding: 12px 12px;
    width: 75%;
    left: 13%;
}

.lead{
    color: rgb(22, 22, 22);
    font-size: 17px;
}

.my-4{
    color: #000;
}

.display-4{
    font-size: 26px;
    font-weight: 400;
    color: rgb(255, 136, 0);
}
a{
    color: black;
    text-decoration: underline;
}
.profileimage {
    width: 35px;
    height: 35px;
    border: 0px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    border-radius: 50%;
    overflow: hidden;           /* Ensures image stays within the circle */
    background-size: cover;     /* If using as a background image */
    background-position: center;
}

.profileimage img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* Ensures the image covers the circle */
    display: block;
}

.mapouter{
    position: relative;
    top: -0.5rem;
}

/* Responsive Adjustments */
@media (min-width: 2400px) {
  
body{
    background-position-y: -10rem;
}

.main-image{
    object-fit: contain;
    height: 700px;
    max-height: 700px;
}


  }
  

@media (min-width: 2000px) {
    .detail-value {
      font-size:27px;
  }
 .detail-label:lang(si), .otherdetails  {
      font-size:28px;
  }
  .blockquote-footer{
      font-size:140%;
  }
  
.save-btn, .save-btn i {
    font-size: 22px;
}

.share-button {
  padding: 12px 22px;
  position: relative;
  top: -0.2rem;
}
.share-box {
  min-width: 300px;
}
.share-header {
  font-size: 20px;
}
.close-share {
  font-size:22px;
}
.share-links a {
  font-size: 21px;
}
.share-links a:hover {
  text-decoration: underline;
}

.open-button {
  font-size: 22px;
}
/* Popup form container */
.form-popup {
  width: 90%;
  max-width: 800px;
}
.form-popup h2 {
  font-size: 28px;
}
.form-popup input,
.form-popup textarea {
  font-size: 18px;
}
.form-popup textarea {
  height: 100px;
  resize: vertical;
}

.ad{
    width: 100%;
    position: relative;
    top: 6.5rem;
}
 .ad img{
    width: 80%;
    height: 600px;
    transform: translate(-50%);
    left: 50%;
    position: relative;
}

.jumbotron{
    background-color: #f0efef;
    box-shadow: 0px 0px 2px 0px rgb(160, 160, 160);
    position: relative;
    top: 3rem;
    padding: 22px 12px;
    width: 75%;
    left: 13%;
}

.lead{
    color: rgb(22, 22, 22);
    font-size: 24px;
}

.my-4{
    color: #000;
    font-size: 20px;
}

.display-4{
    font-size: 35px;
    font-weight: 400;
    color: rgb(255, 136, 0);
}
.promotebtn{
    font-size: 25px;
}


  }

@media (min-width: 1300px) {
  /* Main Container */
.product-container {
    max-width: 6000000px;
    margin: auto auto;
}
  .product-display{
      top: 1rem;
  }
.main-image {
    height: auto;
    max-height: 500px;
}

.thumbnail {
    width: auto;
    height: auto;
    max-width: 100px;
    max-height: 100px;
}


.detail-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    font-size:110%;
    border-bottom: 1px solid #eee;
}

.detail-label {
    font-weight: bold;
    min-width: 150px;
}

.blockquote-footer{
    font-size:90%;
}

.card{
   height: 16rem;
}

.similar-products-title{
    top: 9rem;
    position: relative;
}
#suggestedtopic{
    top: 8rem;
    position: relative;
}

/* Similar Products */
.similar-products-container {
    margin: 3rem 0;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}
}



@media (min-width: 2010px) {
.main-image {
    width: 100%;
    height: auto;
    max-height: 720px;
}

.detail-item {
    padding: 22px 0px;
    position: relative;
}
.detail-label {
    min-width: 150px;
    font-size: 23px;
}
    .fullscreen-gallery #thumbnailbutton {
    height: 45px;
    width: 45px;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.profileimage {
    width: 45px;
    height: 45px;
}

}


  @media (max-width: 1530px) {
     .product-display{
      top: -1rem;
  }
   .detail-item {
    padding: 3px 0px;
    position: relative;
}
.detail-label {
    min-width: 150px;
    font-size: 16px;
}
.detail-value{
    font-size: 16px;
}
    .fullscreen-gallery #thumbnailbutton {
    height: 45px;
    width: 45px;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
}

  @media (max-width: 1300px) {
   .detail-item {
    padding: 2px 0px;
    position: relative;
}
.detail-label {
       font-weight: bold;
 min-width: 150px;
}
.detail-value{
    font-size: 15px;
}
.otherdetails{
    font-size: 14px;
}
.detail-label:lang(si) {
    font-size: 13px; /* Adjust as needed */
    font-family: 'Iskoola Pota', 'Noto Sans Sinhala', sans-serif;
}

.open-button {
  padding: 5px 9px;
  font-size: 12px;
}
.save-btn {
    padding:8px 11px;
    font-size: 12px;
}
.share-button {
  padding: 6px 13px;
  font-size: 12px;
  position: relative;
  top: -0.2rem;
}

}

  @media (max-width: 1024px) {
    .thumbnails-wrapper {
        width: calc(80px * 3 + 10px * 2); /* Show 3 thumbnails */
    }

}

  @media (max-width: 1000px) { 

    iframe{
        width: 100%;
    }
    .promotebtn{
        top: 0rem;
        position: relative;
    }
    .jumbotron{
    background-color: #f0efef;
    box-shadow: 0px 0px 2px 0px rgb(160, 160, 160);
    position: relative;
    top: 3.6rem;
    padding: 12px 12px;
    width: 90%;
    left: 5%;
}
.ad{
    top: 4.rem;
}

}

  @media (max-width: 992px) {
   .product-container{
    background-position-y: 3.65rem;
  }
  
    .share-box {
      position: absolute;
      top: 0;
      left: 110%;
      background-color: #f7f7f7;
      border: 1px solid #ccc;
      border-radius: 8px;
      padding: 10px;
      min-width: 200px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
      display: none;
      z-index: 1;
    }


}

 
  @media (max-width: 947.5px) {
   .main-image {
   top: 0;
   position: relative;
   }
   
   .thumbnail-slider {
      margin-top: 0rem;
  }
   .product-gallery{
       position: relative;
       top: -1.7rem;
   }
   .product-details{
       position: relative;
       top: -2.5rem;
   }
    .other-item {
        top:-5.6rem;
        position: relative;
       }
    .card-body{
     top:-7.8rem;
     position: relative;
    }

    #subdetailheader{
        font-size: 20px;
    }
    .detail-label {
    font-size: 14px;
    }
    .detail-value{
        font-size: 14px;
    }
    .otherdetails{
    font-size: 13px;
}
    .promotebtn{
        top: -5rem;
        position: relative;
    }
    .jumbotron{
          top: -1rem;
        position: relative;
    }
     .ad img{
    width: 100%;
    }
    .ad{
        top: 4rem;
    }
    .display-4{
     font-size: 21px;
    }
    .lead{
        font-size: 16px;
    }
    .map1{
      top: -8.5rem;
    }
}


@media (max-width: 768px) {
    .detail-label {
        min-width: 120px;
    }
    .thumbnails-wrapper {
        width: calc(80px * 2 + 10px * 1); /* Show 2 thumbnails */
    }
}



@media (max-width: 720px) {
    .product-title{
       font-size: 1.5rem;
    }
    #thumbnailbutton{
    height: 35px;
    width: 35px;
    border-radius: 50%;
    color: white;
    margin: 0px 31px;
    
}
.fullscreen-gallery #thumbnailbutton {
    height: 35px;
    width: 35px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
}
@media (max-width: 580px) {
   .product-display {
    top: -1rem;
    position: relative;
   }
    .product-title{
       top: -2.2rem;
    }
}
@media (max-width: 515px) {
.main-image-container {
    margin-bottom: 0;
}

    .detail-label:lang(si) {
    font-size: 13px; /* Adjust as needed */
}
   .product-display {
    top: -2.5rem;
}
.other-item{
       top: -7rem;
       
}
.card-body{
       top: -9.4rem;
       position: relative;
}
.map1{
    top: -10.5rem;
}
.promotebtn{
    top: -7rem;
}
.jumbotron{
    top: -2rem;
}
.ad{
    top: -0.7rem;
}
 .ad img{
    height: 200px;
}
.display-4{
 font-size: 18px;
}
.bottomfooter {
    top: 0rem;
}
}


@media (max-width: 480px) {

    .product-title{
        font-size: 1.3rem;
     }
     
     .main-image{
         height: 270px;
     }
     

    .thumbnail {
        width: 50px;
        height: 50px;
    }
    .thumbnails-wrapper {
        width: calc(80px * 1 + 10px * 0); /* Show 1 thumbnail */
    }
    .detail-value, .detail-label{
    font-size: 14px;

}

.promotebtn{
    top: -8rem;
}
.jumbotron{
    top: -5rem;
}
.ad{
    top: -3.7rem;
}
.otherdetails{
    font-size: 12px;
}
}


@media (max-width: 420px) {
    .product-title{
        font-size: 1.1rem;
    }
    .main-image{
         height: 250px;
     }


.bottomfooter {
    top: -4rem;
}
}

@media (max-width: 400px) {

.lead{
    font-size: 14px;
}

}

@media (max-width: 390px) {
    .product-title{
        font-size: 1rem;
    }
}

@media (max-width: 360px) {

     .main-image{
         height: 230px;
     }

      .ad img{
        height: 150px;
    
    }
}

@media (max-width: 330px) {
  .main-image {
    transform: translate(-52.5%);
    left: 50%;
    position: relative;
  }
  .detail-label:lang(si) {
      font-size: 12px; /* Adjust as needed */
  }
   .detail-value {
      font-size: 13.5px; /* Adjust as needed */
  }


  .ad{
      top: -3.47rem;
  }
    .ad img{
      height: 120px;
  
  }

}