* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Jost", sans-serif;
  list-style: none;
  text-decoration: none;
}

body {
  background: #f9f9f9;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  background: #000000;
  color: #ffffff;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 5%;
  background: #ffffff00;
  transition: background 0.3s ease;
}

header.sticky {
  background-color: rgba(255, 255, 255, 0.475);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode header.sticky {
  background-color: rgba(34, 34, 34, 0.475);
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.1);
}

.logo img {
  max-width: 90px;
  height: auto;
  margin-top: 10px;
}

.navmenu {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: fit-content;
}

.navmenu a {
  position: relative;
  color: #000000;
  font-size: 16px;
  text-transform: capitalize;
  padding: 10px 20px;
  font-weight: 455;
  transition: color 0.3s ease;
}

body.dark-mode .navmenu a {
  color: #ffffff;
}

.navmenu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 0%;
  height: 2px;
  background-color: #5f5f5f;
  transition: width 0.3s ease;
}

body.dark-mode .navmenu a::after {
  background-color: #cccccc;
}

.navmenu a:hover::after {
  width: 100%;
}

.navmenu a:hover {
  color: #5f5f5f;
}

body.dark-mode .navmenu a:hover {
  color: #cccccc;
}

.nav-icon {
  display: flex;
  align-items: center;
}

.nav-icon i {
  margin-right: 20px;
  color: #2c2c2c;
  font-size: 25px;
  font-weight: 400;
  transition: all 0.42s ease;
}

body.dark-mode .nav-icon i {
  color: #ffffff;
}

.nav-icon i:hover {
  transform: scale(1.1);
  color: #5f5f5f;
}

body.dark-mode .nav-icon i:hover {
  color: #cccccc;
}

.menu-icon {
  display: none;
  font-size: 35px;
  color: #2c2c2c;
  cursor: pointer;
}

body.dark-mode .menu-icon {
  color: #ffffff;
}

section {
  padding: 7% 10%;
}

.sound-toggle {
  position: absolute;
  top: -130px;
  right: -550px;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0);
  color: white;
  border: none;
  padding: 10px;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  backdrop-filter: blur(6px);
}

body.dark-mode .sound-toggle {
  background-color: rgba(34, 34, 34, 0);
  color: #ffffff;
}

.sound-toggle:hover {
  color: rgb(255, 255, 255);
}

.bg-video {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: 20px;
}

.main-home > *:not(.bg-video) {
  position: relative;
  z-index: 1;
}

.main-home {
  width: 90%;
  height: 83vh;
  background-size: cover;
  background-position: center;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
  position: relative;
  margin: 70px auto 0;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;

  /* Smooth transition for height, background, and box-shadow */
  transition: height 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

body.dark-mode .main-home {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 90%;
  height: 95vh;
  background-size: cover;
  background-position: center;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
  position: relative;
  margin: 70px auto 0;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.main-text h5 {
  color: #ee1c47;
  font-size: 16px;
  text-transform: capitalize;
  font-weight: 500;
}

body.dark-mode .main-text h5 {
  color: #ff4d4d;
}

.main-text h1 {
  color: #000;
  font-size: 65px;
  text-transform: capitalize;
  line-height: 1.1;
  font-weight: 600;
  margin: 6px 0 10px;
}

body.dark-mode .main-text h1 {
  color: #ffffff;
}

.main-text p {
  color: #333c56;
  font-size: 20px;
  font-style: italic;
  margin-bottom: 20px;
}

body.dark-mode .main-text p {
  color: #cccccc;
}

.main-btn {
  display: inline-block;
  background-color: #000000;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-transform: capitalize;
  padding: 12px 25px;
  transition: all 0.42s ease;
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 30px;
  box-shadow:
    0px 4px 8px rgba(0, 0, 0, 0.35),
    0px 8px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);

  transition: transform 0.2s ease,
              box-shadow 0.2s ease,
              background 0.2s ease;

  border: solid 1px #fff2;
  --button-color: #101010;
}

.main-btn:hover {
  background-color: #3d3d3d88;
  color: #ffffff;
}

body.dark-mode .main-btn:hover {
  background-color: #3d3d3d88;
  color: #ffffff;
}

.main-btn i {
  vertical-align: middle;
}

.down-arrow {
  position: absolute;
  top: 85%;
  right: 11%;
}

body.dark-mode .add-to-cart {
  color: #ffffff;
  border-color: #ffffff;
}

body.dark-mode .add-to-cart:hover {
  background-color: #ffffff;
  color: #222222;
}

.down i {
  font-size: 30px;
  color: #2c2c2c;
  border: 2px solid #2c2c2c;
  border-radius: 50px;
  padding: 12px 12px;
}

body.dark-mode .down i {
  color: #ffffff;
  border-color: #ffffff;
}

.down i:hover {
  background-color: #2c2c2c;
  color: #fff;
  transition: all 0.42s ease;
}

body.dark-mode .down i:hover {
  background-color: #ffffff;
  color: #222222;
}

.center-text h2 {
  position: relative;
  color: #111;
  font-size: 19px;
  text-transform: capitalize;
  text-align: left;
  margin-bottom: 20px;
  margin-top: 30px;
  margin-left: 110px;
}

body.dark-mode .center-text h2 {
  color: #ffffff;
}

.center-text h3 {
  color: #111;
  font-size: 19px;
  text-transform: capitalize;
  text-align: left;
  margin-bottom: 20px;
  margin-top: 30px;
  margin-left: 30px;
}

body.dark-mode .center-text h3 {
  color: #ffffff;
}

.center-text span {
  color: #000000;
}

body.dark-mode .center-text span {
  color: #ffffff;
}

.shop-products {
  padding: 70px 5% 60px;
  background: #f9f9f9;
  position: relative;
  text-align: center;
  overflow: hidden;
}

body.dark-mode .shop-products {
  background: #000000;
}

.center-text {
  margin-bottom: 30px;
  
}

.products {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.products::-webkit-scrollbar {
  display: none;
}

.row.product-item {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(240, 240, 240, 0.85)
  );
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 255, 255, 0.15);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease,
    scale 0.4s ease;
  flex: 0 0 260px;
  height: auto;
  max-width: 260px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.dark-mode .row.product-item {
  background: linear-gradient(
    135deg,
    rgba(40, 40, 40, 0.7),
    rgba(20, 20, 20, 0.6)
  );
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.2),
    inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.row.product-item:hover {
  transform: translateY(-1px) scale(0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 30px rgba(255, 255, 255, 0.25);
}

body.dark-mode .row.product-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.3),
    inset 0 0 12px rgba(255, 255, 255, 0.15);
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.row.product-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.row.product-item:hover img {
  transform: scale(1.05);
}

.product-text {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #000000;
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 5px;
  font-family: "Jost", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 1;
}

body.dark-mode .product-text {
  background: #000000;
  color: #ffffff;
}

.price {
  padding: 15px;
  text-align: left;
}

.price h4 {
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  margin: 0 0 5px;
}

body.dark-mode .price h4 {
  color: #ffffff;
}

.price h3 {
  font-family: "Jost", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #757575;
  margin: 5px 0;
}

body.dark-mode .price h3 {
  color: #ffffff;
}

.price p {
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #151515;
  margin: 5px 0 0;
}

body.dark-mode .price p {
  color: #ffffff;
}

.scroll-btn {
  position: absolute;
  top: 90px;
  background: rgba(255, 255, 255, 0.85);
  color: #000;
  border: 2px solid #000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  z-index: 10;
}

body.dark-mode .scroll-btn {
  background: rgba(34, 34, 34, 0.85);
  color: #ffffff;
  border-color: #ffffff;
}

.scroll-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.scroll-btn.left {
  right: 210px;
}

.scroll-btn.right {
  right: 160px;
}

.scroll-btn:hover:not(:disabled) {
  background: #000;
  color: #fff;
  transform: scale(1.1);
}

body.dark-mode .scroll-btn:hover:not(:disabled) {
  background: #ffffff;
  color: #222222;
}



.up-center-text h2 {
  text-align: center;
  color: #111;
  font-size: 25px;
  text-transform: capitalize;
  font-weight: 650;
  margin-bottom: 30px;
}

body.dark-mode .up-center-text h2 {
  color: #ffffff;
}

.cart img {
  width: 380px;
  height: auto;
  border-radius: 5px;
}

.update-cart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, auto));
  gap: 1rem;
}

