
  /* Remove default margin/padding from html and body */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Remove margin from container or set container margin-top to 0 */
.container {
    max-width: 1000px;
    margin: 0 auto 80px; /* Changed margin-top from 20px to 0 */
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
}

/* Product Image container fills width and no margin */
.product-image-container {
    position: relative;
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
    margin: 0; /* ensure no margin */
    padding: 0; /* ensure no padding */
}

.product-image-container img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0; /* Remove border radius so it flushes with edges */
}

.back-button {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;              /* smaller circle */
  height: 36px;
  background-color: rgba(0, 0, 0, 0.6);  /* 60% black */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  z-index: 10;
  transition: background-color 0.2s ease;
}

.back-button:hover {
  background-color: rgba(0, 0, 0, 0.8);  /* darker on hover */
}

.back-button i {
  color: #fff;
  font-size: 16px;          /* smaller icon */
}

  /* Product Details */
  .product-details {
    margin-top: 20px;
  }
  .product-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
  }
  .product-description {
    font-size: 16px;
    margin-bottom: 15px;
    color: #555;
  }
  .product-price {
    font-size: 22px;
    font-weight: bold;
    color: #ec2207;
    margin-bottom: 20px;
  }
.product-gallery {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
}

.product-gallery img {
  height: 80px;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.product-gallery img:hover {
  transform: scale(1.1);
  border: 2px solid #ec2207;
}

.product-image-container img.main-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.chat-now-button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px; /* smaller radius */
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.chat-now-button:hover {
  background-color: #218838;
}

.chat-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}
/* Keep verified icon styles */
.verified-icon {
  width: 12px;
  height: 12px;
}
/* Seller box container */
.seller-box {
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 10px 16px;
  border-radius: 6px; /* smaller radius */
  max-width: 450px;
  margin: 20px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}

.seller-profile-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
}

.seller-info {
  flex-grow: 1;
}

.seller-name {
  font-size: 16px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
  .seller-rating {
    font-size: 16px;
    color: #f5a623;
    margin-bottom: 8px;
  }

  .rating-value {
    font-weight: 600;
    color: #333;
    margin-left: 6px;
    font-size: 14px;
  }

  .seller-description {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
  }

  @media (max-width: 480px) {
    .seller-box {
      flex-direction: column;
      align-items: flex-start;
      max-width: 100%;
    }

    .seller-profile-img {
      margin-bottom: 12px;
      margin-right: 0;
    }
  }

  /* Sticky Checkout Bar */
  .sticky-bottom {
    position: sticky;
    bottom: 0;
    background-color: #ffffff;
    z-index: 10;
    padding: 10px 15px;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    min-height: 50px;
    gap: 15px;
  }

  .price-info {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    font-size: 17px;
  }

  .label-text {
    font-weight: normal;
    color: #333333;
    margin-right: 5px;
  }

  .value-text {
    font-weight: bold;
    color: #ec2207;
  }

  .price-info div {
    margin-bottom: 4px;
  }

  .button-container {
    flex-shrink: 0;
  }

  .sticky-btn {
    background-color: #ec2207;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px 24px;
    font-size: 18px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.1s ease;
  }

  .sticky-btn:hover {
    background-color: #c51a00;
  }

  .sticky-btn:active {
    transform: scale(0.95);
  }
.modal-overlay {
  display: none; /* keep hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 30px 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  position: relative;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
}

.close-button:hover {
  color: #333;
}

.modal-content h2 {
  margin-top: 0;
  color: #ec2207;
  font-size: 20px;
  margin-bottom: 15px;
}

.modal-content p {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
}

.modal-ok-button {
  background-color: #ec2207;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-ok-button:hover {
  background-color: #c51a00;
}
