body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f5f6fa 0%, #e8edff 100%);
  color: #222;
  overflow-x: hidden;
  position: relative;
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.background-paws {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.paw {
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('/static/img/main/paw.png');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -2;
  opacity: 0.3;
  pointer-events: none;
  animation: pawFloat 10s infinite ease-in-out;
}

@keyframes pawFloat {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-20px) rotate(5deg); opacity: 0.5; }
  100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
}

.hero {
  position: relative;
  height: 600px;
  background: url('/static/img/main/MainRuna3.png') top center / cover no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Slightly darker overlay for better text contrast */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  z-index: 2;
}

.title {
  font-size: 80px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4); /* Enhanced text shadow */
  background: linear-gradient(45deg, #ff6f61, #ff9f43);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 3s infinite alternate;
}

@keyframes gradientText {
  0% { background-position: 0%; }
  100% { background-position: 100%; }
}

.subtitle {
  font-size: 40px;
  margin: 10px 0;
  font-weight: 600;
  font-style: italic;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Enhanced text shadow */
}

.tagline {
  font-size: 22px;
  margin-bottom: 30px;
  opacity: 0.9;
  font-style: italic;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Enhanced text shadow */
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.secondary-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  color: white; /* Ensure button text is white for contrast */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Added text shadow for buttons */
}

.btn.primary {
  background: linear-gradient(45deg, #ff6f61, #ff9f43);
  width: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1.5;
  font-style: normal;
  letter-spacing: normal;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.6);
  animation: pulseShadow 1s infinite;
}

@keyframes pulseShadow {
  0% { box-shadow: 0 4px 12px rgba(255, 111, 97, 0.4); }
  50% { box-shadow: 0 6px 16px rgba(255, 159, 67, 0.6); }
  100% { box-shadow: 0 4px 12px rgba(255, 111, 97, 0.4); }
}

.btn.secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
  width: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  line-height: 1.5;
  font-style: normal;
  letter-spacing: normal;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.btn[disabled] {
  background: #ccc;
  color: #444; /* Darkened for better contrast */
  cursor: not-allowed;
}

.btn[disabled]:hover {
  transform: none;
  box-shadow: none;
}

.reset-btn.active {
  background: linear-gradient(45deg, #ff6f61, #ff9f43);
  color: white;
  border: none;
}

.reset-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.6);
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.categories h2,
.products h2 {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #d94f43; /* Slightly darker shade for better visibility */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Enhanced text shadow */
  font-style: italic;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  row-gap: 30px;
  justify-content: center;
  align-items: center;
  min-height: 150px;
  margin-bottom: 25px;
  position: relative;
  z-index: 10;
}

.category-item {
  background: white;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 111, 97, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 11;
  will-change: transform, box-shadow, background;
}

.category-item.active {
  background: linear-gradient(45deg, #fff7f5, #ffedd9);
  box-shadow: 0 8px 20px rgba(255, 159, 67, 0.4);
  border: 2px solid #ff6f61;
}

.category-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 111, 97, 0.5);
  background: linear-gradient(45deg, #fff7f5, #ffedd9);
}

