@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

a{
  text-decoration: none;
}

.show-products-location-info {
  position: relative;
  top: 20px;
  margin-left: 40px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: black;
  max-width: 95vw;
  overflow-wrap: break-word;
  white-space: nowrap;
}

.show-products-location-info a {
  text-decoration: none;
  color: black;
  font-size: 14px;
  margin-right: 4px;
  display: inline-block;
}

.show-products-location-info span {
  margin: 0 5px;
  color: #666;
}

#main-pages {
  color: rgb(100, 100, 100);
  font-weight: 600;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.product-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  padding: 100px 50px 50px 50px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.product-image {
  flex: 1;
  margin-top: 0;
  margin-left: 0;
  text-align: center;
  min-width: 300px;
}

.wi-c055-img {
  height: 400px;
  width: 400px;
  cursor: pointer;
  object-fit: contain;
  max-width: 100%;
  height: auto;
}

.extra-img-box {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.extra-img-string {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: inline-block;  /* নিশ্চিত করলাম display inline-block */
}

.extra-img-string:hover {
  transform: scale(1.05);
  border-color: #4e54c8;
}

.product-information {
  flex: 1;
  max-width: 600px;
  padding: 20px;
  border: none;
  border-radius: 8px;
  box-shadow: none;
  box-sizing: border-box;
  min-width: 280px;
}

.product-names {
  color: rgb(22, 22, 197);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 20px;
}

.info-box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: flex-start;
  margin-left: -40px;
  align-items: stretch;
}

.info-boxes {
  background-color: #f4f6fc;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  color: #333;
  font-family: 'Poppins', sans-serif;
  box-shadow: none;
  min-height: 42px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  margin-left: 20px;
}

.info-boxes strong {
  color: #555;
  margin-right: 5px;
}

.info-boxes span {
  font-weight: 600;
  color: #111;
}

.mainInfo h5 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #444;
  font-family: 'Poppins', sans-serif;
}

.mainInfo p {
  margin: 5px 0;
  color: #333;
  font-family: 'Poppins', sans-serif;
}

.separator {
  height: 1px;
  width: 150px;
  background-color: #f77e38;
  margin: 15px 0;
}

.price-option-container {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}

.price-box {
  width: 48%;
  border: 2px solid #ccc;
  cursor: pointer;
  padding: 15px 15px 15px 45px;
  position: relative;
  transition: border 0.3s ease;
  background-color: #fff;
  display: flex;
  align-items: center;
}

.price-box input[type="radio"] {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #007bff;
}

.price-box:hover {
  border-color: navy;
}

.price-box input[type="radio"]:checked + .box-content::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid #007bff;
  z-index: -1;
}

.box-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1;
}

.price {
  font-size: 18px;
  font-weight: 600;
}

.desc1, .desc2 {
  font-size: 14px;
  color: #333;
}

.payment-method {
  margin: 10px 0;
}

.site-footer {
  background: #0b141d;
  color: #ccc;
  padding: 60px 20px 30px;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  padding-bottom: 40px;
  border-bottom: 1px solid #222;
  column-gap: 60px;
  row-gap: 40px;
}

.footer-col {
  flex: 1;
  min-width: 280px;
  padding: 0 10px;
}

.footer-col h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
}

.info-box {
  display: flex;
  gap: 12px;
  background: #111a22;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 15px;
  align-items: flex-start;
}

.info-box i {
  color: #ff4a4a;
  font-size: 18px;
  margin-top: 4px;
}

.info-text .line {
  font-size: 13px;
  color: #aaa;
}

.highlight {
  color: #ff4a4a;
  font-weight: bold;
  text-decoration: none;
}

.about-links {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 30px;
}

.about-links li {
  margin-bottom: 10px;
}

.about-links li a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
}

.about-links li a:hover {
  color: #ff4a4a;
}

.footer-middle {
  text-align: center;
  margin-top: 40px;
}

.footer-middle img {
  height: 40px;
  margin: 10px;
  transition: transform 0.2s;
}

.footer-middle img:hover {
  transform: scale(1.05);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: #666;
  border-top: 1px solid #222;
  padding-top: 20px;
}

.buy-msg {
  width: 500px;
  padding: 10px 20px;
  height: 40px;
  color: #ffffff;
  background: #4e54c8;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  margin-left: 2.5px;
  margin: 20px 0 10px;
  white-space: nowrap;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.4s;
}

