body {
  font-family: Arial, sans-serif;
  text-align: left;
  padding-bottom: 100px;
  color: #333;

}
a{
  text-decoration: none;
  color: #333;
}
.header-bar {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #e0e0e0;
position: fixed;           
top: -2px;
right: 4px;             
padding: 5px;    
text-decoration: none;
color: #333;
width: 100%;
background: #fff;
height: 30px;
z-index: 1000; 
      
}

.logo-wrapper {
position: absolute;
top: 10%;
left: 55%;
transform: translate(-50%, -47%);

}

.logo {
width: 220px; /* Fixed width */
height: auto;
object-fit: contain;
display: block; /* Removes default inline spacing */
transition: opacity 0.3s ease; /* Smooth transition for logo fading */
}

.profile-icon img {
height: 30px;
width: 30px;
border-radius: 50%;
object-fit: cover;
}

.back-btn {
text-decoration: none;
color: #333;
padding: 8px 12px;
font-size: 20px;
z-index: 1;
transform: translate(20%);
}




.product-info h1 {
  margin-bottom: 10px;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 300px;
  margin: 30px auto;
  overflow: hidden;
  transform: translateY(-10%);
  display: flex;
  justify-content: center; /* Centers child horizontally */
  align-items: center;     /* Centers child vertically (optional) */
}

.slider-images {
  width: 90%;
  height: 100%;
  display: flex;
margin-top: 70px;
  justify-content: center; /* Ensure images inside are centered */
  align-items: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  background-color: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}



#prevBtn {
  left: 5px;
}

#nextBtn {
  right: 5px;
}

.image-counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 14px;
}
.seller-info {
  display: flex;
  align-items: center;
  margin: 20px 0;
  padding: 10px 15px;
  background-color: #fce8d1; /* Light, soft background */
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.seller-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  gap: 12px;
  transition: background-color 0.3s ease;
}


.seller-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}

.seller-contact {
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(
    45deg, 
    #f9d71c, 
    #d4af37, 
    #b8860b, 
    #ffec8b, 
    #d4af37, 
    #f9d71c
  );
  background-size: 200% 200%; /* Make gradient bigger to animate */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 1px rgba(184, 134, 11, 0.8);
  
  animation: gold-wave 3s linear infinite;
}

@keyframes gold-wave {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

   
.product-header {
  line-height: 1; /* Optional: tighten vertical spacing */

}

.product-title {
  font-size: 1.4em;
  font-weight: 550;
  color: #333;
  margin: 0; /* Remove default margin */
}

.product-price {
  font-size: 1.3em;
  font-weight: 500;
  color: #333;
}

  /* Updated styles for the info toggle (Description/Details) */
  .info-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    font-size: 18px;
    margin: 10px 0;
    border-radius: 8px;
}

.arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

/* Hover effect for arrow to indicate it's clickable */
.info-toggle:hover .arrow {
    transform: translateX(5px);
}

/* Overlay Styling */
.overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dimmed background */
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

/* Centering the content inside the overlay */
.overlay-content {
    position: relative;
    background-color: white;
    width: 80%;
    max-width: 800px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Close button styling */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    padding: 5px;
}



/* Styling for the title and content inside overlay */
.overlay h2 {
    margin-top: 0;
    font-size: 24px;
    font-weight: bold;
}

.overlay p, .overlay ul {
    font-size: 18px;
    margin-top: 10px;
}

/* Spacing and style for list items (Product Details) */
.overlay ul {
    list-style: none;
    padding-left: 20px;
}

.overlay ul li {
    margin-bottom: 8px;
}
.bottom-fixed-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  z-index: 10000;
}

.message-btn {
  background: none;
  border: none;
  padding: 0;
  margin-right: auto; /* push rest of content to the right */
}

.message-btn img {
  width: 30px;
  height: 30px;
}

.action-buttons {
  flex: 1;
  display: flex;
  justify-content: center; /* center content in its space */
}

