body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #1a73e8;
  text-align: center;
  margin-bottom: 30px;
}

.message {
  padding: 15px;
  border-radius: 4px;
  font-weight: bold;
  margin-bottom: 20px;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.auth-button {
  display: inline-block;
  background-color: #1a73e8;
  color: #ffffff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.auth-button:hover {
  background-color: #165cb8;
}

.button {
  display: inline-block;
  background-color: #4caf50;
  color: #ffffff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #45a049;
}

.loading-spinner {
  display: none;
  text-align: center;
  padding: 20px;
}

.loading-spinner.active {
  display: block;
}

/* Loading Bar Styles */
.loading-bar-container {
  width: 100%;
  max-width: 600px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 0 auto 20px;
  overflow: hidden;
  display: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.loading-bar-container.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background-color: #3498db;
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 20px 20px;
  border-radius: 4px;
  transition: width 0.4s ease;
  animation: loading-bar-stripes 1s linear infinite;
}

@keyframes loading-bar-stripes {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 20px 0;
  }
}

.loading-status {
  text-align: center;
  color: #3498db;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.loading-status.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.product-card {
  width: 100%;
  background: #1f2937;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f8f9fa;
  cursor: pointer;
}

.product-image:hover {
  opacity: 0.9;
}

.product-details {
  padding: 1rem 0;
}

.product-title {
  font-weight: bold;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #ffffff;
  font-size: 1rem;
}

.product-price {
  color: #1a73e8;
  font-size: 1.2em;
  font-weight: bold;
}

.currency-panel {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

.currency-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: white;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.currency-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.currency-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 200px;
  background: #2c3e50;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: none;
  overflow: hidden;
}

.currency-dropdown.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.currency-search {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.currency-search input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.875rem;
}

.currency-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.currency-list {
  max-height: 250px;
  overflow-y: auto;
}

.currency-option {
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s ease;
  color: white;
}