.cart h5 {
  color: #636872;
  font-size: 14px;
  text-transform: capitalize;
  font-weight: 500;
}

body.dark-mode .cart h5 {
  color: #cccccc;
}

.cart h4 {
  color: #111;
  font-size: 18px;
  font-weight: 600;
}

body.dark-mode .cart h4 {
  color: #ffffff;
}

.cart p {
  color: #707070;
  font-size: 15px;
  max-width: 380px;
  line-height: 25px;
  margin-bottom: 12px;
}

body.dark-mode .cart p {
  color: #cccccc;
}

.cart h6 {
  color: #151515;
  font-size: 14px;
  font-weight: 500;
}

body.dark-mode .cart h6 {
  color: #ffffff;
}

.contact {
  background-color: #ffffff;
}

body.dark-mode .contact {
  background-color: #000000;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, auto));
  gap: 3rem;
}

.first-info img {
  width: 130px;
  height: auto;
}

.contact-info h4 {
  color: #212529;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

body.dark-mode .contact-info h4 {
  color: #ffffff;
}

.contact-info p {
  color: #565656;
  font-size: 14px;
  font-weight: 400;
  text-transform: capitalize;
  line-height: 1.5;
  margin-bottom: 5px;
  cursor: pointer;
  transition: all 0.42s;
}

body.dark-mode .contact-info p {
  color: #cccccc;
}

.contact-info p:hover {
  color: #d1d1d1;
}

body.dark-mode .contact-info p:hover {
  color: #999999;
}

.social-icon i {
  color: #565656;
  margin-right: 0px;
  font-size: 15px;
  transition: all 0.42s;
}

body.dark-mode .social-icon i {
  color: #ffffff;
}

.social-icon i:hover {
  transform: scale(1.3);
}

.end-text {
  background-color: #ffffff;
  text-align: center;
  padding: 10px;
}

body.dark-mode .end-text {
  background-color: #000000;
}

.end-text p {
  color: #111;
  text-transform: capitalize;
}

body.dark-mode .end-text p {
  color: #ffffff;
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .navmenu a {
    font-size: 16px;
    padding: 10px 18px;
  }

  .main-text h1 {
    font-size: 60px;
  }

  .products {
    gap: 18px;
  }

  .row.product-item {
    flex: 0 0 250px;
    max-width: 250px;
  }

  .scroll-btn.left {
    right: 290px;
  }

  .scroll-btn.right {
    right: 240px;
  }

  .cart img {
    max-width: 360px;
  }
}

@media (min-width: 1201px) {
  .main-text h1 {
    font-size: 65px;
  }

  .main-text p {
    font-size: 20px;
  }

  .row.product-item {
    flex: 0 0 260px;
    max-width: 260px;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 890px) {
  header {
    padding: 20px 3%;
    transition: 0.4s;
  }

  .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    overflow-x: hidden;
    scroll-snap-type: none;
  }

  .row.product-item {
    flex: none;
    max-width: 100%;
  }

  .scroll-btn {
    display: none;
  }

  .shop-products {
    padding: 30px 3% 50px;
  }

  .center-text h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 630px) {
  .main-text h1 {
    font-size: 50px;
    transition: 0.4s;
  }

  .main-text p {
    font-size: 18px;
    transition: 0.4s;
  }

  .main-btn {
    padding: 10px 20px;
    transition: 0.4s;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .row.product-item {
    max-width: 300px;
    margin: 0 auto;
  }

  .center-text h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 750px) {
  .menu-icon {
    display: block;
    font-size: 35px;
    color: #333;
    position: relative;
    z-index: 10001;
  }

  body.dark-mode .menu-icon {
    color: #ffffff;
  }
}

@media (max-width: 600px) {
  .amig-product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 12px;
  }
  .amig-product-card {
    border-radius: 12px;
  }

  .amig-product-img {
    width: 90%;
    height: 200px;
  }
  .amig-product-link,
  .amig-product-add {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 8px;
  }

  .language-selector {
    margin: 0 5px;
  }

  .language-selector select {
    padding: 6px 24px 6px 8px;
    font-size: 0.85rem;
    min-width: 90px;
  }
}

.search-container {
  display: none;
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 10002;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

body.dark-mode .search-container {
  background: rgba(34, 34, 34, 0.6);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
}

.search-container input {
  flex: 1;
  padding: 10px 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  background-color: #f2f2f2;
  color: #333;
  outline: none;
  width: 100%;
}

body.dark-mode .search-container input {
  background-color: #444444;
  color: #ffffff;
}

.search-container input:focus {
  background-color: #e9e9e9;
}

body.dark-mode .search-container input:focus {
  background-color: #555555;
}

.search-container button {
  position: absolute;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 7px;
  font-size: 18px;
  color: #333;
  right: -5px;
  top: 11px;
}

body.dark-mode .search-container button {
  color: #ffffff;
}

.search-container button:hover {
  color: #222;
}

body.dark-mode .search-container button:hover {
  color: #cccccc;
}

.fifth-info {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

body.dark-mode .fifth-info {
  background: #000000;
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.fifth-info h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

body.dark-mode .fifth-info h4 {
  color: #ffffff;
}

.fifth-info p {
  font-size: 1rem;
  color: #777;
  margin-bottom: 20px;
}

body.dark-mode .fifth-info p {
  color: #cccccc;
}

.fifth-info form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fifth-info input[type="email"] {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 3px;
  outline: none;
  font-size: 1rem;
  width: 100%;
}

body.dark-mode .fifth-info input[type="email"] {
  border-color: #666666;
  background: #333333;
  color: #ffffff;
}

.fifth-info button {
  background: #000000;
  border: none;
  color: #ffffff;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

body.dark-mode .fifth-info button {
  background: #ffffff;
  color: #222222;
}

.fifth-info button:hover {
  background: #707070;
}

body.dark-mode .fifth-info button:hover {
  background: #cccccc;
}

.cart-icon {
  position: relative;
  display: inline-block;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: 15px;
  background-color: #000;
  color: rgb(255, 255, 255);
  border-radius: 50%;
  padding: 0px 0px;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  min-width: 15px;
  height: 15px;
  line-height: 15px;
}

body.dark-mode .cart-count {
  background-color: #ffffff;
  color: #222222;
}

.hidden {
  display: none;
}

.cart-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 1000;
}

body.dark-mode .cart-modal {
  background: #333333;
  box-shadow: -2px 0 5px rgba(255, 255, 255, 0.3);
}

.cart-modal.open {
  display: block;
  transform: translateX(0);
}

.cart-modal .cart-header {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.dark-mode .cart-modal .cart-header {
  border-bottom: 1px solid #666666;
}

.cart-modal .cart-header h2 {
  margin: 0;
}

.cart-modal .cart-header button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 3px;
  padding-left: 11px;
}

body.dark-mode .cart-item {
  border-bottom: 1px solid #666666;
}

.cart-item img {
  width: 100px;
  height: auto;
  margin-right: 15px;
}

.cart-item-details {
  flex: 1;
  margin: 10px;
}

.cart-summary {
  width: auto;
  padding: 10px;
  font-size: 1.2rem;
}

.proceed-btn {
  display: block;
  width: calc(100% - 20px);
  margin: 20px auto;
  padding: 10px;
  background: #ffffff;
  color: #000000;
  text-align: center;
  text-decoration: none;
  border: 3px solid #000;
  cursor: pointer;
  border-radius: 40px;
  transition: all 0.42s ease;
}

body.dark-mode .proceed-btn {
  background: #333333;
  color: #ffffff;
  border-color: #ffffff;
}

.proceed-btn:hover {
  background-color: #000;
  color: #ccc;
}

body.dark-mode .proceed-btn:hover {
  background-color: #ffffff;
  color: #222222;
}

.cart-item .remove-item {
  background: none;
  border: none;
  font-size: 13px;
  color: #840505;
  cursor: pointer;
  border-radius: 3px;
}

body.dark-mode .cart-item .remove-item {
  color: #ff6666;
}

.cart-item .remove-item:hover {
  color: #cc0000;
}

body.dark-mode .cart-item .remove-item:hover {
  color: #ff9999;
}

.color-options {
  margin-top: 10px;
}

.color-options label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

body.dark-mode .color-options label {
  color: #ffffff;
}

.color-palette {
  display: flex;
  gap: 10px;
}

.color-palette .color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ddd;
  position: relative;
}

body.dark-mode .color-palette .color-swatch {
  border: 2px solid #666666;
}

.color-palette .color-swatch.selected {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

body.dark-mode .color-palette .color-swatch.selected {
  border-color: #66ccff;
  box-shadow: 0 0 5px rgba(102, 204, 255, 0.5);
}

.color-palette .color-swatch.black {
  background-color: #000;
}

.color-palette .color-swatch.white {
  background-color: #fff;
  border: 2px solid #000;
}

body.dark-mode .color-palette .color-swatch.white {
  border: 2px solid #ffffff;
}

.item-quantity {
  width: 60px;
  padding: 5px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

body.dark-mode .item-quantity {
  border-color: #666666;
  background: #333333;
  color: #ffffff;
}

.item-quantity:focus {
  border-color: #000;
  outline: none;
}

body.dark-mode .item-quantity:focus {
  border-color: #ffffff;
}

.image-grid-section {
  padding: 80px 20px;
  background: #f9f9f9;
  overflow: hidden;
}

body.dark-mode .image-grid-section {
  background: #000000;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .grid-item {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body.dark-mode .grid-item:hover {
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.grid-item:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  padding: 20px;
  text-align: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

body.dark-mode .image-overlay {
  background: linear-gradient(
    to top,
    rgba(34, 34, 34, 0.7),
    rgba(34, 34, 34, 0)
  );
}

.grid-item:hover .image-overlay {
  opacity: 1;
}

.image-overlay h3 {
  font-family: "Jost", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.dark-mode .image-overlay h3 {
  color: #ffffff;
}

.grid-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #000000ea;
  color: #fff;
  text-decoration: none;
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 25px;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow:
    0px 4px 8px rgba(0, 0, 0, 0.35),
    0px 8px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);

  transition: transform 0.2s ease,
              box-shadow 0.2s ease,
              background 0.2s ease;

  border: solid 1px rgb(0, 0, 0);
  --button-color: #101010;
}

body.dark-mode .grid-btn {
  background: #000000;
  color: #ffffff;
}

.grid-btn:hover {
  background: #3d3d3d88;
  transform: translateY(-2px);
}

body.dark-mode .grid-btn:hover {
  background: #3d3d3d88;
}

@media (max-width: px) {
  header {
    padding: 5px 3%;
  }

  .logo img {
    max-width: 70px;
    margin-top: 5px;
  }

  .navmenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 280px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    padding: 60px 20px;
    transition: right 0.3s ease;
    z-index: 9999;
  }

  body.dark-mode .navmenu {
    background: #222222;
  }

  .navmenu.open {
    right: 0;
  }

  .navmenu a {
    font-size: 14px;
    padding: 8px 10px;
    margin: 5px 0;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    background: #f9f9f9;
    min-width: 0;
  }

  body.dark-mode .dropdown-content {
    background: #333333;
  }

  .dropdown-content li a {
    padding: 10px 12px;
    font-size: 14px;
  }

  .menu-icon {
    display: block;
  }

  .nav-icon i {
    margin-right: 10px;
    font-size: 20px;
  }

  section {
    padding: 5% 5%;
  }

  .sound-toggle {
    top: -70px;
    right: -100px;
    font-size: 16px;
    padding: 8px;
  }

  .main-home {
    height: 60vh;
    margin: 50px auto 0;
    width: 95%;
  }

  .main-text h5 {
    font-size: 14px;
  }

  .main-text h1 {
    font-size: 36px;
    line-height: 1.2;
  }

  .main-text p {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .main-btn {
    font-size: 14px;
    padding: 10px 20px;
    bottom: 10px;
  }

  .add-to-cart {
    font-size: 12px;
    width: 110px;
    height: 40px;
    padding: 8px 15px;
    bottom: 3%;
  }

  .down-arrow {
    top: 80%;
    right: 5%;
  }

  .down i {
    font-size: 24px;
    padding: 8px;
  }

  .shop-products {
    padding: 30px 3% 40px;
  }

  .center-text h2 {
    font-size: 16px;
    margin-left: 0;
    text-align: center;
  }

  .products {
    flex-direction: column;
    overflow-x: hidden;
    scroll-snap-type: none;
  }

  .row.product-item {
    flex: none;
    max-width: 100%;
    margin: 0 auto;
  }

  .row.product-item img {
    height: 280px;
  }

  .scroll-btn {
    display: none;
  }

  .price h4 {
    font-size: 0.9rem;
  }

  .price h3 {
    font-size: 0.75rem;
  }

  .price p {
    font-size: 0.9rem;
  }

  .up-center-text h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .update-cart {
    grid-template-columns: 1fr;
  }

  .cart img {
    width: 100%;
    max-width: 300px;
  }

  .cart h4 {
    font-size: 16px;
  }

  .cart p {
    font-size: 14px;
    line-height: 22px;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .first-info img {
    width: 100px;
  }

  .search-container {
    width: 90%;
    top: 60px;
    padding: 8px 12px;
  }

  .search-container input {
    font-size: 14px;
    padding: 8px;
  }

  .search-container button {
    font-size: 16px;
    top: 9px;
  }

  .fifth-info {
    max-width: 300px;
  }

  .fifth-info h4 {
    font-size: 1.2rem;
  }

  .fifth-info p {
    font-size: 0.9rem;
  }

  .fifth-info input[type="email"] {
    font-size: 0.9rem;
    padding: 8px;
  }

  .fifth-info button {
    font-size: 0.9rem;
    padding: 8px;
  }

  .cart-modal {
    width: 260px;
  }

  .cart-item img {
    width: 80px;
    margin-right: 10px;
  }

  .cart-item-details {
    margin: 8px;
  }

  .cart-summary {
    font-size: 1rem;
  }

  .proceed-btn {
    padding: 8px;
    font-size: 0.9rem;
  }

  .image-grid-section {
    padding: 40px 15px;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .grid-item img {
    height: 200px;
  }

  .image-overlay h3 {
    font-size: 1.4rem;
  }

  .grid-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  header {
    padding: 5px 4%;
  }

  .logo img {
    max-width: 80px;
  }

  .navmenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    padding: 70px 20px;
    transition: right 0.3s ease;
    z-index: 9999;
  }

  body.dark-mode .navmenu {
    background: #222222;
  }

  .navmenu.open {
    right: 0;
  }

  .navmenu a {
    font-size: 15px;
    padding: 10px 15px;
    margin: 8px 0;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    background: #f9f9f9;
    min-width: 0;
  }

  body.dark-mode .dropdown-content {
    background: #333333;
  }

  .dropdown-content li a {
    padding: 10px 12px;
    font-size: 15px;
  }

  .menu-icon {
    display: block;
  }

  .nav-icon i {
    margin-right: 15px;
    font-size: 22px;
  }

  section {
    padding: 6% 6%;
  }

  .sound-toggle {
    top: 15px;
    right: 15px;
  }

  .main-home {
    height: 70vh;
    width: 92%;
  }

  .main-text h1 {
    font-size: 48px;
  }

  .main-text p {
    font-size: 18px;
  }

  .main-btn {
    font-size: 15px;
    padding: 10px 22px;
  }

  .add-to-cart {
    width: 120px;
    height: 45px;
  }

  .shop-products {
    padding: 50px 4% 50px;
  }

  .center-text h2 {
    font-size: 18px;
    margin-left: 0;
    text-align: center;
  }

  .products {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    overflow-x: hidden;
    scroll-snap-type: none;
  }

  .row.product-item {
    flex: none;
    max-width: 100%;
  }

  .scroll-btn {
    display: none;
  }

  .update-cart {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .cart img {
    width: 100%;
    max-width: 320px;
  }

  .contact-info {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .search-container {
    width: 80%;
  }

  .cart-modal {
    width: 280px;
  }

  .image-grid-section {
    padding: 60px 15px;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .image-overlay h3 {
    font-size: 1.6rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  header {
    padding: 5px 5%;
  }

  .navmenu a {
    font-size: 15px;
    padding: 8px 15px;
  }

  .nav-icon i {
    font-size: 22px;
    margin-right: 15px;
  }

  section {
    padding: 6% 8%;
  }

  .main-home {
    height: 75vh;
  }

  .main-text h1 {
    font-size: 56px;
  }

  .main-text p {
    font-size: 18px;
  }

  .products {
    gap: 15px;
  }

  .row.product-item {
    flex: 0 0 240px;
    max-width: 240px;
  }

  .row.product-item img {
    height: 320px;
  }

  .scroll-btn.left {
    right: 280px;
  }

  .scroll-btn.right {
    right: 230px;
  }

  .update-cart {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .cart img {
    max-width: 340px;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.navmenu .dropdown {
  position: relative;
}

.navmenu .dropdown > a i {
  margin-left: 6px;
  font-size: 12px;
}

.dropdown {
  position: relative;
  z-index: 100;
}

.dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown .fa-caret-down {
  font-size: 14px;
  transition: transform 0.3s ease;
}

body.dark-mode .dropdown .fa-caret-down {
  color: #ffffff;
}

.dropdown:hover .fa-caret-down {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  z-index: 101;
  border-radius: 5px;
  overflow: hidden;
}

body.dark-mode .dropdown-content {
  background-color: #333333;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content li {
  border-bottom: 1px solid #f1f1f1;
}

body.dark-mode .dropdown-content li {
  border-bottom: 1px solid #666666;
}

.dropdown-content li a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-family: "Jost", sans-serif;
  transition: background 0.3s ease;
}

body.dark-mode .dropdown-content li a {
  color: #ffffff;
}

.dropdown-content li a:hover {
  background-color: #f5f5f5;
}

body.dark-mode .dropdown-content li a:hover {
  background-color: #444444;
}

.navmenu {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.newsletter-feedback {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.newsletter-feedback.show {
  opacity: 1;
  color: #333;
}
.newsletter-feedback.show.success {
  color: green;
}
.newsletter-feedback.show.error {
  color: red;
}

body.dark-mode .newsletter-feedback {
  background: rgba(255, 255, 255, 0.85);
  color: #222222;
}

.language-selector {
  position: relative;
  display: inline-block;
  margin-left: 12px;
  font-family: "Jost", sans-serif;
}

.language-selector select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 32px 10px 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: linear-gradient(180deg, #ffffff, #f8f8f8);
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  min-width: 120px;
}

body.dark-mode .language-selector select {
  border: 1px solid #666666;
  background: linear-gradient(180deg, #333333, #2c2c2c);
  color: #ffffff;
}

.language-selector::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 0.8rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

body.dark-mode .language-selector::after {
  color: #cccccc;
}

.language-selector select:hover {
  background: linear-gradient(180deg, #f8f8f8, #f0f0f0);
  border-color: #0070ba;
  box-shadow: 0 3px 6px rgba(0, 112, 186, 0.15);
}

body.dark-mode .language-selector select:hover {
  background: linear-gradient(180deg, #444444, #3c3c3c);
  border-color: #66ccff;
}

.language-selector select:focus {
  outline: none;
  border-color: #0070ba;
  box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.3);
  background: #fff;
}

body.dark-mode .language-selector select:focus {
  border-color: #66ccff;
  box-shadow: 0 0 0 3px rgba(102, 204, 255, 0.3);
  background: #333333;
}

.language-selector select:disabled {
  background: #e8e8e8;
  border-color: #ccc;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
}

body.dark-mode .language-selector select:disabled {
  background: #444444;
  border-color: #666666;
  color: #777777;
}

.language-selector select option {
  font-family: "Jost", sans-serif;
  background: #fff;
  color: #000000;
}

body.dark-mode .language-selector select option {
  background: #000000;
  color: #ffffff;
}

@media (prefers-contrast: high) {
  .language-selector select {
    border: 2px solid #000;
    color: #000;
    background: #fff;
  }

  body.dark-mode .language-selector select {
    border: 2px solid #ffffff;
    color: #ffffff;
    background: #000000;
  }

  .language-selector select:hover,
  .language-selector select:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px #000;
  }

  body.dark-mode .language-selector select:hover,
  body.dark-mode .language-selector select:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px #ffffff;
  }

  .language-selector::after {
    color: #000;
  }

  body.dark-mode .language-selector::after {
    color: #ffffff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-selector select,
  .language-selector::after {
    transition: none;
  }
}

.cart-modal {
  z-index: 10000;
}

.cart-feedback {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for glass effect */
  backdrop-filter: blur(10px); /* Frosted glass blur */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  color: white;
  padding: 15px 30px;
  border-radius: 12px; /* Softer, modern radius */
  font-size: 16px;
  font-weight: 500; /* Slightly bolder for readability */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border for glass edge */
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease; /* Added transform for smooth animation */
  z-index: 10000;
}

body.dark-mode .cart-feedback {
  background: rgba(0, 0, 0, 0.2); /* Darker glass effect for dark mode */
  backdrop-filter: blur(10px); /* Maintain blur */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border for dark mode */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* Stronger shadow for contrast */
}

.cart-feedback.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0); /* Ensure no jump during animation */
}

/* Optional: Slight upward animation when showing */
.cart-feedback {
  transform: translateX(-50%) translateY(10px); /* Start slightly below */
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 8px 0;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-mode .quantity-btn {
  border: 1px solid #000000;
  background: #000000;
  color: #ffffff;
}

.quantity-btn:hover {
  background: #f5f5f5;
}

body.dark-mode .quantity-btn:hover {
  background: #000000;
}

.item-quantity {
  width: 40px;
  text-align: center;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

body.dark-mode .item-quantity {
  border: 1px solid #000000;
  background: #000000;
  color: #ffffff;
}

.cart-modal.open ~ main::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

body.dark-mode .cart-modal.open ~ main::after {
  background: rgba(0, 0, 0, 0.3);
}

.empty-cart {
  text-align: center;
  padding: 40px 0;
  color: #777;
}

body.dark-mode .empty-cart {
  color: #cccccc;
}

.proceed-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.proceed-btn:disabled:hover {
  background: #fff;
  color: #000;
}

body.dark-mode .proceed-btn:disabled:hover {
  background: #000000;
  color: #ffffff;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item {
  position: relative;
}

.remove-item {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #840505;
  cursor: pointer;
  font-size: 16px;
}

body.dark-mode .remove-item {
  color: #ff6666;
}

.cart-modal {
  transition: transform 0.3s ease;
}

body.cart-open {
  overflow: hidden;
}

.dropdown {
  position: relative;
  z-index: 100;
}

.dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown .fa-caret-down {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.dropdown:hover .fa-caret-down {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 101;
  display: none;
  min-width: 150px;
}

body.dark-mode .dropdown-content {
  background: #000000;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.2);
}

.dropdown:hover .dropdown-content {
  display: block;
}

footer {
  position: relative;
  z-index: 5;
  margin-top: 20px;
}

.language-selector {
  position: relative;
  z-index: 10;
  margin-top: 10px;
  padding: 5px;
}

.language-selector select {
  appearance: none;
  padding: 8px 30px 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-size: 12px;
  cursor: pointer;
  font-size: 14px;
}

body.dark-mode .language-selector select {
  border: 1px solid #666666;
  background: #333333;
  color: #ffffff;
}

.language-selector select:focus {
  outline: none;
  border-color: #000;
}

body.dark-mode .language-selector select:focus {
  border-color: #ffffff;
}

@media (max-width: 750px) {
  .navmenu {
    height: calc(100vh - 60px);
  }
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: inherit;
}
.theme-toggle i {
  transition: color 0.3s ease;
}
.dark-mode {
  background-color: #000000;
  color: #fff;
}
.dark-mode .navmenu a,
.dark-mode .nav-icon a,
.dark-mode .main-text a,
.dark-mode .grid-btn,
.dark-mode .product-text h5,
.dark-mode .price h4,
.dark-mode .price p,
.dark-mode .Shop-tag,
.dark-mode .center-text h2,
.dark-mode .contact-info h4,
.dark-mode .contact-info h5,
.dark-mode .contact-info h6,
.dark-mode .contact-info p,
.dark-mode .end-text p {
  color: #fff;
}
.dark-mode .cart-modal {
  background-color: #000000;
  color: #fff;
}
.dark-mode .cart-header,
.dark-mode .cart-summary h2,
.dark-mode .secure-payments {
  color: #fff;
}
.dark-mode .proceed-btn {
  background-color: #000000;
  color: #fff;
}

#firefly-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* Keep it behind all content */
}

/* Tee Product Page Styles */
:root {
  --primary-black: #000;
  --primary-white: #fff;
  --hover-gray: #333;
  --border-gray: #ddd;
  --text-gray: #555;
  --light-gray: #f5f5f5;
  --error-red: #840505;
  --success-green: #000000;
}

.product-page {
  padding: 60px 5%;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 60px;
  margin-top: 30px;
}

.product-gallery {
  flex: 1;
  min-width: 300px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.product-main-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  cursor: zoom-in;
  border-radius: 8px;
}

.product-main-image:hover {
  transform: scale(1.02);
}

.product-thumbnails {
  position: absolute;
  top: 0;
  left: -100px;
  display: flex;
  padding: 10px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow-x: auto;
  gap: 10px;
  width: 100px;
}

.product-thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  transition: border 0.3s ease;
  flex-shrink: 0;
}

.product-thumbnails img:hover {
  border-color: var(--border-gray);
}

.product-thumbnails img.active {
  border-color: var(--primary-black);
  transform: scale(1.05);
  border: 2px solid #000;
}
body.dark-mode .product-thumbnails img.active {
  border: 2px solid #fff;
}
/* Dark mode adjustments */
body.dark-mode .product-thumbnails img {
  border: 2px solid transparent;
}

.product-info {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
}
body.dark-mode .product-info {
  background: rgba(145, 145, 145, 0.147);
  border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle white border */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* White glow effect */
}

.product-info h1 {
  font-size: 2.4rem;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.product-info h3 {
  color: #555;
  font-size: 1rem;
  margin-top: -21px;
  font-weight: 450;
}

.price {
  font-size: 1.8rem;
  margin-left: -15px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--primary-black);
  display: block;
}
body.dark-mode .price {
  color: var(--primary-white);
}

.product-description {
  margin-bottom: 30px;
  line-height: 1.7;
  color: var(--text-gray);
}
body.dark-mode .product-description {
  color: #ffffff;
}

.color-options {
  margin-bottom: 25px;
}

.color-options label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 1.1rem;
}

.color-swatches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.color-swatch.selected {
  border-color: var(--primary-black);
  transform: scale(1.15);
}

.color-swatch::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 2px solid var(--primary-white);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.color-swatch.selected::after {
  opacity: 1;
}

.size-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.size-buttons {
  display: flex;
  gap: 8px;
}

.product-size {
  width: 40px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.product-size:hover {
  border-color: #999;
  color: #000;
}

.product-size.selected {
  background-color: #111;
  color: #fff;
  border-color: #111;
}

.quantity-selector {
  margin-bottom: 30px;
}

.quantity-selector label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 1.1rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  color: #333;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
body.dark-mode .quantity-btn {
  background-color: #ffffff;
  border: 1px solid #555;
  color: #000000;
}

.quantity-btn:hover {
  background-color: #eaeaea;
  border-color: #999;
}
body.dark-mode .quantity-btn:hover {
  background-color: #e0e0e0;
  border-color: #777;
}

.item-quantity {
  width: 44px;
  height: 36px;
  text-align: center;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  outline: none;
}
body.dark-mode .item-quantity {
  background-color: #ffffff;
  border: 1px solid #555;
  color: #000000;
}

.item-quantity::-webkit-outer-spin-button,
.item-quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.item-quantity[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.add-to-cart {
  width: 100%;
  padding: 14px;
  background: #000000;
  color: #ffffff;
  border: 2px solid #111;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.add-to-cart:hover {
  background-color: #ffffff;
  color: #000000;
}

.add-to-cart.loading {
  opacity: 0.7;
  cursor: wait;
}

.add-to-cart.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.cart-feedback {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--success-green);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 16px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cart-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

.error-message {
  color: var(--error-red);
  font-size: 0.9rem;
  margin-top: 10px;
  display: none;
}

.error-message.show {
  display: block;
}

.product-meta {
  margin-top: 40px;
  border-top: 1px solid var(--border-gray);
  padding-top: 0px;
}

.meta-item {
  margin-bottom: 15px;
}

.meta-title {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.collapsible-meta {
  margin-top: 40px;
  border-top: 1px solid var(--border-gray);
  padding-top: 0;
}

.meta-toggle {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
body.dark-mode .meta-toggle {
  color: var(--primary-white);
}

.meta-toggle i {
  transition: transform 0.3s ease;
}

.meta-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.meta-toggle[aria-expanded="true"] + .meta-content {
  max-height: 200px;
}

.meta-content.open {
  max-height: 500px;
}

.zoom-container {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.zoom-container img {
  transition: transform 0.3s ease;
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center center;
}

.zoom-container img.zoomed {
  transform: scale(1.7);
}

@media (max-width: 768px) {
  #amig-chatbot-product-preview {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    top: 12%;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 16px;
    overflow-y: auto;
    z-index: 9999;
  }
  .amig-preview-header {
    position: sticky;
    top: -20px;
    background: #fff;
    padding: 0px 80px;
    z-index: 10;
  }

  .amig-preview-title {
    font-size: 17px;
  }

  .amig-preview-close {
    font-size: 28px;
    padding: 8px 12px;
  }
  /* Header and navigation */
  header {
    padding: 5px 4%; /* Adjusted from 40px 3% to match your 480px query for consistency */
  }

  .logo img {
    max-width: 80px;
  }

  .menu-icon {
    display: block;
    font-size: 30px;
    color: #2c2c2c;
    cursor: pointer;
    padding: 10px;
    z-index: 10002;
    transition: all 0.3s ease;
  }

  body.dark-mode .menu-icon {
    color: #ffffff;
  }

  .menu-icon:hover {
    color: #5f5f5f;
    transform: scale(1.1);
  }

  body.dark-mode .menu-icon:hover {
    color: #cccccc;
  }

  .navmenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
  }

  body.dark-mode .navmenu {
    background: rgba(34, 34, 34, 0.95);
    box-shadow: -4px 0 12px rgba(255, 255, 255, 0.15);
  }

  .navmenu.open {
    right: 0;
  }

  .navmenu a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin: 8px 0;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
  }

  body.dark-mode .navmenu a {
    color: #ffffff;
  }

  .navmenu a:hover {
    background: #f5f5f5;
    color: #5f5f5f;
    transform: translateX(5px);
  }

  body.dark-mode .navmenu a:hover {
    background: #444444;
    color: #cccccc;
  }

  .navmenu .dropdown {
    width: 100%;
  }

  .navmenu .dropdown > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    padding-left: 20px;
  }

  body.dark-mode .dropdown-content {
    background: transparent;
  }

  .dropdown-content li a {
    padding: 12px 20px;
    font-size: 16px;
    color: #555;
    border-bottom: none;
  }

  body.dark-mode .dropdown-content li a {
    color: #cccccc;
  }

  .dropdown-content li a:hover {
    background: #f0f0f0;
    color: #333;
  }

  body.dark-mode .dropdown-content li a:hover {
    background: #555555;
    color: #ffffff;
  }

  .nav-icon {
    gap: 10px;
    z-index: 10001;
  }

  .nav-icon i {
    font-size: 22px;
    padding: 8px;
    margin-right: 0; /* Remove margin-right since gap is used */
  }

  .language-selector {
    margin-left: 0;
  }

  .language-selector select {
    padding: 8px 28px 8px 10px;
    font-size: 0.9rem;
    min-width: 100px;
  }

  .language-selector::after {
    right: 10px;
    font-size: 0.75rem;
  }

  /* Product page and other existing styles */
  .product-page {
    padding: 40px 3%;
  }

  .product-container {
    flex-direction: column;
    gap: 90px;
  }

  .product-main-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
  }

  .product-thumbnails {
    position: static;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 10;
  }

  .product-info h1 {
    font-size: 2rem;
  }

  .price {
    font-size: 1.5rem;
  }

  .add-to-cart {
    width: 100%;
    padding: 12px;
    font-size: 1rem;

  }

  .color-swatches {
    gap: 10px;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .image-overlay h3 {
    font-size: 1.5rem;
  }

  .grid-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .amig-product-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .amig-product-card {
    min-width: 85%;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  /* Header and navigation */
  header {
    padding: 5px 3%;
  }

  .logo img {
    max-width: 70px;
    margin-top: 5px;
  }

  .menu-icon {
    display: block;
    font-size: 28px;
    color: #2c2c2c;
    cursor: pointer;
    padding: 8px;
    z-index: 10002;
    transition: all 0.3s ease;
  }

  body.dark-mode .menu-icon {
    color: #ffffff;
  }

  .menu-icon:hover {
    color: #5f5f5f;
    transform: scale(1.1);
  }

  body.dark-mode .menu-icon:hover {
    color: #cccccc;
  }

  .navmenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 70px 15px 15px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
  }

  body.dark-mode .navmenu {
    background: rgba(34, 34, 34, 0.95);
    box-shadow: -4px 0 12px rgba(255, 255, 255, 0.15);
  }

  .navmenu.open {
    right: 0;
  }

  .navmenu a {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin: 6px 0;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
  }

  body.dark-mode .navmenu a {
    color: #ffffff;
  }

  .navmenu a:hover {
    background: #f5f5f5;
    color: #5f5f5f;
    transform: translateX(5px);
  }

  body.dark-mode .navmenu a:hover {
    background: #444444;
    color: #cccccc;
  }

  .navmenu .dropdown {
    width: 100%;
  }

  .navmenu .dropdown > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    padding-left: 20px;
  }

  body.dark-mode .dropdown-content {
    background: transparent;
  }

  .dropdown-content li a {
    padding: 10px 15px;
    font-size: 14px;
    color: #555;
    border-bottom: none;
  }

  body.dark-mode .dropdown-content li a {
    color: #cccccc;
  }

  .dropdown-content li a:hover {
    background: #f0f0f0;
    color: #333;
  }

  body.dark-mode .dropdown-content li a:hover {
    background: #555555;
    color: #ffffff;
  }

  .nav-icon {
    gap: 8px;
    z-index: 10001;
  }

  .nav-icon i {
    font-size: 20px;
    padding: 6px;
    margin-right: 0;
  }

  .language-selector {
    margin-left: 0;
  }

  .language-selector select {
    padding: 5px 20px 5px 6px;
    font-size: 0.85rem;
    min-width: 80px;
  }

  .language-selector::after {
    right: 6px;
    font-size: 0.7rem;
  }

  /* Other existing styles */
  section {
    padding: 5% 5%;
  }

  .sound-toggle {
    top: -70px;
    right: -100px;
    font-size: 16px;
    padding: 8px;
  }

  .main-home {
    height: 60vh;
    margin: 50px auto 0;
    width: 95%;
  }

  .main-text {
    padding: 10px 20px;
    transition: 0.4s;
    bottom: -100px;
  }

  .main-text h5 {
    font-size: 14px;
  }

  .main-text h1 {
    font-size: 36px;
    line-height: 1.2;
  }

  .main-text p {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .main-btn {
    font-size: 14px;
    padding: 10px 20px;
    bottom: 10px;
  }

  .add-to-cart {
    font-size: 12px;
  }

  .down-arrow {
    top: 80%;
    right: 5%;
  }

  .down i {
    font-size: 24px;
    padding: 8px;
  }

  .shop-products {
    padding: 30px 3% 40px;
  }

  .center-text h2 {
    font-size: 16px;
    margin-left: 0;
    text-align: center;
  }

  .products {
    flex-direction: column;
    overflow-x: hidden;
    scroll-snap-type: none;
  }

  .row.product-item {
    flex: none;
    max-width: 100%;
    margin: 0 auto;
  }

  .row.product-item img {
    height: 280px;
  }

  .scroll-btn {
    display: none;
  }

  .price h4 {
    font-size: 0.9rem;
  }

  .price h3 {
    font-size: 0.75rem;
  }

  .price p {
    font-size: 0.9rem;
  }

  .up-center-text h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .update-cart {
    grid-template-columns: 1fr;
  }

  .cart img {
    width: 100%;
    max-width: 300px;
  }

  .cart h4 {
    font-size: 16px;
  }

  .cart p {
    font-size: 14px;
    line-height: 22px;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .first-info img {
    width: 100px;
  }

  .search-container {
    width: 90%;
    top: 60px;
    padding: 8px 12px;
  }

  .search-container input {
    font-size: 14px;
    padding: 8px;
  }

  .search-container button {
    font-size: 16px;
    top: 9px;
  }

  .fifth-info {
    max-width: 300px;
  }

  .fifth-info h4 {
    font-size: 1.2rem;
  }

  .fifth-info p {
    font-size: 0.9rem;
  }

  .fifth-info input[type="email"] {
    font-size: 0.9rem;
    padding: 8px;
  }

  .fifth-info button {
    font-size: 0.9rem;
    padding: 8px;
  }

  .cart-modal {
    width: 260px;
  }

  .cart-item img {
    width: 80px;
    margin-right: 10px;
  }

  .cart-item-details {
    margin: 8px;
  }

  .cart-summary {
    font-size: 1rem;
  }

  .proceed-btn {
    padding: 8px;
    font-size: 0.9rem;
  }

  .image-grid-section {
    padding: 40px 15px;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .grid-item img {
    height: 200px;
  }

  .image-overlay h3 {
    font-size: 1.4rem;
  }

  .grid-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .shop-products {
    padding: 20px 3% 40px;
  }

  .row.product-item img {
    height: 300px;
  }

  .price h4 {
    font-size: 0.9rem;
  }

  .price p {
    font-size: 0.9rem;
  }

  .image-grid-section {
    padding: 40px 15px;
  }

  .image-overlay h3 {
    font-size: 1.3rem;
  }

  .product-page {
    padding: 40px 15px;
  }

  .product-thumbnails img {
    width: 60px;
    height: 60px;
  }

  .product-info h1 {
    font-size: 1.8rem;
  }

  .color-swatch {
    width: 28px;
    height: 28px;
  }

  .add-to-cart {
    font-size: 1rem;
  }
}

.cart-modal {
  z-index: 10000;
  transition: transform 0.3s ease;
}

body.cart-open {
  overflow: hidden;
}

.cart-modal.open ~ main::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.empty-cart {
  text-align: center;
  padding: 40px 0;
  color: var(--text-gray);
}

.proceed-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.proceed-btn:disabled:hover {
  background: var(--primary-white);
  color: var(--primary-black);
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item {
  position: relative;
}

.remove-item {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--error-red);
  cursor: pointer;
  font-size: 16px;
}

/* New styles for newsletter feedback */
.newsletter-feedback {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10000;
  font-family: "Jost", sans-serif;
}

.newsletter-feedback.show {
  opacity: 1;
}

/* ChatBot Section */
.chatbot-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transition: transform 0.3s ease-in-out;
}

.chatbot-container:hover {
  transform: translateY(-4px);
}

.chatbot-container:not(:has(.chatbot.hidden)) .chatbot-toggle {
  display: none;
}

.chatbot-toggle {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 8px 2px rgba(199, 199, 199, 0.7),
    /* main glow */ 0 0 20px 5px rgba(199, 199, 199, 0.5),
    /* bigger blur */ 0 10px 30px rgba(0, 0, 0, 0.15); /* original shadow for depth */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.chatbot-toggle:hover {
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7),
    /* main glow */ 0 0 20px 5px rgba(255, 255, 255, 0.5),
    /* bigger blur */ 0 10px 30px rgba(0, 0, 0, 0.15); /* original shadow for depth */
  background: linear-gradient(135deg, #333, #1a1a1a);
}

.chatbot-toggle:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.chatbot {
  background-color: #fff;
  border-radius: 20px;
  /* Neon glow */
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7),
    /* main glow */ 0 0 20px 5px rgba(255, 255, 255, 0.5),
    /* bigger blur */ 0 10px 30px rgba(0, 0, 0, 0.15); /* original shadow for depth */
  border: 0.5px solid #fff; /* ADDED solid white border */
  width: 350px;
  max-height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease,
    scale 0.4s ease;
}

.chatbot:not(.hidden) {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.chatbot-header {
  background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 20px;
  font-family: "Jost", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

#close-chatbot {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

#close-chatbot:hover {
  color: #ddd;
  transform: rotate(90deg);
}

#close-chatbot:focus {
  outline-offset: 2px;
}

.chatbot-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #f8f8f8;
  scrollbar-width: thin;
  scrollbar-color: #1a1a1a #f8f8f8;
  position: relative; /* Add relative positioning to contain absolute children */
}

.chatbot-messages p a {
  color: #0060c6;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.chatbot-messages p a:hover,
.chatbot-messages p a:focus {
  color: #0056b3;
  outline: none;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: #f8f8f8;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 3px;
}

.bot-message-container,
.user-message-container {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}

.bot-avatar {
  background-color: #00000000;
  color: #000000;
}

.user-avatar {
  margin: 0 0 15px;
  background-color: #e8e8e800;
  color: #1a1a1a;
  
}
/* WhatsApp-style: User avatar on the right */
.user-message-container {
  display: flex !important;
  justify-content: flex-end !important;   /* pushes everything to the right */
  align-items: flex-end !important;
  gap: 8px !important;
  
}

/* Reverse the order inside user messages: text first, avatar second */
.user-message-container > .message-avatar {
  order: 2 !important;     /* avatar moves to the right */
}

.user-message-container > .user-message {
  order: 1 !important;     /* text stays on the left of the avatar */
  margin: 0 !important;
}

.chatbot-messages p {
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  font-family: "Jost", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  max-width: 80%;
  position: relative;
  animation: slideIn 0.3s ease;
}

.chatbot-messages .user-message {
  background-color: #1a1a1a;
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chatbot-messages .bot-message {
  background-color: #e8e8e8;
  color: #1a1a1a;
  border-bottom-left-radius: 4px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-indicator {
  display: flex;
  justify-content: flex-start;
  padding: 10px 20px;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f8f8f8; /* Match chatbot-messages background */
  z-index: 100; /* Ensure it stays above messages */
}

.loading-indicator.hidden {
  display: none;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #1a1a1a;
  border-radius: 50%;
  margin: 0 4px;
  animation: bounce 1.2s infinite ease-in-out;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.chatbot-form {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background-color: #fff;
  border-top: none;
  gap: 12px;
  box-sizing: border-box;
}

#chatbot-input {
  flex-grow: 1;
  border: none;
  border-radius: 24px;
  padding: 14px 18px;
  font-family: "Jost", sans-serif;
  font-size: 15px;
  background-color: #f0f0f0;
  color: #1a1a1a;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

#chatbot-input::placeholder {
  color: #888;
  font-style: italic;
}

#chatbot-input:focus {
  outline: none;
  background-color: #e8e8e8;
  box-shadow: none;
}

.chatbot-form button {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.chatbot-form button:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, #333, #1a1a1a);
}

.chatbot-form button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.chatbot-form button i {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.chatbot-form button:hover i {
  transform: translateX(1px);
}

.chatbot.hidden {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .chatbot-container {
    bottom: 16px;
    right: 16px;
  }

  .chatbot {
    width: 300px;
    max-height: 420px;
  }

  .chatbot-toggle {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .chatbot-header h3 {
    font-size: 18px;
  }

  .chatbot-messages p {
    font-size: 14px;
    max-width: 85%;
  }

  #chatbot-input {
    font-size: 14px;
    padding: 10px 14px;
  }

  .chatbot-form button {
    padding: 10px 14px;
  }
}

/* Related Products Section */
      .related-products-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}
.related-products-section h6 {
  font-size: 1.5em;
  margin-bottom: 20px;
  text-align: center;
}

.related-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  overflow-x: hidden;
}

/* Typing indicator styles */
.amig-loading-indicator {
  display: flex;
  justify-content: flex-start;
  padding: 10px 20px;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f8f8f8;
  z-index: 100;
}

.amig-loading-indicator.amig-hidden {
  display: none;
}

.amig-dot {
  width: 8px;
  height: 8px;
  background-color: #1a1a1a;
  border-radius: 50%;
  margin: 0 4px;
  animation: amig-bounce 1.2s infinite ease-in-out;
}

.amig-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.amig-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes amig-bounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Product preview styles */
#amig-chatbot-product-preview {
  font-family: Arial, sans-serif;
}

.amig-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.amig-preview-title {
  font-size: 18px;
  font-weight: bold;
  color: #1a1a1a;
}

.amig-preview-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #1a1a1a;
  padding: 5px 10px;
}

.amig-preview-close:hover {
  color: #555;
}

.amig-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding-top: 20px;
}

.amig-product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

.amig-product-card:hover {
  transform: translateY(-5px);
}

.amig-product-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 70%;
  height: 150px;
  object-fit: cover;
}

.amig-product-info {
  padding: 10px;
  text-align: center;
}

.amig-product-name {
  font-size: 16px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 5px;
}

.amig-product-category {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.amig-product-price {
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.amig-product-link {
  display: inline-block;
  padding: 5px 10px;
  background-color: #1a1a1a;
  color: #fff;
  border: 1px solid #111;
  text-decoration: none;
  border-radius: 4px;
  margin-bottom: 5px;
  cursor: pointer;
}

.amig-product-link:hover {
  background-color: #ffffff;
  color: #1a1a1a;
}

.amig-product-add {
  display: inline-block;
  padding: 5px 10px;
  background-color: #000000;
  color: #fff;
  border: 1px solid #111;
  border-radius: 4px;
  margin-bottom: 5px;
  cursor: pointer;
}

.amig-product-add:hover {
  background-color: #ffffff;
  color: #000000;
}

/* Rating stars */
:root {
  --star-size: 2rem;
  --star-color: #d1d5db; /* light gray */
  --star-active: #f5c518; /* gold */
  --star-hover: #fcd34d;
  --transition: 0.25s ease;
}

.reviews {
  font-family: system-ui, sans-serif;
}

.rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 1rem;
}

.rating input {
  display: none;
}

/* Star shape with ::before pseudo-element */
.rating label {
  cursor: pointer;
  width: var(--star-size);
  height: var(--star-size);
  background: none;
  position: relative;
  transition: transform var(--transition);
}

.rating label::before {
  content: "★";
  position: absolute;
  inset: 0;
  font-size: var(--star-size);
  color: var(--star-color);
  text-align: center;
  line-height: var(--star-size);
  transition: color var(--transition), transform var(--transition);
}

/* Hover and focus effects */
.rating label:hover::before,
.rating label:hover ~ label::before {
  color: var(--star-hover);
  transform: scale(1.1);
}

/* Checked state (selected stars) */
.rating input:checked ~ label::before {
  color: var(--star-active);
  transform: scale(1.05);
}

/* Subtle animation when selecting */
.rating input:checked + label::before {
  animation: pop 0.3s cubic-bezier(0.45, 1.4, 0.6, 1);
}

.average-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.avg-stars {
  color: gold;
  font-size: 1.5rem;
  letter-spacing: 0.1rem;
}

.avg-score {
  font-weight: 600;
}

.review-count {
  color: #666;
  font-size: 0.9rem;
}

.review-message {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  text-align: center;
  color: #28a745; /* green success message */
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.review-message.show {
  opacity: 1;
}


@keyframes pop {
  0% {
    transform: scale(0.5);
    opacity: 0.6;
  }
  60% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.stock-status {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 8px 0 16px;
  min-height: 1.4em;
}

.stock-status.in-stock {
  color: #2ecc71;
}

.stock-status.low-stock {
  color: #e67e22;
}

.stock-status.out-of-stock {
  color: #c0392b;
  font-weight: 600;
}

.newsletter-feedback {
  margin-top: 1rem;
  font-family: 'Orbitron', 'Jost', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: #ffffff;
  opacity: 0;
  text-align: center;
  text-shadow:
    0 0 10px rgba(255,255,255,0.5),
    0 0 24px rgba(255,255,255,0.3);
}

.newsletter-feedback.show {
  animation:
    fadeGlowIn 1.4s ease-out forwards,
    fadeGlowOut 1.2s ease-in forwards 4.5s;
}
@keyframes fadeGlowOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
    text-shadow:
      0 0 0 rgba(255,255,255,0);
  }
}