.category-item span {
  font-size: 18px;
  font-weight: 600;
  color: #222; /* Darkened for better contrast */
  word-break: break-word;
  font-style: italic;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.category-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.category-item:hover .category-icon {
  animation: jumpIcon 0.5s ease;
}

@keyframes jumpIcon {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px) rotate(10deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.subcategory-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 25px;
  gap: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.subcategory-list.show {
  opacity: 1;
  transform: translateY(0);
}

.subcategory-item {
  background: #f9f9f9;
  padding: 12px 20px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 500;
  color: #222; /* Darkened for better contrast */
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(255, 111, 97, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.subcategory-item:hover {
  background: #ff6f61;
  color: white;
  border-color: #ff6f61;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 159, 67, 0.3);
}

.subcategory-item.active {
  background: #ff6f61;
  color: white;
  border-color: #ff6f61;
}

.product-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  margin-top: 30px;
}

.search-input {
  width: 100%;
  max-width: 400px;
  padding: 12px 20px;
  font-size: 16px;
  border: 1px solid #ccc; /* Slightly darker border */
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(255, 111, 97, 0.2);
  transition: all 0.3s ease;
  color: #222; /* Darker text color */
}

.search-input:focus {
  outline: none;
  border-color: #ff6f61;
  box-shadow: 0 4px 12px rgba(255, 159, 67, 0.4);
}

.sort-container {
  position: relative;
}

.sort-button {
  padding: 10px 20px;
  background: #fff7f5;
  color: #d94f43; /* Darker shade for contrast */
  font-weight: 600;
  border-radius: 20px 20px 0 0;
  border: 1px solid #ffccbc;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(255, 138, 128, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.sort-button:hover {
  background: #ff8a80;
  color: white;
  border-color: #ff8a80;
  box-shadow: 0 4px 10px rgba(255, 138, 128, 0.3);
}

.sort-button.active {
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  background: #ff8a80;
  color: white;
}

.arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.sort-button.active .arrow {
  transform: rotate(180deg);
}

.sort-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: calc(100% - 2px);
  background: #fff7f5;
  color: #222; /* Darker text color */
  border-radius: 0 0 20px 20px;
  border: 1px solid #ffccbc;
  border-top: none;
  box-shadow: 0 4px 15px rgba(255, 138, 128, 0.2);
  z-index: 1000;
  overflow: hidden;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.sort-menu.show {
  display: block;
  transform: scaleY(1);
}

.sort-option {
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-top: 1px solid rgba(255, 204, 188, 0.2);
  color: #222; /* Darker text color */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.sort-option:first-child {
  border-top: none;
}

.sort-option:hover {
  background: #ffccbc;
  color: white;
}

.sort-option.active {
  background: #ffccbc;
  color: white;
  font-weight: 600;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center;
}

.product-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 111, 97, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: pulseCard 2s infinite alternate;
  display: flex;
  flex-direction: column;
  min-height: 350px;
}

@keyframes pulseCard {
  0% { box-shadow: 0 4px 15px rgba(255, 111, 97, 0.2); }
  100% { box-shadow: 0 6px 20px rgba(255, 159, 67, 0.3); }
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 111, 97, 0.5);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(45deg, #ff6f61, #ff9f43);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover::before {
  opacity: 1;
}

.product-image {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #222; /* Darker text color */
  font-style: italic;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
  flex-grow: 0;
}

.product-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex-grow: 1;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: #d94f43; /* Slightly darker for visibility */
  margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.product-price s {
  color: #777; /* Darker strike-through text */
  font-weight: 400;
}

.product-quantity {
  font-size: 14px;
  color: #444; /* Darker for better contrast */
  margin-bottom: 15px;
  font-style: italic;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.open-btn, .add-to-cart {
  background: linear-gradient(45deg, #ff6f61, #ff9f43);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Added text shadow */
}

.open-btn:hover, .add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.4);
}

.open-btn:active::after, .add-to-cart:active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: ripple 0.6s linear;
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(50); opacity: 0; }
}