.cart-btn {
  padding: 10px;
  font-size: 18px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 0;
  width: 300px;
  background: linear-gradient(
    45deg,
    #ffd700 0%,
    #ffec6d 25%,
    #f5d742 50%,
    #d4af37 75%,
    #b8860b 100%
  );
  border: 2px solid #b8860b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 2px 5px rgba(0, 0, 0, 0.4);
  font-weight: bold;
  transition: background 0.3s ease;
  color: #fff;
  border-top-right-radius: 60px;
  border-bottom-right-radius: 6px;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 60px;
}



.more-from-seller .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.more-from-seller .title {
  font-weight: bold;
  font-size: 16px;
  color: #d4af37;
  margin-top: 10px;
}

.more-from-seller {
  font-size: 14px;
  color: #d4af37; /* dark goldenrod */
  text-decoration: none;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(184, 134, 11, 0.7);
}

.see-all {
  font-size: 14px;
  color: #d4af37; /* classic gold */
  text-decoration: underline;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(212, 175, 55, 0.6);
}


.more-from-seller .product-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.more-from-seller .thumbnail {
  display: inline-block;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.more-from-seller .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
    /* Suggested Items Section */
    .suggested-items-wrapper {
      margin-top: 10px;
      padding: 10px;
      background-color: #fff;
  }
  
  .suggested-items-title {
      text-align: left;
      font-size: 1.3em;
      margin-bottom: 20px;
  }
  
  /* Slider Container */
  .suggested-slider {
      overflow: hidden;
      position: relative;
  }
  
 /* Thumbnails Row */
.suggested-thumbnails {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: grab;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.suggested-thumbnails::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.suggested-thumbnails:active {
    cursor: grabbing;
}

/* Thumbnail Card */
.suggested-thumbnail {
    flex: 0 0 auto;
    width: 200px;
    height: 250px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

/* Product Image */
.suggested-thumbnail img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
}

/* Info Section */
.suggested-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content at top */
    gap: 4px; /* Space between title, location, price */
}

/* Remove default margins on paragraphs inside info */
.suggested-info > p {
    margin: 0;
    line-height: 1.2;
}

/* Title & Price */
.suggested-title {
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.suggested-price {
    font-size: 1.2em;
    font-weight: 500;
    color: #333;
    text-align: left;
}

 .all-products-wrapper {
    padding: 1rem;
    margin-top: 0rem;
}

.all-products-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.all-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* responsive columns */
    gap: 1rem;
}

.product-card img {
    width: 100%;
    height: 200px;              /* reduced height */
    object-fit: cover;          /* maintain aspect ratio, crop as needed */
background-color: #333;
  border-radius: 10px;
}

.product-card-info {
    padding: 0.25rem 0;  /* reduced vertical padding */
    display: flex;
    flex-direction: column;
    gap: 4px;  /* smaller gap between title, location, price */
}
.product-card-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;  /* remove default margins */
    overflow: hidden;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;       /* limit to 2 lines */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    white-space: normal;
}