.buy-msg:hover {
  background-color: #7077ff;
}

.buy-msg:active {
  transform: scale(0.97);
}

.cart-msg {
  width: 500px;
  padding: 10px 20px;
  height: 40px;
  color: #ffffff;
  background: #4e54c8;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}


.cart-msg:hover {
  background-color: #7077ff;
}

.cart-msg:active {
  transform: scale(0.97);
}

.product-description-line {
  font-family: 'Poppins', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  max-width: 700px;
  margin: 20px auto;
  padding: 0 15px;
}

.product-description-line h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 2px solid #df923b;
  padding-bottom: 5px;
}

.product-description-line h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #222;
}

.product-description-line p {
  font-size: 16px;
  margin-bottom: 15px;
}

.product-description-line p strong {
  color: #000;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 30, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.overlay-content {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  position: relative;
}

.overlay-content h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #4e54c8;
}

.overlay-content input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.overlay-content button[type="submit"] {
  width: 100%;
  background: #4e54c8;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.overlay-content button:hover {
  background: #3b3fa4;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  color: #555;
  cursor: pointer;
}

#successNotification {
  background: linear-gradient(90deg, #4e54c8, #8f94fb);
  color: whitesmoke;
  padding: 12px 20px;
  margin-top: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
  width: 30%;
  border-radius: 4px;
  position: fixed;
  top: 130px;
  right: 20px;
  z-index: 1000;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  display: none;
}

#cartIcons {
  margin-left: 3px;
}

#erroNotification {
  background: linear-gradient(90deg, #4e54c8, #8f94fb);
  color: whitesmoke;
  padding: 12px 20px;
  margin-top: 15px;
  font-weight: bold;
  width: 30%;
  max-width: 350px;
  border-radius: 4px;
  position: fixed;
  top: 130px;
  right: 20px;
  z-index: 9999;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

@media (max-width: 600px) {
  #erroNotification {
  width: 80%;
  top: 80px;
  right: 10%;
  left: 10%;
  max-width: none;
  font-size: 14px;
  padding: 10px 15px;
  position: absolute;
  top: 10px;
  }
}

#erroNotification.show {
  opacity: 1;
  pointer-events: auto;
}

#checked{
  margin: 0 5px;
}

.overlay-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.overlay__inner {
  text-align: center;
}

.overlay__content {
  display: inline-block;
  position: relative;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #3498db;
  animation: spin 1s ease-in-out infinite;
  display: inline-block;
}

.overlay__content p {
  margin-top: 15px;
  color: #333;
  font-weight: 500;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.overlay-loader.dark {
  background-color: rgba(0, 0, 0, 0.9);
}

.overlay-loader.dark .spinner {
  border-top-color: #ffffff;
}

.overlay-loader.dark p {
  color: #ffffff;
}

@media (max-width: 768px) {
  .footer-col {
  min-width: 100%;
  }

  .about-links {
  columns: 1;
  }
}

@media (max-width: 768px) {
  .show-products-location-info {
  margin-left: 20px;
  font-size: 13px;
  top: 10px;
  white-space: normal;
  word-wrap: break-word;
  }

  .show-products-location-info a {
  display: inline-block;
  margin-bottom: 4px;
  }

  .product-section {
  flex-direction: column;
  align-items: center;
  padding: 50px 20px;
  }

  .product-image {
  margin-top: 40px;
  max-width: 90vw;
  }

  .wi-c055-img {
  width: 100%;
  height: auto;
  max-width: 400px;
  }

  .product-information {
  max-width: 90vw;
  min-width: auto;
  margin-left: 0;
  padding: 15px 10px;
  }

  .info-box-container {
  justify-content: center;
  margin: 0;
  }

  .buy-msg,
  .cart-msg{
  padding: 10px 0;
  width: 100%;
  }
}

@media (max-width: 768px) {
  .price-option-container {
  flex-wrap: wrap;
  }

  .price-box {
  width: 100%;
  }
}

@media (max-width: 600px) {
  .product-description-line {
  margin: 20px auto;
  padding-left: 15px;
  padding-right: 15px;
  text-align: center;
  }
}

@media (max-width: 600px) {
  .extra-img-box {
  justify-content: center;
  gap: 8px;
  }

  .extra-img-string {
  width: 60px;
  height: 60px;
  }
}
