body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
}

/* Overlay Containers */
.loginContainer,
.addProductCatagoryPopupContainer,
.cart-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 10000;
}

/* Popup Content */
.cart-popup .popup-content,
.addProductCatagoryPopup {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 90%;
  max-width: 500px;
  box-sizing: border-box;
}

/* Button Styling */
button,
#addCatagory, .deleteFilterButton, .addToCartButton, .confirmDelete,
.cancelDelete, .closeCategoryPopup, .addProductCatagoryButton {
  background-color: #000;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 10px 5px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

button:hover,
#addCatagory:hover, .deleteFilterButton:hover, .addToCartButton:hover,
.confirmDelete:hover, .cancelDelete:hover, .closeCategoryPopup:hover,
.addProductCatagoryButton:hover {
  background-color: #383838;
}

#addCatagory {
  position: fixed;
  right: 80px;
  bottom: 18px;
}

/* Heading Bar */
.shirtsHeading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem;
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 5px;
}

.filterName {
  font-size: 1.5rem;
}

/* Product Grid */
.walmartProductContainer {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
  gap: 16px;
  height: 1497.91px;
}

/* Product Card */
.shirtContainer {
  width: 250px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  margin: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shirtContainer:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.frontImageAccessories {
  width: 100%;
  max-width: 160px;
  height: auto;
  margin-bottom: 12px;
  object-fit: contain;
  border-radius: 8px;
}

/* Name + Price */
.shirtName {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.2;
  max-height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.productPrice {
  font-size: 1.5rem;
  margin-top: 1rem;
  background: linear-gradient(180deg, #ffffff, white);
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
}

.knotCointLogo {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
}

/* Cart Button */
.addToCartButton {
  margin-top: 12px;
  width: 100%;
  background-color: #000;
  padding: 10px 0;
  font-size: 14px;
  border-radius: 6px;
}

.addToCartButton:hover {
  background-color: #333;
}

/* Quantity Buttons */
.qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
}

.qty button {
  background-color: #f1f1f1;
  border: none;
  width: 28px;
  height: 28px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.qty button:hover {
  background-color: #ddd;
}

.qtyInput {
  width: 40px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 2px;
  margin: 0 5px;
}

/* Colors & Logos */
.colorSquare, .logoSquare {
  width: 30px;
  height: 30px;
  margin: 5px;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 5px;
}

/* Popup Layout */
.product-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(30, 30, 30, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

.popup-content {
  background: #fff;
  max-width: 500px;
  width: 100%;
  border-radius: 20px;
  padding: 30px 25px;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.close-popup {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 26px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
}
.close-popup:hover {
  color: #333;
}

.popup-image {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 20px;
}

.price-display {
  font-size: 24px;
  font-weight: bold;
  color: #2e7d32;
  margin-bottom: 25px;
}

.color-options h4,
.size-options h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #444;
}

.color-option,
.size-option {
  display: inline-block;
  margin: 6px;
  cursor: pointer;
}

.color-option {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border 0.2s, transform 0.2s;
}
.color-option:hover {
  border-color: #555;
  transform: scale(1.1);
}

.size-option {
  padding: 8px 14px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  color: black;
}
.size-option:hover {
  background-color: #e0e0e0;
  border-color: #aaa;
}
.size-option.active,
.color-option.active {
  border: 2px solid #0077ff !important;
  background-color: #e8f0ff;
}

/* Add to Cart */
.cart-button-container {
  margin-top: 20px;
}

.add-to-cart-btn {
  background-color: #000;
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.add-to-cart-btn:hover {
  background-color: #333;
}
  .loaderContainer{
    display: flex;
    justify-content: bottom;
    align-items: center;
  }

/* Spinner Loader */
.spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #db3434;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: auto;
}
.categoriesContainer {
  position: sticky;
  top: 0px;
  z-index: 20; /* Make sure it stays on top */
  background-color: rgba(255, 255, 255, 0.233); /* Optional: prevent content from showing through */
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 10px 0; /* optional for spacing */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* optional: visual effect when sticky */
  backdrop-filter: blur(5px);
  border-radius: 3px;
  overflow-x: scroll;
}
.categoriesContainer a button{
  height: 40px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .shirtsHeading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .shirtContainer {
    width: 80%;
    margin: 0px;
  }

  .walmartProductContainer {
    flex-direction: column;
    align-items: center;
    margin: 0px;
    padding: 0px;
  }

  #addCatagory {
    right: 20px;
    bottom: 20px;
  }
  .popup-content {
    padding: 20px 15px;
  }
  .popup-content h2 {
   font-size: 15px;
   overflow-y: scroll;
   overflow-x: hidden;
  }
  .popup-content .popup-image{
   height: 150px;
  }
  .popup-content .color-option{
    height: 20px;
    width: 20px;
  }
  .shirtName {
    font-size: 16px;
  }

  .productPrice {
    font-size: 1.2rem;
  }
}