.product-location {
    display: inline-block;
    background-color: #ffe300; /* AliExpress-style yellow */
    color: #111;
    font-size: 15px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    margin-top: 0; /* removed top margin */
    max-width: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark-mode .product-location {
    background-color: #ffb700 !important; /* Stronger yellow */
    color: #111 !important; /* Ensure black text */
    box-shadow: 0 1px 5px rgba(255, 255, 255, 0.1) !important;
}

.product-card-price {
    font-weight: 200;
    color: #000;
    font-size: 1.2rem;
    margin: 0; /* remove default margins */
}

body.dark-mode {
  background-color: #000;
  color: #eee;
}

body.dark-mode a {
  color: #66aaff;
}

body.dark-mode .header-bar {
  background-color: #000;
  border-bottom: 1px solid #222;
  color: #eee;
}

body.dark-mode .back-btn {
  color: #eee;
}

body.dark-mode .logo-wrapper img {
  filter: brightness(0.8);
}

body.dark-mode .seller-info {
  background-color: #000;
  box-shadow: none;
  color: #eee;
}

body.dark-mode .seller-link {
  color: #66aaff;
}

body.dark-mode .seller-contact {
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(
    45deg,
    #fff176,  /* lighter yellow */
    #ffeb3b,  /* bright yellow */
    #fdd835,  /* gold yellow */
    #fffde7,  /* very light gold */
    #ffeb3b,
    #fff176
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 2px rgba(255, 235, 59, 0.6); /* lighter and softer shadow */
  
  animation: gold-wave 3s linear infinite;
}

@keyframes gold-wave {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body.dark-mode .product-title,
body.dark-mode .product-price {
  color: #fff;
}

body.dark-mode .info-toggle {
  border-bottom: 1px solid #222;
  color: #eee;
  background-color: #000;

}

body.dark-mode .arrow {
  color: #ccc;
}

body.dark-mode .overlay {
  background: rgba(0, 0, 0, 0.9);
}

body.dark-mode .overlay-content {
  background-color: #000;
  color: #eee;
  box-shadow: 0 0 10px 4px rgba(255, 255, 255, 0.3); /* glow all around */
}


body.dark-mode .close-btn {
  color: #eee;
  background-color: rgba(50, 50, 50, 0.8);
}

body.dark-mode .bottom-fixed-bar {
  background-color: #000;
  box-shadow: none;
  color: #eee;
}

body.dark-mode .cart-btn {
  background: linear-gradient(
    45deg,
    #ffd700 0%,
    #ffec6d 25%,
    #f5d742 50%,
    #d4af37 75%,
    #b8860b 100%
  );
  border: 2px solid #b8860b;
  color: #000;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 2px 5px rgba(0, 0, 0, 0.4);
  font-weight: bold;
  transition: background 0.3s ease;
}



body.dark-mode .more-from-seller .title,
body.dark-mode .see-all {
  color: #e6c96b; /* lighter warm gold */
  text-shadow: 0 1px 3px rgba(230, 201, 107, 0.7);
}

body.dark-mode .more-from-seller .thumbnail {
  border: 1px solid #e1bb3b; /* brighter gold border */
  background-color: #2e2500; /* warmer dark gold, lighter than before */
}

body.dark-mode .suggested-items-wrapper {
  background-color: #000;
  color: #eee;
}

body.dark-mode .suggested-title,
body.dark-mode .suggested-price{
  color: #eee;
}

body.dark-mode .suggested-thumbnail {
  background-color: #000;
  color: #eee;
}

body.dark-mode .suggested-thumbnail img {
  filter: brightness(0.9);
}

body.dark-mode .all-products-wrapper {
  background-color: #000;
  color: #eee;
}

body.dark-mode .product-card {
  background-color: #000;
  color: #eee;
  border-radius: 20px;
}

body.dark-mode .product-card img {
  filter: brightness(0.9);
}

body.dark-mode .product-card-title,
body.dark-mode .product-card-price {
  color: #eee;
}

/* Scrollbar for dark mode */
body.dark-mode ::-webkit-scrollbar {
  background: #000;
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

/* Slider buttons */
body.dark-mode .slider-btn {
  background-color: rgba(255 255 255 / 0.2);
  color: #eee;
}

body.dark-mode .slider-btn:hover {
  background-color: rgba(255 255 255 / 0.4);
  color: #fff;
}

body.dark-mode .image-counter {
  background-color: rgba(255 255 255 / 0.3);
  color: #111;
}

  /* Responsive Design */
  @media (max-width: 768px) {
      .suggested-thumbnail {
          width: 150px;
          height: 220px;
      }
  
      .suggested-thumbnail img {
          height: 120px;
      }
  
      .suggested-title {
          font-size: 1.2em;
      }
  
      .suggested-price {
          font-size: 1.2em;
      }
  .all-products-grid {
        grid-template-columns: repeat(2, 1fr); /* exactly 2 columns */
    }
  }
  