.currency-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.currency-option.selected {
  background: rgba(52, 152, 219, 0.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Action buttons panel styles */
.action-buttons-panel {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 50;
}

.action-button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(52, 152, 219, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.action-button:hover {
  background: rgba(52, 152, 219, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.settings-toggle:hover {
  transform: rotate(30deg);
}

.favorites-button:hover {
  color: #fde047; /* Yellow color */
}

.login-toggle:hover {
  color: #93c5fd; /* Blue color */
}

.signup-toggle:hover {
  color: #86efac; /* Green color */
}

.logout-button:hover {
  color: #fca5a5; /* Red color */
}

.settings-dropdown,
.login-dropdown,
.signup-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 300px;
  background: #2c3e50;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: none;
  overflow: hidden;
  z-index: 1000;
}

.settings-dropdown.active,
.login-dropdown.active,
.signup-dropdown.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.settings-header,
.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-header h3,
.dropdown-header h3 {
  margin: 0;
  color: white;
  font-size: 1.1rem;
}

.close-settings,
.close-login,
.close-signup {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.close-settings:hover,
.close-login:hover,
.close-signup:hover {
  color: white;
}

.settings-section,
.dropdown-content {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Auth Tabs Styles */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.auth-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.75rem 1rem;
  flex: 1;
  text-align: center;
}

.auth-tab:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.auth-tab.active {
  color: white;
  border-bottom: 2px solid #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.auth-content {
  display: none;
}

.auth-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.auth-form input {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.375rem;
  color: white;
  margin-bottom: 1rem;
}

.auth-form input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.auth-form button {
  width: 100%;
  padding: 0.75rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-form button:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.settings-section h4 {
  margin: 0 0 0.75rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.marketplace-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.marketplace-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  cursor: pointer;
  padding: 0.25rem 0;
}

.marketplace-option input[type="checkbox"] {
  accent-color: #3498db;
}

.currency-select {
  width: 100%;
  padding: 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.9rem;
}

.currency-select option {
  background: #2c3e50;
  color: white;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.results-container,
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

@media (max-width: 1400px) {
  .results-container,
  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .results-container,
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .results-container,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 320px;
  }
}

.marketplace-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  text-decoration: none;
  width: 100%;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.marketplace-price:hover {
  background: rgba(52, 152, 219, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* No pricing style */
.marketplace-price.no-pricing {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.2);
  cursor: default;
}

.marketplace-price.no-pricing:hover {
  background: rgba(255, 152, 0, 0.15);
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-flag-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.price-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 0.5rem;
  letter-spacing: 0.01em;
}

.shipping-price {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.offers-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  white-space: nowrap;
  margin-left: auto;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.footer {
  width: 100%;
  padding: 2rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #1a2639;
  color: white;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.affiliate-disclaimer {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links {
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  margin: 0 1rem;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #3498db;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.image-nav {
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  transition: all 0.2s ease;
  opacity: 0;
}

.product-card:hover .image-nav {
  opacity: 1;
}

.image-nav:hover {
  transform: scale(1.1);
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-container img {
  transition: opacity 0.3s ease;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.product-brand {
  color: #3498db;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.product-code {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.brand-name {
  color: #3498db;
  font-size: 0.9rem;
}

.product-code {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.shipping-info {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-left: 1.5rem;
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(52, 152, 219, 0.05) 25%,
    rgba(52, 152, 219, 0.1) 37%,
    rgba(52, 152, 219, 0.05) 63%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
  border-radius: 0.375rem;
  opacity: 0.8;
}

/* Hide skeleton cards when not needed */
.results-grid:not(.loading) .skeleton,
#random-products-grid:not(.loading) .skeleton,
.product-grid:not(.loading) .skeleton {
  display: none;
}

/* Shimmer loading effect */
.shimmer-placeholder {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Price shimmer effect */
.price-shimmer {
  position: relative;
  overflow: hidden;
}

.price-shimmer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 1s infinite linear;
}

.price-updating {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.loading-prices {
  min-height: 48px;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

main {
  flex: 1;
}

.product-gallery {
  width: 100%;
  margin-bottom: 1rem;
}

.image-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.product-image-container {
  width: 100%;
  height: 180px;
  position: relative;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111827;
  border-radius: 0.375rem;
  transition: transform 0.3s ease;
}

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

.image-nav {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 152, 219, 0.8);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-size: 12px;
}

.image-nav:hover {
  background: rgba(52, 152, 219, 1);
  transform: scale(1.1);
}

.image-nav:active {
  transform: scale(0.95);
}

.image-nav i {
  font-size: 10px;
}

.image-indicators {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 0.5rem;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all 0.2s ease;
}

.indicator-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.indicator-dot.active {
  background: rgba(52, 152, 219, 1);
  transform: scale(1.2);
}

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-image-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.modal-image {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: -2rem;
  right: -2rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.modal-nav {
  width: 40px;
  height: 40px;
  background: rgba(52, 152, 219, 0.8);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-nav:hover {
  background: rgba(52, 152, 219, 1);
  transform: scale(1.1);
}

.modal-indicators {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.modal-indicators .indicator-dot {
  width: 10px;
  height: 10px;
}

.logo-container img {
  width: 300px;
  height: auto;
  transition: transform 0.2s ease;
}

.logo-container img:hover {
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .logo-container img {
    width: 250px;
  }
}

.workflow-icon {
  transition: transform 0.3s ease;
}

.workflow-icon:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .workflow-steps {
    grid-template-columns: 1fr;
  }
}

.marketplace-prices {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.monitoring-info {
  margin-bottom: 1rem;
  text-align: center;
  color: #a0aec0;
  font-size: 0.9rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.monitoring-info p {
  line-height: 1.5;
}

.contact-info {
  margin: 2rem 0;
  padding: 1rem;
  transition: all 0.3s ease;
}

.contact-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(52, 152, 219, 0.1);
}

.company-address {
  margin: 1rem 0;
  font-style: normal;
  line-height: 1.8;
  transition: all 0.3s ease;
}

.company-address:hover {
  border-color: rgba(52, 152, 219, 0.4);
}

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateY(-20px);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  max-width: 300px;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: center;
}

.notification-content i {
  margin-right: 10px;
  font-size: 18px;
}

.notification.success {
  background: rgba(46, 204, 113, 0.9);
}

.notification.error {
  background: rgba(231, 76, 60, 0.9);
}

.notification.info {
  background: rgba(52, 152, 219, 0.9);
}

/* Top products grid */
#random-products-grid {
  margin-top: 1rem;
  position: relative;
  display: flex;
  justify-content: center; /* Center the carousel */
  width: 100%;
  overflow: hidden;
}

/* Interactive Search Sections */
.region-card,
.category-card,
.brand-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.region-card.active,
.category-card.active,
.brand-card.active {
  border: 2px solid #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.5);
}

.brand-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  overflow: hidden;
}

.brand-logo {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* Carousel styles */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0; /* Remove padding for navigation buttons */
  margin: 0 auto 30px; /* Center horizontally and keep bottom margin */
  border-radius: 0;
  max-width: 100%; /* Use full width */
  background-color: transparent; /* Transparent background */
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: max-content; /* Allow the track to be as wide as needed */
  padding: 20px; /* Add more padding like the reference */
  align-items: stretch; /* Ensure all cards have the same height */
  min-width: 100%; /* Ensure the track is at least as wide as the container */
  justify-content: flex-start; /* Start from the left like the reference */
}

.carousel-track .product-card {
  flex: 0 0 auto; /* Allow cards to size based on content */
  width: 300px; /* Fixed width like the reference */
  margin-right: 20px;
  height: 100%;
  box-shadow: none; /* No shadow like the reference */
  transition: all 0.3s ease;
  /* Match the reference card structure */
  background: #1f2937;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  margin-bottom: 0; /* Override the margin-bottom from .product-card */
}

.carousel-track .product-card:hover {
  transform: translateY(-4px); /* Match search results hover effect */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Match search results hover shadow */
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(52, 152, 219, 0.8); /* Match the theme blue color */
  color: white;
  border: none;
  border-radius: 50%;
  display: none; /* Hide the buttons */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel-button:hover {
  background-color: rgba(52, 152, 219, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.carousel-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hide carousel indicators as per reference image */
.carousel-indicators {
  display: none;
}

/* Carousel styles - No longer used, replaced with grid layout */

/* Carousel track - No longer used, replaced with grid layout */

/* Carousel product card - No longer used, replaced with grid layout */

/* Carousel product card hover - No longer used, replaced with grid layout */

/* Carousel button - No longer used, replaced with grid layout */

/* Carousel button hover - No longer used, replaced with grid layout */

/* Carousel button positions - No longer used, replaced with grid layout */

/* Carousel indicators - No longer used, replaced with grid layout */

/* === Homepage Redesign Enhancements === */

.hero-section {
  background: linear-gradient(135deg, #232946 0%, #1a2639 60%, #3498db 100%);
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.25);
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
  position: relative;
  overflow: hidden;
}
.hero-section .logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  box-shadow: 0 4px 32px rgba(52, 152, 219, 0.15);
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}
.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(44, 62, 80, 0.15);
  margin-bottom: 1rem;
}
.hero-section p {
  color: #e0e7ef;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.hero-section .search-form input {
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid #3498db;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}
.hero-section .search-form button {
  background: linear-gradient(90deg, #3498db 0%, #f1c40f 100%);
  color: #232946;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.12);
  border: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.hero-section .search-form button:hover {
  background: linear-gradient(90deg, #2980b9 0%, #f39c12 100%);
  color: #fff;
}

/* Affiliate Disclosure Banner */
.affiliate-disclosure-banner {
  background: rgba(241, 196, 15, 0.18);
  color: #f1c40f;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(241, 196, 15, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}
.affiliate-disclosure-banner a {
  color: #3498db;
  text-decoration: underline;
  margin-left: 0.5rem;
}
.affiliate-disclosure-banner a:hover {
  color: #f1c40f;
}

/* Top Products Section */
#random-products-container {
  background: linear-gradient(90deg, #232946 0%, #1a2639 100%);
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.1);
  padding: 2rem 1rem 2.5rem 1rem;
}
#random-products-container h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #3498db;
  text-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);
}

/* Card and Button Polish - Styles moved to main product-card class */
.button {
  display: inline-block;
  background-color: #4caf50;
  color: #ffffff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.button:hover {
  background-color: #45a049;
}

.auth-button {
  display: inline-block;
  background-color: #1a73e8;
  color: #ffffff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.auth-button:hover {
  background-color: #165cb8;
}

/* Typography and Section Headings */
h1,
h2,
h3,
h4 {
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Responsive Tweaks */
@media (max-width: 900px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  #random-products-container {
    padding: 1.5rem 0.5rem 2rem 0.5rem;
  }
}
@media (max-width: 600px) {
  .hero-section .logo {
    width: 100px;
    height: 100px;
  }
  .affiliate-disclosure-banner {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }
}

/* 16:9 Aspect Ratio Classes */
.aspect-ratio-16-9 {
  aspect-ratio: 16/9;
  object-fit: cover;
}