.floating-cart {
  position: fixed;
  top: 80px;
  right: 20px;
  background: rgba(50, 50, 50, 0.7);
  padding: 10px 15px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  z-index: 9000;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.floating-cart.dimmed {
  filter: grayscale(80%);
  opacity: 0.7;
  pointer-events: none;
}

@supports not (backdrop-filter: blur(5px)) {
  .floating-cart {
    background: rgba(50, 50, 50, 0.9);
  }
}

.cart-icon {
  color: #fff; /* Changed to white for better contrast */
  font-size: 24px;
}

.cart-count {
  background: white;
  color: #d94f43; /* Darker shade for contrast */
  border-radius: 50%;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.cart-popup {
  display: none;
  position: fixed;
  top: 130px;
  right: 20px;
  background: rgba(255, 247, 245, 0.7);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(255, 111, 97, 0.3);
  max-width: 300px;
  z-index: 9000;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.cart-popup.dimmed {
  filter: grayscale(80%);
  opacity: 0.7;
  pointer-events: none;
}

@supports not (backdrop-filter: blur(5px)) {
  .cart-popup {
    background: rgba(255, 247, 245, 0.9);
  }
}

.cart-content {
  text-align: center;
}

.cart-placeholder {
  color: #444; /* Darker for contrast */
  font-size: 14px;
  margin: 10px 0;
  font-style: italic;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.cart-items {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(255, 111, 97, 0.1);
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.cart-item span {
  font-size: 14px;
  color: #222; /* Darker for contrast */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.checkout-btn {
  background: linear-gradient(45deg, #28a745, #34c759);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Added text shadow */
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.cart-close {
  font-size: 20px;
  cursor: pointer;
  color: #d94f43; /* Darker for visibility */
  position: absolute;
  top: 15px;
  right: 15px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Subtle text shadow */
}

.contact-modal, .about-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.contact-modal.show, .about-modal.show {
  display: flex;
  opacity: 1;
}

.contact-content, .about-content {
  background: linear-gradient(135deg, #ffffff 0%, #f5f6fa 100%);
  border-radius: 25px;
  max-width: 600px;
  width: 90%;
  padding: 0 20px 20px 20px;
  position: relative;
  margin-top: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}

.contact-modal.show .contact-content, .about-modal.show .about-content {
  transform: scale(1);
  opacity: 1;
}

.contact-content h2, .about-content h2 {
  font-size: 36px;
  color: #d94f43; /* Darker shade for visibility */
  margin: 0 0 10px;
  font-style: italic;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Enhanced text shadow */
  text-align: center;
  animation: fadeInDown 0.5s ease;
  position: relative;
  z-index: 1;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-info p.contact-item {
  font-size: 18px;
  margin: 15px 0;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9); /* Slightly more opaque background */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #222; /* Darker text color */
}

.contact-info p.contact-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  font-size: 24px;
  animation: iconBounce 1s infinite alternate;
}

@keyframes iconBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

.contact-info a {
  color: #d94f43; /* Darker for visibility */
  text-decoration: none;
  transition: color 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.contact-info a:hover {
  color: #ff9f43;
  text-decoration: underline;
}

.social-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-left: 5px;
}

.social-link {
  display: flex;
  align-items: center;
  color: #d94f43; /* Darker for visibility */
  text-decoration: none;
  transition: color 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.social-link:hover {
  color: #ff9f43;
  text-decoration: underline;
}

.about-info .about-item {
  font-size: 18px;
  margin: 15px 0;
  font-style: italic;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9); /* Slightly more opaque background */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #222; /* Darker text color */
}

.about-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.about-text {
  text-align: left;
}

.about-text strong {
  display: block;
  margin-bottom: 5px;
  color: #222; /* Darker for contrast */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.about-text p {
  margin: 5px 0;
  font-size: 16px;
  color: #222; /* Darker for contrast */
}

.about-map {
  margin-top: 20px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: mapZoom 0.8s ease;
}

@keyframes mapZoom {
  from { transform: scale(0.95); opacity: 0.8; }
  to { transform: scale(1); opacity: 1; }
}

.about-map iframe {
  border: none;
  transition: transform 0.3s ease;
}

.about-map:hover iframe {
  transform: scale(1.02);
}

.close-btn {
  font-size: 24px;
  cursor: pointer;
  color: #d94f43; /* Darker for visibility */
  transition: color 0.3s ease, transform 0.3s ease;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 1000;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Subtle text shadow */
}

.close-btn:hover {
  color: #ff9f43;
  transform: rotate(90deg);
}

.product-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.product-modal-content {
  background: white;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  padding: 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 25px rgba(255, 159, 67, 0.3);
  z-index: 10000;
  max-height: 90vh;
  overflow-y: hidden;
}

.product-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: #444; /* Darker for contrast */
  transition: color 0.3s ease;
  cursor: pointer;
  padding: 5px;
  z-index: 10001;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Subtle text shadow */
}

.product-modal-close:hover {
  color: #ff6f61;
}

.modal-product-image {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  margin-bottom: 20px;
}

.modal-price {
  font-size: 22px;
  font-weight: 700;
  color: #d94f43; /* Darker for visibility */
  margin: 10px 0;
  font-style: italic;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.modal-quantity {
  font-size: 16px;
  color: #444; /* Darker for contrast */
  margin: 10px 0;
  font-style: italic;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.modal-description {
  font-size: 16px;
  color: #222; /* Darker for contrast */
  margin: 10px 0;
  text-align: left;
  max-height: 150px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #444; /* Darker for contrast */
  background: #fff7f5;
  box-shadow: 0 -2px 10px rgba(255, 111, 97, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.reset-btn {
  background: #ccc;
  color: #222; /* Darker for contrast */
  border: 1px solid #bbb;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.reset-btn:hover {
  background: #ff6f61;
  color: white;
  border-color: #ff6f61;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pagination-btn {
  background: linear-gradient(45deg, #ff6f61, #ff9f43);
  color: white;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 10px;
  min-width: 40px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Added text shadow */
}

.pagination-btn:disabled {
  background: #ccc;
  color: #444; /* Darker for contrast */
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 8px;
}

.page-number {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #222; /* Darker for contrast */
  background: #fff7f5;
  border: 1px solid #ffccbc;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.page-number:hover {
  background: #ff6f61;
  color: white;
  border-color: #ff6f61;
}

.page-number.active {
  background: #ff6f61;
  color: white;
  border-color: #ff6f61;
  font-weight: 700;
}

.page-number.ellipsis {
  cursor: default;
  background: none;
  border: none;
  color: #222; /* Darker for contrast */
}

.loading {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.skeleton {
  background: #f0f0f0;
  border-radius: 15px;
  height: 350px;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { background-color: #f0f0f0; }
  50% { background-color: #e0e0e0; }
  100% { background-color: #f0f0f0; }
}

.empty-message {
  font-size: 16px;
  color: #444; /* Darker for contrast */
  text-align: center;
  font-style: italic;
  margin: 20px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

/* Updated styles for social media links */
.social-title {
  font-size: 20px;
  color: #d94f43; /* Darker for visibility */
  margin: 15px 0 10px;
  font-style: italic;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Enhanced text shadow */
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.9); /* Slightly more opaque background */
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #222; /* Darker for contrast */
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.social-link:hover {
  background: linear-gradient(45deg, #f5f6fa, #ffebe6);
  color: #d94f43;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.3);
}

.social-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff6f61;
  transition: width 0.3s ease;
}

.social-link:hover::after {
  width: 100%;
}

.social-link:hover .social-icon {
  animation: iconPulse 0.6s ease-in-out;
}

@keyframes iconPulse {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.social-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .hero {
    height: 400px;
  }

  .title {
    font-size: 48px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5); /* Enhanced for smaller screens */
  }

  .subtitle {
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Enhanced for smaller screens */
  }

  .tagline {
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Enhanced for smaller screens */
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Added text shadow */
  }

  .btn.primary {
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.5;
    font-style: normal;
    letter-spacing: normal;
  }

  .btn.secondary {
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.5;
    font-style: normal;
    letter-spacing: normal;
  }

  .category-item {
    padding: 15px;
  }

  .category-icon {
    width: 50px;
    height: 50px;
  }

  .category-item span {
    color: #222; /* Ensure contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
  }

  .product-card {
    padding: 15px;
    min-height: 300px;
  }

  .product-image {
    height: 120px;
  }

  .product-title,
  .product-quantity {
    color: #222; /* Ensure contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
  }

  .search-input {
    padding: 10px 15px;
    color: #222; /* Darker text color */
  }

  .sort-menu {
    width: calc(100% - 2px);
    left: 0;
    right: auto;
    transform: scaleY(0);
  }

  .sort-menu.show {
    transform: scaleY(1);
  }

  .subcategory-list {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .subcategory-item {
    color: #222; /* Darker for contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
  }

  .product-modal-content {
    max-height: 90vh;
    overflow-y: hidden;
  }

  .modal-product-image {
    max-height: 200px;
  }

  .modal-description {
    max-height: 120px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 15px;
    color: #222; /* Darker for contrast */
  }

  .product-modal-close {
    top: 10px;
    right: 10px;
    padding: 5px;
    color: #444; /* Darker for contrast */
  }

  .contact-content, .about-content {
    padding: 0 15px 15px 15px;
  }

  .contact-content h2, .about-content h2 {
    font-size: 28px;
    margin: 0 0 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Enhanced text shadow */
  }

  .contact-info p.contact-item, .about-info .about-item {
    font-size: 16px;
    color: #222; /* Darker for contrast */
  }

  .close-btn {
    font-size: 20px;
    width: 28px;
    height: 28px;
    top: 10px;
    right: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Subtle text shadow */
  }

  .social-links {
    flex-direction: column;
    gap: 10px;
  }

  .social-link {
    padding: 10px 20px;
    font-size: 14px;
    color: #222; /* Darker for contrast */
  }

  .social-icon {
    width: 28px;
    height: 28px;
  }

  .social-title {
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Enhanced text shadow */
  }
}

@media (max-width: 480px) {
  .category-list {
    gap: 10px;
    row-gap: 25px;
  }

  .category-item {
    padding: 10px;
    margin-bottom: 15px;
  }

  .category-item span {
    color: #222; /* Ensure contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
  }

  .product-card {
    padding: 10px;
    min-height: 280px;
  }

  .product-image {
    height: 100px;
  }

  .product-title,
  .product-quantity {
    color: #222; /* Ensure contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
  }

  .title {
    font-size: 36px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5); /* Enhanced for smaller screens */
  }

  .subtitle {
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Enhanced for smaller screens */
  }

  .pagination {
    gap: 8px;
  }

  .pagination-btn,
  .page-number {
    padding: 6px 10px;
    font-size: 12px;
    color: #222; /* Darker for contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
  }

  .product-modal-content {
    padding: 20px;
  }

  .modal-description {
    max-height: 100px;
    overflow-y: auto;
    color: #222; /* Darker for contrast */
  }

  .btn.primary {
    width: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.5;
    font-style: normal;
    letter-spacing: normal;
  }

  .btn.secondary {
    width: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.5;
    font-style: normal;
    letter-spacing: normal;
  }

  .contact-content, .about-content {
    padding: 0 10px 10px 10px;
  }

  .contact-content h2, .about-content h2 {
    font-size: 24px;
    margin: 0 0 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Enhanced text shadow */
  }

  .contact-info p.contact-item, .about-info .about-item {
    font-size: 14px;
    color: #222; /* Darker for contrast */
  }

  .social-icon {
    width: 24px;
    height: 24px;
  }

  .close-btn {
    font-size: 18px;
    width: 26px;
    height: 26px;
    top: 10px;
    right: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Subtle text shadow */
  }

  .social-links {
    gap: 8px;
  }

  .social-link {
    padding: 8px 16px;
    font-size: 13px;
    color: #222; /* Darker for contrast */
  }

  .social-title {
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Enhanced text shadow */
  }
}

.product-list {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.product-list.loading-active {
  opacity: 0.7;
}

.skeleton {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 111, 97, 0.2);
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Floating Auth Button */
.floating-auth {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(50, 50, 50, 0.7);
  padding: 10px 15px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  z-index: 9500;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.floating-auth:hover {
  background: linear-gradient(45deg, #ff6f61, #ff9f43);
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.6);
}

.floating-auth.dimmed {
  filter: grayscale(80%);
  opacity: 0.7;
  pointer-events: none;
}

.auth-icon {
  color: #fff; /* White for contrast */
  font-size: 24px;
}

#authText {
  color: #fff; /* White for contrast */
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Added text shadow */
}

@supports not (backdrop-filter: blur(5px)) {
  .floating-auth {
    background: rgba(50, 50, 50, 0.9);
  }
}

/* Auth Modals */
.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-modal.show {
  display: flex !important;
  opacity: 1;
}

.auth-content {
  background: linear-gradient(135deg, #ffffff 0%, #f5f6fa 100%);
  border-radius: 25px;
  max-width: 400px;
  width: 90%;
  padding: 30px;
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-modal.show .auth-content {
  transform: scale(1);
  opacity: 1;
}

.auth-content h2 {
  font-size: 28px;
  color: #d94f43; /* Darker for visibility */
  margin: 0 0 20px;
  font-style: italic;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Enhanced text shadow */
  text-align: center;
}

.auth-field {
  margin-bottom: 20px;
}

.auth-field label {
  display: block;
  font-size: 16px;
  color: #222; /* Darker for contrast */
  margin-bottom: 5px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.auth-field input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc; /* Slightly darker border */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(255, 111, 97, 0.2);
  transition: all 0.3s ease;
  touch-action: manipulation;
  color: #222; /* Darker text color */
}

.auth-field input:focus {
  outline: none;
  border-color: #ff6f61;
  box-shadow: 0 4px 12px rgba(255, 159, 67, 0.4);
}

.auth-btn {
  background: linear-gradient(45deg, #ff6f61, #ff9f43);
  color: white;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Added text shadow */
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.6);
}

.auth-message {
  margin-top: 15px;
  font-size: 14px;
  color: #222; /* Darker for contrast */
  text-align: center;
  font-style: italic;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.auth-switch {
  margin-top: 15px;
  font-size: 14px;
  color: #444; /* Darker for contrast */
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.auth-switch a {
  color: #d94f43; /* Darker for visibility */
  text-decoration: none;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.auth-switch a:hover {
  color: #ff9f43;
  text-decoration: underline;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero {
    height: 400px;
  }

  .title {
    font-size: 48px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5); /* Enhanced for smaller screens */
  }

  .subtitle {
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Enhanced for smaller screens */
  }

  .tagline {
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Enhanced for smaller screens */
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Added text shadow */
  }

  .btn.primary {
    width: 100px;
  }

  .btn.secondary {
    width: 100px;
  }

  .category-item {
    padding: 15px;
  }

  .category-icon {
    width: 50px;
    height: 50px;
  }

  .category-item span {
    color: #222; /* Ensure contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
  }

  .product-card {
    padding: 15px;
    min-height: 300px;
  }

  .product-image {
    height: 120px;
  }

  .product-title,
  .product-quantity {
    color: #222; /* Ensure contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
  }

  .search-input {
    padding: 10px 15px;
    color: #222; /* Darker text color */
  }

  .sort-menu {
    width: calc(100% - 2px);
    left: 0;
    right: auto;
    transform: scaleY(0);
  }

  .sort-menu.show {
    transform: scaleY(1);
  }

  .sort-option {
    color: #222; /* Darker for contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
  }

  .subcategory-list {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .subcategory-item {
    color: #222; /* Darker for contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
  }

  .product-modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-product-image {
    max-height: 200px;
  }

  .modal-description {
    max-height: 120px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 15px;
    color: #222; /* Darker for contrast */
  }

  .product-modal-close {
    top: 10px;
    right: 10px;
    padding: 5px;
    color: #444; /* Darker for contrast */
  }

  .contact-content, .about-content, .auth-content {
    padding: 15px;
  }

  .contact-content h2, .about-content h2, .auth-content h2 {
    font-size: 28px;
    margin: 0 0 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Enhanced text shadow */
  }

  .contact-info p.contact-item, .about-info .about-item {
    font-size: 16px;
    color: #222; /* Darker for contrast */
  }

  .close-btn {
    font-size: 20px;
    width: 28px;
    height: 28px;
    top: 10px;
    right: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Subtle text shadow */
  }

  .social-links {
    flex-direction: column;
    gap: 10px;
  }

  .social-link {
    padding: 10px 20px;
    font-size: 14px;
    color: #222; /* Darker for contrast */
  }

  .social-icon {
    width: 28px;
    height: 28px;
  }

  .social-title {
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Enhanced text shadow */
  }

  .floating-auth {
    top: 10px;
    right: 10px;
    padding: 8px 12px;
  }

  .floating-cart {
    top: 60px;
    right: 10px;
    padding: 8px 12px;
  }

  .cart-popup {
    top: 110px;
    right: 10px;
  }

  .auth-icon {
    font-size: 20px;
  }

  .auth-content {
    padding: 20px;
  }

  .auth-content h2 {
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Enhanced text shadow */
  }

  .auth-field input {
    font-size: 14px;
    padding: 8px;
    color: #222; /* Darker text color */
  }

  .auth-btn {
    font-size: 14px;
    padding: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Added text shadow */
  }
}

@media (max-width: 480px) {
  .category-list {
    gap: 10px;
    row-gap: 25px;
  }

  .category-item {
    padding: 10px;
    margin-bottom: 15px;
  }

  .category-item span {
    color: #222; /* Ensure contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
  }

  .product-card {
    padding: 10px;
    min-height: 280px;
  }

  .product-image {
    height: 100px;
  }

  .product-title,
  .product-quantity {
    color: #222; /* Ensure contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
  }

  .title {
    font-size: 36px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5); /* Enhanced for smaller screens */
  }

  .subtitle {
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Enhanced for smaller screens */
  }

  .pagination {
    gap: 8px;
  }

  .pagination-btn,
  .page-number {
    padding: 6px 10px;
    font-size: 12px;
    color: #222; /* Darker for contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
  }

  .product-modal-content {
    padding: 20px;
  }

  .modal-description {
    max-height: 100px;
    overflow-y: auto;
    color: #222; /* Darker for contrast */
  }

  .btn.primary {
    width: 90px;
  }

  .btn.secondary {
    width: 90px;
  }

  .contact-content, .about-content, .auth-content {
    padding: 10px;
  }

  .contact-content h2, .about-content h2, .auth-content h2 {
    font-size: 24px;
    margin: 0 0 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Enhanced text shadow */
  }

  .contact-info p.contact-item, .about-info .about-item {
    font-size: 14px;
    color: #222; /* Darker for contrast */
  }

  .social-icon {
    width: 24px;
    height: 24px;
  }

  .close-btn {
    font-size: 18px;
    width: 26px;
    height: 26px;
    top: 10px;
    right: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Subtle text shadow */
  }

  .social-links {
    gap: 8px;
  }

  .social-link {
    padding: 8px 16px;
    font-size: 13px;
    color: #222; /* Darker for contrast */
  }

  .social-title {
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Enhanced text shadow */
  }

  .floating-auth {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
  }

  .floating-cart {
    top: 50px;
    right: 10px;
    padding: 6px 10px;
  }

  .cart-popup {
    top: 100px;
    right: 10px;
  }

  .auth-icon {
    font-size: 18px;
  }

  .auth-content {
    padding: 15px;
  }

  .auth-content h2 {
    font-size: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Enhanced text shadow */
  }

  .auth-field input {
    font-size: 13px;
    padding: 7px;
    color: #222; /* Darker text color */
  }

  .auth-btn {
    font-size: 13px;
    padding: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Added text shadow */
  }
}

/* Стили для авторизованного состояния */
.floating-auth.authenticated {
  background: linear-gradient(45deg, #28a745, #34c759); /* Зеленый градиент для авторизованного состояния */
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.floating-auth.authenticated:hover {
  background: linear-gradient(45deg, #34c759, #28a745);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.6);
}

.floating-auth.authenticated .auth-icon {
  color: white; /* Иконка остается белой */
}

.floating-auth.authenticated #authText {
  color: white; /* Текст белый для контраста */
}


/* Стили для полей формы */
.auth-field input {
    transition: border-color 0.3s ease;
}

.auth-field input:invalid,
.auth-field input.invalid {
    border-color: #ff6f61 !important;
}

.auth-field input:valid:not(:placeholder-shown) {
    border-color: #28a745 !important;
}

/* Стили для кнопки */
button[type="submit"] {
    transition: opacity 0.3s ease, cursor 0.3s ease;
}

button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}